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 13:20:52 -1000 Message-ID: References: <5457.1346439385@alphaville> <12442.1346451596@alphaville.americas.hpqcorp.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:48680) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T7aWK-0007cW-Ew for emacs-orgmode@gnu.org; Fri, 31 Aug 2012 19:21:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T7aWI-0003mP-Ux for emacs-orgmode@gnu.org; Fri, 31 Aug 2012 19:21:00 -0400 Received: from oproxy6-pub.bluehost.com ([67.222.54.6]:48064) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1T7aWI-0003m2-L0 for emacs-orgmode@gnu.org; Fri, 31 Aug 2012 19:20:58 -0400 In-Reply-To: <12442.1346451596@alphaville.americas.hpqcorp.net> (Nick Dokos's message of "Fri, 31 Aug 2012 18:19:56 -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: > >> 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 > Hi Nick, Nope, org-agenda-finalize-hook is still a gleam my installation's eye. I appreciate your help and will be back once I manage to climb back onto the bleeding edge again. Tom -- Thomas S. Dye http://www.tsdye.com