[comp.emacs] GNU Emacs and X-Windows

MANSFIEL@EMBL.BITNET (Niall Mansfield) (07/31/87)

I've just started using X, and would like to use Emacs with
it.  I've #define'd HAVE_X_WINDOWS and recompiled: now when
run under X up pops a window and everything's fine.

However, I don't know where to go from here.  Specifically


        1. How can I use the mouse in conjunction with Emacs?

        2. What are the specific advantages of X for Emacs
           (and vice versa)?

        3. In the x*.el files there's talk of menus - how do
           I use them?

        4. I can't find any documentation about these and
           other X/Emacs stuff - can anyone point me in the
           right direction?


Thanks in advance,

bob@OHIO-STATE.ARPA (Bob Sutterfield) (07/31/87)

>	Date:           Fri 31 Jul 87 14:50:45 N
>	To: info-gnu-emacs@PREP.AI.MIT.EDU
>	From: Niall Mansfield <MANSFIEL%EMBL.BITNET@MITVMA.MIT.EDU>
>	Subject:        GNU Emacs and X-Windows
>
> ... (Emacs runs fine under X, now for the finer points)...
>
>	        1. How can I use the mouse in conjunction with Emacs?

Read the GNU Emacs on-line manual page (etc/emacs.1), in the section
"Using Emacs with X", the subsection "Using the Mouse".  It's on page
5 if you read it on your screen.

>	        2. What are the specific advantages of X for Emacs
>	           (and vice versa)?

Fairly intelligent manipulation of the bitmap, mouse control, fun
fonts, iconifiability, helpful menus tied to the mouse (if you have
-lXMenu), client/server separation for remote editing...  All in all,
a Good Time.

>	        3. In the x*.el files there's talk of menus - how do
>	           I use them?

If you #defined HAVE_X_MENU in your src/config.h, and have -lXMenu
accessible, then look at the manual page.  They're tied to
ctrl-shift-left and ctrl-shift-middle.

>	        4. I can't find any documentation about these and
>	           other X/Emacs stuff - can anyone point me in the
>	           right direction?

About the only documentation that exists right now, other than in the
manual page, is the source itself.  It's been developed ahead of its
documentation's inclusion in the major emacs.tex paper-manual sources.
------
 Bob Sutterfield, Department of Computer and Information Science
 The Ohio State University; 2036 Neil Ave. Columbus OH USA 43210-1277
 bob@ohio-state.{arpa,csnet} or ...!cbosgd!osu-eddie!bob
 soon: bob@aargh.cis.ohio-state.edu

wohler@SPAM.ISTC.SRI.COM (Bill Wohler) (08/01/87)

  in addition to bob's comments, here is a x windows mouse key
  bindings quick reference card that is just the right size for glue
  sticking to your sun keyboard.

						--bw

.\" X windows gnuemacs key bindings.
.\" Print with `tbl xemacs.keys | troff`
.\"
.rs
.sp 1i
.ps 6
.vs 7
.TS
box;
cfI s s
c | c | c
l | l | l.
Gnuemacs Key Bindings for X Windows
=
Key	Button	Function
_
Unshifted	left	x-mouse-set-mark
\^	middle	x-mouse-set-point
\^	right	x-mouse-select
_
Control	middle	x-cut-and-wipe-text
\^	right	x-mouse-select-and-split
_
Shift	middle	x-cut-text
\^	right	x-paste-text
_
Control-Shift	left	x-buffer-menu
\^	middle	x-help
\^	right	x-mouse-keep-one-window
.TE

wohler@SPAM.ISTC.SRI.COM (Bill Wohler) (08/02/87)

 [forwarded back to the list due to the usual mega-lossage; apologies
  for duplicates --bw]

  in addition to bob's comments, here is a x windows mouse key
  bindings quick reference card that is just the right size for glue
  sticking to your sun keyboard.

						--bw

.\" X windows gnuemacs key bindings.
.\" Print with `tbl xemacs.keys | troff`
.\"
.rs
.sp 1i
.ps 6
.vs 7
.TS
box;
cfI s s
c | c | c
l | l | l.
Gnuemacs Key Bindings for X Windows
=
Key	Button	Function
_
Unshifted	left	x-mouse-set-mark
\^	middle	x-mouse-set-point
\^	right	x-mouse-select
_
Control	middle	x-cut-and-wipe-text
\^	right	x-mouse-select-and-split
_
Shift	middle	x-cut-text
\^	right	x-paste-text
_
Control-Shift	left	x-buffer-menu
\^	middle	x-help
\^	right	x-mouse-keep-one-window
.TE

jr@LF-SERVER-2.BBN.COM (John Robinson) (08/25/87)

And here's the LaTeX version (of the X mouse ref card):

/jr
jr@bbn.com or jr@bbn.uucp
--------
% X windows gnuemacs key bindings, in LaTeX.

\documentstyle{article}
\begin{document}

\begin{tabular}{|l|l|l|}
\hline
\multicolumn{3}{|c|}{Gnuemacs Key Bindings for X Windows} \\
\hline \hline
\multicolumn{1}{|c|}{Key} &
  \multicolumn{1}{c|}{Button} &
    \multicolumn{1}{c|}{Function} \\ \hline
Unshifted	& left		& x-mouse-set-mark \\
		& middle	& x-mouse-set-point \\
		& right		& x-mouse-select \\ \hline
Control	& middle	& x-cut-and-wipe-text \\
	& right		& x-mouse-select-and-split \\ \hline
Shift	& middle	& x-cut-text \\
	& right		& x-paste-text \\ \hline
Control-Shift	& left		& x-buffer-menu \\
		& middle	& x-help \\
		& right		& x-mouse-keep-one-window \\ \hline
\end{tabular}
\end{document}