mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Remove unused local bindings
Remove the let-clauses binding origin-buffer-file-name and origin-default-directory, as the previous commit renders them obsolete.
This commit is contained in:
committed by
Jan Felix Langenbach
parent
2e82f297f6
commit
e34b5decc6
@ -131,9 +131,7 @@ See `+format/buffer' for the interactive version of this function, and
|
|||||||
;; like `gofmt') widen the buffer, in order to only format a region of
|
;; like `gofmt') widen the buffer, in order to only format a region of
|
||||||
;; text, we must make a copy of the buffer to apply formatting to.
|
;; text, we must make a copy of the buffer to apply formatting to.
|
||||||
(let ((output (buffer-substring-no-properties (point-min) (point-max)))
|
(let ((output (buffer-substring-no-properties (point-min) (point-max)))
|
||||||
(origin-buffer (or (buffer-base-buffer) (current-buffer)))
|
(origin-buffer (or (buffer-base-buffer) (current-buffer))))
|
||||||
(origin-buffer-file-name (buffer-file-name (buffer-base-buffer)))
|
|
||||||
(origin-default-directory default-directory))
|
|
||||||
(with-temp-buffer
|
(with-temp-buffer
|
||||||
(with-silent-modifications
|
(with-silent-modifications
|
||||||
(insert output)
|
(insert output)
|
||||||
|
Reference in New Issue
Block a user