aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Rudalics2008-11-28 10:23:21 +0000
committerMartin Rudalics2008-11-28 10:23:21 +0000
commit4d1243c82656339b063c3f0d027b1eb9ff90f554 (patch)
tree859c3a9d3060be1c496f73c650ccd84b81d6acb3
parent59bc82c0b9e6072f3e889efe74a126e0a9228302 (diff)
downloademacs-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/ChangeLog5
-rw-r--r--lisp/emacs-lisp/eldoc.el4
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 @@
12008-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
12008-11-28 Glenn Morris <rgm@gnu.org> 62008-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)