From: Richard M. Stallman Date: Fri, 26 Oct 2007 03:50:56 +0000 (+0000) Subject: (custom-note-var-changed): New function. X-Git-Tag: emacs-pretest-23.0.90~10067 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=400b960e6779f2bf84944dd6fd676479abe285ff;p=emacs.git (custom-note-var-changed): New function. --- diff --git a/lisp/custom.el b/lisp/custom.el index 95abaa55da3..e75cdc32459 100644 --- a/lisp/custom.el +++ b/lisp/custom.el @@ -579,6 +579,15 @@ This recursively follows aliases." (or (get variable 'standard-value) (get variable 'custom-autoload))) +(defun custom-note-var-changed (variable) + "Inform Custom that VARIABLE has been set (changed). +VARIABLE is a symbol that names a user option. +The result is that the change is treated as having been made through Custom." + (interactive "vVariable: ") + (put variable 'customized-value (list (custom-quote (eval variable))))) + + ;;; Custom Themes + ;;; Loading files needed to customize a symbol. ;;; This is in custom.el because menu-bar.el needs it for toggle cmds.