public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* emacs-everywhere
@ 2022-03-06 23:48 Eliot Moss
  2022-03-07  2:00 ` emacs-everywhere Russell VT
  0 siblings, 1 reply; 6+ messages in thread
From: Eliot Moss @ 2022-03-06 23:48 UTC (permalink / raw)
  To: cygwin


Dear Cygwiners - I use Thunderbird as my email tool, and in older versions I
could arrange to invoke emacs as an external editor, edit my mail, save and
exit emacs, and the edited mail would be there in Thunderbird.

I have seen recommendations to use emacs-everywhere to get something like this
going in more recent Thunderbirds.  However, the recommended emacsclient
command fails saying it can't find xdotool - which apparently is not available
under Cygwin.

So ... am I out of luck on this?  Or can the technology be hooked up somehow?
Or maybe somebody here know an esy (not many keystrokes / mouse actions) way
to get stuff from Thunderbird, edit, and get it back into TBird?

This is why I am still on Thunderbird 68.12 (!).

Regards - Eliot Moss

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

* Re: emacs-everywhere
  2022-03-06 23:48 emacs-everywhere Eliot Moss
@ 2022-03-07  2:00 ` Russell VT
  2022-03-07  3:33   ` emacs-everywhere Eliot Moss
  0 siblings, 1 reply; 6+ messages in thread
From: Russell VT @ 2022-03-07  2:00 UTC (permalink / raw)
  To: moss; +Cc: cygwin

Eliot -

Are you running Thunderbird under Cygwin (ie. in an "X" environment?), or
are you running it directly from Windows?



For reference for those of us that may not be familiar with xdotool... it
mimics X11 Client responses.

GitHub - https://github.com/jordansissel/xdotool


ManPage - http://manpages.ubuntu.com/manpages/trusty/man1/xdotool.1.html




On Sun, Mar 6, 2022 at 3:49 PM Eliot Moss <moss@cs.umass.edu> wrote:

>
> Dear Cygwiners - I use Thunderbird as my email tool, and in older versions
> I
> could arrange to invoke emacs as an external editor, edit my mail, save and
> exit emacs, and the edited mail would be there in Thunderbird.
>
> I have seen recommendations to use emacs-everywhere to get something like
> this
> going in more recent Thunderbirds.  However, the recommended emacsclient
> command fails saying it can't find xdotool - which apparently is not
> available
> under Cygwin.
>
> So ... am I out of luck on this?  Or can the technology be hooked up
> somehow?
> Or maybe somebody here know an esy (not many keystrokes / mouse actions)
> way
> to get stuff from Thunderbird, edit, and get it back into TBird?
>
> This is why I am still on Thunderbird 68.12 (!).
>
> Regards - Eliot Moss
>
> --
> Problem reports:      https://cygwin.com/problems.html
> FAQ:                  https://cygwin.com/faq/
> Documentation:        https://cygwin.com/docs.html
> Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
>


-- 
Russell M. Van Tassell <russellvt@gmail.com>

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

* Re: emacs-everywhere
  2022-03-07  2:00 ` emacs-everywhere Russell VT
@ 2022-03-07  3:33   ` Eliot Moss
  2022-03-08  9:49     ` emacs-everywhere Russell VT
  0 siblings, 1 reply; 6+ messages in thread
From: Eliot Moss @ 2022-03-07  3:33 UTC (permalink / raw)
  To: Russell VT; +Cc: cygwin

On 3/6/2022 9:00 PM, Russell VT wrote:
> Eliot -
> 
> Are you running Thunderbird under Cygwin (ie. in an "X" environment?), or are you running it 
> directly from Windows?

Thanks for responding, Russell.  Directly under Windows.
Can it run under Cygwin?  I am running Cygwin/X with
emacs, xterm, okular, etc.

Regards - Eliot


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

* Re: emacs-everywhere
  2022-03-07  3:33   ` emacs-everywhere Eliot Moss
@ 2022-03-08  9:49     ` Russell VT
  2022-03-08 13:55       ` emacs-everywhere Eliot Moss
  0 siblings, 1 reply; 6+ messages in thread
From: Russell VT @ 2022-03-08  9:49 UTC (permalink / raw)
  To: moss; +Cc: cygwin

On Sun, Mar 6, 2022 at 7:33 PM Eliot Moss <moss@cs.umass.edu> wrote:

> On 3/6/2022 9:00 PM, Russell VT wrote:
> > Are you running Thunderbird under Cygwin (ie. in an "X" environment?),
> or are you running it
> > directly from Windows?
>
> Thanks for responding, Russell.  Directly under Windows.
>

Ok, that means it's going to need a little bit of "work" to even be "aware"
of the Cygwin environment. So, anything you fork from ThunderBird will need
to have its environment setup "somewhere," or will end up with a "default"
Cygwin environment.

This may make things either much easier, or much more difficult. (depending
on perspective... LOL)


Can it run under Cygwin?  I am running Cygwin/X with
> emacs, xterm, okular, etc.
>

Well, it sounds like you've already done "the hard work" ... but, given
enough time and resources, ThunderBird can run just about anywhere.

https://developer.thunderbird.net/thunderbird-development/building-thunderbird

I'm not exactly sure anyone has gone down this path, however.


So, the IMPORTANT question is... how do you "normally" invoke this sort of
action from Thunderbird, in your other environments? And, what do "we" need
to change/fix to make it work, like you would like it to work? (Again, I'm
assuming you have this "working" in your other  environments)

After that, HOW do we do it from the command line, in Cygwin?
(presumably with an X environment already present/running)


-- 
Russell M. Van Tassell <russellvt@gmail.com>

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

* Re: emacs-everywhere
  2022-03-08  9:49     ` emacs-everywhere Russell VT
@ 2022-03-08 13:55       ` Eliot Moss
  2022-03-08 15:36         ` emacs-everywhere Henry S. Thompson
  0 siblings, 1 reply; 6+ messages in thread
From: Eliot Moss @ 2022-03-08 13:55 UTC (permalink / raw)
  To: Russell VT; +Cc: cygwin

On 3/8/2022 4:49 AM, Russell VT wrote:
 > On Sun, Mar 6, 2022 at 7:33 PM Eliot Moss <moss@cs.umass.edu <mailto:moss@cs.umass.edu>> wrote:
 >
 >     On 3/6/2022 9:00 PM, Russell VT wrote:
 >      > Are you running Thunderbird under Cygwin (ie. in an "X" environment?), or are you running it
 >      > directly from Windows?
 >
 >     Thanks for responding, Russell.  Directly under Windows.
 >
 >
 > Ok, that means it's going to need a little bit of "work" to even be "aware" of the Cygwin
 > environment. So, anything you fork from ThunderBird will need to have its environment setup
 > "somewhere," or will end up with a "default" Cygwin environment.
 >
 > This may make things either much easier, or much more difficult. (depending on perspective... LOL)
 >
 >
 >     Can it run under Cygwin?  I am running Cygwin/X with
 >     emacs, xterm, okular, etc.
 >
 >
 > Well, it sounds like you've already done "the hard work" ... but, given enough time and resources,
 > ThunderBird can run just about anywhere.
 >
 > https://developer.thunderbird.net/thunderbird-development/building-thunderbird
 >
 > I'm not exactly sure anyone has gone down this path, however.
 >
 >
 > So, the IMPORTANT question is... how do you "normally" invoke this sort of action from Thunderbird,
 > in your other environments? And, what do "we" need to change/fix to make it work, like you would
 > like it to work? (Again, I'm assuming you have this "working" in your other  environments)
 >
 > After that, HOW do we do it from the command line, in Cygwin? (presumably with an X environment
 > already present/running)

The method I use at present is not available in later Thunderbirds.  Presently
I use an External Editor add-on.  If I type control-E it fires up a (Windows)
emacs and I can edit there, save and exit, and the edited email is back in
Thunderbird.  But Thunderbird totally changed their add-on technology a few
years ago and this addon has never been updated.  (It's a pretty simple
add-on, but since I know little about Thunderbird's internals I don't know how
to recreate it in their new setup.)

The notion with emacs-everywhere is to bind some key globally in Windows to
invoke it.  First I would select stuff into the cut/paste buffer, then invoke
emacs-everywhere, and the buffer's contents would appear in emacs.  I would
edit, exit that pop-up emacs, and the edited text would be in the paste
buffer, which I could paste back into Thunderbird.  Not quite as seamless as
before, but not as bad as explicit cut and paste back and forth.  This is
soething I do all the time, so minimizing the actions needed is of significant
utility (to me, anyway).

It does occur to me, however, that if I am willing to run Thunderbird from
WSL, this all might work more or less out of the box.  But the stumbling block
at present is the lack of xdotool that can be invoked by emacsclient to start
an emacs-everywhere pop-up window.  Unless someone with deeper knowledge of
emacs / emacs-everywhere or of X innards can suggest another way to do that.

Thanks for continuing to engage ....   Eliot

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

* Re: emacs-everywhere
  2022-03-08 13:55       ` emacs-everywhere Eliot Moss
@ 2022-03-08 15:36         ` Henry S. Thompson
  0 siblings, 0 replies; 6+ messages in thread
From: Henry S. Thompson @ 2022-03-08 15:36 UTC (permalink / raw)
  To: moss; +Cc: Russell VT, cygwin

Eliot Moss writes:

> ...

> It does occur to me, however, that if I am willing to run
> Thunderbird from WSL, this all might work more or less out of the
> box.  But the stumbling block at present is the lack of xdotool that
> can be invoked by emacsclient to start an emacs-everywhere pop-up
> window.  Unless someone with deeper knowledge of emacs /
> emacs-everywhere or of X innards can suggest another way to do that.

Not sure if this is any help, but I gave up on xdotool some time ago,
as bugs are not getting fixed and I don't have the X chops to fix
them.

Similar and in many ways easier to use is pyautogui:

  https://pypi.org/project/PyAutoGUI/

It has worked well for me in cases where I used to use xdotool.

Your mileage may vary...

ht
-- 
       Henry S. Thompson, School of Informatics, University of Edinburgh
      10 Crichton Street, Edinburgh EH8 9AB, SCOTLAND -- (44) 131 650-4440
                Fax: (44) 131 650-4587, e-mail: ht@inf.ed.ac.uk
                       URL: http://www.ltg.ed.ac.uk/~ht/
 [mail from me _always_ has a .sig like this -- mail without it is forged spam]

The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.


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

end of thread, other threads:[~2022-03-08 15:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-06 23:48 emacs-everywhere Eliot Moss
2022-03-07  2:00 ` emacs-everywhere Russell VT
2022-03-07  3:33   ` emacs-everywhere Eliot Moss
2022-03-08  9:49     ` emacs-everywhere Russell VT
2022-03-08 13:55       ` emacs-everywhere Eliot Moss
2022-03-08 15:36         ` emacs-everywhere Henry S. Thompson

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