GNU bug report logs - #54060
29.0.50; diff-buffers should take narrowing into account

Previous Next

Package: emacs;

Reported by: Philipp Stephani <p.stephani2 <at> gmail.com>

Date: Fri, 18 Feb 2022 18:08:02 UTC

Severity: normal

Tags: moreinfo

Found in version 29.0.50

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Philipp Stephani <p.stephani2 <at> gmail.com>
Cc: 54060 <at> debbugs.gnu.org
Subject: bug#54060: 29.0.50; diff-buffers should take narrowing into account
Date: Sat, 19 Feb 2022 13:29:23 +0100
Philipp Stephani <p.stephani2 <at> gmail.com> writes:

> Unlike ediff-buffers, diff-buffers always compares the entire buffer
> contents, not the accessible portion.  I think it would be better to
> restrict the diff to the accessible portion, since normally buffer
> commands only act on the accessible portion (and the capability to
> compare only portions of buffers is occasionally quite useful!).

Makes sense to me, but I rarely use diff-buffers, so I don't really know
what the expectations are.  

> IIUC the only change needed would be to replace (write-region nil nil
> ...)  in diff-file-local-copy with (write-region (point-min)
> (point-max) ...).  If we don't want to change the default behavior,
> then this could be made configurable with a customization option.

I think it would make sense to change the default behaviour, but perhaps
have an option to switch it back to the old behaviour.

Any opinions?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 3 years and 62 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.