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
90fec20a
Commit
90fec20a
authored
Jun 21, 1995
by
Richard M. Stallman
Browse files
(eval-defun): Don't change defvar to defconst
if it has just one argument.
parent
dc61cb9d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
lisp/emacs-lisp/lisp-mode.el
lisp/emacs-lisp/lisp-mode.el
+2
-1
No files found.
lisp/emacs-lisp/lisp-mode.el
View file @
90fec20a
...
...
@@ -277,7 +277,8 @@ With argument, insert value in current buffer after the defun."
(
end-of-defun
)
(
beginning-of-defun
)
(
read
(
current-buffer
)))))
(
if
(
eq
(
car
form
)
'defvar
)
(
if
(
and
(
eq
(
car
form
)
'defvar
)
(
cdr-safe
(
cdr-safe
form
)))
(
setq
form
(
cons
'defconst
(
cdr
form
))))
(
prin1
(
eval
form
))))
...
...
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