diff lisp/emacs-lisp/bytecomp.el @ 11253:8f71342e7b71

(byte-compile-output-docform): Output doc string position as negative number, if doc string starts with *.
author Richard M. Stallman <rms@gnu.org>
date Fri, 07 Apr 1995 07:29:33 +0000
parents 34477ac36e6e
children 5f75d3e225c1
line wrap: on
line diff
--- a/lisp/emacs-lisp/bytecomp.el	Fri Apr 07 07:18:00 1995 +0000
+++ b/lisp/emacs-lisp/bytecomp.el	Fri Apr 07 07:29:33 1995 +0000
@@ -1424,7 +1424,13 @@
 	      (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