GNU bug report logs - #17183
can't insert a quote pair before another

Previous Next

Package: emacs;

Reported by: Stefan Monnier <monnier <at> iro.umontreal.ca>

Date: Fri, 4 Apr 2014 15:05:01 UTC

Severity: normal

Found in version 24.3.50

Done: joaotavora <at> gmail.com (João Távora)

Bug is archived. No further changes may be made.

Full log


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

From: João Távora <joaotavora <at> gmail.com>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 17183 <at> debbugs.gnu.org
Subject: Re: bug#17183: can't insert a quote pair before another
Date: Sun, 6 Apr 2014 16:01:44 +0100
That's precisely what I proposed in my last message
that didn't yet make it to you (gmane authorization).

Also, we should probably use electric-pair--syntax-ppss
so that the trick works inside comments, too.

On Sun, Apr 6, 2014 at 1:39 PM, Stefan Monnier <monnier <at> iro.umontreal.ca> wrote:
>> +             (unwind-protect
>> +                 (progn
>> +                   (delete-char -1)
>> +                   (not (nth 3 (syntax-ppss))))
>> +               (insert-char char)))
>
> Yuck!  Why not (save-excursion (not (nth 3 (syntax-ppss (-1 (point))))))?
>
>
>         Stefan



-- 
João Távora




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

Previous Next


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