[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/menu-bar.el
From: |
Kim F. Storm |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/menu-bar.el |
Date: |
Wed, 01 May 2002 18:01:17 -0400 |
Index: emacs/lisp/menu-bar.el
diff -c emacs/lisp/menu-bar.el:1.215 emacs/lisp/menu-bar.el:1.216
*** emacs/lisp/menu-bar.el:1.215 Tue Apr 30 16:38:21 2002
--- emacs/lisp/menu-bar.el Wed May 1 18:01:16 2002
***************
*** 540,546 ****
;(defvar menu-bar-preferences-menu (make-sparse-keymap "Preferences"))
! (defmacro menu-bar-make-toggle (name variable doc message help &rest body)
`(progn
(defun ,name ()
,(concat "Toggle whether to " (downcase (substring help 0 1))
--- 540,546 ----
;(defvar menu-bar-preferences-menu (make-sparse-keymap "Preferences"))
! (defmacro menu-bar-make-toggle (name variable doc message help &optional
props &rest body)
`(progn
(defun ,name ()
,(concat "Toggle whether to " (downcase (substring help 0 1))
***************
*** 566,571 ****
--- 566,572 ----
(interactive)
(,name)
(customize-mark-as-set ',variable))
+ ,@(if props props)
:help ,help
:button (:toggle . (and (default-boundp ',variable)
(default-value ',variable))))))
***************
*** 583,589 ****
(dolist (elt '(line-number-mode column-number-mode scroll-bar-mode
debug-on-quit debug-on-error menu-bar-mode tool-bar-mode
save-place uniquify-buffer-name-style
! case-fold-search show-paren-mode
transient-mark-mode global-font-lock-mode
display-time-mode auto-compression-mode
current-language-environment default-input-method
--- 584,590 ----
(dolist (elt '(line-number-mode column-number-mode scroll-bar-mode
debug-on-quit debug-on-error menu-bar-mode tool-bar-mode
save-place uniquify-buffer-name-style
! case-fold-search cua-mode show-paren-mode
transient-mark-mode global-font-lock-mode
display-time-mode auto-compression-mode
current-language-environment default-input-method
***************
*** 777,782 ****
--- 778,784 ----
"Use Directory Names in Buffer Names"
"Directory name in buffer names (uniquify) %s"
"Uniquify buffer names by adding parent directory names"
+ () ; no props
(require 'uniquify)
(setq uniquify-buffer-name-style
(if (not uniquify-buffer-name-style)
***************
*** 784,789 ****
--- 786,801 ----
(define-key menu-bar-options-menu [edit-options-separator]
'("--"))
+ (define-key menu-bar-options-menu [cua-mode]
+ '(menu-item "CUA-style cut and paste"
+ (lambda ()
+ (interactive)
+ (cua-mode nil)
+ (customize-mark-as-set 'cua-mode)
+ (message "CUA-style cut and paste %s"
+ (if cua-mode "enabled" "disabled")))
+ :help "Use C-z/C-x/C-c/C-v keys for undo/cut/copy/paste"
+ :button (:toggle . cua-mode)))
(define-key menu-bar-options-menu [case-fold-search]
(menu-bar-make-toggle toggle-case-fold-search case-fold-search
"Case-Insensitive Search"
***************
*** 824,830 ****
(menu-bar-make-toggle toggle-transient-mark-mode transient-mark-mode
"Active Region Highlighting (Transient Mark mode)"
"Transient Mark mode %s"
! "Make text in active region stand out in color"))
(define-key menu-bar-options-menu [toggle-global-lazy-font-lock-mode]
(menu-bar-make-toggle toggle-global-lazy-font-lock-mode
global-font-lock-mode
"Syntax Highlighting (Global Font Lock mode)"
--- 836,843 ----
(menu-bar-make-toggle toggle-transient-mark-mode transient-mark-mode
"Active Region Highlighting (Transient Mark mode)"
"Transient Mark mode %s"
! "Make text in active region stand out in color"
! (:enable (not cua-mode))))
(define-key menu-bar-options-menu [toggle-global-lazy-font-lock-mode]
(menu-bar-make-toggle toggle-global-lazy-font-lock-mode
global-font-lock-mode
"Syntax Highlighting (Global Font Lock mode)"
- [Emacs-diffs] Changes to emacs/lisp/menu-bar.el,
Kim F. Storm <=
- [Emacs-diffs] Changes to emacs/lisp/menu-bar.el, Eli Zaretskii, 2002/05/10
- [Emacs-diffs] Changes to emacs/lisp/menu-bar.el, Colin Walters, 2002/05/16
- [Emacs-diffs] Changes to emacs/lisp/menu-bar.el, Simon Josefsson, 2002/05/24
- [Emacs-diffs] Changes to emacs/lisp/menu-bar.el, Miles Bader, 2002/05/25
- [Emacs-diffs] Changes to emacs/lisp/menu-bar.el, Richard M. Stallman, 2002/05/30