* Defining session for emacs as mutt editor
@ 2013-03-22 14:13 Haines Brown
2013-03-22 21:35 ` Bob Proulx
` (2 more replies)
0 siblings, 3 replies; 12+ messages in thread
From: Haines Brown @ 2013-03-22 14:13 UTC (permalink / raw)
To: help-gnu-emacs
I want to have mutt (which is started from terminal) use emacs as its
editor with its own initialization file. So in .muttrc I put:
set editor="emacs -q -l ~/.emacsMutt"
This defines an emacs session located on right half of my screen. My
objective is to have the editor displayed to right of screen and the
mutt messages remain displayed to its left.
However, when the emacsMutt window starts, the mutt messages window is
replaced by an empty emacs window, and as the result I no longer see the
mutt messages. An -nw option only makes the emacsMutt session full
screen.
Haines Brown
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Defining session for emacs as mutt editor
2013-03-22 14:13 Defining session for emacs as mutt editor Haines Brown
@ 2013-03-22 21:35 ` Bob Proulx
2013-03-23 9:43 ` XeCycle
2013-04-01 18:28 ` W. Greenhouse
2 siblings, 0 replies; 12+ messages in thread
From: Bob Proulx @ 2013-03-22 21:35 UTC (permalink / raw)
To: help-gnu-emacs
Haines Brown wrote:
> I want to have mutt (which is started from terminal) use emacs as its
> editor with its own initialization file. So in .muttrc I put:
>
> set editor="emacs -q -l ~/.emacsMutt"
Seems reasonable. Alternatively you might consider setting
emacsserver and running emacsclient to connect to the running emacs.
> This defines an emacs session located on right half of my screen. My
> objective is to have the editor displayed to right of screen and the
> mutt messages remain displayed to its left.
I do not think that is possible. Because mutt is going to invoke
emacs and then wait for it to exit before continuing. Effectively
the editor process is stacked on top of mutt and mutt will only become
active again once the emacs process is popped off the stack.
> However, when the emacsMutt window starts, the mutt messages window is
> replaced by an empty emacs window, and as the result I no longer see the
> mutt messages. An -nw option only makes the emacsMutt session full
> screen.
What do you mean by an empty emacs window? I think it should be an
empty mutt window. Mutt cleared the display in preparation for
running the editor. Then mutt is waiting for the editor to exit so
that it can continue. In this case you told emacs in your .emacsMutt
file to open a graphics window and so the original terminal is empty
and waiting.
The issues are mutt specific. I would take up the discussion on the
mutt-users mailing list. Over here on the emacs side of things I
expect the suggesions will be to use vm or gnus where this is already
possible. FWIW the ability to fork off an edit task asynchronously
from the mutt index is something I have also wanted. But I don't
think anyone has written a way in mutt to do this yet.
Bob
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Defining session for emacs as mutt editor
2013-03-22 14:13 Defining session for emacs as mutt editor Haines Brown
2013-03-22 21:35 ` Bob Proulx
@ 2013-03-23 9:43 ` XeCycle
2013-03-31 23:53 ` Suvayu Ali
[not found] ` <mailman.23192.1364774017.855.help-gnu-emacs@gnu.org>
2013-04-01 18:28 ` W. Greenhouse
2 siblings, 2 replies; 12+ messages in thread
From: XeCycle @ 2013-03-23 9:43 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 1055 bytes --]
Haines Brown <haines@histomat.net> writes:
> I want to have mutt (which is started from terminal) use emacs as its
> editor with its own initialization file. So in .muttrc I put:
>
> set editor="emacs -q -l ~/.emacsMutt"
>
> This defines an emacs session located on right half of my screen. My
> objective is to have the editor displayed to right of screen and the
> mutt messages remain displayed to its left.
>
> However, when the emacsMutt window starts, the mutt messages window is
> replaced by an empty emacs window, and as the result I no longer see the
> mutt messages. An -nw option only makes the emacsMutt session full
> screen.
Exactly why I switched to Gnus. Mutt won't show other messages
while editing, by design.
A way to workaround is to start another Mutt read-only, IIRC -R.
Yet you still need to navigate to the specific mail again.
--
Carl Lei (XeCycle)
Department of Physics, Shanghai Jiao Tong University
OpenPGP public key: 7795E591
Fingerprint: 1FB6 7F1F D45D F681 C845 27F7 8D71 8EC4 7795 E591
[-- Attachment #2: Type: application/pgp-signature, Size: 489 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Defining session for emacs as mutt editor
2013-03-23 9:43 ` XeCycle
@ 2013-03-31 23:53 ` Suvayu Ali
[not found] ` <mailman.23192.1364774017.855.help-gnu-emacs@gnu.org>
1 sibling, 0 replies; 12+ messages in thread
From: Suvayu Ali @ 2013-03-31 23:53 UTC (permalink / raw)
To: help-gnu-emacs
On Sat, Mar 23, 2013 at 05:43:35PM +0800, XeCycle wrote:
> Haines Brown <haines@histomat.net> writes:
>
> > However, when the emacsMutt window starts, the mutt messages window is
> > replaced by an empty emacs window, and as the result I no longer see the
> > mutt messages. An -nw option only makes the emacsMutt session full
> > screen.
>
> Exactly why I switched to Gnus. Mutt won't show other messages
> while editing, by design.
>
> A way to workaround is to start another Mutt read-only, IIRC -R.
> Yet you still need to navigate to the specific mail again.
I do it by using notmuch to index my emails and access them with the
Emacs interface for notmuch. Works great, I can even link to emails
from my Org mode files!
--
Suvayu
Open source is the future. It sets us free.
^ permalink raw reply [flat|nested] 12+ messages in thread
[parent not found: <mailman.23192.1364774017.855.help-gnu-emacs@gnu.org>]
* Re: Defining session for emacs as mutt editor
2013-03-22 14:13 Defining session for emacs as mutt editor Haines Brown
2013-03-22 21:35 ` Bob Proulx
2013-03-23 9:43 ` XeCycle
@ 2013-04-01 18:28 ` W. Greenhouse
2013-04-01 18:43 ` Mark Skilbeck
2 siblings, 1 reply; 12+ messages in thread
From: W. Greenhouse @ 2013-04-01 18:28 UTC (permalink / raw)
To: help-gnu-emacs-mXXj517/zsQ
Haines Brown <haines-JpvJoGQWskfk1uMJSBkQmQ@public.gmane.org> writes:
> I want to have mutt (which is started from terminal) use emacs as its
> editor with its own initialization file. So in .muttrc I put:
>
> set editor="emacs -q -l ~/.emacsMutt"
>
> This defines an emacs session located on right half of my screen. My
> objective is to have the editor displayed to right of screen and the
> mutt messages remain displayed to its left.
>
> However, when the emacsMutt window starts, the mutt messages window is
> replaced by an empty emacs window, and as the result I no longer see the
> mutt messages. An -nw option only makes the emacsMutt session full
> screen.
>
> Haines Brown
Have you tried this with an existing GUI Emacs frame and mutt's editor
as "emacsclient"? This should cause the emacsclient buffer to pop up
inside the extant GUI frame, and maybe your mutt messages wouldn't get
buried. (Untested, not a mutt user, just an idea.)
Best,
Will
--
BOFH excuse #349:
Stray Alpha Particles from memory packaging caused Hard Memory Error on
Server.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Defining session for emacs as mutt editor
2013-04-01 18:28 ` W. Greenhouse
@ 2013-04-01 18:43 ` Mark Skilbeck
2013-04-01 18:57 ` W. Greenhouse
0 siblings, 1 reply; 12+ messages in thread
From: Mark Skilbeck @ 2013-04-01 18:43 UTC (permalink / raw)
To: W. Greenhouse; +Cc: help-gnu-emacs
Unfortunately Mutt "blacks-out" its display until the editor process
terminates.
- mgsk
On Mon, Apr 01, 2013 at 06:28:29PM +0000, W. Greenhouse wrote:
> Haines Brown <haines@histomat.net> writes:
>
> > I want to have mutt (which is started from terminal) use emacs as its
> > editor with its own initialization file. So in .muttrc I put:
> >
> > set editor="emacs -q -l ~/.emacsMutt"
> >
> > This defines an emacs session located on right half of my screen. My
> > objective is to have the editor displayed to right of screen and the
> > mutt messages remain displayed to its left.
> >
> > However, when the emacsMutt window starts, the mutt messages window is
> > replaced by an empty emacs window, and as the result I no longer see the
> > mutt messages. An -nw option only makes the emacsMutt session full
> > screen.
> >
> > Haines Brown
>
> Have you tried this with an existing GUI Emacs frame and mutt's editor
> as "emacsclient"? This should cause the emacsclient buffer to pop up
> inside the extant GUI frame, and maybe your mutt messages wouldn't get
> buried. (Untested, not a mutt user, just an idea.)
>
> Best,
> Will
>
> --
> BOFH excuse #349:
>
> Stray Alpha Particles from memory packaging caused Hard Memory Error on
> Server.
>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Defining session for emacs as mutt editor
2013-04-01 18:43 ` Mark Skilbeck
@ 2013-04-01 18:57 ` W. Greenhouse
0 siblings, 0 replies; 12+ messages in thread
From: W. Greenhouse @ 2013-04-01 18:57 UTC (permalink / raw)
To: help-gnu-emacs-mXXj517/zsQ
Mark Skilbeck <m@iammark.us> writes:
> Unfortunately Mutt "blacks-out" its display until the editor process
> terminates.
>
> - mgsk
Hum. Perhaps emacsclient -n, then, as that exits immediately without waiting
for the user to kill the server buffer.
--
BOFH excuse #240:
Too many little pins on CPU confusing it, bend back and forth until
10-20% are neatly removed. Do _not_ leave metal bits visible!
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2013-04-05 10:03 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-22 14:13 Defining session for emacs as mutt editor Haines Brown
2013-03-22 21:35 ` Bob Proulx
2013-03-23 9:43 ` XeCycle
2013-03-31 23:53 ` Suvayu Ali
[not found] ` <mailman.23192.1364774017.855.help-gnu-emacs@gnu.org>
2013-04-01 11:58 ` Haines Brown
2013-04-02 18:55 ` Suvayu Ali
[not found] ` <mailman.23325.1364928968.855.help-gnu-emacs@gnu.org>
2013-04-03 10:32 ` Haines Brown
2013-04-04 20:30 ` Bob Proulx
[not found] ` <mailman.23551.1365107426.855.help-gnu-emacs@gnu.org>
2013-04-05 10:03 ` Haines Brown
2013-04-01 18:28 ` W. Greenhouse
2013-04-01 18:43 ` Mark Skilbeck
2013-04-01 18:57 ` W. Greenhouse
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).