diff lisp/simple.el @ 267:966663fcf606 r20-5b32

Import from CVS: tag r20-5b32
author cvs
date Mon, 13 Aug 2007 10:26:29 +0200
parents 8efd647ea9ca
children c5d627a313b1
line wrap: on
line diff
--- a/lisp/simple.el	Mon Aug 13 10:25:39 2007 +0200
+++ b/lisp/simple.el	Mon Aug 13 10:26:29 2007 +0200
@@ -3213,6 +3213,8 @@
   "Set VARIABLE to VALUE.  VALUE is a Lisp object.
 When using this interactively, supply a Lisp expression for VALUE.
 If you want VALUE to be a string, you must surround it with doublequotes.
+If VARIABLE is a specifier, VALUE is added to it as an instantiator in
+the 'global locale with nil tag set (see `set-specifier').
 
 If VARIABLE has a `variable-interactive' property, that is used as if
 it were the arg to `interactive' (which see) to interactively read the value."
@@ -3246,7 +3248,9 @@
 					   (list 'interactive prop)
 					   'arg))
 	       (eval-minibuffer (format "Set %s to value: " var)))))))
-  (set var val))
+  (if (specifierp (symbol-value var))
+      (set-specifier (symbol-value var) val)
+    (set var val)))
 
 ;; XEmacs
 (defun activate-region ()