* bug#16135: After backward-up-list in jit-lock-after-change-extend-region-functions, insert-parentheses malfunctions
@ 2013-12-13 23:10 Barry OReilly
2013-12-13 23:38 ` Glenn Morris
0 siblings, 1 reply; 3+ messages in thread
From: Barry OReilly @ 2013-12-13 23:10 UTC (permalink / raw)
To: 16135
[-- Attachment #1: Type: text/plain, Size: 454 bytes --]
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.
[-- Attachment #2: Type: text/html, Size: 589 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#16135: After backward-up-list in jit-lock-after-change-extend-region-functions, insert-parentheses malfunctions
2013-12-13 23:10 bug#16135: After backward-up-list in jit-lock-after-change-extend-region-functions, insert-parentheses malfunctions Barry OReilly
@ 2013-12-13 23:38 ` Glenn Morris
2013-12-14 16:53 ` Barry OReilly
0 siblings, 1 reply; 3+ messages in thread
From: Glenn Morris @ 2013-12-13 23:38 UTC (permalink / raw)
To: Barry OReilly; +Cc: 16135
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#16135: After backward-up-list in jit-lock-after-change-extend-region-functions, insert-parentheses malfunctions
2013-12-13 23:38 ` Glenn Morris
@ 2013-12-14 16:53 ` Barry OReilly
0 siblings, 0 replies; 3+ messages in thread
From: Barry OReilly @ 2013-12-14 16:53 UTC (permalink / raw)
To: Glenn Morris; +Cc: 16135-done
[-- Attachment #1: Type: text/plain, Size: 576 bytes --]
Right, I see my error.
On Fri, Dec 13, 2013 at 6:38 PM, Glenn Morris <rgm@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.
>
[-- Attachment #2: Type: text/html, Size: 1002 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-12-14 16:53 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-13 23:10 bug#16135: After backward-up-list in jit-lock-after-change-extend-region-functions, insert-parentheses malfunctions Barry OReilly
2013-12-13 23:38 ` Glenn Morris
2013-12-14 16:53 ` Barry OReilly
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).