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
cfe158ab
Commit
cfe158ab
authored
Sep 18, 1992
by
Richard M. Stallman
Browse files
entered into RCS
parent
dd492f04
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
lisp/emacs-lisp/lisp-mode.el
lisp/emacs-lisp/lisp-mode.el
+6
-2
No files found.
lisp/emacs-lisp/lisp-mode.el
View file @
cfe158ab
...
...
@@ -215,13 +215,16 @@ if that value is non-nil."
"Evaluate sexp before point; print value in minibuffer.
With argument, print output into current buffer."
(
interactive
"P"
)
(
let
((
standard-output
(
if
arg
(
current-buffer
)
t
)))
(
let
((
standard-output
(
if
arg
(
current-buffer
)
t
))
(
opoint
(
point
)))
(
prin1
(
let
((
stab
(
syntax-table
)))
(
eval
(
unwind-protect
(
save-excursion
(
set-syntax-table
emacs-lisp-mode-syntax-table
)
(
forward-sexp
-1
)
(
read
(
current-buffer
)))
(
save-restriction
(
narrow-to-region
(
point-min
)
opoint
)
(
read
(
current-buffer
))))
(
set-syntax-table
stab
)))))))
(
defun
eval-defun
(
arg
)
...
...
@@ -481,6 +484,7 @@ of the start of the containing expression."
(
put
'save-excursion
'lisp-indent-function
0
)
(
put
'save-window-excursion
'lisp-indent-function
0
)
(
put
'save-restriction
'lisp-indent-function
0
)
(
put
'save-match-data
'lisp-indent-function
0
)
(
put
'let
'lisp-indent-function
1
)
(
put
'let*
'lisp-indent-function
1
)
(
put
'while
'lisp-indent-function
1
)
...
...
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