1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

Improve the fix for 'd' command in 'query-replace'

* lisp/misearch.el (coding-system--for-buffer-diff): Move
definition from here...
* lisp/vc/diff.el (coding-system--for-buffer-diff): ...to here.
This commit is contained in:
Eli Zaretskii 2025-11-27 13:42:01 +02:00
parent 702b16f999
commit b6163d42d2
2 changed files with 4 additions and 3 deletions

View file

@ -118,7 +118,8 @@ Non-interactively, OLD and NEW may each be a file or a buffer."
(display-buffer
(diff-no-select old new switches no-async)))
(defvar coding-system--for-buffer-diff) ; from misearch.el
(defvar coding-system--for-buffer-diff nil
"Used to pass buffer text encoding from `multi-file-diff-no-select'.")
(defun diff-file-local-copy (file-or-buf)
"Like `file-local-copy' but also supports a buffer as the argument.