GNU bug report logs - #16799
24.3.50; delete-selection-mode and electric-pair-mode interaction

Previous Next

Package: emacs;

Reported by: Harald Hanche-Olsen <hanche <at> math.ntnu.no>

Date: Tue, 18 Feb 2014 20:48:02 UTC

Severity: normal

Found in version 24.3.50

Done: Juanma Barranquero <lekktu <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


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

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Juanma Barranquero <lekktu <at> gmail.com>
Cc: Harald Hanche-Olsen <hanche <at> math.ntnu.no>, 16799 <at> debbugs.gnu.org
Subject: Re: bug#16799: 24.3.50;
 delete-selection-mode and electric-pair-mode interaction
Date: Wed, 19 Feb 2014 23:49:34 -0500
> -  (let* ((pre-string-or-comment (nth 8 (save-excursion
> -                                         (syntax-ppss (1- (point))))))
> +  (let* ((pre-string-or-comment (if (> (point) (point-min))
> +                                   (nth 8 (save-excursion
> +                                            (syntax-ppss (1- (point)))))
> +                                 t))

Looks right, except that I'd write (not (bobp)) instead of (> (point)
(point-min)).


        Stefan




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

Previous Next


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