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