help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Please explain -nw switch and effects and equivalent .emacs command


From: Bingham, Jay
Subject: RE: Please explain -nw switch and effects and equivalent .emacs command for it.
Date: Wed, 28 Nov 2001 09:30:48 -0600

Chris,

First let me explain that I am not an expert on the internals of emacs.
(I do know how to look for information in the info pages, in the Lisp
Reference manual and in the man pages.  Although none of these are light
reading and I have not read them from start to finish, I believe that
most questions can be answered from these three sources.  In fact until
I read your question yesterday I had not really paid any attention to
the -nw switch, and had only the vaguest notion about cursor type
because I remembered seeing it when I was looking for information in the
Reference Manual about setting frame sizes).

Getting back to your question: First, the -nw switch is explained in the
man page, not in the elisp reference manual.  Second, when the -nw
switch is used it tells emacs that it should ignore the fact that it is
operating in a window environment.  The window environment provides the
connection to the mouse.  Expecting the mouse to operate inside of emacs
when the window environment is turned off is like expecting your
refrigerator to run when the power is turned off at the master circuit
breaker.

By the way, emacs has a great man page reader.  Just type M-x man <ret>
emacs <ret> to read the emacs man page.  You can read any other man page
in this manner as well.  I find it much easier to use than the Unix man
command because I can page backward and forward very easily.

Hope this helps
J_)
C_)ingham
.    COMPAQ NonStop Integrity Systems
.    Austin, TX
. Language is the apparel in which your thoughts parade in public.
. Never clothe them in vulgar and shoddy attire. -Dr. George W. Crane-

 -----Original Message-----
From:   Chris Seberino [mailto:seberino@spawar.navy.mil] 
Sent:   Wednesday, 28 November, 2001 2:06 a
To:     Bingham, Jay
Cc:     help-gnu-emacs@gnu.org
Subject:        RE: Please explain -nw switch and effects and equivalent
.emacs command for it.

Jay,

Thanks for your tip.  I am able to change cursor to be
shape I desire with or without -nw switch now thanks.
I read the Frame Parameters section of Emacs Lisp
Ref. Manual like you said and am confused why
-nw switch makes mouse commands not work.
All I want to do is make Emacs start in same
xterm I'm in...why is it necessary to do something
so drastic like use a different "X interface"
such that I lose mouse??? Is there any other way
to have Emacs work in same xterm and save the mouse???

Sincerely,

Chris





>From the emacs man page.

-nw     Tells Emacs not to use its special interface to X.  If you use
this switch when invoking Emacs from an xterm(1) window, display is done
in that window.  This must be the first option specified in the command
line.

I would expect that no functions that use the mouse would not work when
the x-window interface is turned off, not just the home grown ones.  You
might want to read about Frame Parameters in the Emacs Lisp Reference
Manual, specifically read about cursor-type in the Window Frame
Parameters section.  This might allow you to make the cursor look like
you want it to and keep the mouse functions as well.

J_)
C_)ingham
.    COMPAQ NonStop Integrity Systems
.    Austin, TX
. Language is the apparel in which your thoughts parade in public.
. Never clothe them in vulgar and shoddy attire. -Dr. George W. Crane-

 -----Original Message-----
From:   Chris Seberino [mailto:seberino@spawar.navy.mil] 
Sent:   Tuesday, 27 November, 2001 2:20 p
To:     help-gnu-emacs@gnu.org
Subject:        Please explain -nw switch and effects and equivalent
.emacs command for it.

Cursor looks better with -nw switch but
home grown emacs functions that use the mouse
DON'T work with -nw switch!!!?!?!?

Is there anyway to correct mouse based functions
with -nw and add a line to .emacs so that I don't always
have to remember to type -nw or make an alias???

Thanks in advance,

Chris

-- 
=======================================================
| Dr. Christian Seberino  || (619) 553-7940 (office1) |
| SPAWARSYSCEN 2733       || (619) 553-2564 (office2) |
| 53560 HULL ST           || (619) 553-6307 (fax)     |
| SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil |
=======================================================

_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://mail.gnu.org/mailman/listinfo/help-gnu-emacs

----- End forwarded message -----

-- 
=======================================================
| Dr. Christian Seberino  || (619) 553-7940 (office1) |
| SPAWARSYSCEN 2733       || (619) 553-2564 (office2) |
| 53560 HULL ST           || (619) 553-6307 (fax)     |
| SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil |
=======================================================

----- End forwarded message -----

-- 
=======================================================
| Dr. Christian Seberino  || (619) 553-7940 (office1) |
| SPAWARSYSCEN 2733       || (619) 553-2564 (office2) |
| 53560 HULL ST           || (619) 553-6307 (fax)     |
| SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil |
=======================================================




reply via email to

[Prev in Thread] Current Thread [Next in Thread]