diff options
| author | Xiyue Deng | 2023-11-28 17:44:31 -0800 |
|---|---|---|
| committer | Eli Zaretskii | 2023-11-29 15:01:20 +0200 |
| commit | c46700deb0aa8750f19e91d050e76c91fff8ce11 (patch) | |
| tree | 516dc56c2ff669bf564f4ed6de65328fcbc5a580 | |
| parent | 687c416ce9bfba00c771fca859762cee8e1a616b (diff) | |
| download | emacs-c46700deb0aa8750f19e91d050e76c91fff8ce11.tar.gz emacs-c46700deb0aa8750f19e91d050e76c91fff8ce11.zip | |
Add more text to clarify the behavior of 'with-current-buffer'
* doc/lispintro/emacs-lisp-intro.texi (copy-to-buffer): Expand
description of 'with-current-buffer'. (Bug#67521)
Copyright-paperwork-exempt: yes
| -rw-r--r-- | doc/lispintro/emacs-lisp-intro.texi | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/lispintro/emacs-lisp-intro.texi b/doc/lispintro/emacs-lisp-intro.texi index e4a0f585f69..ba93dfd3b91 100644 --- a/doc/lispintro/emacs-lisp-intro.texi +++ b/doc/lispintro/emacs-lisp-intro.texi | |||
| @@ -5445,7 +5445,11 @@ That expression starts with @code{get-buffer-create buffer}. The | |||
| 5445 | function tells the computer to use the buffer with the name specified | 5445 | function tells the computer to use the buffer with the name specified |
| 5446 | as the one to which you are copying, or if such a buffer does not | 5446 | as the one to which you are copying, or if such a buffer does not |
| 5447 | exist, to create it. Then, the @code{with-current-buffer} function | 5447 | exist, to create it. Then, the @code{with-current-buffer} function |
| 5448 | evaluates its body with that buffer temporarily current. | 5448 | evaluates its body with that buffer temporarily current, after which |
| 5449 | it will switch back to the buffer we are at now@footnote{It is like | ||
| 5450 | calling @code{(save-excursion (set-buffer ...) ...)} in one go, though | ||
| 5451 | it is defined slightly differently which interested reader can find | ||
| 5452 | out using @code{describe-function}}. | ||
| 5449 | 5453 | ||
| 5450 | (This demonstrates another way to shift the computer's attention but | 5454 | (This demonstrates another way to shift the computer's attention but |
| 5451 | not the user's. The @code{append-to-buffer} function showed how to do | 5455 | not the user's. The @code{append-to-buffer} function showed how to do |