all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* What has changed in buffer?
@ 2011-07-19 12:07 Neal Becker
  2011-07-19 12:20 ` Perry Smith
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Neal Becker @ 2011-07-19 12:07 UTC (permalink / raw
  To: help-gnu-emacs

I go to quit emacs, or kill a buffer.  It has been modified.  How can I see what 
the changes are?  An ediff for this would be nice.

You know what would be great?  If when asking whether to save the buffer, emacs 
would offer to show the diff.




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

* Re: What has changed in buffer?
  2011-07-19 12:07 What has changed in buffer? Neal Becker
@ 2011-07-19 12:20 ` Perry Smith
  2011-07-19 12:22 ` Teemu Likonen
  2011-07-19 14:15 ` Memnon Anon
  2 siblings, 0 replies; 5+ messages in thread
From: Perry Smith @ 2011-07-19 12:20 UTC (permalink / raw
  To: Neal Becker; +Cc: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 512 bytes --]


On Jul 19, 2011, at 7:07 AM, Neal Becker wrote:

> I go to quit emacs, or kill a buffer.  It has been modified.  How can I see what 
> the changes are?  An ediff for this would be nice.
> 
> You know what would be great?  If when asking whether to save the buffer, emacs 
> would offer to show the diff.

I like your suggestion.

What I do is "undo" which tends to remind me what / where the buffer got changed.  Often it was by accident.  And if I want to keep the changes, I redo and then save.


[-- Attachment #2: Type: text/html, Size: 940 bytes --]

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

* Re: What has changed in buffer?
  2011-07-19 12:07 What has changed in buffer? Neal Becker
  2011-07-19 12:20 ` Perry Smith
@ 2011-07-19 12:22 ` Teemu Likonen
  2011-07-19 20:56   ` Tom Davey
  2011-07-19 14:15 ` Memnon Anon
  2 siblings, 1 reply; 5+ messages in thread
From: Teemu Likonen @ 2011-07-19 12:22 UTC (permalink / raw
  To: Neal Becker; +Cc: help-gnu-emacs

* 2011-07-19T08:07:54-04:00 * Neal Becker wrote:

> I go to quit emacs, or kill a buffer. It has been modified. How can I
> see what the changes are? An ediff for this would be nice.

To compare a buffer with the associated file:

    M-x diff-buffer-with-file



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

* Re: What has changed in buffer?
  2011-07-19 12:07 What has changed in buffer? Neal Becker
  2011-07-19 12:20 ` Perry Smith
  2011-07-19 12:22 ` Teemu Likonen
@ 2011-07-19 14:15 ` Memnon Anon
  2 siblings, 0 replies; 5+ messages in thread
From: Memnon Anon @ 2011-07-19 14:15 UTC (permalink / raw
  To: help-gnu-emacs

Neal Becker <ndbecker2@gmail.com> writes:

> I go to quit emacs, or kill a buffer.  It has been modified.  How can I see what 
> the changes are?  An ediff for this would be nice.

,----[ (info "(emacs)Save Commands") ]
| `d'
|      Diff the buffer against its corresponding file, so you can see what
|      changes you would be saving.  This calls the command
|      `diff-buffer-with-file' (*note Comparing Files::).
`----

hth
Memnon




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

* Re: What has changed in buffer?
  2011-07-19 12:22 ` Teemu Likonen
@ 2011-07-19 20:56   ` Tom Davey
  0 siblings, 0 replies; 5+ messages in thread
From: Tom Davey @ 2011-07-19 20:56 UTC (permalink / raw
  To: help-gnu-emacs

On Tue, Jul 19, 2011 at 8:22 AM, Teemu Likonen <tlikonen@iki.fi> wrote:

> To compare a buffer with the associated file:
>
>    M-x diff-buffer-with-file

I run Emacs on Windows, so I downloaded and installed the GNU diff
utilities from here --

http://gnuwin32.sourceforge.net/packages/diffutils.htm

-- and added "C:\Program Files\GnuWin32\bin" to my executable path.

Then I typed "M-x diff-buffer-with-file" and . . .

. . . voila! It works perfectly. Thanks very much for the info.

--
Tom Davey
tom@tomdavey.com
New York NY USA



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

end of thread, other threads:[~2011-07-19 20:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-19 12:07 What has changed in buffer? Neal Becker
2011-07-19 12:20 ` Perry Smith
2011-07-19 12:22 ` Teemu Likonen
2011-07-19 20:56   ` Tom Davey
2011-07-19 14:15 ` Memnon Anon

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.