changeset 24745:aa8417416f03

(texinfo-anchor): Don't delete a non-speace after the @anchor command.
author Richard M. Stallman <rms@gnu.org>
date Wed, 19 May 1999 01:40:23 +0000
parents 0e99bc70cf07
children a7eb312629b4
files lisp/textmodes/texinfmt.el
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/textmodes/texinfmt.el	Wed May 19 01:30:15 1999 +0000
+++ b/lisp/textmodes/texinfmt.el	Wed May 19 01:40:23 1999 +0000
@@ -1143,7 +1143,8 @@
   (let (anchor-string 
         (here (- (point) 7))  ; save location of beginning of `@anchor'
         (arg (texinfo-parse-arg-discard)))
-    (delete-char 1)           ; since a space is left after -discard
+    (if (looking-at " ")      ; since a space may be left after -discard
+      (delete-char 1))
     (forward-paragraph) 
     (let ((end (point)))
       (if (save-excursion