From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Re: mouse highlight on agenda lines Date: Fri, 31 Aug 2012 12:02:36 -1000 Message-ID: References: <5457.1346439385@alphaville> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:54029) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T7ZIZ-0006dO-7Y for emacs-orgmode@gnu.org; Fri, 31 Aug 2012 18:02:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T7ZIY-0006bo-7k for emacs-orgmode@gnu.org; Fri, 31 Aug 2012 18:02:43 -0400 Received: from oproxy7-pub.bluehost.com ([67.222.55.9]:60138) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1T7ZIX-0006bT-UF for emacs-orgmode@gnu.org; Fri, 31 Aug 2012 18:02:42 -0400 In-Reply-To: <5457.1346439385@alphaville> (Nick Dokos's message of "Fri, 31 Aug 2012 14:56:25 -0400") 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: nicholas.dokos@hp.com Cc: Org-mode 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. Thanks, Tom -- Thomas S. Dye http://www.tsdye.com