[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/menu-bar.el [emacs-unicode-2]
From: |
Miles Bader |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/menu-bar.el [emacs-unicode-2] |
Date: |
Wed, 27 Oct 2004 01:48:08 -0400 |
Index: emacs/lisp/menu-bar.el
diff -c emacs/lisp/menu-bar.el:1.241.2.2 emacs/lisp/menu-bar.el:1.241.2.3
*** emacs/lisp/menu-bar.el:1.241.2.2 Mon Jun 28 07:28:43 2004
--- emacs/lisp/menu-bar.el Wed Oct 27 05:41:58 2004
***************
*** 596,605 ****
(defmacro menu-bar-make-toggle (name variable doc message help &rest body)
`(progn
! (defun ,name ()
,(concat "Toggle whether to " (downcase (substring help 0 1))
! (substring help 1) ".")
! (interactive)
(if ,(if body `(progn . ,body)
`(progn
(custom-load-symbol ',variable)
--- 596,607 ----
(defmacro menu-bar-make-toggle (name variable doc message help &rest body)
`(progn
! (defun ,name (&optional interactively)
,(concat "Toggle whether to " (downcase (substring help 0 1))
! (substring help 1) ".\
! In an interactive call, record this option as a candidate for saving
! by \"Save Options\" in Custom buffers.")
! (interactive "p")
(if ,(if body `(progn . ,body)
`(progn
(custom-load-symbol ',variable)
***************
*** 612,618 ****
;; a variable is set interactively, as the purpose is to mark it as
;; a candidate for "Save Options", and we do not want to save options
;; the user have already set explicitly in his init file.
! (if (interactive-p) (customize-mark-as-set ',variable)))
'(menu-item ,doc ,name
:help ,help
:button (:toggle . (and (default-boundp ',variable)
--- 614,620 ----
;; a variable is set interactively, as the purpose is to mark it as
;; a candidate for "Save Options", and we do not want to save options
;; the user have already set explicitly in his init file.
! (if interactively (customize-mark-as-set ',variable)))
'(menu-item ,doc ,name
:help ,help
:button (:toggle . (and (default-boundp ',variable)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] Changes to emacs/lisp/menu-bar.el [emacs-unicode-2],
Miles Bader <=