annotate man/xemacs/new.texi @ 0:376386a54a3c r19-14

Import from CVS: tag r19-14
author cvs
date Mon, 13 Aug 2007 08:45:50 +0200
parents
children ac2d302a0011
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2 @iftex
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3 @unnumbered XEmacs Features
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5 This section describes the difference between Emacs Version 18 and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6 XEmacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 @unnumberedsec General Changes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10 @itemize @bullet
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 @item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 XEmacs has a new vi emulation mode called evi mode. To
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 start evi mode in Emacs, type the command @kbd{M-x evi}. If you want
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 Emacs to automatically put you in evi-mode all the time, include this
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15 line in your @file{.emacs} file:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 @example
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 (setq term-setup-hook 'evi)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 @end example
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 @xref{evi Mode} for a brief discussion.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20 @item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 Earlier versions of Emacs only allowed keybindings to ASCII character
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22 sequences. XEmacs has greatly expanded this by allowing you to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 use a vector of key sequences which are in turn composed of a modifier
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 and a keysym. @xref{Keystrokes} for more information.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 @item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 The keymap data structure has been reimplemented to allow the use of a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 character set larger than ASCII. Keymaps are no longer alists and/or
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 vectors; they are a new primary data type. Consequently, code which
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 manipulated keymaps with list or array manipulation functions will no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 longer work. It must use the functions @code{define-key} or
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 @code{map-keymap} and @code{set-keymap-parent} (the new keymap
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 functions). @xref{Key Bindings} for more information.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 @item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 Input and display of all ISO-8859-1 characters is supported.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 @item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 Multiple fonts, including variable-width fonts, and fonts of differing
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 heights, are supported.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 @item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 There is a new @file{tags} package and a new UNIX manual browsing
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 package. They are similar to earlier versions; for more information look
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 at the source code.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 @item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 There is a new implementation of Dired, with many new features. The
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 online info for Dired, @i{not} the Dired node of Emacs info, provides
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 more detail.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52 @item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53 GNUS (a network news reader), VM (an alternative mail reader), ILISP (a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54 package for interacting with inferior Lisp processes), ANGE-FTP (a package
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55 for making FTP-accessible files appear just like files on the local disk,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56 even to Dired), Calendar (an Emacs-based calendar and appointment-
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57 management tool), and W3 (an interface to the World Wide Web) are a part
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 of the XEmacs Lisp library. See the related documentation in the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59 online info browser.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61 @item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 Emacs now supports floating-point numbers.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64 @item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 When you send mail, mail aliases are now expanded in the buffer. In
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66 earlier versions, they were expanded after the mail-sending command was
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67 executed.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69 @item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70 The initial value of @code{load-path} is computed when Emacs starts up,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 instead of being hardcoded in when Emacs is compiled. As a result, you
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72 can now move the Emacs executable and Lisp library to a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 different location in the file system without having to recompile.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75 @item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76 Any existing subdirectories of the Emacs Lisp directory are now added to the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77 @code{load-path} by default.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79 @item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80 On some machines, you can change the audible bell using the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81 @code{sound-alist} variable. @xref{Audible Bell} for more information.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83 @item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84 You can use multiple X windows to display multiple Emacs frames.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86 @item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87 You can use the X selection mechanism to copy material from other
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88 applications and into other applications. You can also use all Emacs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89 region commands on a region selected with the mouse. @xref{Mouse
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90 Selection} for more information.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92 @item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
93 By default, the variable @code{zmacs-regions} is set to highlight the region
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
94 between point and the mark. This unifies X selection and Emacs selection
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
95 behavior.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
96
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
97 @item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
98 XEmacs has a menu bar for mouse-controlled operations in addition to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
99 keystrokes. @xref{Pull-down Menus}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
100
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
101 @item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
102 You can look in the file @file{/usr/local/lib/xemacs-19.11/etc/Emacs.ad} for
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
103 a list of Emacs X resources. You can set these resources in your X
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
104 environment to set your preferences for color, fonts, location, and the size
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
105 of XEmacs frames. Refer to your X documentation for more information
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
106 about resources.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
107
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
108 @unnumberedsec New Commands and Variables
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
109
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
110 There are many new functions in XEmacs, and many existing functions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
111 whose semantics have been expanded. Most of these are only of interest
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
112 to the Emacs-Lisp programmer; see the NEWS file @kbd{C-h n} for a complete
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
113 list. What follows is a partial list of the new interactive commands:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
114
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
115 @findex byte-compile-and-load-file
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
116 @findex byte-compile-buffer
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
117 @item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
118 @code{byte-compile-and-load-file} and @code{byte-compile-buffer}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
119 byte-compile the contents of a file or buffer.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
120
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
121 @findex conx
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
122 The new @code{conx} function lets you generate random sentences for your
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
123 amusement.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
124
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
125 @findex compile-defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
126 @item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
127 @code{compile-defun} compiles and evaluates the current top-level
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
128 form.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
129
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
130 @findex find-this-file
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
131 @findex find-this-file-other-window
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
132 @item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
133 @code{find-this-file} and @code{find-this-file-other-window} can be used
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
134 interactively with a prefix argument to switch to the filename at point
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
135 in the buffer. @code{find-this-file-other-window} displays the file in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
136 another window.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
137
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
138 @findex invert-face
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
139 @findex make-face-bold
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
140 @findex make-face-bold-italic
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
141 @findex make-face-italic
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
142 @findex make-face-unbold
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
143 @findex make-face-unitalic
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
144 @findex set-face-background
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
145 @findex set-face-background-pixmap
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
146 @findex set-face-font
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
147 @findex set-face-foreground
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
148 @findex set-face-underline-p
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
149 @item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
150 Several new functions have been added that allow you to customize the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
151 color and font attributes of a region of text: @code{invert-face},
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
152 @code{make-face-bold}, @code{make-face-bold-italic},
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
153 @code{make-face-italic}, @code{make-face-unbold},
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
154 @code{make-face-unitalic}, @code{set-face-background},
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
155 @code{set-face-background-pixmap}, @code{set-face-font},
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
156 @code{set-face-foreground}, and @code{set-face-underline-p}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
157
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
158 @findex load-default-sounds
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
159 @findex load-sound-file
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
160 @findex play-sound
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
161 @item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
162 @code{load-default-sounds} and @code{load-sound-file} allow you to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
163 customize the audible bell sound. @code{load-default-sounds} loads and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
164 installs sound files. @code{load-sound-file} reads in audio files and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
165 adds them to the sound alist. @code{play-sound} plays the specified
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
166 sound type.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
167
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
168 @findex locate-library
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
169 @item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
170 @code{locate-library} finds the file that the function
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
171 @code{load-library} loads, and it displays the file's full pathname.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
172
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
173 @findex make-directory
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
174 @findex remove-directory
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
175 @item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
176 @code{make-directory} creates a directory, while @code{remove-directory}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
177 removes a directory.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
178
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
179 @findex mark-beginning-of-buffer
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
180 @findex mark-end-of-buffer
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
181 @item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
182 @code{mark-beginning-of-buffer} and @code{mark-end-of-buffer} push the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
183 mark to the beginning or end of a buffer, respectively.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
184
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
185 @findex mouse-del-char
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
186 @findex mouse-delete-window
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
187 @findex mouse-keep-one-window
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
188 @findex mouse-kill-line
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
189 @findex mouse-line-length
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
190 @findex mouse-scroll
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
191 @findex mouse-select
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
192 @findex mouse-select-and-split
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
193 @findex mouse-set-mark
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
194 @findex mouse-set-point
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
195 @findex mouse-track
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
196 @findex mouse-track-adjust
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
197 @findex mouse-track-and-copy-to-cutbuffer
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
198 @findex mouse-track-delete-and-insert
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
199 @findex mouse-track-insert
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
200 @findex mouse-window-to-region
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
201 Several functions have been added that allow you to perform various
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
202 editing, region, and window operations using the mouse:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
203 @code{mouse-del-char}, @code{mouse-delete-window},
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
204 @code{mouse-keep-one-window}, @code{mouse-kill-line},
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
205 @code{mouse-line-length}, @code{mouse-scroll}, @code{mouse-select},
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
206 @code{mouse-select-and-split}, @code{mouse-set-mark},
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
207 @code{mouse-set-point}, @code{mouse-track}, @code{mouse-track-adjust},
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
208 @code{mouse-track-and-copy-to-cutbuffer},
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
209 @code{mouse-track-delete-and-insert}, @code{mouse-track-insert}, and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
210 @code{mouse-window-to-region}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
211
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
212 @findex compare-windows
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
213 @item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
214 @code{compare-windows} takes an argument @var{ignore-whitespace}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
215 The argument means ignore changes in whitespace.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
216
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
217 @end itemize
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
218
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
219 You can conditionalize your @file{.emacs} file as follows so that XEmacs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
220 commands are invoked only when you are in XEmacs:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
221
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
222 @cindex version number
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
223 @example
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
224 (cond ((string-match "Lucid" emacs-version)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
225 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
226 ;; Code for any version of Lucid Emacs or XEmacs goes here
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
227 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
228 ))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
229
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
230 (cond ((and (string-match "XEmacs" emacs-version)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
231 (or (> emacs-major-version 19)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
232 (>= emacs-minor-version 12)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
233 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
234 ;; Code which requires XEmacs version 19.12 or newer goes here
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
235 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
236 ))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
237
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
238 (cond ((>= emacs-major-version 19)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
239 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
240 ;; Code for any vintage-19 emacs goes here
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
241 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
242 ))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
243
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
244 (cond ((and (not (string-match "Lucid" emacs-version))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
245 (= emacs-major-version 19))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
246 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
247 ;; Code specific to FSF Emacs 19 (not XEmacs) goes here
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
248 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
249 ))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
250
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
251 (cond ((< emacs-major-version 19)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
252 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
253 ;; Code specific to emacs 18 goes here
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
254 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
255 ))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
256 @end example
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
257
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
258 Of particular interest for use in @file{.emacs} files are:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
259
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
260 @itemize @bullet
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
261 @findex add-menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
262 @findex add-menu-item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
263 @findex delete-menu-item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
264 @findex disable-menu-item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
265 @findex enable-menu-item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
266 @findex relabel-menu-item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
267 @item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
268 @code{add-menu} lets you add a new menu to the menubar or a submenu to a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
269 pull-down menu. @code{add-menu-item}, @code{disable-menu-item},
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
270 @code{delete-menu-item}, @code{enable-menu-item}, and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
271 @code{relabel-menu-item} allow you to customize the XEmacs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
272 pull-down menus.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
273
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
274 @findex make-frame
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
275 @item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
276 @code{make-frame} creates a new Emacs frame (X window).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
277
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
278 @end itemize
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
279
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
280 These new variables are only present in XEmacs:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
281
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
282 @itemize @bullet
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
283
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
284 @vindex minibuffer-confirm-incomplete
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
285 @item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
286 @code{minibuffer-confirm-incomplete} prompts for confirmation in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
287 contexts where @code{completing-read} allows answers that are not valid
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
288 completions.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
289
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
290 @vindex x-mode-pointer-shape
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
291 @vindex x-nontext-pointer-shape
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
292 @vindex x-pointer-background-color
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
293 @vindex x-pointer-foreground-color
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
294 @vindex x-pointer-shape
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
295 @item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
296 Several variables have been added that allow you to customize the color
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
297 and shape of the mouse pointer: @code{x-pointer-background-color},
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
298 @code{x-pointer-foreground-color}, @code{x-mode-pointer-shape},
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
299 @code{x-pointer-shape}, and @* @code{x-nontext-pointer-shape}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
300
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
301 @vindex zmacs-regions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
302 @item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
303 @code{zmacs-regions} determines whether LISPM-style active regions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
304 should be used.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
305 @end itemize
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
306
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
307 @unnumberedsec Changes in Key Bindings
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
308
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
309 XEmacs has the following new default function keybindings:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
310
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
311 @table @kbd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
312 @item @key{HELP}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
313 Same as @kbd{C-h}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
314
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
315 @item @key{UNDO}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
316 Same as @kbd{M-x undo}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
317
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
318 @item @key{CUT}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
319 Same as the Cut menu item; that is, it copies the selected text to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
320 the X Clipboard selection.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
321
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
322 @item @key{COPY}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
323 Same as the Copy menu item.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
324
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
325 @item @key{PASTE}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
326 Same as the Paste menu item.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
327
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
328 @item @key{PGUP}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
329 Same as @kbd{M-v}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
330
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
331 @item @key{PGDN}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
332 Same as @kbd{C-v}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
333
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
334 @item @key{HOME}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
335 Same as @kbd{M-<}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
336
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
337 @item @key{END}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
338 Same as @kbd{M->}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
339
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
340 @item @key{LEFT-ARROW}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
341 Same as the function @code{backward-char}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
342
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
343 @item @key{RIGHT-ARROW}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
344 Same as the function @code{forward-char}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
345
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
346 @item @key{UP-ARROW}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
347 Same as the function @code{previous-line}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
348
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
349 @item @key{DOWN-ARROW}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
350 Same as the function @code{next-line}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
351
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
352 @end table
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
353
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
354
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
355 @end iftex