help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: diffs between a buffer and the underlying file


From: Romain Francoise
Subject: Re: diffs between a buffer and the underlying file
Date: Wed, 06 Sep 2006 11:18:13 +0200

jpw@pobox.com (John Paul Wallington) writes:

> Also, the Ibuffer library, an advanced replacement for the normal
> buffer menu, has an `ibuffer-diff-with-file' command that you can get
> by pressing =.

Of course using Ibuffer to operate on the current buffer can be tiring
if you do it often, because you have to locate the buffer in the list.
I use the following to make point jump to the last buffer when entering
Ibuffer, I find it very convenient (e.g. C-x C-b = always works):

(add-hook 'ibuffer-hook
          (lambda () (ibuffer-jump-to-buffer
                      (buffer-name (other-buffer (current-buffer) t)))))

-- 
Romain Francoise <romain@orebokech.com> | The sea! the sea! the open
it's a miracle -- http://orebokech.com/ | sea! The blue, the fresh, the
                                        | ever free! --Bryan W. Procter


reply via email to

[Prev in Thread] Current Thread [Next in Thread]