* Re: emacs in xterm
2006-10-28 16:42 ` don provan
@ 2006-10-28 18:06 ` David Hansen
2006-10-28 19:24 ` Floyd L. Davidson
` (3 subsequent siblings)
4 siblings, 0 replies; 16+ messages in thread
From: David Hansen @ 2006-10-28 18:06 UTC (permalink / raw)
On Sat, 28 Oct 2006 09:42:06 -0700 don provan wrote:
> zeycus <miguelgarciadiaz@ono.com> writes:
>
>> But what if I prefer the old behaviour, expecting that emacs would
>> make use of the whole particular xterm from which it is launched? I
>> wish just that, with the same font I am using in that xterm, etc.
>> The way it behaves if I launch emacs before starting theX-windows.
>
> You've got your answer from Mr. Miller, but let me just add that you
> might want to give X a chance. I know from personal experience that
> the change can be unsettling, but once you get used to multiple
> windows for the same edit session and all the other advantages to
> emacs under a full window system, there's just no going back. I can
> only just barely remember what it was like running emacs stuck in a
> single terminal screen. You can't even use you mouse to point at
> things, can you?
More a matter of taste... I run Emacs in a X frame but only
to have more colors and to be able to see images in shimbun or
rss articles. I never use the rodent or more than one frame.
David
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: emacs in xterm
2006-10-28 16:42 ` don provan
2006-10-28 18:06 ` David Hansen
@ 2006-10-28 19:24 ` Floyd L. Davidson
2006-10-29 8:20 ` Malte Spiess
` (2 subsequent siblings)
4 siblings, 0 replies; 16+ messages in thread
From: Floyd L. Davidson @ 2006-10-28 19:24 UTC (permalink / raw)
don provan <dprovan@comcast.net> wrote:
>zeycus <miguelgarciadiaz@ono.com> writes:
>
>> But what if I prefer the old behaviour, expecting that emacs would
>> make use of the whole particular xterm from which it is launched? I
>> wish just that, with the same font I am using in that xterm, etc.
>> The way it behaves if I launch emacs before starting theX-windows.
>
>You've got your answer from Mr. Miller, but let me just add that you
>might want to give X a chance. I know from personal experience that
...
Don is right. Let me expand on that, though this is not
something you need to dive into implementing immediately. Keep
it in mind as what you can do as you become familiar with Linux
and begin look for ways to fine tune your working environment
for more efficiency.
Not only do you want (X)Emacs to run in its own window, you want
to run it as an edit server. The server can be started by your
login shell, by whatever mechanism you use to start X, or
manually. It can be unmapped so there is no window when it
starts.
Instead of the slow process of invoking the entire huge (X)Emacs
program, to edit something you invoke a very small client
program which takes about half an instant to run. It remembers
the last search pattern you used and various other odd things,
which you will come to find useful.
There are any number of ways to set up an edit server. Here are
the basics of how I do it. First, I have a couple of things in
my ~/.bashrc file that make it easier,
Programs wanting an editor, use gnuclient:
EDITOR=gnuclient
VISUAL=gnuclient
EDIT=gnuclient
FCEDIT=gnuclient
I have an alias that gives me a two letter command to invoke an
editor from the command line:
alias em='/usr/local/bin/gnuclient'
This is a shell function I use to manually start an edit server.
It has to be run only once, and survives between logins.
function startxemacs {
(cd ~/ #put nohup.out file in home directory
nohup /usr/local/bin/xemacs -l ~/.semacs \
-unmapped -g 100x30+60+60 \
-T "GNUserver" 2>/dev/null &)
}
The above uses a special init file, ~/.semacs, which starts up the
gnuserv process. It looks like this,
;; for GNU Emacs only
(unless (featurep 'xemacs)
(setq gnuserv-frame (current-frame)))
(gnuserv-start) ;Start up the gnu edit server process
;; disallow exiting from a command (menu option only)
(defun do-exit ()
"Exits Emacs or an Emacs client"
(interactive)
(if (gnuserv-running-p)
(if (eq gnuserv-clients nil) (delete-frame) (gnuserv-edit))))
(define-key ctl-x-map "\C-c" 'do-exit)
;; end of file
There are of course times when the edit server is *not* what you
want to run. You can run (X)Emacs as a non server process too.
I keep two of those running all the time on my workstation. One
essentially works as a "notepad" that I have open all the time;
it is "sticky" and shows up in any virtual desktop that I move
to. The other is full screen in one desktop, and run /gnus/ for
Usenet an email. (It has so many buffers open that I want to
keep it entirely separate from the edit server.)
--
Floyd L. Davidson <http://www.apaflo.com/floyd_davidson>
Ukpeagvik (Barrow, Alaska) floyd@apaflo.com
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: emacs in xterm
2006-10-28 16:42 ` don provan
2006-10-28 18:06 ` David Hansen
2006-10-28 19:24 ` Floyd L. Davidson
@ 2006-10-29 8:20 ` Malte Spiess
2006-10-31 18:10 ` zeycus
[not found] ` <mailman.473.1162318249.27805.help-gnu-emacs@gnu.org>
4 siblings, 0 replies; 16+ messages in thread
From: Malte Spiess @ 2006-10-29 8:20 UTC (permalink / raw)
don provan <dprovan@comcast.net> writes:
> zeycus <miguelgarciadiaz@ono.com> writes:
>
>> But what if I prefer the old behaviour, expecting that emacs would
>> make use of the whole particular xterm from which it is launched? I
>> wish just that, with the same font I am using in that xterm, etc.
>> The way it behaves if I launch emacs before starting theX-windows.
>
> You've got your answer from Mr. Miller, but let me just add that you
> might want to give X a chance. I know from personal experience that
> the change can be unsettling, but once you get used to multiple
> windows for the same edit session and all the other advantages to
> emacs under a full window system, there's just no going back. I can
> only just barely remember what it was like running emacs stuck in a
> single terminal screen. You can't even use you mouse to point at
> things, can you?
> -don
I totally agree. My gf didn't want to use the "window-mode" either at
first, but it definitely is way more comfortable, especially for
beginners, since the whole stuff with the menu etc can't be used too
good in text-mode. Most modes (like auctex, gnus,...) also have some
important commands bound to buttons in the top row.
Extra hint: I have bound the command "enw" to "emacs -nw" in the shell
in case I do want a text-based Emacs every once in a while for short
editing purposes.
Greetings
Malte
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: emacs in xterm
2006-10-28 16:42 ` don provan
` (2 preceding siblings ...)
2006-10-29 8:20 ` Malte Spiess
@ 2006-10-31 18:10 ` zeycus
2006-11-01 1:37 ` Michaël Cadilhac
[not found] ` <mailman.473.1162318249.27805.help-gnu-emacs@gnu.org>
4 siblings, 1 reply; 16+ messages in thread
From: zeycus @ 2006-10-31 18:10 UTC (permalink / raw)
Wow, thank you for the opinions and suggestions! I am not sure yet,
whether or not I want to "jump" to the xemacs multi-window system,
but I'll give it a try!
don provan-2 wrote:
>
> zeycus <miguelgarciadiaz@ono.com> writes:
>
>> But what if I prefer the old behaviour, expecting that emacs would
>> make use of the whole particular xterm from which it is launched? I
>> wish just that, with the same font I am using in that xterm, etc.
>> The way it behaves if I launch emacs before starting theX-windows.
>
> You've got your answer from Mr. Miller, but let me just add that you
> might want to give X a chance. I know from personal experience that
> the change can be unsettling, but once you get used to multiple
> windows for the same edit session and all the other advantages to
> emacs under a full window system, there's just no going back. I can
> only just barely remember what it was like running emacs stuck in a
> single terminal screen. You can't even use you mouse to point at
> things, can you?
> -don
> _______________________________________________
> help-gnu-emacs mailing list
> help-gnu-emacs@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
>
>
--
View this message in context: http://www.nabble.com/emacs-in-xterm-tf2528263.html#a7099247
Sent from the Emacs - Help mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: emacs in xterm
2006-10-31 18:10 ` zeycus
@ 2006-11-01 1:37 ` Michaël Cadilhac
0 siblings, 0 replies; 16+ messages in thread
From: Michaël Cadilhac @ 2006-11-01 1:37 UTC (permalink / raw)
Cc: Help-gnu-emacs
[-- Attachment #1.1: Type: text/plain, Size: 954 bytes --]
zeycus <miguelgarciadiaz@ono.com> writes:
> don provan-2 wrote:
>>
>> [...] once you get used to multiple windows [...]
> Wow, thank you for the opinions and suggestions! I am not sure yet,
> whether or not I want to "jump" to the xemacs multi-window system,
> but I'll give it a try!
I think that some gurus here would be tickled by reading this (OMG-ed)
shortcut « Emacs on X == XEmacs » :-)
You probably should have a read to, for example, the wikipedia page on
that ! XEmacs is not Emacs.
(Please add `GNU/' before every proper name !)
--
/!\ My mail address changed, please update your files accordingly.
| Michaël `Micha' Cadilhac | Le copillage-collage |
| Epita/LRDE Promo 2007 | tue le programmeur. |
| http://michael.cadilhac.name | -- Dictons LRDE |
`-- - JID: micha@amessage.be --' - --'
[-- 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] 16+ messages in thread
[parent not found: <mailman.473.1162318249.27805.help-gnu-emacs@gnu.org>]
* Re: emacs in xterm
[not found] ` <mailman.473.1162318249.27805.help-gnu-emacs@gnu.org>
@ 2006-11-01 6:50 ` Tim X
2006-11-01 8:30 ` Floyd L. Davidson
` (2 more replies)
0 siblings, 3 replies; 16+ messages in thread
From: Tim X @ 2006-11-01 6:50 UTC (permalink / raw)
zeycus <miguelgarciadiaz@ono.com> writes:
> Wow, thank you for the opinions and suggestions! I am not sure yet,
> whether or not I want to "jump" to the xemacs multi-window system,
> but I'll give it a try!
Note that Emacs and Xemacs are two totally *different* programs. GNU
Emacs can be built with and without X windows support. Most Linux
distributions include an Emacs and an Emacs-nox (or something
similar). The emacs with window support can also be run without the
X windows features using the -nw switch.
Xemacs can only be run on an X windows system (i.e. you cannot run it
in a term or on the console etc). It represents a fork from the
original emacs sources which occured some years ago. While the two
emacs flavors are very similar, there are a number of internal
differences between the two, such as how they handle font locking. Its
not unusual to find elisp packages which have tests to determine if it
is running under GNU Emacs or Xemacs and then does flavor specific
stuff - this allows an elisp package to work under both systems.
HTH
Tim
--
tcross (at) rapttech dot com dot au
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: emacs in xterm
2006-11-01 6:50 ` Tim X
@ 2006-11-01 8:30 ` Floyd L. Davidson
2006-11-02 8:00 ` Tim X
2006-11-01 8:43 ` zeycus
[not found] ` <mailman.10.1162370610.2155.help-gnu-emacs@gnu.org>
2 siblings, 1 reply; 16+ messages in thread
From: Floyd L. Davidson @ 2006-11-01 8:30 UTC (permalink / raw)
Tim X <timx@nospam.dev.null> wrote:
>Xemacs can only be run on an X windows system (i.e. you cannot run it
>in a term or on the console etc).
Everything else was accurate, but in fact XEmacs can be run in a term
or on the console etc., just exactly the same as GNU Emacs by either
using the -nw option with the version built for X, or by building
it without X support.
--
Floyd L. Davidson <http://www.apaflo.com/floyd_davidson>
Ukpeagvik (Barrow, Alaska) floyd@apaflo.com
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: emacs in xterm
2006-11-01 8:30 ` Floyd L. Davidson
@ 2006-11-02 8:00 ` Tim X
0 siblings, 0 replies; 16+ messages in thread
From: Tim X @ 2006-11-02 8:00 UTC (permalink / raw)
floyd@apaflo.com (Floyd L. Davidson) writes:
> Tim X <timx@nospam.dev.null> wrote:
>>Xemacs can only be run on an X windows system (i.e. you cannot run it
>>in a term or on the console etc).
>
> Everything else was accurate, but in fact XEmacs can be run in a term
> or on the console etc., just exactly the same as GNU Emacs by either
> using the -nw option with the version built for X, or by building
> it without X support.
>
thanks for the correction - I wasn't aware of this.
Tim
--
tcross (at) rapttech dot com dot au
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: emacs in xterm
2006-11-01 6:50 ` Tim X
2006-11-01 8:30 ` Floyd L. Davidson
@ 2006-11-01 8:43 ` zeycus
[not found] ` <mailman.10.1162370610.2155.help-gnu-emacs@gnu.org>
2 siblings, 0 replies; 16+ messages in thread
From: zeycus @ 2006-11-01 8:43 UTC (permalink / raw)
Just now I found a kind message from Michaël pointing this out.
I apologize, I was completely unaware of this fact. As I explained
I am a newbie in Linux, so I naively thought
that GNU Xemacs was a sort of adaptation of GNU Emacs in X.
Now I see these are different things, but there was no offense
intended in my message, just plain ignorance.
Thank you for kindly making the situation clear to me.
Tim X-2 wrote:
>
> zeycus <miguelgarciadiaz@ono.com> writes:
>
>> Wow, thank you for the opinions and suggestions! I am not sure yet,
>> whether or not I want to "jump" to the xemacs multi-window system,
>> but I'll give it a try!
>
> Note that Emacs and Xemacs are two totally *different* programs. GNU
> Emacs can be built with and without X windows support. Most Linux
> distributions include an Emacs and an Emacs-nox (or something
> similar). The emacs with window support can also be run without the
> X windows features using the -nw switch.
>
> Xemacs can only be run on an X windows system (i.e. you cannot run it
> in a term or on the console etc). It represents a fork from the
> original emacs sources which occured some years ago. While the two
> emacs flavors are very similar, there are a number of internal
> differences between the two, such as how they handle font locking. Its
> not unusual to find elisp packages which have tests to determine if it
> is running under GNU Emacs or Xemacs and then does flavor specific
> stuff - this allows an elisp package to work under both systems.
>
> HTH
>
> Tim
> --
> tcross (at) rapttech dot com dot au
> _______________________________________________
> help-gnu-emacs mailing list
> help-gnu-emacs@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
>
>
--
View this message in context: http://www.nabble.com/emacs-in-xterm-tf2528263.html#a7109844
Sent from the Emacs - Help mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 16+ messages in thread
[parent not found: <mailman.10.1162370610.2155.help-gnu-emacs@gnu.org>]
* Re: emacs in xterm
[not found] ` <mailman.10.1162370610.2155.help-gnu-emacs@gnu.org>
@ 2006-11-02 8:06 ` Tim X
0 siblings, 0 replies; 16+ messages in thread
From: Tim X @ 2006-11-02 8:06 UTC (permalink / raw)
zeycus <miguelgarciadiaz@ono.com> writes:
> Just now I found a kind message from Michaël pointing this out.
> I apologize, I was completely unaware of this fact. As I explained
> I am a newbie in Linux, so I naively thought
> that GNU Xemacs was a sort of adaptation of GNU Emacs in X.
> Now I see these are different things, but there was no offense
> intended in my message, just plain ignorance.
>
> Thank you for kindly making the situation clear to me.
>
No offence was ever taken. Ignorance only becomes offensive when the
person either refuses to learn or when they somehow wave their
ignorance as a badge of pride. Being wrong is not a problem as long as
you are able to recognise it and admit your mistake - this is how we
learn. There is also know link between ignorance and intelligence.
Tim
--
tcross (at) rapttech dot com dot au
^ permalink raw reply [flat|nested] 16+ messages in thread