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
19b2f8f1
Commit
19b2f8f1
authored
May 01, 1991
by
Roland McGrath
Browse files
*** empty log message ***
parent
121f0d57
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
lisp/emacs-lisp/lisp-mode.el
lisp/emacs-lisp/lisp-mode.el
+13
-13
No files found.
lisp/emacs-lisp/lisp-mode.el
View file @
19b2f8f1
...
...
@@ -209,25 +209,25 @@ if that value is non-nil."
"Evaluate sexp before point; print value in minibuffer.
With argument, print output into current buffer."
(
interactive
"P"
)
(
prin1
(
let
((
sta
b
(
syntax-table
)))
(
eval
(
unwind-protect
(
save-excursion
(
s
et-syntax-table
emacs-lisp-mode-syntax-table
)
(
forward-sexp
-1
)
(
read
(
current-buffer
))
)
(
set-syntax-table
stab
)
)))
(
if
arg
(
current-buffer
)
t
)))
(
let
((
sta
ndard-output
(
if
arg
(
current-buffer
)
t
)))
(
prin1
(
let
((
stab
(
syntax-table
)))
(
eval
(
unwind-protect
(
s
ave-excursion
(
set-syntax-table
emacs-lisp-mode-syntax-table
)
(
forward-sexp
-1
)
(
read
(
current-buffer
)))
(
set-syntax-table
stab
))))
)))
(
defun
eval-defun
(
arg
)
"Evaluate defun that point is in or before.
Print value in minibuffer.
With argument, insert value in current buffer after the defun."
(
interactive
"P"
)
(
prin1
(
eval
(
save-excursion
(
end-of-defun
)
(
beginning
-of-defun
)
(
read
(
current-buffer
)))
)
(
if
arg
(
current-buffer
)
t
)))
(
let
((
standard-output
(
if
arg
(
current-buffer
)
t
)))
(
prin1
(
eval
(
save-excursion
(
end
-of-defun
)
(
beginning-of-defun
)
(
read
(
current-buffer
)
)))
)))
(
defun
lisp-comment-indent
()
(
if
(
looking-at
"\\s<\\s<\\s<"
)
...
...
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