aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/textmodes
diff options
context:
space:
mode:
authorGlenn Morris2008-12-02 03:36:25 +0000
committerGlenn Morris2008-12-02 03:36:25 +0000
commit78151cd534f3dd142aa6c09e529115b7aa92f156 (patch)
tree25681dfe2a1d16071f6c33561757b0f740a914a2 /lisp/textmodes
parent083654ee81c101fb648680e1071ecb974d447874 (diff)
downloademacs-78151cd534f3dd142aa6c09e529115b7aa92f156.tar.gz
emacs-78151cd534f3dd142aa6c09e529115b7aa92f156.zip
(texinfo-insert-quote): Tweak previous change.
Diffstat (limited to 'lisp/textmodes')
-rw-r--r--lisp/textmodes/texinfo.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/textmodes/texinfo.el b/lisp/textmodes/texinfo.el
index ba61ab54008..254426d249e 100644
--- a/lisp/textmodes/texinfo.el
+++ b/lisp/textmodes/texinfo.el
@@ -682,9 +682,8 @@ With prefix argument or inside @code or @example, inserts a plain \"."
682 (if (or arg 682 (if (or arg
683 (= (preceding-char) ?\\) 683 (= (preceding-char) ?\\)
684 (save-excursion 684 (save-excursion
685 (if (> (point) (length texinfo-open-quote)) 685 ;; Might be near the start of a (narrowed) buffer.
686 (backward-char (length texinfo-open-quote)) 686 (ignore-errors (backward-char (length texinfo-open-quote)))
687 (goto-char (point-min)))
688 (when (or (looking-at texinfo-open-quote) 687 (when (or (looking-at texinfo-open-quote)
689 (looking-at texinfo-close-quote)) 688 (looking-at texinfo-close-quote))
690 (delete-char (length texinfo-open-quote)) 689 (delete-char (length texinfo-open-quote))