When the Emacs user option `enable-local-variables' is set to `:safe'
(the default value is t), Emacs should automatically refuse to evaluate
`eval' forms in file-local variable sections. Due to the bug, Emacs
instead automatically evaluates such `eval' forms. Thus, if the user
changes the value of `enable-local-variables' to `:safe', visiting a
malicious file can cause automatic execution of arbitrary Emacs Lisp
code with the permissions of the user.
Bug tracker ref: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=12155
emacs-nox11 doesn't use and can't use emacs.desktop, so there is no need
to modify the file (which shouldn't even be installed). This modification
could go on the editors/emacs port though, conditionally on without x11.
Tweak behavior of emacs-nox11 launched from gnome or kde desktop. This
change makes emacs-nox11 always get launched inside a terminal from those
desktops.
${_EMACS_VERSION_MAJOR} and ${_EMACS_VERSION_MINOR} to determine installed
version of emacs.
Also, set minimum version of _EMACS_REQD to the same as
${_EMACS_VERSION_MAJOR}.${_EMACS_VERSION_MINOR}. Otherwise, buildlink
does not work for emacs lisp libraries.
Should fix PR/42763.
Major changes:
- Improved Unicode support.
- Font rendering with Fontconfig and Xft.
- Support for using X displays and text terminals in one session, and
for running as a daemon.
- Support for multi-file commits in distributed version-control
systems (VC-dir).
- The default X toolkit is now Gtk+, rather than Lucid.
This changes the buildlink3.mk files to use an include guard for the
recursive include. The use of BUILDLINK_DEPTH, BUILDLINK_DEPENDS,
BUILDLINK_PACKAGES and BUILDLINK_ORDER is handled by a single new
variable BUILDLINK_TREE. Each buildlink3.mk file adds a pair of
enter/exit marker, which can be used to reconstruct the tree and
to determine first level includes. Avoiding := for large variables
(BUILDLINK_ORDER) speeds up parse time as += has linear complexity.
The include guard reduces system time by avoiding reading files over and
over again. For complex packages this reduces both %user and %sys time to
half of the former time.
Below is a simplified etc/NEWS; see the real file for full detail!
----
* Changes in Emacs 22.3
** Support for several obsolete platforms will be removed in the next
major version of Emacs.
*** Support for systems without alloca will be removed.
*** Support for Sun windows will be removed.
*** Support for VMS will be removed.
* Incompatible Editing Changes in Emacs 22.3
** The following input methods were removed in Emacs 22.2, but this was
not advertised: danish-alt-postfix, esperanto-alt-postfix,
finnish-alt-postfix, german-alt-postfix, icelandic-alt-postfix,
norwegian-alt-postfix, scandinavian-alt-postfix, spanish-alt-postfix,
and swedish-alt-postfix. Use the versions without "alt-", which are
identical.
* Installation Changes in Emacs 22.2
** Emacs is now licensed under the GNU GPL version 3 (or later).
** Support for GNU/kFreeBSD (GNU userland and FreeBSD kernel) was added.
** Deprecated machine types and operating systems
(snip)
* Changes in Emacs 22.2
** `describe-project' is renamed to `describe-gnu-project'.
** `view-todo' is renamed to `view-emacs-todo'.
** `find-name-dired' now uses -iname rather than -name
for case-insensitive filesystems.
** In Image mode, whenever the displayed image is wider and/or higher
than the window, the usual keys for moving the cursor cause the image
to be scrolled horizontally or vertically instead.
** Emacs can use stock icons in the tool bar when compiled with Gtk+.
** Scrollbars follow the system theme on Windows XP and later.
** focus-follows-mouse defaults to nil on MS Windows.
** `bad-packages-alist' will warn about external packages that are known
to cause problems in this version of Emacs.
** The values of `dired-recursive-deletes' and `dired-recursive-copies'
have been changed to `top'.
** `browse-url-emacs' loads a URL into an Emacs buffer. Handy for *.el URLs.
** The command gdba has been removed as gdb works now for those cases where it
was needed.
** desktop.el now detects conflicting uses of the desktop file.
** Compilation mode now correctly respects the value of
`compilation-scroll-output' between invocations.
** `font-lock-comment-face' no longer differs from the default on
displays with fewer than 16 colors and dark background (e.g. older
xterms and the Linux console).
* New Modes and Packages in Emacs 22.2
** bibtex-style-mode helps you write BibTeX's *.bst files.
** The new package css-mode.el provides a major mode for editing CSS files.
** The new package vera-mode.el provides a major mode for editing Vera files.
** The new package verilog-mode.el provides a major mode for editing Verilog files.
** The new package socks.el implements the SOCKS v5 protocol.
** VC
*** VC backends can provide completion of revision names.
*** VC backends can provide extra menu entries to the "Version Control" menu.
This can be used to add menu entries for backend specific functions.
*** VC has some support for Mercurial (Hg).
*** VC has some support for Monotone (Mtn).
*** VC has some support for Bazaar (Bzr).
*** VC has some support for Git.
* Incompatible Lisp Changes in Emacs 22.2
** shell.el no longer defines the aliases `dirtrack-toggle' and
`dirtrack-mode' for `shell-dirtrack-mode'.
* Lisp Changes in Emacs 22.2.
** Frame-local variables are deprecated and are slated for removal.
** The function invisible-p returns non-nil if the character
after a specified position is invisible.
** inhibit-modification-hooks is bound to t while running modification hooks.
** New function `window-full-width-p' returns t if a window is as wide
as its frame.
** The new function `image-refresh' refreshes all images associated
with a given image specification.
** The new function `combine-and-quote-strings' concatenates a list of strings
using a specified separator. If a string contains double quotes, they
are escaped in the output.
** The new function `split-string-and-unquote' performs the inverse operation to
`combine-and-quote-strings', i.e. splits a single string into a list
of strings, undoing any quoting added by `combine-and-quote-strings'.
(For some separator/string combinations, the original strings cannot
be recovered.)
Don't call pkg_info to get the installed Emacs version; always use the
version matching EMACS_TYPE set by users. Be DEPENDS to it. This should
address pkg/37146 by Aleksey Cheusov.
While here convert some emacs lisp packages to user-destdir.
(1) Get rid of "nox11" -- the concept of "no" in package options is
expressed by negating an option; use "-x11" instead.
(2) Teach editors/emacs20 to use package options instead of EMACS_USE_POP,
EMACS_USE_X, EMACS_USE_X_TOOLKIT and USE_INET6. We now use similar
options as the other emacs packages, i.e. "x11", "motif", "xaw",
as well as "pop" and "inet6".
(3) Make the emacs*-nox11 packages simply remove all X11 options by
setting PKG_OPTIONS.emacs appropriately and include the corresponding
emacs Makefile. This allows for modifications to the emacs "X11"
versions to be automatically picked up by the "non-X11" versions.
The two corresponding versions of emacs now share the same version
numbering, including PKGREVISIONs.
Bump the PKGREVISIONs on all Emacs editor packages.
NetBSD sort objects to setting the field separator to the same value as
the record separator. Since in this case the surrounding code guarantees
there will be no tabs in the input set the field separator to tab.
Bump PKGREVISION.
so that on 64bit systems it is actually a negative number, not a very
large positive one. Should fix PR pkg/29351.
Thanks to Martijn van Buul for giving me access to an amd64 box so I
could track this down. Bump PKGREVISION.