diff options
| author | Martin Rudalics | 2008-11-28 10:23:21 +0000 |
|---|---|---|
| committer | Martin Rudalics | 2008-11-28 10:23:21 +0000 |
| commit | 4d1243c82656339b063c3f0d027b1eb9ff90f554 (patch) | |
| tree | 859c3a9d3060be1c496f73c650ccd84b81d6acb3 | |
| parent | 59bc82c0b9e6072f3e889efe74a126e0a9228302 (diff) | |
| download | emacs-4d1243c82656339b063c3f0d027b1eb9ff90f554.tar.gz emacs-4d1243c82656339b063c3f0d027b1eb9ff90f554.zip | |
(eldoc-docstring-first-line): Don't match
any but the first "*" in a doc-string.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/emacs-lisp/eldoc.el | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index b85f3ffbc70..a3e37246f42 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2008-11-28 Martin Rudalics <rudalics@gmx.at> | ||
| 2 | |||
| 3 | * emacs-lisp/eldoc.el (eldoc-docstring-first-line): Don't match | ||
| 4 | any but the first "*" in a doc-string. | ||
| 5 | |||
| 1 | 2008-11-28 Glenn Morris <rgm@gnu.org> | 6 | 2008-11-28 Glenn Morris <rgm@gnu.org> |
| 2 | 7 | ||
| 3 | * format.el (format-write-file): Improve previous doc fix. | 8 | * format.el (format-write-file): Improve previous doc fix. |
diff --git a/lisp/emacs-lisp/eldoc.el b/lisp/emacs-lisp/eldoc.el index 710ff821f1d..d6fa09e94a5 100644 --- a/lisp/emacs-lisp/eldoc.el +++ b/lisp/emacs-lisp/eldoc.el | |||
| @@ -367,7 +367,9 @@ In the absence of INDEX, just call `eldoc-docstring-format-sym-doc'." | |||
| 367 | (and (stringp doc) | 367 | (and (stringp doc) |
| 368 | (substitute-command-keys | 368 | (substitute-command-keys |
| 369 | (save-match-data | 369 | (save-match-data |
| 370 | (let ((start (if (string-match "^\\*" doc) (match-end 0) 0))) | 370 | ;; Don't use "^" in the regexp below since it may match |
| 371 | ;; anywhere in the doc-string. | ||
| 372 | (let ((start (if (string-match "\\`\\*" doc) (match-end 0) 0))) | ||
| 371 | (cond ((string-match "\n" doc) | 373 | (cond ((string-match "\n" doc) |
| 372 | (substring doc start (match-beginning 0))) | 374 | (substring doc start (match-beginning 0))) |
| 373 | ((zerop start) doc) | 375 | ((zerop start) doc) |