]> git.eshelyaron.com Git - emacs.git/commitdiff
(texinfo-anchor): Don't delete a non-speace after the @anchor command.
authorRichard M. Stallman <rms@gnu.org>
Wed, 19 May 1999 01:40:23 +0000 (01:40 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 19 May 1999 01:40:23 +0000 (01:40 +0000)
lisp/textmodes/texinfmt.el

index 101737227b2cd90f1717ee659c7d8b5b486506a1..91fa154933b8918cb692469da03a042726820020 100644 (file)
@@ -1143,7 +1143,8 @@ Leave point after argument."
   (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