diff options
author | Basil L. Contovounesios <contovob@tcd.ie> | 2023-04-01 15:14:34 +0100 |
---|---|---|
committer | Basil L. Contovounesios <contovob@tcd.ie> | 2023-04-08 11:51:43 +0100 |
commit | 10b58633b566cf8f66f12e2126da3b43cd09dfc8 (patch) | |
tree | 58db217f3824018d92b20d1f778140ee52a17f0f /lisp/emacs-lisp/byte-opt.el | |
parent | 9848ae17161828190cc0ba31e89ae54a2f08a2ef (diff) | |
download | emacs-10b58633b566cf8f66f12e2126da3b43cd09dfc8.tar.gz emacs-10b58633b566cf8f66f12e2126da3b43cd09dfc8.tar.bz2 emacs-10b58633b566cf8f66f12e2126da3b43cd09dfc8.zip |
Improve ibuffer-diff-with-file
* lisp/ibuf-ext.el (ibuffer-diff-with-file): Link to diff-command in
docstring. Make Diff buffer read-only from outset and inhibit as
needed to avoid surprises. Check whether diff-command
supports --label. Leave point at BOB and clean up any excess
newline inserted by ibuffer-diff-buffer-with-file-1. Prefer
pop-to-buffer-same-window over switch-to-buffer.
(ibuffer-diff-buffer-with-file-1): Add docstring. Remove unused
unwind-protect and copypasta from diff-no-select (bug#62599). Use
diff-file-local-copy, string-join, and redisplay in place of
analogues. Condition --label use on availability, and label buffers
consistently with diff-no-select. Leave empty line between runs.
Let diff-sentinel delete temporary files. Leave point at EOB for
next run.
Diffstat (limited to 'lisp/emacs-lisp/byte-opt.el')
0 files changed, 0 insertions, 0 deletions