unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* diff-apply-hunk documentation doesn't match implementation
@ 2007-03-11 12:00 Andreas Schwab
  2007-03-11 21:54 ` Stefan Monnier
  0 siblings, 1 reply; 14+ messages in thread
From: Andreas Schwab @ 2007-03-11 12:00 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: emacs-devel

The doc string of diff-apply-hunk says:

  By default, the new source file is patched, but if the variable
  `diff-jump-to-old-file' is non-nil, then the old source file is
  patched instead

But the implementation then goes on to do the opposite:

      ;; If REVERSE go to the new file, otherwise go to the old.
      (diff-find-source-location (not reverse) reverse)

IMHO the implementation should be changed to match documentation, since
the current behaviour is quite counter-intuitive.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2007-03-14 18:57 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-11 12:00 diff-apply-hunk documentation doesn't match implementation Andreas Schwab
2007-03-11 21:54 ` Stefan Monnier
2007-03-11 22:23   ` Andreas Schwab
2007-03-12 14:30     ` Stefan Monnier
2007-03-12 14:32       ` Andreas Schwab
2007-03-12 15:20         ` Stefan Monnier
2007-03-12 15:29           ` Andreas Schwab
2007-03-12 18:54             ` Stefan Monnier
2007-03-12 19:19               ` Andreas Schwab
2007-03-13 14:36                 ` Stefan Monnier
2007-03-13 15:45                   ` Andreas Schwab
2007-03-14 15:13                     ` Stefan Monnier
2007-03-14 16:41                       ` Andreas Schwab
2007-03-14 18:57                         ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).