emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Capture the mouse-highlight help-text in a file?
@ 2012-03-15 16:49 brian powell
  2012-03-15 17:06 ` Nick Dokos
  0 siblings, 1 reply; 4+ messages in thread
From: brian powell @ 2012-03-15 16:49 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 269 bytes --]

* I know that this will toggle the mouse-highlight "messages that pop-up"
when you move a mouse over a "LINK: " in OrgMode:

(setq mouse-highlight (not mouse-highlight))

** Now, is there a simple way to send the "messages that pop-up" to a file?

*** Maybe to a FIFO?

[-- Attachment #2: Type: text/html, Size: 408 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Capture the mouse-highlight help-text in a file?
  2012-03-15 16:49 Capture the mouse-highlight help-text in a file? brian powell
@ 2012-03-15 17:06 ` Nick Dokos
  2012-03-15 17:39   ` brian powell
  0 siblings, 1 reply; 4+ messages in thread
From: Nick Dokos @ 2012-03-15 17:06 UTC (permalink / raw)
  To: brian powell; +Cc: nicholas.dokos, emacs-orgmode

brian powell <briangpowellms@gmail.com> wrote:

> * I know that this will toggle the mouse-highlight "messages that pop-up" when you move a mouse over
> a "LINK: " in OrgMode:
> 
> (setq mouse-highlight (not mouse-highlight))
> 
> ** Now, is there a simple way to send the "messages that pop-up" to a file?
> 

They are already in a file: the org file that contains the link.
A link like this  [[file:foo.txt][foo]] pops up a LINK: file:foo.txt
balloon, so a suitable grep/sed combination suffices.

But I suspect that this is not a satisfactory answer: what exactly are
you trying to do?

Nick

> *** Maybe to a FIFO?
> 
> 
> ----------------------------------------------------
> Alternatives:
> 
> ----------------------------------------------------

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Capture the mouse-highlight help-text in a file?
  2012-03-15 17:06 ` Nick Dokos
@ 2012-03-15 17:39   ` brian powell
  2012-03-15 18:17     ` Nick Dokos
  0 siblings, 1 reply; 4+ messages in thread
From: brian powell @ 2012-03-15 17:39 UTC (permalink / raw)
  To: nicholas.dokos; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1427 bytes --]

* Thanks, Nick--I have been pursuing that idea--maybe just extract the
regexp, sed/grep etc.

** But I was just thinking maybe there is a simple way to capture the pop
up "LINK: file:foo.txt balloon" as you put it--into a file or fifo.

*** Then all sorts of things could be done with it--I'm thinking maybe
OrgMode could be used with the lights out/if your blind/screen blinks
out---well, OrgMode could be partially used...one could pipe it to a
text-to-speech program for example---and/or logging where the mouse has
been in an OrgMode document.


On Thu, Mar 15, 2012 at 1:06 PM, Nick Dokos <nicholas.dokos@hp.com> wrote:

> brian powell <briangpowellms@gmail.com> wrote:
>
> > * I know that this will toggle the mouse-highlight "messages that
> pop-up" when you move a mouse over
> > a "LINK: " in OrgMode:
> >
> > (setq mouse-highlight (not mouse-highlight))
> >
> > ** Now, is there a simple way to send the "messages that pop-up" to a
> file?
> >
>
> They are already in a file: the org file that contains the link.
> A link like this  [[file:foo.txt][foo]] pops up a LINK: file:foo.txt
> balloon, so a suitable grep/sed combination suffices.
>
> But I suspect that this is not a satisfactory answer: what exactly are
> you trying to do?
>
> Nick
>
> > *** Maybe to a FIFO?
> >
> >
> > ----------------------------------------------------
> > Alternatives:
> >
> > ----------------------------------------------------
>

[-- Attachment #2: Type: text/html, Size: 2008 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Capture the mouse-highlight help-text in a file?
  2012-03-15 17:39   ` brian powell
@ 2012-03-15 18:17     ` Nick Dokos
  0 siblings, 0 replies; 4+ messages in thread
From: Nick Dokos @ 2012-03-15 18:17 UTC (permalink / raw)
  To: brian powell; +Cc: nicholas.dokos, emacs-orgmode

brian powell <briangpowellms@gmail.com> wrote:

> * Thanks, Nick--I have been pursuing that idea--maybe just extract the regexp, sed/grep etc.
> 
> ** But I was just thinking maybe there is a simple way to capture the pop up "LINK:
> file:foo.txt balloon" as you put it--into a file or fifo.
> 
> *** Then all sorts of things could be done with it--I'm thinking maybe OrgMode could be used with
> the lights out/if your blind/screen blinks out---well, OrgMode could be partially used...one could
> pipe it to a text-to-speech program for example---and/or logging where the mouse has been in an
> OrgMode document.
> 

I see - afaik, the balloon appears only on the screen and is not logged anywhere.
I certainly don't know of any way to capture it as it happens. It seems to happen
deep in emacs's nether regions (in C code afaict), but I didn't chase it down
too far.

Nick

> On Thu, Mar 15, 2012 at 1:06 PM, Nick Dokos <nicholas.dokos@hp.com> wrote:
> 
>     brian powell <briangpowellms@gmail.com> wrote:
>    
>     > * I know that this will toggle the mouse-highlight "messages that pop-up" when you move a
>     mouse over
>     > a "LINK: " in OrgMode:
>     >
>     > (setq mouse-highlight (not mouse-highlight))
>     >
>     > ** Now, is there a simple way to send the "messages that pop-up" to a file?
>     >
>    
>     They are already in a file: the org file that contains the link.
>     A link like this  [[file:foo.txt][foo]] pops up a LINK: file:foo.txt
>     balloon, so a suitable grep/sed combination suffices.
>    
>     But I suspect that this is not a satisfactory answer: what exactly are
>     you trying to do?
>    
>     Nick
>    
>     > *** Maybe to a FIFO?
>     >
>     >
>     > ----------------------------------------------------
>     > Alternatives:
>     >
>     > ----------------------------------------------------
> 
> 
> ----------------------------------------------------
> Alternatives:
> 
> ----------------------------------------------------

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-03-15 18:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-15 16:49 Capture the mouse-highlight help-text in a file? brian powell
2012-03-15 17:06 ` Nick Dokos
2012-03-15 17:39   ` brian powell
2012-03-15 18:17     ` Nick Dokos

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).