aboutsummaryrefslogtreecommitdiff
path: root/helpful.el
diff options
context:
space:
mode:
authorWilfred Hughes <me@wilfred.me.uk>2018-09-21 01:23:22 +0100
committerWilfred Hughes <me@wilfred.me.uk>2018-09-21 01:23:22 +0100
commit98f5f20e201453040e82102603ed1f1ce6699a67 (patch)
tree9e59a4e14150481a897d8c0482e3df45ba88b3e2 /helpful.el
parent2565d0425297567ab176ab55670c7d0d108b1cb9 (diff)
Ensure we don't quote keywords or nil in variable assignment prompt
Diffstat (limited to 'helpful.el')
-rw-r--r--helpful.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/helpful.el b/helpful.el
index fd98f59..b5c080a 100644
--- a/helpful.el
+++ b/helpful.el
@@ -544,7 +544,10 @@ overrides that to include previously opened buffers."
(read-from-minibuffer
"Eval: "
(format
- (if (or (symbolp sym-value) (consp sym-value))
+ (if (or (consp sym-value)
+ (and (symbolp sym-value)
+ (not (null sym-value))
+ (not (keywordp sym-value))))
"(setq %s '%S)"
"(setq %s %S)")
sym sym-value)