emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: "Thomas S. Dye" <tsd@tsdye.com>
Cc: Org-mode <emacs-orgmode@gnu.org>
Subject: Re: mouse highlight on agenda lines
Date: Fri, 31 Aug 2012 18:19:56 -0400	[thread overview]
Message-ID: <12442.1346451596@alphaville.americas.hpqcorp.net> (raw)
In-Reply-To: Message from tsd@tsdye.com (Thomas S. Dye) of "Fri, 31 Aug 2012 12:02:36 -1000." <m1oblqhg8z.fsf@tsdye.com>

Thomas S. Dye <tsd@tsdye.com> wrote:

> Nick Dokos <nicholas.dokos@hp.com> writes:
> 
> > Thomas S. Dye <tsd@tsdye.com> 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

  reply	other threads:[~2012-08-31 22:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-31 18:49 mouse highlight on agenda lines Thomas S. Dye
2012-08-31 18:56 ` Nick Dokos
2012-08-31 22:02   ` Thomas S. Dye
2012-08-31 22:19     ` Nick Dokos [this message]
2012-08-31 23:20       ` Thomas S. Dye

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=12442.1346451596@alphaville.americas.hpqcorp.net \
    --to=nicholas.dokos@hp.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=tsd@tsdye.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).