* Start emacs without opening a window (X11)
@ 2007-09-11 11:22 Sebastian Kaps
2007-09-11 12:20 ` Eric Böse-Wolf
` (2 more replies)
0 siblings, 3 replies; 11+ 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] 11+ 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
2007-09-11 13:17 ` Floyd L. Davidson
2 siblings, 1 reply; 11+ 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] 11+ 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
2 siblings, 1 reply; 11+ 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] 11+ 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
2 siblings, 1 reply; 11+ 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] 11+ messages in thread
* Re: Start emacs without opening a window (X11)
2007-09-11 12:20 ` Eric Böse-Wolf
@ 2007-09-11 13:41 ` Sebastian Kaps
0 siblings, 0 replies; 11+ messages in thread
From: Sebastian Kaps @ 2007-09-11 13:41 UTC (permalink / raw)
To: help-gnu-emacs
// Eric Böse-Wolf writes:
> "emacs -nw does the job"
No, not quite. It starts emacs inside the terminal window it has been
called from and all emacsclient buffers open within this instance.
--
Ciao, Sebastian
^ permalink raw reply [flat|nested] 11+ 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; 11+ 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] 11+ messages in thread
* Re: Start emacs without opening a window (X11)
2007-09-11 13:17 ` Floyd L. Davidson
@ 2007-09-11 13:56 ` Sebastian Kaps
2007-09-11 14:25 ` Floyd L. Davidson
0 siblings, 1 reply; 11+ messages in thread
From: Sebastian Kaps @ 2007-09-11 13:56 UTC (permalink / raw)
To: help-gnu-emacs
// Floyd L Davidson writes:
> Use "-iconic", and don't have a specified icon.
I'm using Gnome, so I can't hide the window that way. Also, for some
reason, -iconic or --iconic has no effect here.
--
Ciao, Sebastian
^ permalink raw reply [flat|nested] 11+ 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; 11+ 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] 11+ messages in thread
* Re: Start emacs without opening a window (X11)
2007-09-11 13:56 ` Sebastian Kaps
@ 2007-09-11 14:25 ` Floyd L. Davidson
2007-09-18 13:40 ` Matthias Pfeifer
0 siblings, 1 reply; 11+ messages in thread
From: Floyd L. Davidson @ 2007-09-11 14:25 UTC (permalink / raw)
To: help-gnu-emacs
Sebastian Kaps <seb@toyland.sauerland.de> wrote:
>// Floyd L Davidson writes:
>
>> Use "-iconic", and don't have a specified icon.
>
>I'm using Gnome, so I can't hide the window that way. Also, for some
>reason, -iconic or --iconic has no effect here.
Well... go back one step, to where you mention XEmacs
and -unmapped, and use that!
--
Floyd L. Davidson <http://www.apaflo.com/floyd_davidson>
Ukpeagvik (Barrow, Alaska) floyd@apaflo.com
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Start emacs without opening a window (X11)
2007-09-11 14:25 ` Floyd L. Davidson
@ 2007-09-18 13:40 ` Matthias Pfeifer
2007-09-18 14:36 ` Floyd L. Davidson
0 siblings, 1 reply; 11+ messages in thread
From: Matthias Pfeifer @ 2007-09-18 13:40 UTC (permalink / raw)
To: help-gnu-emacs
Floyd L. Davidson wrote:
> Well... go back one step, to where you mention XEmacs
> and -unmapped, and use that!
What do you mean? Does emacs now support a -unmapped parameter on startup?
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Start emacs without opening a window (X11)
2007-09-18 13:40 ` Matthias Pfeifer
@ 2007-09-18 14:36 ` Floyd L. Davidson
0 siblings, 0 replies; 11+ messages in thread
From: Floyd L. Davidson @ 2007-09-18 14:36 UTC (permalink / raw)
To: help-gnu-emacs
Matthias Pfeifer <pfemat@web.de> wrote:
>Floyd L. Davidson wrote:
>
>> Well... go back one step, to where you mention XEmacs
>> and -unmapped, and use that!
>
>What do you mean? Does emacs now support a -unmapped parameter on startup?
I mean the obvious, use something that does support -unmapped!
XEmacs.
--
Floyd L. Davidson <http://www.apaflo.com/floyd_davidson>
Ukpeagvik (Barrow, Alaska) floyd@apaflo.com
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2007-09-18 14:36 UTC | newest]
Thread overview: 11+ 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
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).