From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: mouse highlight on agenda lines Date: Fri, 31 Aug 2012 18:19:56 -0400 Message-ID: <12442.1346451596@alphaville.americas.hpqcorp.net> References: <5457.1346439385@alphaville> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([208.118.235.92]:47578) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T7ZZI-0000aO-Mj for emacs-orgmode@gnu.org; Fri, 31 Aug 2012 18:20:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T7ZZH-0002lw-Ft for emacs-orgmode@gnu.org; Fri, 31 Aug 2012 18:20:00 -0400 Received: from g6t0186.atlanta.hp.com ([15.193.32.63]:30057) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T7ZZH-0002lo-BL for emacs-orgmode@gnu.org; Fri, 31 Aug 2012 18:19:59 -0400 In-Reply-To: Message from tsd@tsdye.com (Thomas S. Dye) of "Fri, 31 Aug 2012 12:02:36 -1000." List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Thomas S. Dye" Cc: Org-mode Thomas S. Dye wrote: > Nick Dokos writes: > > > Thomas S. Dye 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. > Do you have org-agenda-finalize-hook? If so, try adding your function to that. It seems to work for me, but we *are* running different bits, so you might have to get back onto the bleeding edge before it works for you again. Nick