From c483830c4300917633c4cb77297127b3908ae8e5 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Fri, 15 Mar 2024 22:14:42 -0400 Subject: [PATCH] Merge from Emacs master: There's no need to call 'get-buffer'. commit 6d1c1fca0aa7c5a1ff0254af3f89a34d5309ea0d Author: Tim Landscheidt uthorDate: Tue Mar 12 00:21:06 2024 +0000 Commit: Eli Zaretskii CommitDate: Thu Mar 14 12:40:26 2024 +0200 ; Simplify (with-current-buffer (get-buffer ...) ...) There's no need to call 'get-buffer', since 'with-current-buffer' does that internally. * lisp/progmodes/verilog-mode.el (verilog-preprocess): --- verilog-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/verilog-mode.el b/verilog-mode.el index 0e10ad6..a7a028b 100644 --- a/verilog-mode.el +++ b/verilog-mode.el @@ -5803,7 +5803,7 @@ FILENAME to find directory to run in, or defaults to `buffer-file-name'." (dir (file-name-directory (or filename buffer-file-name))) (cmd (concat "cd " dir "; " command))) (with-output-to-temp-buffer "*Verilog-Preprocessed*" - (with-current-buffer (get-buffer "*Verilog-Preprocessed*") + (with-current-buffer "*Verilog-Preprocessed*" (insert (concat "// " cmd "\n")) (call-process shell-file-name nil t nil shell-command-switch cmd) (verilog-mode)