all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Finding modified sites in buffer?
@ 2006-09-26  2:46 Rjjd
  2006-09-26  8:46 ` Peter Dyballa
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Rjjd @ 2006-09-26  2:46 UTC (permalink / raw)


Is there a way to find what's modified in a buffer, without getting 
dizzy playing with "undo"?

It would be nice to move the cursor to modified sites, or even to the 
last-modified site.

Regards,
Bob

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

* Re: Finding modified sites in buffer?
  2006-09-26  2:46 Finding modified sites in buffer? Rjjd
@ 2006-09-26  8:46 ` Peter Dyballa
  2006-09-26  8:52 ` Reiner Steib
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 9+ messages in thread
From: Peter Dyballa @ 2006-09-26  8:46 UTC (permalink / raw)
  Cc: help-gnu-emacs


Am 26.09.2006 um 02:46 schrieb Rjjd:

> Is there a way to find what's modified in a buffer, without getting  
> dizzy playing with "undo"?

You can compare the recent file with the copy made from the  
(original) file when you started to change it.

--
Greetings

   Pete

The human animal differs from the lesser primates in his passion for  
lists of "Ten Best".
                                      -- H. Allen Smith

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

* Re: Finding modified sites in buffer?
  2006-09-26  2:46 Finding modified sites in buffer? Rjjd
  2006-09-26  8:46 ` Peter Dyballa
@ 2006-09-26  8:52 ` Reiner Steib
  2006-09-26 11:07 ` Mathias Dahl
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 9+ messages in thread
From: Reiner Steib @ 2006-09-26  8:52 UTC (permalink / raw)


On Tue, Sep 26 2006, Rjjd wrote:

> Is there a way to find what's modified in a buffer, without getting
> dizzy playing with "undo"?

M-x diff-buffer-with-file RET

> It would be nice to move the cursor to modified sites, or even to
> the last-modified site.

Use `C-c C-c' (diff-goto-source) to jump to the modified lines.

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/

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

* Re: Finding modified sites in buffer?
  2006-09-26  2:46 Finding modified sites in buffer? Rjjd
  2006-09-26  8:46 ` Peter Dyballa
  2006-09-26  8:52 ` Reiner Steib
@ 2006-09-26 11:07 ` Mathias Dahl
  2006-09-27 19:35   ` Stefan Reichör
  2006-09-26 11:19 ` Pascal Bourguignon
  2006-09-26 19:48 ` Eli Zaretskii
  4 siblings, 1 reply; 9+ messages in thread
From: Mathias Dahl @ 2006-09-26 11:07 UTC (permalink / raw)


Rjjd <rjjd@tds.net> writes:

> Is there a way to find what's modified in a buffer, without getting
> dizzy playing with "undo"?

> It would be nice to move the cursor to modified sites, or even to the
> last-modified site.

There are some suggestions here:

http://www.emacswiki.org/cgi-bin/wiki/TrackChanges

Also, depending on your needs, you could try using C-u C-SPC to jump
around among the buffer's mark history. Many commands set the mark so
this is quite handy. In my experience, using C-u C-SPC repeatedly
often takes me to places where "things happened".

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

* Re: Finding modified sites in buffer?
  2006-09-26  2:46 Finding modified sites in buffer? Rjjd
                   ` (2 preceding siblings ...)
  2006-09-26 11:07 ` Mathias Dahl
@ 2006-09-26 11:19 ` Pascal Bourguignon
  2006-09-26 15:41   ` Mathias Dahl
  2006-09-26 19:48 ` Eli Zaretskii
  4 siblings, 1 reply; 9+ messages in thread
From: Pascal Bourguignon @ 2006-09-26 11:19 UTC (permalink / raw)


Rjjd <rjjd@tds.net> writes:

> Is there a way to find what's modified in a buffer, without getting
> dizzy playing with "undo"?
>
> It would be nice to move the cursor to modified sites, or even to the
> last-modified site.

If your file is stored in cvs (or perhaps other revision control system), 
vc-annotate will colorize differently the source lines that have not
been modified since the different versions.


One trick you can do too, for programming languages that are not case
sensitive, is for example to upper case the sources before you work on
them.  Then everything you type is in lowcase and can be distinguished
from the unmodified code. 


-- 
__Pascal Bourguignon__                     http://www.informatimago.com/
You're always typing.
Well, let's see you ignore my
sitting on your hands.

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

* Re: Finding modified sites in buffer?
  2006-09-26 11:19 ` Pascal Bourguignon
@ 2006-09-26 15:41   ` Mathias Dahl
  2006-09-27  2:12     ` Rjjd
  0 siblings, 1 reply; 9+ messages in thread
From: Mathias Dahl @ 2006-09-26 15:41 UTC (permalink / raw)


Pascal Bourguignon <pjb@informatimago.com> writes:

> One trick you can do too, for programming languages that are not
> case sensitive, is for example to upper case the sources before you
> work on them.  Then everything you type is in lowcase and can be
> distinguished from the unmodified code.

You are a strange man... :)

Anyway, if the poster would accept the above he would probably also
like highlight-changes-mode.

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

* Re: Finding modified sites in buffer?
  2006-09-26  2:46 Finding modified sites in buffer? Rjjd
                   ` (3 preceding siblings ...)
  2006-09-26 11:19 ` Pascal Bourguignon
@ 2006-09-26 19:48 ` Eli Zaretskii
  4 siblings, 0 replies; 9+ messages in thread
From: Eli Zaretskii @ 2006-09-26 19:48 UTC (permalink / raw)


> From: Rjjd <rjjd@tds.net>
> Date: Tue, 26 Sep 2006 02:46:19 GMT
> 
> Is there a way to find what's modified in a buffer, without getting 
> dizzy playing with "undo"?

M-x highlight-changes-mode RET

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

* Re: Finding modified sites in buffer?
  2006-09-26 15:41   ` Mathias Dahl
@ 2006-09-27  2:12     ` Rjjd
  0 siblings, 0 replies; 9+ messages in thread
From: Rjjd @ 2006-09-27  2:12 UTC (permalink / raw)


Pascal resurrects the "good" old days of entering FORTRAN programs onto 
punched cards with IBM 026 keypunch machines.  The concept of lower case 
was strange, alien, and risible.  The machines resided in the basement, 
presumably to avoid shaking the building.

Thanks to everyone.  I'll try all the suggestions.  (Except up-casing, 
which would frighten today's effete compilers.)

Regards,
Bob


Mathias Dahl wrote:
> Pascal Bourguignon <pjb@informatimago.com> writes:
> 
>> One trick you can do too, for programming languages that are not
>> case sensitive, is for example to upper case the sources before you
>> work on them.  Then everything you type is in lowcase and can be
>> distinguished from the unmodified code.
> 
> You are a strange man... :)
> 
> Anyway, if the poster would accept the above he would probably also
> like highlight-changes-mode.

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

* Re: Finding modified sites in buffer?
  2006-09-26 11:07 ` Mathias Dahl
@ 2006-09-27 19:35   ` Stefan Reichör
  0 siblings, 0 replies; 9+ messages in thread
From: Stefan Reichör @ 2006-09-27 19:35 UTC (permalink / raw)


Mathias Dahl <brakjoller@gmail.com> writes:

> Rjjd <rjjd@tds.net> writes:
>
>> Is there a way to find what's modified in a buffer, without getting
>> dizzy playing with "undo"?
>
>> It would be nice to move the cursor to modified sites, or even to the
>> last-modified site.
>
> There are some suggestions here:
>
> http://www.emacswiki.org/cgi-bin/wiki/TrackChanges
>
> Also, depending on your needs, you could try using C-u C-SPC to jump
> around among the buffer's mark history. Many commands set the mark so
> this is quite handy. In my experience, using C-u C-SPC repeatedly
> often takes me to places where "things happened".

My personal preference is M-x goto-last-change (bound to a key) from:
http://www.cs.virginia.edu/~wh5a/personal/Emacs/goto-chg.el

This package allows you to switch to every change you did, step by step.

Stefan.

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

end of thread, other threads:[~2006-09-27 19:35 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-26  2:46 Finding modified sites in buffer? Rjjd
2006-09-26  8:46 ` Peter Dyballa
2006-09-26  8:52 ` Reiner Steib
2006-09-26 11:07 ` Mathias Dahl
2006-09-27 19:35   ` Stefan Reichör
2006-09-26 11:19 ` Pascal Bourguignon
2006-09-26 15:41   ` Mathias Dahl
2006-09-27  2:12     ` Rjjd
2006-09-26 19:48 ` Eli Zaretskii

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.