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
b387ef9a
Commit
b387ef9a
authored
Nov 19, 1993
by
Richard M. Stallman
Browse files
(eval-expression): Don't bind minibuffer-history-sexp-flag.
(edit-and-eval-command): Likewise.
parent
7ce370e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
lisp/simple.el
lisp/simple.el
+7
-9
No files found.
lisp/simple.el
View file @
b387ef9a
...
...
@@ -383,10 +383,9 @@ Other major modes are defined by comparison with this one."
"Evaluate EXPRESSION and print value in minibuffer.
Value is also consed on to front of the variable `values'."
(
interactive
(
let*
((
minibuffer-history-sexp-flag
t
))
(
list
(
read-from-minibuffer
"Eval: "
nil
read-expression-map
t
'read-expression-history
))))
(
list
(
read-from-minibuffer
"Eval: "
nil
read-expression-map
t
'read-expression-history
)))
(
setq
values
(
cons
(
eval
expression
)
values
))
(
prin1
(
car
values
)
t
))
...
...
@@ -394,11 +393,10 @@ Value is also consed on to front of the variable `values'."
"Prompting with PROMPT, let user edit COMMAND and eval result.
COMMAND is a Lisp expression. Let user edit that expression in
the minibuffer, then read and evaluate the result."
(
let*
((
minibuffer-history-sexp-flag
t
)
(
command
(
read-from-minibuffer
prompt
(
prin1-to-string
command
)
read-expression-map
t
'
(
command-history
.
1
))))
(
let
((
command
(
read-from-minibuffer
prompt
(
prin1-to-string
command
)
read-expression-map
t
'
(
command-history
.
1
))))
(
eval
command
)))
(
defun
repeat-complex-command
(
arg
)
...
...
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