Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
e9dfb72e
Commit
e9dfb72e
authored
May 20, 1998
by
Richard M. Stallman
Browse files
(set-variable): Offer variable at point as default.
parent
e9cccb71
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
lisp/simple.el
lisp/simple.el
+6
-1
No files found.
lisp/simple.el
View file @
e9dfb72e
...
...
@@ -3549,7 +3549,12 @@ it were the arg to `interactive' (which see) to interactively read VALUE.
If VARIABLE has been defined with `defcustom', then the type information
in the definition is used to check that VALUE is valid."
(
interactive
(
let*
((
var
(
read-variable
"Set variable: "
))
(
interactive
(
let*
((
default-var
(
variable-at-point
))
(
var
(
if
(
symbolp
default-var
)
(
read-variable
(
format
"Set variable (default %s): "
default-var
)
default-var
)
(
read-variable
"Set variable: "
)))
(
minibuffer-help-form
'
(
describe-variable
var
))
(
prop
(
get
var
'variable-interactive
))
(
prompt
(
format
"Set %s to value: "
var
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment