changeset 85653:58abbc936e8f

(custom-note-var-changed): New function.
author Richard M. Stallman <rms@gnu.org>
date Fri, 26 Oct 2007 03:50:56 +0000
parents 613f4fd7b6c5
children 289916e64e8b
files lisp/custom.el
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/custom.el	Fri Oct 26 01:59:44 2007 +0000
+++ b/lisp/custom.el	Fri Oct 26 03:50:56 2007 +0000
@@ -579,6 +579,15 @@
   (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.