Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
2298f9f7
Commit
2298f9f7
authored
Oct 06, 1998
by
Karl Heuer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(eval-defun): Return the evaluation result.
parent
5577e2b2
Changes
1
Show 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 @
2298f9f7
...
...
@@ -339,7 +339,8 @@ With argument, print output into current buffer."
(
defun
eval-defun
(
eval-defun-arg-internal
)
"Evaluate defun that point is in or before.
Print value in minibuffer.
With argument, insert value in current buffer after the defun."
With argument, insert value in current buffer after the defun.
Return the result of evaluation."
(
interactive
"P"
)
(
let
((
standard-output
(
if
eval-defun-arg-internal
(
current-buffer
)
t
))
beg
end
form
)
...
...
@@ -367,7 +368,10 @@ With argument, insert value in current buffer after the defun."
;; Skipping to the end of the specified region
;; will make eval-region return.
(
goto-char
end
)
form
)))))
form
))
;; The result of evaluation has been put onto VALUES.
;; So return it.
(
car
values
))))
(
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