From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#3552: 23.0.94; backward-prefix-chars: Point before start of properties Date: Sun, 5 Jun 2016 09:35:50 -0400 Message-ID: References: <837fe4vnxp.fsf@gnu.org> <5753D686.1020204@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=94eb2c094b18cd816a0534880804 X-Trace: ger.gmane.org 1465134831 25205 80.91.229.3 (5 Jun 2016 13:53:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 5 Jun 2016 13:53:51 +0000 (UTC) Cc: 3552@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 05 15:53:42 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1b9YUm-0001sZ-GT for geb-bug-gnu-emacs@m.gmane.org; Sun, 05 Jun 2016 15:53:40 +0200 Original-Received: from localhost ([::1]:37284 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b9YUl-000150-Mn for geb-bug-gnu-emacs@m.gmane.org; Sun, 05 Jun 2016 09:53:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55793) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b9YDp-0000mt-5e for bug-gnu-emacs@gnu.org; Sun, 05 Jun 2016 09:36:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b9YDi-0008Vx-RP for bug-gnu-emacs@gnu.org; Sun, 05 Jun 2016 09:36:09 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42644) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b9YDi-0008Vl-NP for bug-gnu-emacs@gnu.org; Sun, 05 Jun 2016 09:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1b9YDi-00036k-IL for bug-gnu-emacs@gnu.org; Sun, 05 Jun 2016 09:36:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 05 Jun 2016 13:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 3552 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch confirmed Original-Received: via spool by 3552-submit@debbugs.gnu.org id=B3552.146513375811920 (code B ref 3552); Sun, 05 Jun 2016 13:36:02 +0000 Original-Received: (at 3552) by debbugs.gnu.org; 5 Jun 2016 13:35:58 +0000 Original-Received: from localhost ([127.0.0.1]:54979 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b9YDe-00036C-Cm for submit@debbugs.gnu.org; Sun, 05 Jun 2016 09:35:58 -0400 Original-Received: from mail-oi0-f46.google.com ([209.85.218.46]:35216) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b9YDc-00035z-Ps for 3552@debbugs.gnu.org; Sun, 05 Jun 2016 09:35:57 -0400 Original-Received: by mail-oi0-f46.google.com with SMTP id w184so191028194oiw.2 for <3552@debbugs.gnu.org>; Sun, 05 Jun 2016 06:35:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=PAqK74MSA407m2TPZBmRJ7NI9Z6HRbhV1z5N7PBBW3U=; b=Twtub86OWVlWWJfZL26/XYrHEtQOlz7+FG/93X1uU//BEWYpH9DLwT1hiHyArEyTbh uoENxCuxocgGU9JAT6A0mZaeXDjDboPrCkRVnwBzmE39NVmfRIxl0DSIwuk4jZR3HJ1x raqmEk1pJpezwYRNZ4NZUWbwk4HkxgsdPx65/5jMavaUq78UU81LQHpeqKYT1udNOnEp XbMlw5Z9weOpmJX8uakFA/WDvZr1szra98a5Uer2gNt8PwP/3ueeAaer1fu7LWeHakjU UyOTX9xFN5v0/BYacPIkLCDeiG4nhaEk5SuT+85pYjiPmrf+hd8+xMqdWYkCp647xjFs GSWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=PAqK74MSA407m2TPZBmRJ7NI9Z6HRbhV1z5N7PBBW3U=; b=jcSi96Phh/Adb6xaSBjPNkRpCjG18bS8fNSIjk3CSjSAUXiX/2SC+XEE8GECDEOIjH oEeFgzHjRaJLCyc2uQM6e8fvvuIRK1EWMpq02VBDGZkUpKAWr/lVAdVETDs7Frzik7iS FZ8iXL5BDHskEAwPq6fFh1lr8JoarEZmjtxtwYzSMyOfnoB+7PqN7USqJ5WDUlzCAyOj uPgno7FIdFfFuq6iGq4w+YDaEPaYeCkHCJX3UojzPGPf8U8xX0aox7FdqAzb+r7omn6W ShoeT3zH3fIOxkZXujh0JGt1fuAPQXIyU4ZnBLRL/r8gtaoNhmpZLO99jhR4MybK9TT2 DnOg== X-Gm-Message-State: ALyK8tJjVLIKsuPU7YnG1Zy62W9rkMPbpVYaH7Jw4YhvIGOwi9NuR67YyaQHviMqEeXwswY8iis+sT40zM6XKA== X-Received: by 10.157.23.195 with SMTP id j61mr7029598otj.92.1465133751429; Sun, 05 Jun 2016 06:35:51 -0700 (PDT) Original-Received: by 10.157.5.168 with HTTP; Sun, 5 Jun 2016 06:35:50 -0700 (PDT) In-Reply-To: <5753D686.1020204@gmx.at> X-Google-Sender-Auth: 6HlYt-iuXUYdIGPESh_uP9hKN90 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:119104 Archived-At: --94eb2c094b18cd816a0534880804 Content-Type: text/plain; charset=UTF-8 forcemerge 3552 17132 19379 quit On Sun, Jun 5, 2016 at 3:36 AM, martin rudalics wrote: > Make it > > * src/syntax.c (Fbackward_prefix_chars): Stop the loop when beginning of > buffer is reached (Bug#3552, Bug#19379). Heh, seeing that I decided to search the bug database for backwards-prefix-chars and found also Bug #17132. Updated patch attached. --94eb2c094b18cd816a0534880804 Content-Type: text/x-diff; charset=US-ASCII; name="0001-Fbackward_prefix_chars-stay-within-buffer-bounds.patch" Content-Disposition: attachment; filename="0001-Fbackward_prefix_chars-stay-within-buffer-bounds.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_ip2mj8j90 RnJvbSA5ODU4NzRlYmNmYWU5Njk4Mzg1N2U4MTlmNTcwY2FjMzU1MTA1MmM3IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBOb2FtIFBvc3RhdnNreSA8bnBvc3RhdnNAZ21haWwuY29tPgpE YXRlOiBTYXQsIDQgSnVuIDIwMTYgMDk6MDI6MjAgLTA0MDAKU3ViamVjdDogW1BBVENIXSBGYmFj a3dhcmRfcHJlZml4X2NoYXJzOiBzdGF5IHdpdGhpbiBidWZmZXIgYm91bmRzCgpUaGUgY29tbWl0 IDFmZDMxNzJkICIoRmJhY2t3YXJkX3ByZWZpeF9jaGFycyk6IFNldCBwb2ludCBwcm9wZXJseSB3 aGlsZQpzY2FubmluZyIgKDE5OTgtMDMtMTgpLCBtb3ZlZCB0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