unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* How to mark new text in a buffer ?
@ 2009-12-04 10:28 Xavier Maillard
  0 siblings, 0 replies; 5+ messages in thread
From: Xavier Maillard @ 2009-12-04 10:28 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

I am looking for the best way to identify new entered text into a
buffer and show that information.

For example, I am visiting a file-based buffer -i.e. a buffer
visiting a file. It has already content and I am typing something
like "foo bar". I want to display "foo bar" in such a way that we
get direct information on what is new and what is old.

Any idea ?

	Xavier
-- 
http://www.gnu.org
http://www.april.org
http://www.lolica.org




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

* Re: How to mark new text in a buffer ?
       [not found] <mailman.12167.1259922473.2239.help-gnu-emacs@gnu.org>
@ 2009-12-04 12:25 ` Pascal J. Bourguignon
  2009-12-04 13:09   ` Xavier Maillard
  2009-12-04 12:44 ` LanX
  1 sibling, 1 reply; 5+ messages in thread
From: Pascal J. Bourguignon @ 2009-12-04 12:25 UTC (permalink / raw)
  To: help-gnu-emacs

Xavier Maillard <xma@gnu.org> writes:

> Hi,
>
> I am looking for the best way to identify new entered text into a
> buffer and show that information.
>
> For example, I am visiting a file-based buffer -i.e. a buffer
> visiting a file. It has already content and I am typing something
> like "foo bar". I want to display "foo bar" in such a way that we
> get direct information on what is new and what is old.
>
> Any idea ?

M-x diff-buffer-with-file RET RET

-- 
__Pascal Bourguignon__


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

* Re: How to mark new text in a buffer ?
       [not found] <mailman.12167.1259922473.2239.help-gnu-emacs@gnu.org>
  2009-12-04 12:25 ` How to mark new text in a buffer ? Pascal J. Bourguignon
@ 2009-12-04 12:44 ` LanX
  2009-12-04 15:48   ` Drew Adams
  1 sibling, 1 reply; 5+ messages in thread
From: LanX @ 2009-12-04 12:44 UTC (permalink / raw)
  To: help-gnu-emacs

On 4 Dez., 11:28, Xavier Maillard <x...@gnu.org> wrote:
> I am looking for the best way to identify new entered text into a
> buffer and show that information.

M-x highlight-changes-mode ???


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

* Re: How to mark new text in a buffer ?
  2009-12-04 12:25 ` How to mark new text in a buffer ? Pascal J. Bourguignon
@ 2009-12-04 13:09   ` Xavier Maillard
  0 siblings, 0 replies; 5+ messages in thread
From: Xavier Maillard @ 2009-12-04 13:09 UTC (permalink / raw)
  To: Pascal J. Bourguignon; +Cc: help-gnu-emacs


   Xavier Maillard <xma@gnu.org> writes:

   > Hi,
   >
   > I am looking for the best way to identify new entered text into a
   > buffer and show that information.
   >
   > For example, I am visiting a file-based buffer -i.e. a buffer
   > visiting a file. It has already content and I am typing something
   > like "foo bar". I want to display "foo bar" in such a way that we
   > get direct information on what is new and what is old.
   >
   > Any idea ?

   M-x diff-buffer-with-file RET RET

Rhaa exactly ! Thank you very much.

	Xavier
-- 
http://www.gnu.org
http://www.april.org
http://www.lolica.org




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

* RE: How to mark new text in a buffer ?
  2009-12-04 12:44 ` LanX
@ 2009-12-04 15:48   ` Drew Adams
  0 siblings, 0 replies; 5+ messages in thread
From: Drew Adams @ 2009-12-04 15:48 UTC (permalink / raw)
  To: help-gnu-emacs

> I am looking for the best way to identify new entered text into a
> buffer and show that information.

In addition to what has already been mentioned (`highlight-changes-mode' and
`diff-buffer-with-file'), and depending on what you need, you also have `M-o o'
and the other `M-o' keys (use `C-u'). These are also available from menu Edit >
Text Properties > Face (without `C-u'). But be aware that this does not work
with font-lock-mode. See `(emacs)Format Faces'.






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

end of thread, other threads:[~2009-12-04 15:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.12167.1259922473.2239.help-gnu-emacs@gnu.org>
2009-12-04 12:25 ` How to mark new text in a buffer ? Pascal J. Bourguignon
2009-12-04 13:09   ` Xavier Maillard
2009-12-04 12:44 ` LanX
2009-12-04 15:48   ` Drew Adams
2009-12-04 10:28 Xavier Maillard

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