]> git.eshelyaron.com Git - emacs.git/commitdiff
(byte-compile-output-docform): Output doc string position
authorRichard M. Stallman <rms@gnu.org>
Fri, 7 Apr 1995 07:29:33 +0000 (07:29 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 7 Apr 1995 07:29:33 +0000 (07:29 +0000)
as negative number, if doc string starts with *.

lisp/emacs-lisp/bytecomp.el

index b11b0fd1f14cfdf31b119c1d95a42d0581da5f0a..230790c8631b28e4c39e507c7034348973c98379 100644 (file)
@@ -1424,7 +1424,13 @@ With argument, insert value in current buffer after the form."
              (insert "\n")
              (setq position
                    (byte-compile-output-as-comment
-                    (nth (nth 1 info) form) nil))))
+                    (nth (nth 1 info) form) nil))
+             ;; If the doc string starts with * (a user variable),
+             ;; negate POSITION.
+             (if (and (stringp (nth (nth 1 info) form))
+                      (> (length (nth (nth 1 info) form)) 0)
+                      (eq (aref (nth (nth 1 info) form) 0) ?*))
+                 (setq position (- position)))))
 
        (if preface
           (progn