emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] mouse highlight on agenda lines


From: Thomas S. Dye
Subject: Re: [O] mouse highlight on agenda lines
Date: Fri, 31 Aug 2012 12:02:36 -1000

Nick Dokos <address@hidden> writes:

> Thomas S. Dye <address@hidden> wrote:
>
>> Aloha all,
>> 
>> After a recent upgrade to emacs 24, and using the Org-mode that ships
>> with emacs (7.8.11), the following code that has been in my
>> initialization file for a long time no longer works:
>> 
>> #+begin_src emacs-lisp :tangle yes
>>   (add-hook 'org-finalize-agenda-hook
>>     (lambda () (remove-text-properties
>>                (point-min) (point-max) '(mouse-face t))))
>> #+end_src
>> 
>> It used to keep the mouse pointer from highlighting agenda lines.
>> 
>> Any idea why it is broken now?
>
> Maybe.
>
> C-h v org-finalize-agenda-hook says:
>
> ,----
> | org-finalize-agenda-hook's value is ((lambda nil
> |    (remove-text-properties
> |     (point-min)
> |     (point-max)
> |     '(mouse-face t))))
> | 
> | 
> |   This variable is obsolete since 24.3;
> |   use `org-agenda-finalize-hook' instead.
> |   This variable is potentially risky when used as a file local variable.
> `----
>
> Nick

Hi Nick,

I'm on a bumpy upgrade road here.  I like the promise of ELPA, but so
far the org package hasn't worked so well for me :(

On my system, C-h v org-finalize-agenda-hook says:

org-finalize-agenda-hook is a variable defined in `org-agenda.el'.
Its value is ((lambda nil
   (remove-text-properties
    (point-min)
    (point-max)
    '(mouse-face t))))

Original value was nil

  This variable is potentially risky when used as a file local variable.

Documentation:
Hook run just before displaying an agenda buffer.

I see from your post that the hook I'm using will go away when I find
time to get current again.  I suppose there is no sense trying to figure
out why my soon-to-be-obsolete hook isn't working on an outdated system.

Thanks,
Tom

-- 
Thomas S. Dye
http://www.tsdye.com



reply via email to

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