emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] emacs/lisp/textmodes texinfo.el


From: Glenn Morris
Subject: [Emacs-diffs] emacs/lisp/textmodes texinfo.el
Date: Tue, 02 Dec 2008 03:34:19 +0000

CVSROOT:        /sources/emacs
Module name:    emacs
Changes by:     Glenn Morris <gm>       08/12/02 03:34:19

Modified files:
        lisp/textmodes : texinfo.el 

Log message:
        Aaron S. Hawley <aaronh at garden.org>
        
        (texinfo-insert-quote): Handle corner case where point is at the
        beginning of the buffer.  (Bug#1239)

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/emacs/lisp/textmodes/texinfo.el?cvsroot=emacs&r1=1.122&r2=1.123

Patches:
Index: texinfo.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/textmodes/texinfo.el,v
retrieving revision 1.122
retrieving revision 1.123
diff -u -b -r1.122 -r1.123
--- texinfo.el  6 May 2008 04:33:13 -0000       1.122
+++ texinfo.el  2 Dec 2008 03:34:19 -0000       1.123
@@ -682,7 +682,9 @@
     (if (or arg
            (= (preceding-char) ?\\)
            (save-excursion
+              (if (> (point) (length texinfo-open-quote))
              (backward-char (length texinfo-open-quote))
+                (goto-char (point-min)))
              (when (or (looking-at texinfo-open-quote)
                        (looking-at texinfo-close-quote))
                (delete-char (length texinfo-open-quote))
@@ -694,7 +696,8 @@
                    (setq in-env t)))))
        (self-insert-command (prefix-numeric-value arg))
       (insert
-       (if (memq (char-syntax (preceding-char)) '(?\( ?> ?\s))
+       (if (or (bobp)
+               (memq (char-syntax (preceding-char)) '(?\( ?> ?\s)))
           texinfo-open-quote
         texinfo-close-quote)))))
 




reply via email to

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