From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Barry OReilly Newsgroups: gmane.emacs.bugs Subject: bug#16135: After backward-up-list in jit-lock-after-change-extend-region-functions, insert-parentheses malfunctions Date: Sat, 14 Dec 2013 11:53:32 -0500 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e0160c6603df88d04ed816bc1 X-Trace: ger.gmane.org 1387040051 25618 80.91.229.3 (14 Dec 2013 16:54:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 14 Dec 2013 16:54:11 +0000 (UTC) Cc: 16135-done@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 14 17:54:16 2013 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 1VrsTn-0005rD-Sv for geb-bug-gnu-emacs@m.gmane.org; Sat, 14 Dec 2013 17:54:16 +0100 Original-Received: from localhost ([::1]:47847 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VrsTn-0000MC-GX for geb-bug-gnu-emacs@m.gmane.org; Sat, 14 Dec 2013 11:54:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47121) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VrsTf-0000Cn-UD for bug-gnu-emacs@gnu.org; Sat, 14 Dec 2013 11:54:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VrsTa-0002RC-Lt for bug-gnu-emacs@gnu.org; Sat, 14 Dec 2013 11:54:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36221) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VrsTa-0002R5-HU for bug-gnu-emacs@gnu.org; Sat, 14 Dec 2013 11:54:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VrsTa-0000ph-BH for bug-gnu-emacs@gnu.org; Sat, 14 Dec 2013 11:54:02 -0500 Resent-From: Barry OReilly Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 14 Dec 2013 16:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 16135 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 16135@debbugs.gnu.org, gundaetiapo@gmail.com, gundaetiapo@gmail.com Original-Received: via spool by 16135-done@debbugs.gnu.org id=D16135.13870400173098 (code D ref 16135); Sat, 14 Dec 2013 16:54:01 +0000 Original-Received: (at 16135-done) by debbugs.gnu.org; 14 Dec 2013 16:53:37 +0000 Original-Received: from localhost ([127.0.0.1]:50238 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VrsTA-0000nt-LO for submit@debbugs.gnu.org; Sat, 14 Dec 2013 11:53:36 -0500 Original-Received: from mail-ob0-f181.google.com ([209.85.214.181]:57381) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VrsT7-0000ng-Ms for 16135-done@debbugs.gnu.org; Sat, 14 Dec 2013 11:53:34 -0500 Original-Received: by mail-ob0-f181.google.com with SMTP id uy5so3245408obc.40 for <16135-done@debbugs.gnu.org>; Sat, 14 Dec 2013 08:53:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=alBVFAbufqlagPgD0UWSmNgUrXkUi4HR3cgXkH4TESI=; b=YpcztUrI6D5bYJrRhjsEjoa6W/qnYACEH/J4b2Od6Fjj618deWeyJU5PoCNGUx395s c59THExJlD7EwcW7wQdoAEehbz7aBnElUzxUI4Cvir5Mksib60svccgTqwmSX/L2Dv58 g2iHm+ojcBxgJw3qC6HQSZ0zv3wehWwaG/T5gTnQci0hhI4gNQw1+TthS4zYMHvYQoc7 OOCh9ROil5/JzhJkBklaHRE491w2R7y4QVgNxgc6qWd4v5E4P+17/V+pL/i0RGPBcREG JQYa6YAl3v31T8vonxnq+3GAP9ClqixROx5JZfwRlebrMaafy9QrdaG3UxVWe7GM2dxG 1/0Q== X-Received: by 10.182.250.200 with SMTP id ze8mr139002obc.72.1387040012628; Sat, 14 Dec 2013 08:53:32 -0800 (PST) Original-Received: by 10.76.156.103 with HTTP; Sat, 14 Dec 2013 08:53:32 -0800 (PST) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:81966 Archived-At: --089e0160c6603df88d04ed816bc1 Content-Type: text/plain; charset=ISO-8859-1 Right, I see my error. On Fri, Dec 13, 2013 at 6:38 PM, Glenn Morris wrote: > Barry OReilly wrote: > > > (add-hook 'jit-lock-after-change-extend-region-functions > > (lambda (_start _end _old-len) > > (condition-case nil > > (backward-up-list) > > (scan-error nil))) > > nil > > t) > [...] > > Insert parentheses: > > > > M-( > > > > Inserted into *scratch* buffer: > > > > ) ( > > > > But expected: > > > > () > > Well, it sounds like you shouldn't do that, then. > --089e0160c6603df88d04ed816bc1 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Right, I see my error.


On Fri, Dec 13, 2013 at 6:38 PM, Glenn = Morris <rgm@gnu.org> wrote:
Barry OReilly wrote:

> =A0 (add-hook 'jit-lock-after-change-extend-region-functions
> =A0 =A0 =A0 =A0 =A0 =A0 (lambda (_start _end _old-len)
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 (condition-case nil
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (backward-up-list)
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (scan-error nil)))
> =A0 =A0 =A0 =A0 =A0 =A0 nil
> =A0 =A0 =A0 =A0 =A0 =A0 t)
[...]
> Insert parentheses:
>
> =A0 M-(
>
> Inserted into *scratch* buffer:
>
> =A0 ) (
>
> But expected:
>
> =A0 ()

Well, it sounds like you shouldn't do that, then.

--089e0160c6603df88d04ed816bc1--