aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Nicolaescu2009-09-14 23:28:40 +0000
committerDan Nicolaescu2009-09-14 23:28:40 +0000
commit9cd39affaa9df0533621bc6714247b92d77f2e9e (patch)
treea6b2e447454be5a6111f81cac65d7461efbf5a60
parentcc1cb3da4a836ab02f0506ef31b8dc01c9aafe65 (diff)
downloademacs-9cd39affaa9df0533621bc6714247b92d77f2e9e.tar.gz
emacs-9cd39affaa9df0533621bc6714247b92d77f2e9e.zip
* bindings.el (mode-line-mode-menu): Add purecopy calls for :help.
* help.el (help-for-help-internal): Add purecopy calls for text.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/bindings.el22
-rw-r--r--lisp/help.el5
3 files changed, 17 insertions, 14 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 7e355d40e53..685c0cde955 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,8 +1,10 @@
12009-09-14 Dan Nicolaescu <dann@ics.uci.edu> 12009-09-14 Dan Nicolaescu <dann@ics.uci.edu>
2 2
3 * bindings.el (mode-line-mode-menu): Add purecopy calls for :help.
4 * help.el (help-for-help-internal): Add purecopy calls for text.
5
3 * vc.el (top): print-log method now takes an optional SHORTLOG 6 * vc.el (top): print-log method now takes an optional SHORTLOG
4 argument. Add a new method: root. 7 argument. Add a new method: root.
5
6 (vc-root-diff, vc-print-root-log): New functions. 8 (vc-root-diff, vc-print-root-log): New functions.
7 (vc-log-short-style): New variable. 9 (vc-log-short-style): New variable.
8 (vc-print-log-internal): Add support for showing short logs. 10 (vc-print-log-internal): Add support for showing short logs.
diff --git a/lisp/bindings.el b/lisp/bindings.el
index 9924af8cb07..139a4853918 100644
--- a/lisp/bindings.el
+++ b/lisp/bindings.el
@@ -507,49 +507,49 @@ Switch to the most recently selected buffer other than the current one."
507;; Global ones can go on the menubar (Options --> Show/Hide). 507;; Global ones can go on the menubar (Options --> Show/Hide).
508(define-key mode-line-mode-menu [overwrite-mode] 508(define-key mode-line-mode-menu [overwrite-mode]
509 `(menu-item ,(purecopy "Overwrite (Ovwrt)") overwrite-mode 509 `(menu-item ,(purecopy "Overwrite (Ovwrt)") overwrite-mode
510 :help "Overwrite mode: typed characters replace existing text" 510 :help ,(purecopy "Overwrite mode: typed characters replace existing text")
511 :button (:toggle . overwrite-mode))) 511 :button (:toggle . overwrite-mode)))
512(define-key mode-line-mode-menu [outline-minor-mode] 512(define-key mode-line-mode-menu [outline-minor-mode]
513 `(menu-item ,(purecopy "Outline (Outl)") outline-minor-mode 513 `(menu-item ,(purecopy "Outline (Outl)") outline-minor-mode
514 ;; XXX: This needs a good, brief description. 514 ;; XXX: This needs a good, brief description.
515 :help "" 515 :help ,(purecopy "")
516 :button (:toggle . (bound-and-true-p outline-minor-mode)))) 516 :button (:toggle . (bound-and-true-p outline-minor-mode))))
517(define-key mode-line-mode-menu [highlight-changes-mode] 517(define-key mode-line-mode-menu [highlight-changes-mode]
518 `(menu-item ,(purecopy "Highlight changes (Chg)") highlight-changes-mode 518 `(menu-item ,(purecopy "Highlight changes (Chg)") highlight-changes-mode
519 :help "Show changes in the buffer in a distinctive color" 519 :help ,(purecopy "Show changes in the buffer in a distinctive color")
520 :button (:toggle . (bound-and-true-p highlight-changes-mode)))) 520 :button (:toggle . (bound-and-true-p highlight-changes-mode))))
521(define-key mode-line-mode-menu [hide-ifdef-mode] 521(define-key mode-line-mode-menu [hide-ifdef-mode]
522 `(menu-item ,(purecopy "Hide ifdef (Ifdef)") hide-ifdef-mode 522 `(menu-item ,(purecopy "Hide ifdef (Ifdef)") hide-ifdef-mode
523 :help "Show/Hide code within #ifdef constructs" 523 :help ,(purecopy "Show/Hide code within #ifdef constructs")
524 :button (:toggle . (bound-and-true-p hide-ifdef-mode)))) 524 :button (:toggle . (bound-and-true-p hide-ifdef-mode))))
525(define-key mode-line-mode-menu [glasses-mode] 525(define-key mode-line-mode-menu [glasses-mode]
526 `(menu-item ,(purecopy "Glasses (o^o)") glasses-mode 526 `(menu-item ,(purecopy "Glasses (o^o)") glasses-mode
527 :help "Insert virtual separators to make long identifiers easy to read" 527 :help ,(purecopy "Insert virtual separators to make long identifiers easy to read")
528 :button (:toggle . (bound-and-true-p glasses-mode)))) 528 :button (:toggle . (bound-and-true-p glasses-mode))))
529(define-key mode-line-mode-menu [font-lock-mode] 529(define-key mode-line-mode-menu [font-lock-mode]
530 `(menu-item ,(purecopy "Font Lock") font-lock-mode 530 `(menu-item ,(purecopy "Font Lock") font-lock-mode
531 :help "Syntax coloring" 531 :help ,(purecopy "Syntax coloring")
532 :button (:toggle . font-lock-mode))) 532 :button (:toggle . font-lock-mode)))
533(define-key mode-line-mode-menu [flyspell-mode] 533(define-key mode-line-mode-menu [flyspell-mode]
534 `(menu-item ,(purecopy "Flyspell (Fly)") flyspell-mode 534 `(menu-item ,(purecopy "Flyspell (Fly)") flyspell-mode
535 :help "Spell checking on the fly" 535 :help ,(purecopy "Spell checking on the fly")
536 :button (:toggle . (bound-and-true-p flyspell-mode)))) 536 :button (:toggle . (bound-and-true-p flyspell-mode))))
537(define-key mode-line-mode-menu [auto-revert-tail-mode] 537(define-key mode-line-mode-menu [auto-revert-tail-mode]
538 `(menu-item ,(purecopy "Auto revert tail (Tail)") auto-revert-tail-mode 538 `(menu-item ,(purecopy "Auto revert tail (Tail)") auto-revert-tail-mode
539 :help "Revert the tail of the buffer when buffer grows" 539 :help ,(purecopy "Revert the tail of the buffer when buffer grows")
540 :enable (buffer-file-name) 540 :enable (buffer-file-name)
541 :button (:toggle . (bound-and-true-p auto-revert-tail-mode)))) 541 :button (:toggle . (bound-and-true-p auto-revert-tail-mode))))
542(define-key mode-line-mode-menu [auto-revert-mode] 542(define-key mode-line-mode-menu [auto-revert-mode]
543 `(menu-item ,(purecopy "Auto revert (ARev)") auto-revert-mode 543 `(menu-item ,(purecopy "Auto revert (ARev)") auto-revert-mode
544 :help "Revert the buffer when the file on disk changes" 544 :help ,(purecopy "Revert the buffer when the file on disk changes")
545 :button (:toggle . (bound-and-true-p auto-revert-mode)))) 545 :button (:toggle . (bound-and-true-p auto-revert-mode))))
546(define-key mode-line-mode-menu [auto-fill-mode] 546(define-key mode-line-mode-menu [auto-fill-mode]
547 `(menu-item ,(purecopy "Auto fill (Fill)") auto-fill-mode 547 `(menu-item ,(purecopy "Auto fill (Fill)") auto-fill-mode
548 :help "Automatically insert new lines" 548 :help ,(purecopy "Automatically insert new lines")
549 :button (:toggle . auto-fill-function))) 549 :button (:toggle . auto-fill-function)))
550(define-key mode-line-mode-menu [abbrev-mode] 550(define-key mode-line-mode-menu [abbrev-mode]
551 `(menu-item ,(purecopy "Abbrev (Abbrev)") abbrev-mode 551 `(menu-item ,(purecopy "Abbrev (Abbrev)") abbrev-mode
552 :help "Automatically expand abbreviations" 552 :help ,(purecopy "Automatically expand abbreviations")
553 :button (:toggle . abbrev-mode))) 553 :button (:toggle . abbrev-mode)))
554 554
555(defun mode-line-minor-mode-help (event) 555(defun mode-line-minor-mode-help (event)
diff --git a/lisp/help.el b/lisp/help.el
index e5c07e82439..25703fba920 100644
--- a/lisp/help.el
+++ b/lisp/help.el
@@ -202,7 +202,8 @@ specifies what to do when the user exits the help buffer."
202(defalias 'help-for-help 'help-for-help-internal) 202(defalias 'help-for-help 'help-for-help-internal)
203;; It can't find this, but nobody will look. 203;; It can't find this, but nobody will look.
204(make-help-screen help-for-help-internal 204(make-help-screen help-for-help-internal
205 "Type a help option: [abcCdefFgiIkKlLmnprstvw.] C-[cdefmnoptw] or ?" 205 (purecopy "Type a help option: [abcCdefFgiIkKlLmnprstvw.] C-[cdefmnoptw] or ?")
206 (purecopy
206 "You have typed %THIS-KEY%, the help character. Type a Help option: 207 "You have typed %THIS-KEY%, the help character. Type a Help option:
207\(Use SPC or DEL to scroll through this text. Type \\<help-map>\\[help-quit] to exit the Help command.) 208\(Use SPC or DEL to scroll through this text. Type \\<help-map>\\[help-quit] to exit the Help command.)
208 209
@@ -247,7 +248,7 @@ C-n News of recent Emacs changes.
247C-o Emacs ordering and distribution information. 248C-o Emacs ordering and distribution information.
248C-p Info about known Emacs problems. 249C-p Info about known Emacs problems.
249C-t Emacs TODO list. 250C-t Emacs TODO list.
250C-w Information on absence of warranty for GNU Emacs." 251C-w Information on absence of warranty for GNU Emacs.")
251 help-map) 252 help-map)
252 253
253 254