Mercurial > emacs
comparison 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 |
comparison
equal
deleted
inserted
replaced
11252:f610f9d7e3ca | 11253:8f71342e7b71 |
---|---|
1422 ;; Make the doc string start at beginning of line | 1422 ;; Make the doc string start at beginning of line |
1423 ;; for make-docfile's sake. | 1423 ;; for make-docfile's sake. |
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 |
1431 (insert preface) | 1437 (insert preface) |
1432 (prin1 name outbuffer))) | 1438 (prin1 name outbuffer))) |