From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mailsrv.cs.umass.edu (mailsrv.cs.umass.edu [128.119.240.136]) by sourceware.org (Postfix) with ESMTPS id 9D9B6385C420 for ; Tue, 8 Mar 2022 13:55:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 9D9B6385C420 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=cs.umass.edu Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=cs.umass.edu Received: from [192.168.50.148] (c-24-62-201-179.hsd1.ma.comcast.net [24.62.201.179]) by mailsrv.cs.umass.edu (Postfix) with ESMTPSA id E239D4023BAA; Tue, 8 Mar 2022 08:55:52 -0500 (EST) Reply-To: moss@cs.umass.edu Subject: Re: emacs-everywhere To: Russell VT Cc: cygwin References: <596abe60-2795-c7b5-1bc0-df9d359c6e53@cs.umass.edu> From: Eliot Moss Message-ID: Date: Tue, 8 Mar 2022 08:55:53 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.12.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, NICE_REPLY_A, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Mar 2022 13:55:55 -0000 On 3/8/2022 4:49 AM, Russell VT wrote: > On Sun, Mar 6, 2022 at 7:33 PM Eliot Moss > 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