aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1995-04-07 07:29:33 +0000
committerRichard M. Stallman1995-04-07 07:29:33 +0000
commit428c8e2f3c451850ebe355a9a1e6b936b0ce7ccd (patch)
treeb334658c3dfad6c133753376d894425c6c47077f
parent0c00bc70d8732e8c3eccadaf1b85886c26aa1781 (diff)
downloademacs-428c8e2f3c451850ebe355a9a1e6b936b0ce7ccd.tar.gz
emacs-428c8e2f3c451850ebe355a9a1e6b936b0ce7ccd.zip
(byte-compile-output-docform): Output doc string position
as negative number, if doc string starts with *.
-rw-r--r--lisp/emacs-lisp/bytecomp.el8
1 files changed, 7 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el
index b11b0fd1f14..230790c8631 100644
--- a/lisp/emacs-lisp/bytecomp.el
+++ b/lisp/emacs-lisp/bytecomp.el
@@ -1424,7 +1424,13 @@ With argument, insert value in current buffer after the form."
1424 (insert "\n") 1424 (insert "\n")
1425 (setq position 1425 (setq position
1426 (byte-compile-output-as-comment 1426 (byte-compile-output-as-comment
1427 (nth (nth 1 info) form) nil)))) 1427 (nth (nth 1 info) form) nil))
1428 ;; If the doc string starts with * (a user variable),
1429 ;; negate POSITION.
1430 (if (and (stringp (nth (nth 1 info) form))
1431 (> (length (nth (nth 1 info) form)) 0)
1432 (eq (aref (nth (nth 1 info) form) 0) ?*))
1433 (setq position (- position)))))
1428 1434
1429 (if preface 1435 (if preface
1430 (progn 1436 (progn