bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#16799: 24.3.50; delete-selection-mode and electric-pair-mode interac


From: Stefan Monnier
Subject: bug#16799: 24.3.50; delete-selection-mode and electric-pair-mode interaction
Date: Wed, 19 Feb 2014 23:49:34 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]