changeset 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 f610f9d7e3ca
children 21402b5c0bfc
files lisp/emacs-lisp/bytecomp.el
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
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