summaryrefslogtreecommitdiff
path: root/lisp/textmodes/texinfo.el
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2008-12-02 03:36:25 +0000
committerGlenn Morris <rgm@gnu.org>2008-12-02 03:36:25 +0000
commit78151cd534f3dd142aa6c09e529115b7aa92f156 (patch)
tree25681dfe2a1d16071f6c33561757b0f740a914a2 /lisp/textmodes/texinfo.el
parent083654ee81c101fb648680e1071ecb974d447874 (diff)
downloademacs-78151cd534f3dd142aa6c09e529115b7aa92f156.tar.gz
(texinfo-insert-quote): Tweak previous change.
Diffstat (limited to 'lisp/textmodes/texinfo.el')
-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 \"."
(if (or arg
(= (preceding-char) ?\\)
(save-excursion
- (if (> (point) (length texinfo-open-quote))
- (backward-char (length texinfo-open-quote))
- (goto-char (point-min)))
+ ;; Might be near the start of a (narrowed) buffer.
+ (ignore-errors (backward-char (length texinfo-open-quote)))
(when (or (looking-at texinfo-open-quote)
(looking-at texinfo-close-quote))
(delete-char (length texinfo-open-quote))