1994-03-16 18:30:13 +00:00
|
|
|
@c -*-texinfo-*-
|
|
|
|
@c This is part of the GNU Emacs Lisp Reference Manual.
|
2016-01-01 09:16:19 +00:00
|
|
|
@c Copyright (C) 1999, 2002-2016 Free Software Foundation, Inc.
|
1994-03-16 18:30:13 +00:00
|
|
|
@c See the file elisp.texi for copying conditions.
|
2000-05-23 12:22:28 +00:00
|
|
|
|
|
|
|
@c This node must have no pointers.
|
|
|
|
|
2012-05-27 01:34:14 +00:00
|
|
|
@node Antinews
|
2012-04-05 16:52:56 +00:00
|
|
|
@appendix Emacs 23 Antinews
|
2012-05-08 06:38:27 +00:00
|
|
|
@c Update the elisp.texi Antinews menu entry with the above version number.
|
1994-03-16 18:30:13 +00:00
|
|
|
|
|
|
|
For those users who live backwards in time, here is information about
|
2012-04-05 14:47:41 +00:00
|
|
|
downgrading to Emacs version 23.4. We hope you will enjoy the greater
|
2005-06-10 10:11:22 +00:00
|
|
|
simplicity that results from the absence of many Emacs @value{EMACSVER}
|
|
|
|
features.
|
1994-03-16 18:30:13 +00:00
|
|
|
|
2012-04-05 14:47:41 +00:00
|
|
|
@section Old Lisp Features in Emacs 23
|
1994-03-16 18:30:13 +00:00
|
|
|
|
|
|
|
@itemize @bullet
|
|
|
|
@item
|
2012-04-05 14:47:41 +00:00
|
|
|
Support for lexical scoping has been removed; all variables are
|
|
|
|
dynamically scoped. The @code{lexical-binding} variable has been
|
|
|
|
removed, and so has the @var{lexical} argument to @code{eval}. The
|
|
|
|
@code{defvar} and @code{defconst} forms no longer mark variables as
|
|
|
|
dynamic, since all variables are dynamic.
|
1994-03-16 18:30:13 +00:00
|
|
|
|
2012-04-05 14:47:41 +00:00
|
|
|
Having only dynamic binding follows the spirit of Emacs extensibility,
|
|
|
|
for it allows any Emacs code to access any defined variable with a
|
|
|
|
minimum of fuss. But @xref{Dynamic Binding Tips}, for tips to avoid
|
|
|
|
making your programs hard to understand.
|
2006-07-14 23:32:14 +00:00
|
|
|
|
1994-03-16 18:30:13 +00:00
|
|
|
@item
|
2014-06-08 23:39:23 +00:00
|
|
|
Calling a minor mode function from Lisp with a @code{nil} or omitted argument
|
2012-04-05 14:47:41 +00:00
|
|
|
does not enable the minor mode unconditionally; instead, it toggles
|
|
|
|
the minor mode---which is the straightforward thing to do, since that
|
|
|
|
is the behavior when invoked interactively. One downside is that it
|
|
|
|
is more troublesome to enable minor modes from hooks; you have to do
|
|
|
|
something like
|
1994-03-16 18:30:13 +00:00
|
|
|
|
2012-04-05 14:47:41 +00:00
|
|
|
@example
|
|
|
|
(add-hook 'foo-hook (lambda () (bar-mode 1)))
|
|
|
|
@end example
|
2009-05-14 03:22:44 +00:00
|
|
|
|
2012-04-05 14:47:41 +00:00
|
|
|
@noindent
|
|
|
|
or define @code{turn-on-bar-mode} and call that from the hook.
|
1994-03-16 18:30:13 +00:00
|
|
|
|
1999-10-27 10:42:06 +00:00
|
|
|
@item
|
2012-04-05 14:47:41 +00:00
|
|
|
The @code{prog-mode} dummy major mode has been removed. Instead of
|
|
|
|
using it as a crutch to meet programming mode conventions, you should
|
|
|
|
explicitly ensure that your mode follows those conventions.
|
|
|
|
@xref{Major Mode Conventions}.
|
1999-10-27 10:42:06 +00:00
|
|
|
|
1994-03-16 18:30:13 +00:00
|
|
|
@item
|
2012-04-05 14:47:41 +00:00
|
|
|
Emacs no longer supports bidirectional display and editing. Since
|
|
|
|
there is no need to worry about the insertion of right-to-left text
|
|
|
|
messing up how lines and paragraphs are displayed, the function
|
|
|
|
@code{bidi-string-mark-left-to-right} has been removed; so have many
|
|
|
|
other functions and variables related to bidirectional display.
|
2015-09-04 20:31:41 +00:00
|
|
|
Unicode directionality characters like @code{U+200E} LEFT-TO-RIGHT
|
|
|
|
MARK have no special effect on display.
|
1994-03-16 18:30:13 +00:00
|
|
|
|
2005-03-17 23:16:11 +00:00
|
|
|
@item
|
2012-04-05 14:47:41 +00:00
|
|
|
Emacs windows now have most of their internal state hidden from Lisp.
|
|
|
|
Internal windows are no longer visible to Lisp; functions such as
|
|
|
|
@code{window-parent}, window parameters related to window arrangement,
|
|
|
|
and window-local buffer lists have all been removed. Functions for
|
2012-04-14 20:43:11 +00:00
|
|
|
resizing windows can delete windows if they become too small.
|
1994-03-16 18:30:13 +00:00
|
|
|
|
2015-09-15 15:46:48 +00:00
|
|
|
The action-function feature for controlling buffer display has
|
2012-04-05 14:47:41 +00:00
|
|
|
been removed, including @code{display-buffer-overriding-action} and
|
|
|
|
related variables, as well as the @var{action} argument to
|
|
|
|
@code{display-buffer} and other functions. The way to
|
|
|
|
programmatically control how Emacs chooses a window to display a
|
2012-10-27 05:03:52 +00:00
|
|
|
buffer is to bind the right combination of @code{pop-up-frames} and
|
|
|
|
other variables.
|
1994-03-16 18:30:13 +00:00
|
|
|
|
1999-09-17 06:59:04 +00:00
|
|
|
@item
|
2012-04-05 14:47:41 +00:00
|
|
|
The standard completion interface has been simplified, eliminating the
|
|
|
|
@code{completion-extra-properties} variable, the @code{metadata}
|
|
|
|
action flag for completion functions, and the concept of
|
2015-09-15 15:46:48 +00:00
|
|
|
completion categories. Lisp programmers may now find the choice
|
2012-04-05 14:47:41 +00:00
|
|
|
of methods for tuning completion less bewildering, but if a package
|
|
|
|
finds the streamlined interface insufficient for its needs, it must
|
|
|
|
implement its own specialized completion feature.
|
1999-10-27 10:42:06 +00:00
|
|
|
|
2000-02-09 23:54:58 +00:00
|
|
|
@item
|
2012-04-05 14:47:41 +00:00
|
|
|
@code{copy-directory} now behaves the same whether or not the
|
|
|
|
destination is an existing directory: if the destination exists, the
|
|
|
|
@emph{contents} of the first directory are copied into it (with
|
|
|
|
subdirectories handled recursively), rather than copying the first
|
|
|
|
directory into a subdirectory.
|
2000-02-09 23:54:58 +00:00
|
|
|
|
1999-10-27 10:42:06 +00:00
|
|
|
@item
|
2012-04-05 14:47:41 +00:00
|
|
|
The @var{trash} arguments for @code{delete-file} and
|
|
|
|
@code{delete-directory} have been removed. The variable
|
|
|
|
@code{delete-by-moving-to-trash} must now be used with care; whenever
|
|
|
|
it is non-@code{nil}, all calls to @code{delete-file} or
|
|
|
|
@code{delete-directory} use the trash.
|
1994-03-16 18:30:13 +00:00
|
|
|
|
|
|
|
@item
|
2012-04-05 14:47:41 +00:00
|
|
|
Because Emacs no longer supports SELinux file contexts, the
|
|
|
|
@var{preserve-selinux-context} argument to @code{copy-file} has been
|
|
|
|
removed. The return value of @code{backup-buffer} no longer has an
|
|
|
|
entry for the SELinux file context.
|
1994-03-16 18:30:13 +00:00
|
|
|
|
|
|
|
@item
|
2012-04-05 14:47:41 +00:00
|
|
|
For mouse click input events in the text area, the Y pixel coordinate
|
|
|
|
in the @var{position} list (@pxref{Click Events}) now counts from the
|
|
|
|
top of the header line, if there is one, rather than the top of the
|
|
|
|
text area.
|
1994-03-16 18:30:13 +00:00
|
|
|
|
|
|
|
@item
|
2012-04-05 14:47:41 +00:00
|
|
|
Bindings in menu keymaps (@pxref{Format of Keymaps}) now sometimes get
|
|
|
|
an additional @var{cache} entry in their definitions, like this:
|
1994-03-16 18:30:13 +00:00
|
|
|
|
2012-04-05 14:47:41 +00:00
|
|
|
@example
|
|
|
|
(@var{type} @var{item-name} @var{cache} . @var{binding})
|
|
|
|
@end example
|
1994-03-16 18:30:13 +00:00
|
|
|
|
2012-04-05 14:47:41 +00:00
|
|
|
@noindent
|
|
|
|
The @var{cache} entry is used internally by Emacs to record equivalent
|
|
|
|
keyboard key sequences for invoking the same command; Lisp programs
|
|
|
|
should never use it.
|
2012-04-14 20:43:11 +00:00
|
|
|
@c Not really NEWS-worthy then...
|
2009-05-14 03:22:44 +00:00
|
|
|
|
|
|
|
@item
|
2012-04-14 20:43:11 +00:00
|
|
|
The @code{gnutls} library has been removed, and the function
|
|
|
|
@code{open-network-stream} correspondingly simplified.
|
|
|
|
Lisp programs that want an encrypted network connection must now call
|
|
|
|
external utilities such as @command{starttls} or @command{gnutls-cli}.
|
1994-03-16 18:30:13 +00:00
|
|
|
|
|
|
|
@item
|
2012-04-05 14:47:41 +00:00
|
|
|
Tool bars can no longer display separators, which frees up several
|
|
|
|
pixels of space on each graphical frame.
|
1994-03-16 18:30:13 +00:00
|
|
|
|
|
|
|
@item
|
2012-04-14 20:43:11 +00:00
|
|
|
As part of the ongoing quest for simplicity, many other functions and
|
|
|
|
variables have been eliminated.
|
1994-03-16 18:30:13 +00:00
|
|
|
@end itemize
|