unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* About `diff-reverse-direction'
@ 2013-02-05  3:49 Xue Fuqiao
  2013-02-05  5:08 ` Stefan Monnier
  0 siblings, 1 reply; 2+ messages in thread
From: Xue Fuqiao @ 2013-02-05  3:49 UTC (permalink / raw)
  To: help-gnu-emacs

What does the command 'diff-reverse-direction' do?  The docstring only
says it "reverses the direction of the diffs".  Does that mean changing

  diff -c /home/xfq/.emacs.d/backups/.emacs\~ /home/xfq/.emacs

to

  diff -c /home/xfq/.emacs /home/xfq/.emacs.d/backups/.emacs\~

?

-- 
Best regards, Xue Fuqiao.
http://www.emacswiki.org/emacs/XueFuqiao



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

* Re: About `diff-reverse-direction'
  2013-02-05  3:49 About `diff-reverse-direction' Xue Fuqiao
@ 2013-02-05  5:08 ` Stefan Monnier
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier @ 2013-02-05  5:08 UTC (permalink / raw)
  To: help-gnu-emacs

> What does the command 'diff-reverse-direction' do?  The docstring only
> says it "reverses the direction of the diffs".  Does that mean changing

>   diff -c /home/xfq/.emacs.d/backups/.emacs\~ /home/xfq/.emacs
> to
>   diff -c /home/xfq/.emacs /home/xfq/.emacs.d/backups/.emacs\~

It's part of diff-mode.el, which does not run diff but only helps you
read/manipulate diff's output.  So what diff-reverse-direction does is
to let you see the result of swapping the arguments (as you have shown
above), without having to re-run diff.


        Stefan




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

end of thread, other threads:[~2013-02-05  5:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-05  3:49 About `diff-reverse-direction' Xue Fuqiao
2013-02-05  5:08 ` Stefan Monnier

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).