GNU bug report logs - #16135
After backward-up-list in jit-lock-after-change-extend-region-functions, insert-parentheses malfunctions

Previous Next

Package: emacs;

Reported by: Barry OReilly <gundaetiapo <at> gmail.com>

Date: Fri, 13 Dec 2013 23:11:02 UTC

Severity: minor

Done: Barry OReilly <gundaetiapo <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 16135 in the body.
You can then email your comments to 16135 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#16135; Package emacs. (Fri, 13 Dec 2013 23:11:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Barry OReilly <gundaetiapo <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 13 Dec 2013 23:11:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Barry OReilly <gundaetiapo <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: After backward-up-list in
 jit-lock-after-change-extend-region-functions, 
 insert-parentheses malfunctions
Date: Fri, 13 Dec 2013 18:10:15 -0500
[Message part 1 (text/plain, inline)]
Let jit-lock-after-change.el have:

  (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)

Start today's trunk by:

  emacs -Q --load /tmp/jit-lock-after-change.el

Insert parentheses:

  M-(

Inserted into *scratch* buffer:

  ) (

But expected:

  ()

I'm on RHEL 5.
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#16135; Package emacs. (Fri, 13 Dec 2013 23:39:02 GMT) Full text and rfc822 format available.

Message #8 received at 16135 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Barry OReilly <gundaetiapo <at> gmail.com>
Cc: 16135 <at> debbugs.gnu.org
Subject: Re: bug#16135: After backward-up-list in
 jit-lock-after-change-extend-region-functions, insert-parentheses malfunctions
Date: Fri, 13 Dec 2013 18:38:10 -0500
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.




Reply sent to Barry OReilly <gundaetiapo <at> gmail.com>:
You have taken responsibility. (Sat, 14 Dec 2013 16:54:01 GMT) Full text and rfc822 format available.

Notification sent to Barry OReilly <gundaetiapo <at> gmail.com>:
bug acknowledged by developer. (Sat, 14 Dec 2013 16:54:02 GMT) Full text and rfc822 format available.

Message #13 received at 16135-done <at> debbugs.gnu.org (full text, mbox):

From: Barry OReilly <gundaetiapo <at> gmail.com>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 16135-done <at> debbugs.gnu.org
Subject: Re: 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 part 1 (text/plain, inline)]
Right, I see my error.


On Fri, Dec 13, 2013 at 6:38 PM, Glenn Morris <rgm <at> gnu.org> 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.
>
[Message part 2 (text/html, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 12 Jan 2014 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 11 years and 220 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.