aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Love2000-05-16 15:03:49 +0000
committerDave Love2000-05-16 15:03:49 +0000
commit01651f075feb8057fe51dbb50f886f09572ab55e (patch)
tree6bf47fdf9ea366b43c6bbd194502623be7ccac89
parent2248c40dab51a996745e215d74af0e30fac8b114 (diff)
downloademacs-01651f075feb8057fe51dbb50f886f09572ab55e.tar.gz
emacs-01651f075feb8057fe51dbb50f886f09572ab55e.zip
Don't require cl or easymenu.
(custom-variable-prompt): Test standard-value property, not user-variable-p.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/cus-edit.el5
2 files changed, 7 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index ee70d51bc1c..9096e57bfb9 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12000-05-16 Dave Love <fx@gnu.org>
2
3 * cus-edit.el: Don't require cl or easymenu.
4 (custom-variable-prompt): Test standard-value property, not
5 user-variable-p.
6
12000-05-16 Sam Steingold <sds@gnu.org> 72000-05-16 Sam Steingold <sds@gnu.org>
2 8
3 * subr.el (add-hook): `setq' hook-value, not `set'. 9 * subr.el (add-hook): `setq' hook-value, not `set'.
diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el
index 30383bff989..42f5d0978be 100644
--- a/lisp/cus-edit.el
+++ b/lisp/cus-edit.el
@@ -36,9 +36,7 @@
36 36
37(require 'cus-face) 37(require 'cus-face)
38(require 'wid-edit) 38(require 'wid-edit)
39(require 'easymenu)
40(eval-when-compile 39(eval-when-compile
41 (require 'cl)
42 (defvar custom-versions-load-alist)) ; from cus-load 40 (defvar custom-versions-load-alist)) ; from cus-load
43 41
44(condition-case nil 42(condition-case nil
@@ -385,7 +383,6 @@ IF REGEXP is not a string, return it unchanged."
385 regexp)) 383 regexp))
386 384
387(defun custom-variable-prompt () 385(defun custom-variable-prompt ()
388 ;; Code stolen from `help.el'.
389 "Prompt for a variable, defaulting to the variable at point. 386 "Prompt for a variable, defaulting to the variable at point.
390Return a list suitable for use in `interactive'." 387Return a list suitable for use in `interactive'."
391 (let ((v (variable-at-point)) 388 (let ((v (variable-at-point))
@@ -399,7 +396,7 @@ Return a list suitable for use in `interactive'."
399 (and (boundp symbol) 396 (and (boundp symbol)
400 (or (get symbol 'custom-type) 397 (or (get symbol 'custom-type)
401 (get symbol 'custom-loads) 398 (get symbol 'custom-loads)
402 (user-variable-p symbol)))) t)) 399 (get symbol 'standard-value)))) t))
403 (list (if (equal val "") 400 (list (if (equal val "")
404 (if (symbolp v) v nil) 401 (if (symbolp v) v nil)
405 (intern val))))) 402 (intern val)))))