all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Highlight new lines
@ 2007-06-06 11:50 weber
  2007-06-06 12:12 ` Daniel Jensen
  0 siblings, 1 reply; 19+ messages in thread
From: weber @ 2007-06-06 11:50 UTC (permalink / raw)
  To: help-gnu-emacs

Anyone knows the name of the mode (if it exists) this guy is talking
about ?
I searched Groups and google for half an hour now and didn't find
this.

"I saw this feature on emacs a while back and it was pretty useful.
Recently modified lines were colored red since they were 'hot' and as
lines got older the colors would move towards blue since they were
'colder'."

TIA,
weber

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

* Re: Highlight new lines
  2007-06-06 11:50 Highlight new lines weber
@ 2007-06-06 12:12 ` Daniel Jensen
  2007-06-06 12:38   ` weber
  2007-06-07  4:12   ` Cecil Westerhof
  0 siblings, 2 replies; 19+ messages in thread
From: Daniel Jensen @ 2007-06-06 12:12 UTC (permalink / raw)
  To: help-gnu-emacs

weber <hugows@gmail.com> writes:

> "I saw this feature on emacs a while back and it was pretty useful.
> Recently modified lines were colored red since they were 'hot' and as
> lines got older the colors would move towards blue since they were
> 'colder'."

It is called Highlight Changes mode. See the documentation for
highlight-changes-mode and highlight-changes-rotate-faces for
instructions on how to use it.

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

* Re: Highlight new lines
  2007-06-06 12:12 ` Daniel Jensen
@ 2007-06-06 12:38   ` weber
  2007-06-07  4:12   ` Cecil Westerhof
  1 sibling, 0 replies; 19+ messages in thread
From: weber @ 2007-06-06 12:38 UTC (permalink / raw)
  To: help-gnu-emacs

On 6 jun, 09:12, dan...@bigwalter.net (Daniel Jensen) wrote:
> weber <hug...@gmail.com> writes:
> > "I saw this feature on emacs a while back and it was pretty useful.
> > Recently modified lines were colored red since they were 'hot' and as
> > lines got older the colors would move towards blue since they were
> > 'colder'."
>
> It is called Highlight Changes mode. See the documentation for
> highlight-changes-mode and highlight-changes-rotate-faces for
> instructions on how to use it.

It's exactly that, thank you.
-weber

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

* Re: Highlight new lines
  2007-06-06 12:12 ` Daniel Jensen
  2007-06-06 12:38   ` weber
@ 2007-06-07  4:12   ` Cecil Westerhof
  2007-06-08 11:10     ` Daniel Jensen
  1 sibling, 1 reply; 19+ messages in thread
From: Cecil Westerhof @ 2007-06-07  4:12 UTC (permalink / raw)
  To: help-gnu-emacs

Daniel Jensen wrote:

>> "I saw this feature on emacs a while back and it was pretty useful.
>> Recently modified lines were colored red since they were 'hot' and as
>> lines got older the colors would move towards blue since they were
>> 'colder'."
> 
> It is called Highlight Changes mode. See the documentation for
> highlight-changes-mode and highlight-changes-rotate-faces for
> instructions on how to use it.

Is nice. Is there a method to activate this option automatically?

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

* Re: Highlight new lines
  2007-06-07  4:12   ` Cecil Westerhof
@ 2007-06-08 11:10     ` Daniel Jensen
  2007-06-08 16:53       ` Cecil Westerhof
  0 siblings, 1 reply; 19+ messages in thread
From: Daniel Jensen @ 2007-06-08 11:10 UTC (permalink / raw)
  To: help-gnu-emacs

Cecil Westerhof <dummy@dummy.nl> writes:

> Daniel Jensen wrote:
>
>> It is called Highlight Changes mode. See the documentation for
>> highlight-changes-mode and highlight-changes-rotate-faces for
>> instructions on how to use it.
>
> Is nice. Is there a method to activate this option automatically?

There is a global Highlight Changes mode. You can add

    (global-highlight-changes 1)

to your .emacs to enable it.

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

* Re: Highlight new lines
  2007-06-08 11:10     ` Daniel Jensen
@ 2007-06-08 16:53       ` Cecil Westerhof
  2007-06-08 18:03         ` Daniel Jensen
                           ` (2 more replies)
  0 siblings, 3 replies; 19+ messages in thread
From: Cecil Westerhof @ 2007-06-08 16:53 UTC (permalink / raw)
  To: help-gnu-emacs

Daniel Jensen wrote:

> Cecil Westerhof <dummy@dummy.nl> writes:
> 
>> Daniel Jensen wrote:
>>
>>> It is called Highlight Changes mode. See the documentation for
>>> highlight-changes-mode and highlight-changes-rotate-faces for
>>> instructions on how to use it.
>>
>> Is nice. Is there a method to activate this option automatically?
> 
> There is a global Highlight Changes mode. You can add
> 
>     (global-highlight-changes 1)
> 
> to your .emacs to enable it.

This gives an aerror. I tried
        (setq global-highlight-changes 1)
and
        (setq global-highlight-changes t)

These do not give an error, but do also not have an influence.

I put the following in my .emacs:
        (global-set-key [f12] 'highlight-changes-mode)

So I can very easily set and reset it.

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

* Re: Highlight new lines
  2007-06-08 16:53       ` Cecil Westerhof
@ 2007-06-08 18:03         ` Daniel Jensen
  2007-06-13  5:44           ` Cecil Westerhof
  2007-06-08 18:39         ` Peter Dyballa
       [not found]         ` <mailman.1786.1181327986.32220.help-gnu-emacs@gnu.org>
  2 siblings, 1 reply; 19+ messages in thread
From: Daniel Jensen @ 2007-06-08 18:03 UTC (permalink / raw)
  To: help-gnu-emacs

Cecil Westerhof <dummy@dummy.nl> writes:

> Daniel Jensen wrote:
>
>> There is a global Highlight Changes mode. You can add
>> 
>>     (global-highlight-changes 1)
>> 
>> to your .emacs to enable it.
>
> This gives an aerror.

It should work out of the box. What is the error?

> I tried
>         (setq global-highlight-changes 1)
> and
>         (setq global-highlight-changes t)
                ------------------------^

There are non-breaking spaces here, so that will not work as intended.
It is possible that you accidentally added non-breaking spaces to
(global-highlight-changes 1) as well.

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

* Re: Highlight new lines
  2007-06-08 16:53       ` Cecil Westerhof
  2007-06-08 18:03         ` Daniel Jensen
@ 2007-06-08 18:39         ` Peter Dyballa
       [not found]         ` <mailman.1786.1181327986.32220.help-gnu-emacs@gnu.org>
  2 siblings, 0 replies; 19+ messages in thread
From: Peter Dyballa @ 2007-06-08 18:39 UTC (permalink / raw)
  To: Cecil Westerhof; +Cc: help-gnu-emacs


Am 08.06.2007 um 18:53 schrieb Cecil Westerhof:

>> There is a global Highlight Changes mode. You can add
>>
>>     (global-highlight-changes 1)
>>
>> to your .emacs to enable it.

Global-highlight-changes is a function, so the following can't work,  
can't change any unwanted behaviour.

>
> This gives an aerror. I tried
>         (setq global-highlight-changes 1)
> and
>         (setq global-highlight-changes t)

Could you check whether your version of GNU Emacs has documentation  
on global-highlight-changes? If not, then you need to get hilit- 
chg.el. Or GNU Emacs 22.

--
Greetings

   Pete

War springs from unseen and generally insignificant causes.
                                        -- Anonymous

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

* Re: Highlight new lines
  2007-06-08 18:03         ` Daniel Jensen
@ 2007-06-13  5:44           ` Cecil Westerhof
  2007-06-14 10:50             ` Daniel Jensen
  0 siblings, 1 reply; 19+ messages in thread
From: Cecil Westerhof @ 2007-06-13  5:44 UTC (permalink / raw)
  To: help-gnu-emacs

Daniel Jensen wrote:
>>> There is a global Highlight Changes mode. You can add
>>> 
>>>     (global-highlight-changes 1)
>>> 
>>> to your .emacs to enable it.
>>
>> This gives an aerror.
> 
> It should work out of the box. What is the error?

Symbol's function definition is void: global-highlight-changes t


>> I tried
>>         (setq global-highlight-changes 1)
>> and
>>         (setq global-highlight-changes t)
>                 ------------------------^
> 
> There are non-breaking spaces here, so that will not work as intended.
> It is possible that you accidentally added non-breaking spaces to
> (global-highlight-changes 1) as well.

What do you mean here?

In my .emacs I have also
        (setq x-select-enable-clipboard t)
In vim the t is yellow instead of white. For the global-highlight-changes it
was white. So I copied and pasted the last bit. No it is also yellow. (So
there was a difference.) But it still does not work.
I am working with Emacs 21.3.1.

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

* Re: Highlight new lines
       [not found]         ` <mailman.1786.1181327986.32220.help-gnu-emacs@gnu.org>
@ 2007-06-13  5:54           ` Cecil Westerhof
  2007-06-13  8:40             ` Peter Dyballa
       [not found]             ` <mailman.2089.1181724100.32220.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 19+ messages in thread
From: Cecil Westerhof @ 2007-06-13  5:54 UTC (permalink / raw)
  To: help-gnu-emacs

Peter Dyballa wrote:
>> I tried
>>         (setq global-highlight-changes 1)
>> and
>>         (setq global-highlight-changes t)
> 
> Could you check whether your version of GNU Emacs has documentation
> on global-highlight-changes? If not, then you need to get hilit-
> chg.el. Or GNU Emacs 22.

I get:
################################################################################
global-highlight-changes is an interactive compiled Lisp function in
`hilit-chg'.
(global-highlight-changes &optional ARG)

Turn on or off global Highlight Changes mode.

When called interactively:
- if no prefix, toggle global Highlight Changes mode on or off
- if called with a positive prefix (or just C-u) turn it on in active mode
- if called with a zero prefix  turn it on in passive mode
- if called with a negative prefix turn it off

When called from a program:
- if ARG is nil or omitted, turn it off
- if ARG is `active', turn it on in active mode
- if ARG is `passive', turn it on in passive mode
- otherwise just turn it on

When global Highlight Changes mode is enabled, Highlight Changes mode is
turned
on for future "suitable" buffers (and for "suitable" existing buffers if
variable `highlight-changes-global-changes-existing-buffers' is non-nil).
"Suitability" is determined by variable `highlight-changes-global-modes'.
################################################################################

So it should work I think?

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

* Re: Highlight new lines
  2007-06-13  5:54           ` Cecil Westerhof
@ 2007-06-13  8:40             ` Peter Dyballa
       [not found]             ` <mailman.2089.1181724100.32220.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 19+ messages in thread
From: Peter Dyballa @ 2007-06-13  8:40 UTC (permalink / raw)
  To: Cecil Westerhof; +Cc: help-gnu-emacs


Am 13.06.2007 um 07:54 schrieb Cecil Westerhof:

> So it should work I think?

No: it just works.

Could you read the first line of text below the first line of '#'  
characters? Does the word 'function' appear there? What has a  
function to do with 'setq'? Don't tell me, 'setq' is a funtion, too ...

--
Greetings

   Pete

"There's no place like 127.0.0.1"
                      origin unknown

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

* Re: Highlight new lines
       [not found]             ` <mailman.2089.1181724100.32220.help-gnu-emacs@gnu.org>
@ 2007-06-14  7:07               ` Cecil Westerhof
  2007-06-14  8:27                 ` Peter Dyballa
  0 siblings, 1 reply; 19+ messages in thread
From: Cecil Westerhof @ 2007-06-14  7:07 UTC (permalink / raw)
  To: help-gnu-emacs

Peter Dyballa wrote:
>> So it should work I think?
> 
> No: it just works.
> 
> Could you read the first line of text below the first line of '#'
> characters? Does the word 'function' appear there? What has a
> function to do with 'setq'? Don't tell me, 'setq' is a funtion, too ...

You are right. I removed the setq and now it works. (In passive mode, but
that is what I want.)

What I do not understand is why I first got:
        Symbol's function definition is void: global-highlight-changes t

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

* Re: Highlight new lines
  2007-06-14  7:07               ` Cecil Westerhof
@ 2007-06-14  8:27                 ` Peter Dyballa
  0 siblings, 0 replies; 19+ messages in thread
From: Peter Dyballa @ 2007-06-14  8:27 UTC (permalink / raw)
  To: Cecil Westerhof; +Cc: help-gnu-emacs


Am 14.06.2007 um 09:07 schrieb Cecil Westerhof:

> What I do not understand is why I first got:
>         Symbol's function definition is void: global-highlight- 
> changes t

I think it just means: the symbol, global-highlight-changes, which is  
a function, does not return anything, but is supposed to.

I had a few of such errors before but I can't remember any details ...

--
Greetings

   Pete


"Evolution"            o           __o                     _o _
           °\___o      /0~         -\<,              ^\___ /=\\_/-%
oo~_______ /\ /\______/ \_________O/ O_______________o===>-->O--o____

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

* Re: Highlight new lines
  2007-06-13  5:44           ` Cecil Westerhof
@ 2007-06-14 10:50             ` Daniel Jensen
  2007-06-14 11:08               ` Cecil Westerhof
  0 siblings, 1 reply; 19+ messages in thread
From: Daniel Jensen @ 2007-06-14 10:50 UTC (permalink / raw)
  To: help-gnu-emacs

Cecil Westerhof <dummy@dummy.nl> writes:

>>>> There is a global Highlight Changes mode. You can add
>>>> 
>>>>     (global-highlight-changes 1)
>>>> 
>>>> to your .emacs to enable it.
>>>
>>> This gives an aerror.
>> 
>> It should work out of the box. What is the error?
>
> Symbol's function definition is void: global-highlight-changes t

Well, there you have it, the non-breaking space. If you place point over
it and type C-x =, you'll see a description of the character. Compare
that with what you get for an ordinary space.

With the non-breaking space, Emacs reads `global-highlight-changes t' as
one token, and that's not a function. If you upgrade to Emacs 22, you'll
get non-breaking spaces highlighted, so that you can better avoid this
error in the future.

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

* Re: Highlight new lines
  2007-06-14 10:50             ` Daniel Jensen
@ 2007-06-14 11:08               ` Cecil Westerhof
  2007-06-14 11:44                 ` Daniel Jensen
  0 siblings, 1 reply; 19+ messages in thread
From: Cecil Westerhof @ 2007-06-14 11:08 UTC (permalink / raw)
  To: help-gnu-emacs

Daniel Jensen wrote:
>>> It should work out of the box. What is the error?
>>
>> Symbol's function definition is void: global-highlight-changes t
> 
> Well, there you have it, the non-breaking space. If you place point over
> it and type C-x =, you'll see a description of the character. Compare
> that with what you get for an ordinary space.
> 
> With the non-breaking space, Emacs reads `global-highlight-changes t' as
> one token, and that's not a function. If you upgrade to Emacs 22, you'll
> get non-breaking spaces highlighted, so that you can better avoid this
> error in the future.

When you know it, it is simple. ;-}
But how do you insert a non-breaking space? I could only find something
about M-shift-s, but that does not work.

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

* Re: Highlight new lines
  2007-06-14 11:08               ` Cecil Westerhof
@ 2007-06-14 11:44                 ` Daniel Jensen
  2007-06-14 12:12                   ` Cecil Westerhof
  0 siblings, 1 reply; 19+ messages in thread
From: Daniel Jensen @ 2007-06-14 11:44 UTC (permalink / raw)
  To: help-gnu-emacs

Cecil Westerhof <dummy@dummy.nl> writes:

> But how do you insert a non-breaking space? I could only find something
> about M-shift-s, but that does not work.

I don't know how you did it. There is one way with C-x 8 SPC, but it's
unlikely you accidentally typed that.

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

* Re: Highlight new lines
  2007-06-14 11:44                 ` Daniel Jensen
@ 2007-06-14 12:12                   ` Cecil Westerhof
  2007-06-14 12:38                     ` Daniel Jensen
  0 siblings, 1 reply; 19+ messages in thread
From: Cecil Westerhof @ 2007-06-14 12:12 UTC (permalink / raw)
  To: help-gnu-emacs

Daniel Jensen wrote:
>> But how do you insert a non-breaking space? I could only find something
>> about M-shift-s, but that does not work.
> 
> I don't know how you did it. There is one way with C-x 8 SPC,

I tried that, but this 'hangs' Emacs. I need C-g to quit to get back to get
Emacs responding again.


> but it's unlikely you accidentally typed that.

Properly a copy/paste action. ;-}

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

* Re: Highlight new lines
  2007-06-14 12:12                   ` Cecil Westerhof
@ 2007-06-14 12:38                     ` Daniel Jensen
  2007-06-14 12:41                       ` Cecil Westerhof
  0 siblings, 1 reply; 19+ messages in thread
From: Daniel Jensen @ 2007-06-14 12:38 UTC (permalink / raw)
  To: help-gnu-emacs

Cecil Westerhof <dummy@dummy.nl> writes:

> Daniel Jensen wrote:
>
>>> But how do you insert a non-breaking space? I could only find something
>>> about M-shift-s, but that does not work.
>> 
>> I don't know how you did it. There is one way with C-x 8 SPC,
>
> I tried that, but this 'hangs' Emacs. I need C-g to quit to get back to get
> Emacs responding again.

I have no idea what that's about. If it is a proper freeze, you can try
to debug it. Use M-x toggle-debug-on-quit, then C-g will get you a
backtrace from the place that causes the hang. I'd upgrade to Emacs 22
and see if it works there.

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

* Re: Highlight new lines
  2007-06-14 12:38                     ` Daniel Jensen
@ 2007-06-14 12:41                       ` Cecil Westerhof
  0 siblings, 0 replies; 19+ messages in thread
From: Cecil Westerhof @ 2007-06-14 12:41 UTC (permalink / raw)
  To: help-gnu-emacs

Daniel Jensen wrote:
>>> I don't know how you did it. There is one way with C-x 8 SPC,
>>
>> I tried that, but this 'hangs' Emacs. I need C-g to quit to get back to
>> get Emacs responding again.
> 
> I have no idea what that's about. If it is a proper freeze, you can try
> to debug it. Use M-x toggle-debug-on-quit, then C-g will get you a
> backtrace from the place that causes the hang. 

This only gives:
        Debugger entered--Lisp error: (quit)
Well it is not very important. I do not use it at the moment.


> I'd upgrade to Emacs 22 and see if it works there.

I'll look into that one of these day.

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

end of thread, other threads:[~2007-06-14 12:41 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-06 11:50 Highlight new lines weber
2007-06-06 12:12 ` Daniel Jensen
2007-06-06 12:38   ` weber
2007-06-07  4:12   ` Cecil Westerhof
2007-06-08 11:10     ` Daniel Jensen
2007-06-08 16:53       ` Cecil Westerhof
2007-06-08 18:03         ` Daniel Jensen
2007-06-13  5:44           ` Cecil Westerhof
2007-06-14 10:50             ` Daniel Jensen
2007-06-14 11:08               ` Cecil Westerhof
2007-06-14 11:44                 ` Daniel Jensen
2007-06-14 12:12                   ` Cecil Westerhof
2007-06-14 12:38                     ` Daniel Jensen
2007-06-14 12:41                       ` Cecil Westerhof
2007-06-08 18:39         ` Peter Dyballa
     [not found]         ` <mailman.1786.1181327986.32220.help-gnu-emacs@gnu.org>
2007-06-13  5:54           ` Cecil Westerhof
2007-06-13  8:40             ` Peter Dyballa
     [not found]             ` <mailman.2089.1181724100.32220.help-gnu-emacs@gnu.org>
2007-06-14  7:07               ` Cecil Westerhof
2007-06-14  8:27                 ` Peter Dyballa

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.