Skip to content

Commit

Permalink
Merge from Emacs master: There's no need to call 'get-buffer'.
Browse files Browse the repository at this point in the history
commit 6d1c1fca0aa7c5a1ff0254af3f89a34d5309ea0d
Author:     Tim Landscheidt <[email protected]>
uthorDate: Tue Mar 12 00:21:06 2024 +0000
Commit:     Eli Zaretskii <[email protected]>
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):
  • Loading branch information
wsnyder committed Mar 16, 2024
1 parent 7448f97 commit c483830
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion verilog-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c483830

Please sign in to comment.