This section describes the difference between Emacs Version 18 and XEmacs.
(setq term-setup-hook 'evi)@xref{evi Mode} for a brief discussion.
define-key or
map-keymap and set-keymap-parent (the new keymap
functions). See section Customizing Key Bindings for more information.
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.
load-path by default.
sound-alist variable. See section Changing the Bell Sound for more information.
zmacs-regions is set to highlight the region
between point and the mark. This unifies X selection and Emacs selection
behavior.
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 C-h n for a complete list. What follows is a partial list of the new interactive commands:
byte-compile-and-load-file and byte-compile-buffer
byte-compile the contents of a file or buffer.
The new conx function lets you generate random sentences for your
amusement.
compile-defun compiles and evaluates the current top-level
form.
find-this-file and find-this-file-other-window can be used
interactively with a prefix argument to switch to the filename at point
in the buffer. find-this-file-other-window displays the file in
another window.
invert-face,
make-face-bold, make-face-bold-italic,
make-face-italic, make-face-unbold,
make-face-unitalic, set-face-background,
set-face-background-pixmap, set-face-font,
set-face-foreground, and set-face-underline-p.
load-default-sounds and load-sound-file allow you to
customize the audible bell sound. load-default-sounds loads and
installs sound files. load-sound-file reads in audio files and
adds them to the sound alist. play-sound plays the specified
sound type.
locate-library finds the file that the function
load-library loads, and it displays the file's full pathname.
make-directory creates a directory, while remove-directory
removes a directory.
mark-beginning-of-buffer and mark-end-of-buffer push the
mark to the beginning or end of a buffer, respectively.
Several functions have been added that allow you to perform various
editing, region, and window operations using the mouse:
mouse-del-char, mouse-delete-window,
mouse-keep-one-window, mouse-kill-line,
mouse-line-length, mouse-scroll, mouse-select,
mouse-select-and-split, mouse-set-mark,
mouse-set-point, mouse-track, mouse-track-adjust,
mouse-track-and-copy-to-cutbuffer,
mouse-track-delete-and-insert, mouse-track-insert, and
mouse-window-to-region.
compare-windows takes an argument ignore-whitespace.
The argument means ignore changes in whitespace.
(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
;;
))
Of particular interest for use in `.emacs' files are:
add-menu lets you add a new menu to the menubar or a submenu to a
pull-down menu. add-menu-item, disable-menu-item,
delete-menu-item, enable-menu-item, and
relabel-menu-item allow you to customize the XEmacs
pull-down menus.
make-frame creates a new Emacs frame (X window).
minibuffer-confirm-incomplete prompts for confirmation in
contexts where completing-read allows answers that are not valid
completions.
x-pointer-background-color,
x-pointer-foreground-color, x-mode-pointer-shape,
x-pointer-shape, and x-nontext-pointer-shape.
zmacs-regions determines whether LISPM-style active regions
should be used.
XEmacs has the following new default function keybindings:
backward-char.
forward-char.
previous-line.
next-line.