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
83f57f49
Commit
83f57f49
authored
Oct 25, 2008
by
Martin Rudalics
Browse files
(with-current-buffer): Rename buffer argument to buffer-or-name.
parent
cf20330b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
lisp/ChangeLog
lisp/ChangeLog
+2
-0
lisp/subr.el
lisp/subr.el
+6
-6
No files found.
lisp/ChangeLog
View file @
83f57f49
2008-10-25 Martin Rudalics <rudalics@gmx.at>
* subr.el (with-current-buffer): Rename buffer argument to
buffer-or-name.
* window.el (get-buffer-window-list): Rename buffer argument to
buffer-or-name and make it optional.
...
...
lisp/subr.el
View file @
83f57f49
...
...
@@ -2483,14 +2483,14 @@ Similar to `call-process-shell-command', but calls `process-file'."
;;;; Lisp macros to do various things temporarily.
(
defmacro
with-current-buffer
(
buffer
&rest
body
)
"Execute the forms in BODY with BUFFER temporarily current.
BUFFER
can
be a buffer or
a
buffer
name
.
The value returned is the value of the last form in BODY.
See
also `with-temp-buffer'."
(
defmacro
with-current-buffer
(
buffer
-or-name
&rest
body
)
"Execute the forms in BODY with BUFFER
-OR-NAME
temporarily current.
BUFFER
-OR-NAME must
be a buffer or
the name of an existing
buffer.
The value returned is the value of the last form in BODY.
See
also `with-temp-buffer'."
(
declare
(
indent
1
)
(
debug
t
))
`
(
save-current-buffer
(
set-buffer
,
buffer
)
(
set-buffer
,
buffer
-or-name
)
,@
body
))
(
defmacro
with-selected-window
(
window
&rest
body
)
...
...
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