diff options
| author | Juri Linkov | 2009-11-03 07:28:19 +0000 |
|---|---|---|
| committer | Juri Linkov | 2009-11-03 07:28:19 +0000 |
| commit | cf4aaa59c365099fdaff5268603764f768a39ebd (patch) | |
| tree | a40e9059bba9f8ce07db345d617b9406cb2f73a3 | |
| parent | 8b68d2df05c834c43344f69869e55d466ea42502 (diff) | |
| download | emacs-cf4aaa59c365099fdaff5268603764f768a39ebd.tar.gz emacs-cf4aaa59c365099fdaff5268603764f768a39ebd.zip | |
(menu-bar-make-mm-toggle, menu-bar-make-toggle)
(menu-bar-options-menu): Fix list quoting (Bug#4429).
| -rw-r--r-- | lisp/menu-bar.el | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el index 07f94a71204..aca6d855ece 100644 --- a/lisp/menu-bar.el +++ b/lisp/menu-bar.el | |||
| @@ -601,9 +601,9 @@ HELP is the text to use for the tooltip. | |||
| 601 | PROPS are additional properties." | 601 | PROPS are additional properties." |
| 602 | `(list 'menu-item (purecopy ,doc) ',fname | 602 | `(list 'menu-item (purecopy ,doc) ',fname |
| 603 | ,@props | 603 | ,@props |
| 604 | ':help (purecopy ,help) | 604 | :help (purecopy ,help) |
| 605 | ':button '(:toggle . (and (default-boundp ',fname) | 605 | :button '(:toggle . (and (default-boundp ',fname) |
| 606 | (default-value ',fname))))) | 606 | (default-value ',fname))))) |
| 607 | 607 | ||
| 608 | (defmacro menu-bar-make-toggle (name variable doc message help &rest body) | 608 | (defmacro menu-bar-make-toggle (name variable doc message help &rest body) |
| 609 | `(progn | 609 | `(progn |
| @@ -627,9 +627,9 @@ by \"Save Options\" in Custom buffers.") | |||
| 627 | ;; the user have already set explicitly in his init file. | 627 | ;; the user have already set explicitly in his init file. |
| 628 | (if interactively (customize-mark-as-set ',variable))) | 628 | (if interactively (customize-mark-as-set ',variable))) |
| 629 | (list 'menu-item (purecopy ,doc) ',name | 629 | (list 'menu-item (purecopy ,doc) ',name |
| 630 | ':help (purecopy ,help) | 630 | :help (purecopy ,help) |
| 631 | ':button '(:toggle . (and (default-boundp ',variable) | 631 | :button '(:toggle . (and (default-boundp ',variable) |
| 632 | (default-value ',variable)))))) | 632 | (default-value ',variable)))))) |
| 633 | 633 | ||
| 634 | ;; Function for setting/saving default font. | 634 | ;; Function for setting/saving default font. |
| 635 | 635 | ||
| @@ -1039,15 +1039,15 @@ mail status in mode line")) | |||
| 1039 | (menu-bar-make-mm-toggle cua-mode | 1039 | (menu-bar-make-mm-toggle cua-mode |
| 1040 | "C-x/C-c/C-v Cut and Paste (CUA)" | 1040 | "C-x/C-c/C-v Cut and Paste (CUA)" |
| 1041 | "Use C-z/C-x/C-c/C-v keys for undo/cut/copy/paste" | 1041 | "Use C-z/C-x/C-c/C-v keys for undo/cut/copy/paste" |
| 1042 | (:visible (or (not (boundp 'cua-enable-cua-keys)) | 1042 | (:visible '(or (not (boundp 'cua-enable-cua-keys)) |
| 1043 | cua-enable-cua-keys)))) | 1043 | cua-enable-cua-keys)))) |
| 1044 | 1044 | ||
| 1045 | (define-key menu-bar-options-menu [cua-emulation-mode] | 1045 | (define-key menu-bar-options-menu [cua-emulation-mode] |
| 1046 | (menu-bar-make-mm-toggle cua-mode | 1046 | (menu-bar-make-mm-toggle cua-mode |
| 1047 | "Shift movement mark region (CUA)" | 1047 | "Shift movement mark region (CUA)" |
| 1048 | "Use shifted movement keys to set and extend the region." | 1048 | "Use shifted movement keys to set and extend the region." |
| 1049 | (:visible (and (boundp 'cua-enable-cua-keys) | 1049 | (:visible '(and (boundp 'cua-enable-cua-keys) |
| 1050 | (not cua-enable-cua-keys))))) | 1050 | (not cua-enable-cua-keys))))) |
| 1051 | 1051 | ||
| 1052 | (define-key menu-bar-options-menu [case-fold-search] | 1052 | (define-key menu-bar-options-menu [case-fold-search] |
| 1053 | (menu-bar-make-toggle toggle-case-fold-search case-fold-search | 1053 | (menu-bar-make-toggle toggle-case-fold-search case-fold-search |
| @@ -1127,7 +1127,7 @@ mail status in mode line")) | |||
| 1127 | (menu-bar-make-mm-toggle transient-mark-mode | 1127 | (menu-bar-make-mm-toggle transient-mark-mode |
| 1128 | "Active Region Highlighting" | 1128 | "Active Region Highlighting" |
| 1129 | "Make text in active region stand out in color (Transient Mark mode)" | 1129 | "Make text in active region stand out in color (Transient Mark mode)" |
| 1130 | (:enable (not cua-mode)))) | 1130 | (:enable '(not cua-mode)))) |
| 1131 | 1131 | ||
| 1132 | 1132 | ||
| 1133 | ;; The "Tools" menu items | 1133 | ;; The "Tools" menu items |