aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiles Bader2000-10-06 05:32:14 +0000
committerMiles Bader2000-10-06 05:32:14 +0000
commit09cb76468520baac114cab02461d404acf87fc3b (patch)
treea98ee74b05216dbf5b53562a6024818b2398591d
parent8fb051f9678de532a9db5a48c7c896f5b218816c (diff)
downloademacs-09cb76468520baac114cab02461d404acf87fc3b.tar.gz
emacs-09cb76468520baac114cab02461d404acf87fc3b.zip
(define-derived-mode): Tweak generated docstring parts.
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/emacs-lisp/easy-mmode.el12
2 files changed, 10 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index a68e9d0760e..8560b7d4ad1 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
12000-10-06 Miles Bader <miles@lsi.nec.co.jp> 12000-10-06 Miles Bader <miles@lsi.nec.co.jp>
2 2
3 * emacs-lisp/easy-mmode.el (define-derived-mode): Tweak generated
4 docstring parts.
5
3 * net/net-utils.el (nslookup-prompt-regexp, ftp-prompt-regexp) 6 * net/net-utils.el (nslookup-prompt-regexp, ftp-prompt-regexp)
4 (smbclient-prompt-regexp): Add usage note to doc string. 7 (smbclient-prompt-regexp): Add usage note to doc string.
5 (ftp-font-lock-keywords, smbclient-font-lock-keywords): Removed. 8 (ftp-font-lock-keywords, smbclient-font-lock-keywords): Removed.
diff --git a/lisp/emacs-lisp/easy-mmode.el b/lisp/emacs-lisp/easy-mmode.el
index 46402aa53b1..60c613022e1 100644
--- a/lisp/emacs-lisp/easy-mmode.el
+++ b/lisp/emacs-lisp/easy-mmode.el
@@ -417,18 +417,20 @@ which more-or-less shadow %s's corresponding tables."
417 ;; Make sure the docstring mentions the mode's hook 417 ;; Make sure the docstring mentions the mode's hook
418 (setq docstring 418 (setq docstring
419 (concat docstring 419 (concat docstring
420 (unless (eq parent 'fundamental-mode) 420 (if (eq parent 'fundamental-mode)
421 "\n\nThis mode "
421 (concat 422 (concat
422 "\nAdditionally to any hooks its parent mode " 423 "\n\nIn addition to any hooks its parent mode "
423 (if (string-match (regexp-quote (format "`%s'" parent)) 424 (if (string-match (regexp-quote (format "`%s'" parent))
424 docstring) nil 425 docstring) nil
425 (format "`%s' " parent)) 426 (format "`%s' " parent))
426 "might have run),")) 427 "might have run,\nthis mode "))
427 (format "\nThis mode runs `%s' just before exiting." hook)))) 428 (format "runs the hook `%s'" hook)
429 ", as the final step\nduring initialization.")))
428 430
429 (unless (string-match "\\\\[{[]" docstring) 431 (unless (string-match "\\\\[{[]" docstring)
430 ;; And don't forget to put the mode's keymap 432 ;; And don't forget to put the mode's keymap
431 (setq docstring (concat docstring "\n\\{" (symbol-name map) "}"))) 433 (setq docstring (concat docstring "\n\n\\{" (symbol-name map) "}")))
432 434
433 `(progn 435 `(progn
434 (defvar ,map (make-sparse-keymap)) 436 (defvar ,map (make-sparse-keymap))