* Start emacs without opening a window (X11)
@ 2007-09-11 11:22 Sebastian Kaps
2007-09-11 12:20 ` Eric Böse-Wolf
` (3 more replies)
0 siblings, 4 replies; 14+ messages in thread
From: Sebastian Kaps @ 2007-09-11 11:22 UTC (permalink / raw)
To: help-gnu-emacs
Hi!
Is there a possibility to start Emacs without opening a window?
I want to start the Emacs server from my .emacs and then use only
emacsclient to pop up a new window.
XEmacs knows an option "-unmapped" which does exactly what I want, but I
haven't found anything similar in Emacs.
--
Ciao, Sebastian
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Start emacs without opening a window (X11)
2007-09-11 11:22 Start emacs without opening a window (X11) Sebastian Kaps
@ 2007-09-11 12:20 ` Eric Böse-Wolf
2007-09-11 13:41 ` Sebastian Kaps
2007-09-11 12:54 ` Tassilo Horn
` (2 subsequent siblings)
3 siblings, 1 reply; 14+ messages in thread
From: Eric Böse-Wolf @ 2007-09-11 12:20 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1.1: Type: text/plain, Size: 25 bytes --]
"emacs -nw does the job"
[-- Attachment #1.2: Type: application/pgp-signature, Size: 188 bytes --]
[-- Attachment #2: Type: text/plain, Size: 152 bytes --]
_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Start emacs without opening a window (X11)
2007-09-11 11:22 Start emacs without opening a window (X11) Sebastian Kaps
2007-09-11 12:20 ` Eric Böse-Wolf
@ 2007-09-11 12:54 ` Tassilo Horn
2007-09-11 13:45 ` Sebastian Kaps
2007-09-11 13:17 ` Floyd L. Davidson
2007-09-12 11:40 ` Michaël Cadilhac
3 siblings, 1 reply; 14+ messages in thread
From: Tassilo Horn @ 2007-09-11 12:54 UTC (permalink / raw)
To: help-gnu-emacs
Sebastian Kaps <seb@toyland.sauerland.de> writes:
Hi Sebastian,
> Is there a possibility to start Emacs without opening a window? I
> want to start the Emacs server from my .emacs and then use only
> emacsclient to pop up a new window.
If you use the current development version of emacs which includes
multi-tty, then you can use these two scripts.
--8<---------------cut here---------------start------------->8---
#!/bin/bash
#
# Usage: emacs-preload <name> [<waitp>]
#
# Preloads the Emacs instance called NAME in a detached screen session. Does
# nothing if the instance is already running. If WAITP is non-empty, the
# function waits until the server starts up and creates its socket; otherwise
# it returns immediately.
name="$1"
waitp="$2"
screendir="/var/run/screen/S-$USER"
serverdir="/tmp/emacs$UID"
emacs=/usr/bin/emacs
if [ -z "$name" ]; then
echo "Usage: preload_emacs <name> [<waitp>]" >&2
exit 1
fi
if [ ! -e "$screendir"/*."$name" ]; then
if [ -e "$serverdir/$name" ]; then
# Delete leftover socket (for the wait option)
rm "$serverdir/$name"
fi
screen -d -m -S "$name" "$emacs" -nw --eval "(setq server-name \"$name\")" --funcall server-start
fi
if [ ! -z "$waitp" ]; then
while [ ! -e "$serverdir/$name" ]; do
sleep 1;
done
fi
--8<---------------cut here---------------end--------------->8---
--8<---------------cut here---------------start------------->8---
#!/bin/bash
# Usage: connect-emacs <name> <args>...
#
# Connects to the Emacs instance called NAME. Starts up the instance if it is
# not already running. The rest of the arguments are passed to emacsclient.
name="$1"
shift
if [ -z "$name" ]; then
echo "Usage: connect_emacs <name> <args>..." >&2
exit 1
fi
# Startup that emacs if it's not running!
emacs-preload "$name" wait
/usr/bin/emacsclient -s "$name" "$@"
--8<---------------cut here---------------end--------------->8---
Bye,
Tassilo
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Start emacs without opening a window (X11)
2007-09-11 12:54 ` Tassilo Horn
@ 2007-09-11 13:45 ` Sebastian Kaps
2007-09-11 14:01 ` Tassilo Horn
0 siblings, 1 reply; 14+ messages in thread
From: Sebastian Kaps @ 2007-09-11 13:45 UTC (permalink / raw)
To: help-gnu-emacs
// Tassilo Horn writes:
> If you use the current development version of emacs which includes
> multi-tty, then you can use these two scripts.
I'm using v22.1 and your scripts don't seem to work with that version.
--
Ciao, Sebastian
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Start emacs without opening a window (X11)
2007-09-11 13:45 ` Sebastian Kaps
@ 2007-09-11 14:01 ` Tassilo Horn
0 siblings, 0 replies; 14+ messages in thread
From: Tassilo Horn @ 2007-09-11 14:01 UTC (permalink / raw)
To: help-gnu-emacs
Sebastian Kaps <seb@toyland.sauerland.de> writes:
> // Tassilo Horn writes:
>
>> If you use the current development version of emacs which includes
>> multi-tty, then you can use these two scripts.
>
> I'm using v22.1 and your scripts don't seem to work with that version.
Indeed, they're for Emacsen >= 23.0.50 only. But now enjoy pleasant
anticipation for the 23.1 release. :-)
Bye,
Tassilo
--
Count from one to ten. That's how long it would take Chuck Norris to
kill you...Fourty seven times.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Start emacs without opening a window (X11)
2007-09-11 11:22 Start emacs without opening a window (X11) Sebastian Kaps
2007-09-11 12:20 ` Eric Böse-Wolf
2007-09-11 12:54 ` Tassilo Horn
@ 2007-09-11 13:17 ` Floyd L. Davidson
2007-09-11 13:56 ` Sebastian Kaps
2007-09-12 11:40 ` Michaël Cadilhac
3 siblings, 1 reply; 14+ messages in thread
From: Floyd L. Davidson @ 2007-09-11 13:17 UTC (permalink / raw)
To: help-gnu-emacs
Sebastian Kaps <seb@toyland.sauerland.de> wrote:
>Hi!
>
>Is there a possibility to start Emacs without opening a window?
>I want to start the Emacs server from my .emacs and then use only
>emacsclient to pop up a new window.
>XEmacs knows an option "-unmapped" which does exactly what I want, but I
>haven't found anything similar in Emacs.
Use "-iconic", and don't have a specified icon.
--
Floyd L. Davidson <http://www.apaflo.com/floyd_davidson>
Ukpeagvik (Barrow, Alaska) floyd@apaflo.com
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Start emacs without opening a window (X11)
2007-09-11 11:22 Start emacs without opening a window (X11) Sebastian Kaps
` (2 preceding siblings ...)
2007-09-11 13:17 ` Floyd L. Davidson
@ 2007-09-12 11:40 ` Michaël Cadilhac
2007-09-12 15:47 ` Dan Nicolaescu
3 siblings, 1 reply; 14+ messages in thread
From: Michaël Cadilhac @ 2007-09-12 11:40 UTC (permalink / raw)
To: emacs-devel
[-- Attachment #1.1: Type: text/plain, Size: 903 bytes --]
Sebastian Kaps <seb@toyland.sauerland.de> writes:
> Is there a possibility to start Emacs without opening a window?
> I want to start the Emacs server from my .emacs and then use only
> emacsclient to pop up a new window.
> XEmacs knows an option "-unmapped" which does exactly what I want, but I
> haven't found anything similar in Emacs.
It seems that there's no other way than to launch emacs -nw in a
screen(1) and forget about it. Since Emacs has become a true server, it
may be a good idea to had a `-daemon' option or something like that.
Any opinion?
--
| Michaël `Micha' Cadilhac | One user is enough. |
| http://michael.cadilhac.name | People suck. |
| JID/MSN: | |
`---- michael.cadilhac@gmail.com | -- Tuomo Valkonen - --'
[-- Attachment #1.2: Type: application/pgp-signature, Size: 188 bytes --]
[-- Attachment #2: Type: text/plain, Size: 142 bytes --]
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Start emacs without opening a window (X11)
2007-09-12 11:40 ` Michaël Cadilhac
@ 2007-09-12 15:47 ` Dan Nicolaescu
2007-09-12 16:44 ` Stefan Monnier
0 siblings, 1 reply; 14+ messages in thread
From: Dan Nicolaescu @ 2007-09-12 15:47 UTC (permalink / raw)
To: Michaël Cadilhac; +Cc: emacs-devel
michael@cadilhac.name (Michaël Cadilhac) writes:
> Sebastian Kaps <seb@toyland.sauerland.de> writes:
>
> > Is there a possibility to start Emacs without opening a window?
> > I want to start the Emacs server from my .emacs and then use only
> > emacsclient to pop up a new window.
> > XEmacs knows an option "-unmapped" which does exactly what I want, but I
> > haven't found anything similar in Emacs.
>
> It seems that there's no other way than to launch emacs -nw in a
> screen(1) and forget about it. Since Emacs has become a true server, it
> may be a good idea to had a `-daemon' option or something like that.
>
> Any opinion?
It would be great to be able to do this. Karoly said on this list that
the way to implement this is to implement a special kind of display
that does not output anything.
We just need someone that is interested to work on this...
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Start emacs without opening a window (X11)
2007-09-12 15:47 ` Dan Nicolaescu
@ 2007-09-12 16:44 ` Stefan Monnier
0 siblings, 0 replies; 14+ messages in thread
From: Stefan Monnier @ 2007-09-12 16:44 UTC (permalink / raw)
To: Dan Nicolaescu; +Cc: Michaël Cadilhac, emacs-devel
>> > Is there a possibility to start Emacs without opening a window?
>> > I want to start the Emacs server from my .emacs and then use only
>> > emacsclient to pop up a new window.
>> > XEmacs knows an option "-unmapped" which does exactly what I want, but I
>> > haven't found anything similar in Emacs.
>>
>> It seems that there's no other way than to launch emacs -nw in a
>> screen(1) and forget about it. Since Emacs has become a true server, it
>> may be a good idea to had a `-daemon' option or something like that.
>>
>> Any opinion?
> It would be great to be able to do this. Karoly said on this list that
> the way to implement this is to implement a special kind of display
> that does not output anything.
> We just need someone that is interested to work on this...
Basically, it'd be like -batch except without the `noninteractive' and
such stuff.
Stefan
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2007-09-18 14:36 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-11 11:22 Start emacs without opening a window (X11) Sebastian Kaps
2007-09-11 12:20 ` Eric Böse-Wolf
2007-09-11 13:41 ` Sebastian Kaps
2007-09-11 12:54 ` Tassilo Horn
2007-09-11 13:45 ` Sebastian Kaps
2007-09-11 14:01 ` Tassilo Horn
2007-09-11 13:17 ` Floyd L. Davidson
2007-09-11 13:56 ` Sebastian Kaps
2007-09-11 14:25 ` Floyd L. Davidson
2007-09-18 13:40 ` Matthias Pfeifer
2007-09-18 14:36 ` Floyd L. Davidson
2007-09-12 11:40 ` Michaël Cadilhac
2007-09-12 15:47 ` Dan Nicolaescu
2007-09-12 16:44 ` Stefan Monnier
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.