diff options
| author | Tim Landscheidt | 2024-03-12 00:21:06 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2024-03-14 12:40:26 +0200 |
| commit | 6d1c1fca0aa7c5a1ff0254af3f89a34d5309ea0d (patch) | |
| tree | 080f8471734648e1815544049d57176453fa4566 /lisp/replace.el | |
| parent | 3807f380b3334205bfcbba88003ff96507c86fc4 (diff) | |
| download | emacs-6d1c1fca0aa7c5a1ff0254af3f89a34d5309ea0d.tar.gz emacs-6d1c1fca0aa7c5a1ff0254af3f89a34d5309ea0d.zip | |
; Simplify (with-current-buffer (get-buffer ...) ...)
There's no need to call 'get-buffer', since 'with-current-buffer'
does that internally.
* lisp/calendar/todo-mode.el (todo-merge-category):
* lisp/comint.el (comint-dynamic-list-completions):
* lisp/emacs-lisp/checkdoc.el (checkdoc-error):
* lisp/emacs-lisp/debug.el (debug, debugger-record-expression):
* lisp/emacs-lisp/eieio-opt.el (eieio-browse):
* lisp/emacs-lisp/re-builder.el (reb-restart-font-lock):
* lisp/erc/erc-dcc.el (erc-dcc-do-LIST-command):
* lisp/eshell/em-unix.el (eshell-poor-mans-grep):
* lisp/gnus/gnus-group.el (gnus-add-mark):
* lisp/net/eww.el (eww-next-bookmark, eww-previous-bookmark):
* lisp/net/sieve.el (sieve-upload):
* lisp/net/tramp-cmds.el (tramp-cleanup-some-buffers):
* lisp/obsolete/quickurl.el (quickurl-list-populate-buffer):
* lisp/org/ob-calc.el: (org-babel-execute:calc):
* lisp/org/org-agenda.el (org-agenda-use-sticky-p):
* lisp/pcomplete.el (pcomplete-show-completions):
* lisp/progmodes/bug-reference.el
(bug-reference--try-setup-gnus-article):
* lisp/progmodes/idlw-help.el
(idlwave-highlight-linked-completions):
* lisp/progmodes/verilog-mode.el (verilog-preprocess):
* lisp/replace.el (occur-1):
* lisp/term.el (term-dynamic-list-completions):
* lisp/time.el (world-clock-update):
* lisp/url/url-cache.el (url-store-in-cache):
* lisp/vc/vc-cvs.el (vc-cvs-merge, vc-cvs-merge-news):
* lisp/vc/vc-rcs.el (vc-rcs-system-release):
* lisp/vc/vc-svn.el (vc-svn-merge, vc-svn-merge-news):
* test/lisp/calendar/icalendar-tests.el
(icalendar-tests--get-error-string-for-export):
* test/lisp/erc/erc-dcc-tests.el
(pcomplete/erc-mode/DCC--get-1flag)
(pcomplete/erc-mode/DCC--get-2flags)
(pcomplete/erc-mode/DCC--get-2flags-reverse):
* test/lisp/erc/erc-networks-tests.el
(erc-networks--rename-server-buffer--existing--noreuse):
* test/lisp/erc/erc-scenarios-services-misc.el
(erc-scenarios-services-misc--reconnect-retry-nick):
* test/lisp/erc/erc-tests.el (erc--refresh-prompt):
Replace (with-current-buffer (get-buffer ...) ...) with
(with-current-buffer ...).
Diffstat (limited to 'lisp/replace.el')
| -rw-r--r-- | lisp/replace.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/replace.el b/lisp/replace.el index 49e7c85c487..01a892bbba7 100644 --- a/lisp/replace.el +++ b/lisp/replace.el | |||
| @@ -1931,7 +1931,7 @@ See also `multi-occur'." | |||
| 1931 | (lambda (boo) | 1931 | (lambda (boo) |
| 1932 | (buffer-name (if (overlayp boo) (overlay-buffer boo) boo))) | 1932 | (buffer-name (if (overlayp boo) (overlay-buffer boo) boo))) |
| 1933 | active-bufs)) | 1933 | active-bufs)) |
| 1934 | (with-current-buffer (get-buffer buf-name) | 1934 | (with-current-buffer buf-name |
| 1935 | (rename-uniquely))) | 1935 | (rename-uniquely))) |
| 1936 | 1936 | ||
| 1937 | ;; Now find or create the output buffer. | 1937 | ;; Now find or create the output buffer. |