helpful

a fork of Wilfred's helpful
git clone https://git.trogloxene.org/helpful.git
Log | Files | Refs | README

commit fe8b552570cf685e27f35d8076b1d737437d97bc
parent 62aa8bd5befca1a99f30c91df700d8ac74799612
Author: Wilfred Hughes <me@wilfred.me.uk>
Date:   Sat, 30 Dec 2017 17:39:45 +0000

Symbols needs to be quoted when reading in new values

E.g. try setting text-quoting-style

Diffstat:
MCHANGELOG.md | 3+++
Mhelpful.el | 4+++-
2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md @@ -4,6 +4,9 @@ Helpful now correctly handles \= escapes in docstrings. Added disassemble buttons to byte-code functions in symbol properties. +Fixed an issue with the prompt when setting variables to symbol +values. + # v0.5 Allow function tracing to be enabled/disabled from Helpful buffers. diff --git a/helpful.el b/helpful.el @@ -443,7 +443,9 @@ or disable if already enabled." (read-from-minibuffer "Eval: " (format - (if (consp sym-value) "(setq %s '%S)" "(setq %s %S)") + (if (or (symbolp sym-value) (consp sym-value)) + "(setq %s '%S)" + "(setq %s %S)") sym sym-value) read-expression-map t 'read-expression-history))))