2007-04-12 02:31:20 +00:00
|
|
|
|
GNU Emacs NEWS -- history of user-visible changes.
|
2007-02-11 01:18:25 +00:00
|
|
|
|
|
2019-01-01 00:59:58 +00:00
|
|
|
|
Copyright (C) 2016-2019 Free Software Foundation, Inc.
|
2007-02-11 01:18:25 +00:00
|
|
|
|
See the end of the file for license conditions.
|
1999-10-03 12:39:42 +00:00
|
|
|
|
|
2018-11-13 08:45:42 +00:00
|
|
|
|
Please send Emacs bug reports to 'bug-gnu-emacs@gnu.org'.
|
|
|
|
|
If possible, use 'M-x report-emacs-bug'.
|
2006-06-04 01:01:51 +00:00
|
|
|
|
|
2016-10-01 08:14:05 +00:00
|
|
|
|
This file is about changes in Emacs version 26.
|
2006-06-04 01:01:51 +00:00
|
|
|
|
|
2015-10-15 21:59:43 +00:00
|
|
|
|
See file HISTORY for a list of GNU Emacs versions and release dates.
|
2017-10-20 23:14:34 +00:00
|
|
|
|
See files NEWS.25, NEWS.24, ..., NEWS.18, and NEWS.1-17 for changes
|
|
|
|
|
in older Emacs versions.
|
2006-06-04 01:01:51 +00:00
|
|
|
|
|
2016-03-15 00:36:23 +00:00
|
|
|
|
You can narrow news to a specific version by calling 'view-emacs-news'
|
2018-11-13 08:45:42 +00:00
|
|
|
|
with a prefix argument or by typing 'C-u C-h C-n'.
|
2007-06-12 08:16:23 +00:00
|
|
|
|
|
2018-05-30 19:31:52 +00:00
|
|
|
|
|
|
|
|
|
* Installation Changes in Emacs 26.2
|
|
|
|
|
|
2018-08-21 15:58:15 +00:00
|
|
|
|
** Building Emacs with the '--with-xwidgets' option now requires WebKit2.
|
2018-06-01 08:37:56 +00:00
|
|
|
|
To build Emacs with xwidgets support, you will need to install the
|
|
|
|
|
webkit2gtk-4.0 package; version 2.12 or later is required.
|
|
|
|
|
(This change was actually made in Emacs 26.1, but was not called out
|
|
|
|
|
in its NEWS.)
|
|
|
|
|
|
2018-10-16 15:48:21 +00:00
|
|
|
|
** Installing Emacs now installs the emacs-module.h file.
|
|
|
|
|
The emacs-module.h file is now installed in the system-wide include
|
|
|
|
|
directory as part of the Emacs installation. This allows to build
|
|
|
|
|
Emacs modules outside of the Emacs source tree.
|
|
|
|
|
|
2018-05-30 19:31:52 +00:00
|
|
|
|
|
|
|
|
|
* Startup Changes in Emacs 26.2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Changes in Emacs 26.2
|
|
|
|
|
|
2018-06-09 12:41:21 +00:00
|
|
|
|
** Emacs is now compliant with the latest version 11.0 of the Unicode Standard.
|
|
|
|
|
|
2018-04-03 09:06:01 +00:00
|
|
|
|
** New variable 'xft-ignore-color-fonts'.
|
|
|
|
|
Default t means don't try to load color fonts when using Xft, as they
|
|
|
|
|
often cause crashes. Set it to nil if you really need those fonts.
|
|
|
|
|
|
2018-05-30 19:31:52 +00:00
|
|
|
|
|
|
|
|
|
* Editing Changes in Emacs 26.2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Changes in Specialized Modes and Packages in Emacs 26.2
|
|
|
|
|
|
2018-11-16 08:19:22 +00:00
|
|
|
|
** Dired
|
2018-12-22 13:18:59 +00:00
|
|
|
|
|
2018-11-16 08:19:22 +00:00
|
|
|
|
*** The 'Z' command on a directory name compresses all of its files.
|
|
|
|
|
It produces a compressed '.tar.gz' archive with all the files in the
|
|
|
|
|
directory and all of its subdirectories. For symmetry, 'Z' on a
|
2018-11-22 18:54:05 +00:00
|
|
|
|
'.tar.gz' or a '.tgz' archive extracts all the archived files into the
|
|
|
|
|
current directory; thus, typing 'Z' on a '.tar.gz' archive created by
|
|
|
|
|
a previous 'Z' command will extract the archived files into a
|
2018-11-22 23:34:48 +00:00
|
|
|
|
directory whose name is the archive name sans the '.tar.gz' extension.
|
|
|
|
|
(This change was actually made in Emacs 25.1 but was only
|
|
|
|
|
partially called out in its NEWS; 'tgz' handling was added in 26.1.)
|
2018-11-16 08:19:22 +00:00
|
|
|
|
|
2018-08-13 10:24:31 +00:00
|
|
|
|
** Ibuffer
|
|
|
|
|
|
|
|
|
|
*** New toggle 'ibuffer-do-toggle-lock', bound to 'L'.
|
|
|
|
|
|
2018-08-31 13:05:06 +00:00
|
|
|
|
** Imenu
|
|
|
|
|
|
|
|
|
|
*** The value for 'imenu-auto-rescan-maxout' has been increased to 600000.
|
|
|
|
|
|
2018-06-15 08:24:43 +00:00
|
|
|
|
** Gnus
|
|
|
|
|
|
|
|
|
|
*** Mailutils movemail will now be used if found at runtime.
|
2018-11-13 08:45:42 +00:00
|
|
|
|
The default value of 'mail-source-movemail-program' is now "movemail".
|
2018-06-15 08:24:43 +00:00
|
|
|
|
This ensures that the movemail program from GNU Mailutils will be used
|
|
|
|
|
if found in 'exec-path', even if it was not found at build time. To
|
2018-11-13 08:45:42 +00:00
|
|
|
|
use a different program, customize 'mail-source-movemail-program' to the
|
2018-06-15 08:24:43 +00:00
|
|
|
|
absolute file name of the desired executable.
|
|
|
|
|
|
2018-11-13 08:45:42 +00:00
|
|
|
|
** Shadowfile
|
|
|
|
|
|
|
|
|
|
*** shadowfile.el has been rewritten to support Tramp file names.
|
|
|
|
|
|
2018-06-01 08:37:56 +00:00
|
|
|
|
** Shell mode
|
|
|
|
|
|
|
|
|
|
*** Shell mode buffers now have 'scroll-conservatively' set to 101.
|
|
|
|
|
This is so as to better emulate the scrolling behavior of a text
|
|
|
|
|
terminal when new output is added to the screen buffer. To get back
|
|
|
|
|
the previous behavior, reset 'scroll-conservatively' to zero (or any
|
|
|
|
|
other value you like) in a function and add it to 'shell-mode-hook'.
|
|
|
|
|
(This change was actually made in Emacs 26.1, but was not called out
|
|
|
|
|
in its NEWS.)
|
|
|
|
|
|
2018-06-09 09:33:20 +00:00
|
|
|
|
** VC
|
|
|
|
|
|
|
|
|
|
*** VC support for Mercurial was improved.
|
|
|
|
|
Emacs now avoids invoking 'hg' as much as possible, for faster operation.
|
|
|
|
|
(This and the following changes were actually made in Emacs 26.1, but
|
|
|
|
|
were not called out in its NEWS.)
|
|
|
|
|
|
|
|
|
|
**** New vc-hg options.
|
|
|
|
|
The new option 'vc-hg-parse-hg-data-structures' controls whether vc-hg
|
|
|
|
|
will try parsing the Mercurial data structures directly instead of
|
|
|
|
|
running 'hg'; it defaults to t (set to nil if you want the pre-26.1
|
|
|
|
|
behavior).
|
|
|
|
|
The new option 'vc-hg-symbolic-revision-styles' controls how versions
|
|
|
|
|
in a Mercurial repository are presented symbolically on the mode line.
|
|
|
|
|
The new option 'vc-hg-use-file-version-for-mode-line-version' controls
|
|
|
|
|
whether the version shown on the mode line is that of the visited file
|
|
|
|
|
or of the repository working copy.
|
|
|
|
|
|
2018-11-13 08:45:42 +00:00
|
|
|
|
**** Display of Mercurial revisions in the mode line has changed.
|
2018-06-09 09:33:20 +00:00
|
|
|
|
Previously, the mode line displayed the local number (1, 2, 3, ...) of
|
|
|
|
|
the revision. Starting with Emacs 26.1, the default has changed, and
|
|
|
|
|
it now shows the global revision number, in the form of its changeset
|
|
|
|
|
hash value. To get back the previous behavior, customize the new
|
|
|
|
|
option 'vc-hg-symbolic-revision-styles' to the value '("{rev}")'.
|
|
|
|
|
|
2018-05-30 19:31:52 +00:00
|
|
|
|
|
|
|
|
|
* New Modes and Packages in Emacs 26.2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Incompatible Lisp Changes in Emacs 26.2
|
|
|
|
|
|
Adapt shadowfile.el for Tramp (Bug#4526, Bug#4846)
* etc/NEWS: Mention changes in shadowfile.el.
* lisp/shadowfile.el (top): Require 'tramp instead of 'ange-ftp.
(shadow-cluster): New defstruct.
(shadow-make-cluster, shadow-cluster-name, shadow-cluster-primary)
(shadow-cluster-regexp, shadow-get-user)
(shadow-parse-fullname): Remove.
(shadow-info-file, shadow-todo-file, shadow-system-name)
(shadow-homedir, shadow-regexp-superquote, shadow-suffix)
(shadow-set-cluster, shadow-get-cluster, shadow-site-name)
(shadow-name-site, shadow-site-primary, shadow-site-cluster)
(shadow-read-site, shadow-parse-name, shadow-make-fullname)
(shadow-replace-name-component, shadow-local-file)
(shadow-expand-cluster-in-file-name, shadow-contract-file-name)
(shadow-same-site, shadow-file-match, shadow-define-cluster)
(shadow-define-literal-group, shadow-define-regexp-group)
(shadow-make-group, shadow-shadows-of-1, shadow-read-files)
(shadow-write-info-file, shadow-write-todo-file)
(shadow-initialize): Adapt variables and functions.
* test/lisp/shadowfile-tests.el: New file.
2018-07-18 14:51:56 +00:00
|
|
|
|
** shadowfile config files have changed their syntax.
|
|
|
|
|
Existing files "~/.emacs.d/shadows" and "~/.emacs.d/shadow_todo" must
|
|
|
|
|
be removed prior using the changed 'shadow-*' commands.
|
|
|
|
|
|
2018-08-31 08:47:03 +00:00
|
|
|
|
** 'thread-alive-p' has been renamed to 'thread-live-p'.
|
|
|
|
|
The old name is an alias of the new name. Future Emacs version will
|
|
|
|
|
obsolete it.
|
|
|
|
|
|
2018-09-29 07:11:08 +00:00
|
|
|
|
** 'while-no-input' does not return due to input from subprocesses.
|
|
|
|
|
Input that arrived from subprocesses while some code executed inside
|
|
|
|
|
the 'while-no-input' form injected an internal buffer-switch event
|
|
|
|
|
that counted as input and would cause 'while-no-input' to return,
|
|
|
|
|
perhaps prematurely. These buffer-switch events are now by default
|
|
|
|
|
ignored by 'while-no-input'; if you need to get the old behavior,
|
|
|
|
|
remove 'buffer-switch' from the list of events in
|
|
|
|
|
'while-no-input-ignore-events'.
|
|
|
|
|
|
2018-05-30 19:31:52 +00:00
|
|
|
|
|
|
|
|
|
* Lisp Changes in Emacs 26.2
|
|
|
|
|
|
2018-01-21 21:45:43 +00:00
|
|
|
|
** The new function 'read-answer' accepts either long or short answers
|
|
|
|
|
depending on the new customizable variable 'read-answer-short'.
|
|
|
|
|
|
|
|
|
|
** New function 'assoc-delete-all'.
|
|
|
|
|
Like 'assq-delete-all', but uses 'equal' for comparison.
|
|
|
|
|
|
2018-09-15 08:07:16 +00:00
|
|
|
|
** The function 'thing-at-point' behaves as before Emacs 26.1.
|
|
|
|
|
The behavior of 'thing-at-point' when called with argument 'list' has
|
|
|
|
|
changed in Emacs 26.1, in that it didn't consider text inside comments
|
|
|
|
|
and strings as a potential list. This change is now reverted, and
|
|
|
|
|
'thing-at-point' behaves like it did before Emacs 26.1.
|
|
|
|
|
|
2018-12-22 13:18:59 +00:00
|
|
|
|
** To cater to use cases where comments and strings are to be ignored
|
2018-09-15 08:07:16 +00:00
|
|
|
|
when looking for a list, the function 'list-at-point' now takes an
|
|
|
|
|
optional argument to do so.
|
|
|
|
|
|
2018-05-30 19:31:52 +00:00
|
|
|
|
|
|
|
|
|
* Changes in Emacs 26.2 on Non-Free Operating Systems
|
|
|
|
|
|
2018-12-01 13:36:58 +00:00
|
|
|
|
** macOS features can now be detected at run-time as well as at
|
|
|
|
|
build-time. See nextstep/INSTALL for details.
|
|
|
|
|
(This change was actually made in Emacs 26.1, but was undocumented and
|
|
|
|
|
not called out in its NEWS.)
|
|
|
|
|
|
2015-11-25 14:44:20 +00:00
|
|
|
|
|
2016-10-01 08:14:05 +00:00
|
|
|
|
* Installation Changes in Emacs 26.1
|
2015-11-25 14:44:20 +00:00
|
|
|
|
|
2016-07-24 09:00:18 +00:00
|
|
|
|
** By default libgnutls is now required when building Emacs.
|
|
|
|
|
Use 'configure --with-gnutls=no' to build even when GnuTLS is missing.
|
|
|
|
|
|
2016-08-03 08:33:21 +00:00
|
|
|
|
** GnuTLS version 2.12.2 or later is now required, instead of merely
|
|
|
|
|
version 2.6.6 or later.
|
|
|
|
|
|
2017-03-17 06:50:37 +00:00
|
|
|
|
** The new option 'configure --with-mailutils' causes Emacs to rely on
|
2017-08-03 02:13:26 +00:00
|
|
|
|
GNU Mailutils to retrieve email. It is recommended, and is the
|
2018-11-13 08:45:42 +00:00
|
|
|
|
default if GNU Mailutils is installed. When '--with-mailutils' is not
|
2017-08-03 02:13:26 +00:00
|
|
|
|
in effect, the Emacs build procedure by default continues to build and
|
|
|
|
|
install a limited 'movemail' substitute that retrieves POP3 email only
|
2017-10-03 22:42:10 +00:00
|
|
|
|
via insecure channels. To avoid this problem, use either
|
2018-11-13 08:45:42 +00:00
|
|
|
|
'--with-mailutils' or '--without-pop' when configuring; '--without-pop'
|
2017-10-03 22:42:10 +00:00
|
|
|
|
is the default on platforms other than native MS-Windows.
|
2017-03-17 06:50:37 +00:00
|
|
|
|
|
2016-04-05 14:51:28 +00:00
|
|
|
|
** The new option 'configure --enable-gcc-warnings=warn-only' causes
|
2016-04-21 21:44:31 +00:00
|
|
|
|
GCC to issue warnings without stopping the build. This behavior is
|
|
|
|
|
now the default in developer builds. As before, use
|
2016-04-05 14:51:28 +00:00
|
|
|
|
'--disable-gcc-warnings' to suppress GCC's warnings, and
|
|
|
|
|
'--enable-gcc-warnings' to stop the build if GCC issues warnings.
|
|
|
|
|
|
2017-05-02 21:52:21 +00:00
|
|
|
|
** When GCC warnings are enabled, '--enable-check-lisp-object-type' is
|
|
|
|
|
now enabled by default when configuring.
|
|
|
|
|
|
2018-08-21 15:58:15 +00:00
|
|
|
|
** The Emacs server now has socket-launching support.
|
|
|
|
|
This allows socket based activation, where an external process like
|
|
|
|
|
systemd can invoke the Emacs server process upon a socket connection
|
|
|
|
|
event and hand the socket over to Emacs. Emacs uses this socket to
|
|
|
|
|
service emacsclient commands. This new functionality can be disabled
|
|
|
|
|
with the configure option '--disable-libsystemd'.
|
2016-04-16 09:43:01 +00:00
|
|
|
|
|
2018-08-21 15:58:15 +00:00
|
|
|
|
** A systemd user unit file is provided.
|
|
|
|
|
Use it in the standard way: 'systemctl --user enable emacs'. (If your
|
|
|
|
|
Emacs is installed in a non-standard location, you may need to copy
|
|
|
|
|
the emacs.service file to eg ~/.config/systemd/user/)
|
2016-11-13 23:46:31 +00:00
|
|
|
|
|
2016-03-22 18:01:30 +00:00
|
|
|
|
** New configure option '--disable-build-details' attempts to build an
|
2016-03-02 18:21:45 +00:00
|
|
|
|
Emacs that is more likely to be reproducible; that is, if you build
|
|
|
|
|
and install Emacs twice, the second Emacs is a copy of the first.
|
|
|
|
|
Deterministic builds omit the build date from the output of the
|
2017-09-02 09:37:51 +00:00
|
|
|
|
'emacs-version' and 'erc-cmd-SV' functions, and the leave the
|
|
|
|
|
following variables nil: 'emacs-build-system', 'emacs-build-time',
|
|
|
|
|
'erc-emacs-build-time'.
|
2016-03-02 18:21:45 +00:00
|
|
|
|
|
2017-09-14 18:35:31 +00:00
|
|
|
|
** Emacs can now be built with support for Little CMS.
|
|
|
|
|
If the lcms2 library is installed, Emacs will enable features built on
|
|
|
|
|
top of that library. The new configure option '--without-lcms2' can
|
|
|
|
|
be used to build without lcms2 support even if it is installed. Emacs
|
|
|
|
|
linked to Little CMS exposes color management functions in Lisp: the
|
2017-09-26 21:13:36 +00:00
|
|
|
|
color metrics 'lcms-cie-de2000' and 'lcms-cam02-ucs', as well as
|
|
|
|
|
functions for conversion to and from CIE CAM02 and CAM02-UCS.
|
2017-09-13 14:27:37 +00:00
|
|
|
|
|
2017-03-12 19:04:10 +00:00
|
|
|
|
** The configure option '--with-gameuser' now defaults to 'no',
|
|
|
|
|
as this appears to be the most common configuration in practice.
|
|
|
|
|
When it is 'no', the shared game directory and the auxiliary program
|
|
|
|
|
update-game-score are no longer needed and are not installed.
|
|
|
|
|
|
2016-03-07 16:22:37 +00:00
|
|
|
|
** Emacs no longer works on IRIX. We expect that Emacs users are not
|
|
|
|
|
affected by this, as SGI stopped supporting IRIX in December 2013.
|
|
|
|
|
|
2016-01-07 01:45:14 +00:00
|
|
|
|
|
2016-10-01 08:14:05 +00:00
|
|
|
|
* Startup Changes in Emacs 26.1
|
2016-01-07 01:45:14 +00:00
|
|
|
|
|
2017-05-30 02:13:53 +00:00
|
|
|
|
** New option '--fg-daemon'. This is the same as '--daemon', except
|
2016-11-16 07:28:47 +00:00
|
|
|
|
it runs in the foreground and does not fork. This is intended for
|
|
|
|
|
modern init systems such as systemd, which manage many of the traditional
|
2017-05-30 02:13:53 +00:00
|
|
|
|
aspects of daemon behavior themselves. '--bg-daemon' is now an alias
|
2016-11-16 07:28:47 +00:00
|
|
|
|
for '--daemon'.
|
|
|
|
|
|
2017-08-29 16:39:15 +00:00
|
|
|
|
** New option '--module-assertions'.
|
|
|
|
|
When given this option, Emacs will perform expensive correctness
|
|
|
|
|
checks when dealing with dynamic modules. This is intended for module
|
|
|
|
|
authors that wish to verify that their module conforms to the module
|
|
|
|
|
requirements. The option makes Emacs abort if a module-related
|
|
|
|
|
assertion triggers.
|
Implement module assertions for users
Add a new command-line option '-module-assertions' that users can
enable developing or debugging a module. If this option is present,
Emacs performs additional checks to verify that modules fulfill their
requirements. These checks are expensive and crash Emacs if modules
are invalid, so disable them by default.
This is a command-line option instead of an ordinary variable because
changing it while Emacs is running would cause data structure
imbalances.
* src/emacs.c (main): New command line option '-module-assertions'.
* src/emacs-module.c (module_assert_main_thread)
(module_assert_runtime, module_assert_env, module_assert_value):
New functions to assert module requirements.
(syms_of_module): New uninterned variable 'module-runtimes'.
(init_module_assertions, in_main_thread, module_abort): New helper
functions.
(initialize_environment): Initialize value list. If assertions are
enabled, use a heap-allocated environment object.
(finalize_environment): Add assertion that environment list is never
empty.
(finalize_runtime_unwind): Pop module runtime object stack.
(value_to_lisp): Assert that the value is valid.
(lisp_to_value): Record new value if assertions are enabled.
(mark_modules): Mark allocated object list.
(MODULE_FUNCTION_BEGIN_NO_CATCH)
(module_non_local_exit_check, module_non_local_exit_clear)
(module_non_local_exit_get, module_non_local_exit_signal)
(module_non_local_exit_throw): Assert thread and environment.
(module_get_environment): Assert thread and runtime.
(module_make_function, module_funcall, module_intern)
(module_funcall, module_make_integer, module_make_float)
(module_make_string, module_make_user_ptr, module_vec_get)
(funcall_module, Fmodule_load): Adapt callers.
(module_make_global_ref): If assertions are enabled, use the global
environment to store global values.
(module_free_global_ref): Remove value from global value list.
* test/Makefile.in (EMACSOPT): Enable module assertions when testing
modules.
* test/data/emacs-module/mod-test.c (Fmod_test_invalid_store)
(Fmod_test_invalid_load): New functions to test module assertions.
(emacs_module_init): Bind the new functions.
* test/src/emacs-module-tests.el (mod-test-emacs): New constant for
the Emacs binary file.
(mod-test-file): New constant for the test module file name.
(module--test-assertions): New unit test.
2017-06-05 11:29:14 +00:00
|
|
|
|
|
2017-10-14 10:52:05 +00:00
|
|
|
|
** Emacs now supports 24-bit colors on capable text terminals.
|
2017-02-18 11:04:55 +00:00
|
|
|
|
Terminal is automatically initialized to use 24-bit colors if the
|
|
|
|
|
required capabilities are found in terminfo. See the FAQ node
|
2017-10-14 10:52:05 +00:00
|
|
|
|
"(efaq) Colors on a TTY" for more information.
|
2017-02-18 11:04:55 +00:00
|
|
|
|
|
2017-07-22 09:02:16 +00:00
|
|
|
|
** Emacs now obeys the X resource "scrollBar" at startup.
|
|
|
|
|
The effect is similar to that of "toolBar" resource on the tool bar.
|
|
|
|
|
|
2016-01-05 18:03:38 +00:00
|
|
|
|
|
2016-10-01 08:14:05 +00:00
|
|
|
|
* Changes in Emacs 26.1
|
2015-02-27 13:52:12 +00:00
|
|
|
|
|
2018-08-21 15:58:15 +00:00
|
|
|
|
** Option 'buffer-offer-save' can be set to new value, 'always'.
|
|
|
|
|
When set to 'always', the command 'save-some-buffers' will always
|
|
|
|
|
offer this buffer for saving.
|
2017-09-24 21:01:21 +00:00
|
|
|
|
|
2017-09-16 09:45:24 +00:00
|
|
|
|
** Security vulnerability related to Enriched Text mode is removed.
|
|
|
|
|
|
|
|
|
|
*** Enriched Text mode does not evaluate Lisp in 'display' properties.
|
|
|
|
|
This feature allows saving 'display' properties as part of text.
|
|
|
|
|
Emacs 'display' properties support evaluation of arbitrary Lisp forms
|
|
|
|
|
as part of processing the property for display, so displaying Enriched
|
|
|
|
|
Text could be vulnerable to executing arbitrary malicious Lisp code
|
|
|
|
|
included in the text (e.g., sent as part of an email message).
|
|
|
|
|
Therefore, execution of arbitrary Lisp forms in 'display' properties
|
|
|
|
|
decoded by Enriched Text mode is now disabled by default. Customize
|
|
|
|
|
the new option 'enriched-allow-eval-in-display-props' to a non-nil
|
|
|
|
|
value to allow Lisp evaluation in decoded 'display' properties.
|
|
|
|
|
|
|
|
|
|
This vulnerability was introduced in Emacs 21.1. To work around that
|
|
|
|
|
in Emacs versions before 25.3, append the following to your ~/.emacs
|
|
|
|
|
init file:
|
|
|
|
|
|
|
|
|
|
(eval-after-load "enriched"
|
|
|
|
|
'(defun enriched-decode-display-prop (start end &optional param)
|
|
|
|
|
(list start end)))
|
|
|
|
|
|
2017-09-12 23:06:12 +00:00
|
|
|
|
** Functions in 'write-contents-functions' can fully short-circuit the
|
|
|
|
|
'save-buffer' process. Previously, saving a buffer that was not
|
|
|
|
|
visiting a file would always prompt for a file name. Now it only does
|
|
|
|
|
so if 'write-contents-functions' is nil (or all its functions return
|
2017-09-24 21:01:21 +00:00
|
|
|
|
nil).
|
2017-09-12 23:06:12 +00:00
|
|
|
|
|
2017-07-22 07:34:18 +00:00
|
|
|
|
** New variable 'executable-prefix-env' for inserting magic signatures.
|
|
|
|
|
This variable affects the format of the interpreter magic number
|
|
|
|
|
inserted by 'executable-set-magic'. If non-nil, the magic number now
|
|
|
|
|
takes the form "#!/usr/bin/env interpreter", otherwise the value
|
|
|
|
|
determined by 'executable-prefix', which is by default
|
|
|
|
|
"#!/path/to/interpreter". By default, 'executable-prefix-env' is nil,
|
|
|
|
|
so the default behavior is not changed.
|
|
|
|
|
|
2017-02-18 01:15:21 +00:00
|
|
|
|
** The variable 'emacs-version' no longer includes the build number.
|
|
|
|
|
This is now stored separately in a new variable, 'emacs-build-number'.
|
|
|
|
|
|
2016-12-08 16:35:40 +00:00
|
|
|
|
** Emacs now provides a limited form of concurrency with Lisp threads.
|
|
|
|
|
Concurrency in Emacs Lisp is "mostly cooperative", meaning that
|
|
|
|
|
Emacs will only switch execution between threads at well-defined
|
|
|
|
|
times: when Emacs waits for input, during blocking operations related
|
|
|
|
|
to threads (such as mutex locking), or when the current thread
|
|
|
|
|
explicitly yields. Global variables are shared among all threads, but
|
|
|
|
|
a 'let' binding is thread-local. Each thread also has its own current
|
|
|
|
|
buffer and its own match data.
|
|
|
|
|
|
2017-10-14 10:52:05 +00:00
|
|
|
|
See the chapter "(elisp) Threads" in the ELisp manual for full
|
|
|
|
|
documentation of these facilities.
|
2016-12-08 16:35:40 +00:00
|
|
|
|
|
2016-10-27 15:05:24 +00:00
|
|
|
|
** The new user variable 'electric-quote-chars' provides a list
|
|
|
|
|
of curved quotes for 'electric-quote-mode', allowing user to choose
|
|
|
|
|
the types of quotes to be used.
|
|
|
|
|
|
2017-06-28 21:47:57 +00:00
|
|
|
|
** The new user option 'electric-quote-context-sensitive' makes
|
|
|
|
|
'electric-quote-mode' context sensitive. If it is non-nil, you can
|
|
|
|
|
type an ASCII apostrophe to insert an opening or closing quote,
|
|
|
|
|
depending on context. Emacs will replace the apostrophe by an opening
|
|
|
|
|
quote character at the beginning of the buffer, the beginning of a
|
|
|
|
|
line, after a whitespace character, and after an opening parenthesis;
|
|
|
|
|
and it will replace the apostrophe by a closing quote character in all
|
|
|
|
|
other cases.
|
|
|
|
|
|
2017-07-03 16:46:10 +00:00
|
|
|
|
** The new variable 'electric-quote-inhibit-functions' controls when
|
|
|
|
|
to disable electric quoting based on context. Major modes can add
|
|
|
|
|
functions to this list; Emacs will temporarily disable
|
|
|
|
|
'electric-quote-mode' whenever any of the functions returns non-nil.
|
|
|
|
|
This can be used by major modes that derive from 'text-mode' but allow
|
|
|
|
|
inline code segments, such as 'markdown-mode'.
|
2017-06-28 21:47:57 +00:00
|
|
|
|
|
2016-11-08 17:42:24 +00:00
|
|
|
|
** The new user variable 'dired-omit-case-fold' allows the user to
|
|
|
|
|
customize the case-sensitivity of dired-omit-mode. It defaults to
|
|
|
|
|
the same sensitivity as that of the filesystem for the corresponding
|
|
|
|
|
dired buffer.
|
|
|
|
|
|
Add double-buffering support to reduce flicker
* src/dispextern.h (struct glyph_string): Remove window member
(block_buffer_flips, unblock_buffer_flips)
(buffer_flipping_blocked_p): Declare.
* src/xterm.h (struct x_display_info): New member supports_xdbe.
(struct x_output): New members draw_desc and need_buffer_flip.
(FRAME_X_DRAWABLE, FRAME_X_RAW_DRAWABLE)
(FRAME_X_DOUBLE_BUFFERED_P)
(FRAME_X_NEED_BUFFER_FLIP): New macros.
(set_up_x_back_buffer, tear_down_x_back_buffer)
(initial_set_up_x_back_buffer): Declare.
* src/xterm.c: Include Xdbe.h.
(x_begin_cr_clip, x_fill_rectangle, x_draw_rectangle)
(x_draw_vertical_window_border, x_update_end)
(x_setup_relief_color, x_draw_relief_rect)
(x_draw_fringe_bitmap, x_shift_glyphs_for_insert)
(x_scroll_run, x_draw_hollow_cursor, x_draw_bar_cursor): Use
FRAME_X_DRAWABLE instead of FRAME_X_WINDOW; rename local
variables appropriately; substitute calls to XClearArea with
x_clear_area, which DTRT for double buffering.
(x_clear_window, x_clear_area): In double-buffering mode, use
rect-drawing X functions instead of XClearWindow and
XClearArea, which always operate on the front buffer.
(show_back_buffer): New function.
(XTframe_up_to_date): Call show_back_buffer when done.
(x_clear_frame, x_clear_frame_area): Remove obsolete calls to
gtk_widget_queue_draw to refresh scroll bars; scroll bars are
now independent X windows.
(handle_one_xevent): Call font_drop_xrender_surfaces when
XftDraw might need regenerating; perform buffer flip when
responding to Expose events; issue front-buffer clearing
commands as stopgap while we wait for redisplay.
Call flush_dirty_back_buffers.
(x_make_frame_visible): Un-bitrot comment; move XSETFRAME
earlier in function.
(x_free_frame_resources): Call tear_down_x_back_buffer when
destroying frame.
(x_term_init): Attempt to initialize double buffer extension.
(x_flip_and_flush): New function.
(x_redisplay_interface): Point to x_flip_and_flush instead of
x_flip directly.
(flush_dirty_back_buffers): New function.
(x_create_terminal): Register buffer_flipping_unblocked_hook.
* src/xftfont.c (xftfont_drop_xrender_surfaces): Use
FRAME_X_DRAWABLE instead of FRAME_X_WINDOW.
(xftfont_draw): Call x_mark_frame_dirty.
(xftfont_drop_xrender_surfaces): New function.
(syms_of_xftfont): Register it.
* src/xfont.c (xfont_draw): Use FRAME_X_DRAWABLE instead of
FRAME_X_WINDOW.
* src/xfns.c: Include Xdbe.h.
(x_set_inhibit_double_buffering, set_up_x_back_buffer)
(Fx_double_buffered_p): New functions.
(x_window): Call initial_set_up_x_back_buffer.
(x_make_gc): Use FRAME_X_DRAWABLE instead of FRAME_X_WINDOW.
(Fx_create_frame): Configure `inhibit-double-buffering'
frame parameter.
(x_create_tip_frame): Call initial_set_up_x_back_buffer.
(x_frame_parm_handlers): Register
x_set_inhibit_double_buffering.
(syms_of_xfns): Register Sx_double_buffered_p.
(x_mark_frame_dirty): Define.
* src/xfaces.c (x_create_gc): Use FRAME_X_DRAWABLE instead of
FRAME_X_WINDOW.
* src/xdisp.c (remember_mouse_glyph, init_glyph_string): Use
FRAME_X_DRAWABLE instead of FRAME_X_WINDOW.
(redisplay_internal): Restart redisplay if a frame is garbaged
during updating; explain why. Block buffer flips
during redisplay.
(redisplay_preserve_echo_area): Block buffer flip during call
to redisplay_internal.
(buffer_flip_blocked_depth): New variable.
(block_buffer_flips, unblock_buffer_flips)
(buffer_flipping_blocked_p): New functions.
(init_glyph_string): Stop setting window member of struct
glyph_string.
* src/w32fns.c (w32_frame_parm_handlers): Add placeholder for
x_set_inhibit_double_buffering.
* src/termhooks.h (struct terminal): Add
buffer_flipping_unblocked_hook.
* src/nsfns.m (ns_frame_parm_handlers): Add placeholder for
x_set_inhibit_double_buffering.
* src/image.c (x_create_bitmap_from_data)
(x_create_bitmap_from_file, x_create_x_image_and_pixmap)
(Create_Pixmap_From_Bitmap_Data)
(x_create_bitmap_from_xpm_data, xpm_load, gs_load): Use
FRAME_X_DRAWABLE instead of FRAME_X_WINDOW; rename local
variables appropriately.
* src/gtkutil.c: Include Xdbe.h.
(xg_get_widget_from_map): Forward declare.
(xg_clear_under_internal_border): Remove obsolete calls to
refresh scroll bars.
(xg_create_frame_widgets): Call initial_set_up_x_back_buffer.
(xg_free_frame_widgets): Call tear_down_x_back_buffer; reset
FRAME_X_DRAWABLE as well as FRAME_X_WINDOW and for the
same reason.
(xg_set_background_color): Set scroll bar background colors.
(xg_finish_scroll_bar_creation): New function with common
logic of xg_create_scroll_bar, xg_create_horizontal_scroll_bar. Force
scroll bars to be real X11 windows.
(xg_create_scroll_bar, xg_create_horizontal_scroll_bar): Call
xg_finish_scroll_bar_creation.
(xg_update_scrollbar_pos, xg_update_horizontal_scrollbar_pos):
Remove obsolete calls to refresh scroll bars; fix comments.
* src/ftxfont.c (ftxfont_get_gcs, ftxfont_draw_bitmap,
(ftxfont_draw_background): Use FRAME_X_DRAWABLE instead of
FRAME_X_WINDOW.
* src/frame.c (frame_parms): Add table entry for new
`inhibit-double-buffering' frame parameter
(syms_of_frame): Register Qinhibit_double_buffering.
* src/font.h (struct font_driver): Add new `flush_frame_caches' hook.
(font_drop_xrender_surfaces): Declare.
* src/font.c (font_drop_xrender_surfaces): New function.
* src/Makefile.in (XDBE_LIBS, XDBE_CFLAGS): Substitute.
* etc/NEWS: Mention use of double buffering
* doc/lispref/frames.texi (Management Parameters): Document
`inhibit-double-buffering' frame parameters.
(Visibility of Frames): Document `x-double-buffered-p'.
* configure.ac: Check for the X double buffer extension
2016-10-21 03:34:36 +00:00
|
|
|
|
** Emacs now uses double buffering to reduce flicker when editing and
|
|
|
|
|
resizing graphical Emacs frames on the X Window System. This support
|
|
|
|
|
requires the DOUBLE-BUFFER extension, which major X servers have
|
2017-01-21 18:31:33 +00:00
|
|
|
|
supported for many years. If your system has this extension, but an
|
|
|
|
|
Emacs built with double buffering misbehaves on some displays you use,
|
|
|
|
|
you can disable the feature by adding
|
|
|
|
|
|
|
|
|
|
'(inhibit-double-buffering . t)
|
|
|
|
|
|
2017-05-06 18:03:06 +00:00
|
|
|
|
to default-frame-alist. Or inject this parameter into the selected
|
|
|
|
|
frame by evaluating this form:
|
2017-01-21 18:31:33 +00:00
|
|
|
|
|
|
|
|
|
(modify-frame-parameters nil '((inhibit-double-buffering . t)))
|
Add double-buffering support to reduce flicker
* src/dispextern.h (struct glyph_string): Remove window member
(block_buffer_flips, unblock_buffer_flips)
(buffer_flipping_blocked_p): Declare.
* src/xterm.h (struct x_display_info): New member supports_xdbe.
(struct x_output): New members draw_desc and need_buffer_flip.
(FRAME_X_DRAWABLE, FRAME_X_RAW_DRAWABLE)
(FRAME_X_DOUBLE_BUFFERED_P)
(FRAME_X_NEED_BUFFER_FLIP): New macros.
(set_up_x_back_buffer, tear_down_x_back_buffer)
(initial_set_up_x_back_buffer): Declare.
* src/xterm.c: Include Xdbe.h.
(x_begin_cr_clip, x_fill_rectangle, x_draw_rectangle)
(x_draw_vertical_window_border, x_update_end)
(x_setup_relief_color, x_draw_relief_rect)
(x_draw_fringe_bitmap, x_shift_glyphs_for_insert)
(x_scroll_run, x_draw_hollow_cursor, x_draw_bar_cursor): Use
FRAME_X_DRAWABLE instead of FRAME_X_WINDOW; rename local
variables appropriately; substitute calls to XClearArea with
x_clear_area, which DTRT for double buffering.
(x_clear_window, x_clear_area): In double-buffering mode, use
rect-drawing X functions instead of XClearWindow and
XClearArea, which always operate on the front buffer.
(show_back_buffer): New function.
(XTframe_up_to_date): Call show_back_buffer when done.
(x_clear_frame, x_clear_frame_area): Remove obsolete calls to
gtk_widget_queue_draw to refresh scroll bars; scroll bars are
now independent X windows.
(handle_one_xevent): Call font_drop_xrender_surfaces when
XftDraw might need regenerating; perform buffer flip when
responding to Expose events; issue front-buffer clearing
commands as stopgap while we wait for redisplay.
Call flush_dirty_back_buffers.
(x_make_frame_visible): Un-bitrot comment; move XSETFRAME
earlier in function.
(x_free_frame_resources): Call tear_down_x_back_buffer when
destroying frame.
(x_term_init): Attempt to initialize double buffer extension.
(x_flip_and_flush): New function.
(x_redisplay_interface): Point to x_flip_and_flush instead of
x_flip directly.
(flush_dirty_back_buffers): New function.
(x_create_terminal): Register buffer_flipping_unblocked_hook.
* src/xftfont.c (xftfont_drop_xrender_surfaces): Use
FRAME_X_DRAWABLE instead of FRAME_X_WINDOW.
(xftfont_draw): Call x_mark_frame_dirty.
(xftfont_drop_xrender_surfaces): New function.
(syms_of_xftfont): Register it.
* src/xfont.c (xfont_draw): Use FRAME_X_DRAWABLE instead of
FRAME_X_WINDOW.
* src/xfns.c: Include Xdbe.h.
(x_set_inhibit_double_buffering, set_up_x_back_buffer)
(Fx_double_buffered_p): New functions.
(x_window): Call initial_set_up_x_back_buffer.
(x_make_gc): Use FRAME_X_DRAWABLE instead of FRAME_X_WINDOW.
(Fx_create_frame): Configure `inhibit-double-buffering'
frame parameter.
(x_create_tip_frame): Call initial_set_up_x_back_buffer.
(x_frame_parm_handlers): Register
x_set_inhibit_double_buffering.
(syms_of_xfns): Register Sx_double_buffered_p.
(x_mark_frame_dirty): Define.
* src/xfaces.c (x_create_gc): Use FRAME_X_DRAWABLE instead of
FRAME_X_WINDOW.
* src/xdisp.c (remember_mouse_glyph, init_glyph_string): Use
FRAME_X_DRAWABLE instead of FRAME_X_WINDOW.
(redisplay_internal): Restart redisplay if a frame is garbaged
during updating; explain why. Block buffer flips
during redisplay.
(redisplay_preserve_echo_area): Block buffer flip during call
to redisplay_internal.
(buffer_flip_blocked_depth): New variable.
(block_buffer_flips, unblock_buffer_flips)
(buffer_flipping_blocked_p): New functions.
(init_glyph_string): Stop setting window member of struct
glyph_string.
* src/w32fns.c (w32_frame_parm_handlers): Add placeholder for
x_set_inhibit_double_buffering.
* src/termhooks.h (struct terminal): Add
buffer_flipping_unblocked_hook.
* src/nsfns.m (ns_frame_parm_handlers): Add placeholder for
x_set_inhibit_double_buffering.
* src/image.c (x_create_bitmap_from_data)
(x_create_bitmap_from_file, x_create_x_image_and_pixmap)
(Create_Pixmap_From_Bitmap_Data)
(x_create_bitmap_from_xpm_data, xpm_load, gs_load): Use
FRAME_X_DRAWABLE instead of FRAME_X_WINDOW; rename local
variables appropriately.
* src/gtkutil.c: Include Xdbe.h.
(xg_get_widget_from_map): Forward declare.
(xg_clear_under_internal_border): Remove obsolete calls to
refresh scroll bars.
(xg_create_frame_widgets): Call initial_set_up_x_back_buffer.
(xg_free_frame_widgets): Call tear_down_x_back_buffer; reset
FRAME_X_DRAWABLE as well as FRAME_X_WINDOW and for the
same reason.
(xg_set_background_color): Set scroll bar background colors.
(xg_finish_scroll_bar_creation): New function with common
logic of xg_create_scroll_bar, xg_create_horizontal_scroll_bar. Force
scroll bars to be real X11 windows.
(xg_create_scroll_bar, xg_create_horizontal_scroll_bar): Call
xg_finish_scroll_bar_creation.
(xg_update_scrollbar_pos, xg_update_horizontal_scrollbar_pos):
Remove obsolete calls to refresh scroll bars; fix comments.
* src/ftxfont.c (ftxfont_get_gcs, ftxfont_draw_bitmap,
(ftxfont_draw_background): Use FRAME_X_DRAWABLE instead of
FRAME_X_WINDOW.
* src/frame.c (frame_parms): Add table entry for new
`inhibit-double-buffering' frame parameter
(syms_of_frame): Register Qinhibit_double_buffering.
* src/font.h (struct font_driver): Add new `flush_frame_caches' hook.
(font_drop_xrender_surfaces): Declare.
* src/font.c (font_drop_xrender_surfaces): New function.
* src/Makefile.in (XDBE_LIBS, XDBE_CFLAGS): Substitute.
* etc/NEWS: Mention use of double buffering
* doc/lispref/frames.texi (Management Parameters): Document
`inhibit-double-buffering' frame parameters.
(Visibility of Frames): Document `x-double-buffered-p'.
* configure.ac: Check for the X double buffer extension
2016-10-21 03:34:36 +00:00
|
|
|
|
|
2017-10-14 10:52:05 +00:00
|
|
|
|
** The customization group 'wp', whose label was "text", is now
|
|
|
|
|
deprecated. Use the new group 'text', which inherits from 'wp',
|
|
|
|
|
instead.
|
2016-10-08 13:37:42 +00:00
|
|
|
|
|
2016-08-31 03:54:05 +00:00
|
|
|
|
** The new function 'call-shell-region' executes a command in an
|
2016-08-25 13:17:56 +00:00
|
|
|
|
inferior shell with the buffer region as input.
|
|
|
|
|
|
2016-08-26 06:27:37 +00:00
|
|
|
|
** The new user option 'shell-command-dont-erase-buffer' controls
|
2016-08-16 09:18:44 +00:00
|
|
|
|
if the output buffer is erased between shell commands; if non-nil,
|
|
|
|
|
the output buffer is not erased; this variable also controls where
|
|
|
|
|
to set the point in the output buffer: beginning of the output,
|
|
|
|
|
end of the buffer or save the point.
|
2016-08-26 06:27:37 +00:00
|
|
|
|
When 'shell-command-dont-erase-buffer' is nil, the default value,
|
2016-11-04 22:07:01 +00:00
|
|
|
|
the behavior of 'shell-command', 'shell-command-on-region' and
|
2016-08-16 09:18:44 +00:00
|
|
|
|
'async-shell-command' is as usual.
|
|
|
|
|
|
2017-06-28 21:40:33 +00:00
|
|
|
|
** The new user option 'async-shell-command-display-buffer' controls
|
|
|
|
|
whether the output buffer of an asynchronous command is shown
|
|
|
|
|
immediately, or only when there is output.
|
|
|
|
|
|
2017-12-22 09:19:56 +00:00
|
|
|
|
** New user option 'mouse-select-region-move-to-beginning'.
|
|
|
|
|
This option controls the position of point when double-clicking
|
|
|
|
|
mouse-1 on the end of a parenthetical grouping or string-delimiter:
|
|
|
|
|
the default value nil keeps point at the end of the region, setting it
|
|
|
|
|
to non-nil moves point to the beginning of the region.
|
2016-07-08 15:36:55 +00:00
|
|
|
|
|
2017-12-22 09:19:56 +00:00
|
|
|
|
** New user option 'mouse-drag-and-drop-region'.
|
2018-02-04 17:18:39 +00:00
|
|
|
|
This option allows you to drag the entire region of text to another
|
|
|
|
|
place or another buffer. Its behavior is customizable via the new
|
|
|
|
|
options 'mouse-drag-and-drop-region-cut-when-buffers-differ',
|
2017-12-22 09:19:56 +00:00
|
|
|
|
'mouse-drag-and-drop-region-show-tooltip', and
|
2017-12-22 08:39:07 +00:00
|
|
|
|
'mouse-drag-and-drop-region-show-cursor'.
|
2017-05-27 11:57:11 +00:00
|
|
|
|
|
2016-09-27 18:47:23 +00:00
|
|
|
|
** The new user option 'confirm-kill-processes' allows the user to
|
|
|
|
|
skip a confirmation prompt for killing subprocesses when exiting
|
|
|
|
|
Emacs. When set to t (the default), Emacs will prompt for
|
|
|
|
|
confirmation before killing subprocesses on exit, which is the same
|
|
|
|
|
behavior as before.
|
|
|
|
|
|
2016-05-02 01:52:50 +00:00
|
|
|
|
** 'find-library-name' will now fall back on looking at 'load-history'
|
2016-05-01 23:49:01 +00:00
|
|
|
|
to try to locate libraries that have been loaded with an explicit path
|
2016-05-02 01:52:50 +00:00
|
|
|
|
outside 'load-path'.
|
2016-05-01 23:49:01 +00:00
|
|
|
|
|
2016-05-02 01:52:50 +00:00
|
|
|
|
** Faces in 'minibuffer-prompt-properties' no longer overwrite properties
|
|
|
|
|
in the text in functions like 'read-from-minibuffer', but instead are
|
2016-05-01 14:53:38 +00:00
|
|
|
|
added to the end of the face list. This allows users to say things
|
2016-05-02 01:52:50 +00:00
|
|
|
|
like '(read-from-minibuffer (propertize "Enter something: " 'face 'bold))'.
|
2016-05-01 14:53:38 +00:00
|
|
|
|
|
2016-05-02 01:52:50 +00:00
|
|
|
|
** The new variable 'extended-command-suggest-shorter' has been added
|
|
|
|
|
to control whether to suggest shorter 'M-x' commands or not.
|
2016-04-30 15:29:46 +00:00
|
|
|
|
|
2016-05-02 01:52:50 +00:00
|
|
|
|
** icomplete now respects 'completion-ignored-extensions'.
|
2016-04-28 17:31:43 +00:00
|
|
|
|
|
2016-05-02 01:52:50 +00:00
|
|
|
|
** Non-breaking hyphens are now displayed with the 'nobreak-hyphen'
|
|
|
|
|
face instead of the 'escape-glyph' face.
|
2016-04-28 16:09:10 +00:00
|
|
|
|
|
2016-10-17 01:48:19 +00:00
|
|
|
|
** Approximations to quotes are now displayed with the new 'homoglyph'
|
|
|
|
|
face instead of the 'escape-glyph' face.
|
|
|
|
|
|
2017-08-12 07:12:36 +00:00
|
|
|
|
** New face 'header-line-highlight'.
|
|
|
|
|
This face is the header-line analogue of 'mode-line-highlight'; it
|
|
|
|
|
should be the preferred mouse-face for mouse-sensitive elements in the
|
|
|
|
|
header line.
|
|
|
|
|
|
2016-05-02 01:52:50 +00:00
|
|
|
|
** 'C-x h' ('mark-whole-buffer') will now avoid marking the prompt
|
2016-04-27 17:52:46 +00:00
|
|
|
|
part of minibuffers.
|
|
|
|
|
|
2016-03-29 15:24:39 +00:00
|
|
|
|
** 'fill-paragraph' no longer marks the buffer as changed unless it
|
2016-03-28 17:11:22 +00:00
|
|
|
|
actually changed something.
|
|
|
|
|
|
2016-03-22 18:01:30 +00:00
|
|
|
|
** The locale language name 'ca' is now mapped to the language
|
|
|
|
|
environment 'Catalan', which has been added.
|
2016-03-20 11:01:23 +00:00
|
|
|
|
|
2016-04-24 20:17:25 +00:00
|
|
|
|
** 'align-regexp' has a separate history for its interactive argument.
|
2016-03-22 18:01:30 +00:00
|
|
|
|
'align-regexp' no longer shares its history with all other
|
2016-04-24 20:17:25 +00:00
|
|
|
|
history-less functions that use 'read-string'.
|
2016-02-28 04:45:18 +00:00
|
|
|
|
|
2016-02-22 05:18:32 +00:00
|
|
|
|
** The networking code has been reworked so that it's more
|
|
|
|
|
asynchronous than it was (when specifying :nowait t in
|
2016-03-22 18:01:30 +00:00
|
|
|
|
'make-network-process'). How asynchronous it is varies based on the
|
2016-02-22 05:18:32 +00:00
|
|
|
|
capabilities of the system, but on a typical GNU/Linux system the DNS
|
|
|
|
|
resolution, the connection, and (for TLS streams) the TLS negotiation
|
|
|
|
|
are all done without blocking the main Emacs thread. To get
|
|
|
|
|
asynchronous TLS, the TLS boot parameters have to be passed in (see
|
|
|
|
|
the manual for details).
|
|
|
|
|
|
2016-03-22 18:01:30 +00:00
|
|
|
|
Certain process oriented functions (like 'process-datagram-address')
|
2016-02-22 05:18:32 +00:00
|
|
|
|
will block until socket setup has been performed. The recommended way
|
|
|
|
|
to deal with asynchronous sockets is to avoid interacting with them
|
|
|
|
|
until they have changed status to "run". This is most easily done
|
|
|
|
|
from a process sentinel.
|
|
|
|
|
|
2016-03-22 18:01:30 +00:00
|
|
|
|
** 'make-network-process' and 'open-network-stream' sometimes allowed
|
2016-03-08 02:54:25 +00:00
|
|
|
|
:service to be an integer string (e.g., :service "993") and sometimes
|
|
|
|
|
required an integer (e.g., :service 993). This difference has been
|
|
|
|
|
eliminated, and integer strings work everywhere.
|
2016-02-25 05:24:29 +00:00
|
|
|
|
|
2016-04-24 20:17:25 +00:00
|
|
|
|
** It is possible to disable attempted recovery on fatal signals.
|
|
|
|
|
Two new variables support disabling attempts to recover from stack
|
2016-01-05 18:03:38 +00:00
|
|
|
|
overflow and to avoid automatic auto-save when Emacs is delivered a
|
2017-10-14 10:52:05 +00:00
|
|
|
|
fatal signal. 'attempt-stack-overflow-recovery', if set to nil,
|
2016-01-05 18:03:38 +00:00
|
|
|
|
will disable attempts to recover from C stack overflows; Emacs will
|
|
|
|
|
then crash as with any other fatal signal.
|
2017-10-14 10:52:05 +00:00
|
|
|
|
'attempt-orderly-shutdown-on-fatal-signal', if set to nil, will
|
2016-01-05 18:03:38 +00:00
|
|
|
|
disable attempts to auto-save the session and shut down in an orderly
|
|
|
|
|
fashion when Emacs receives a fatal signal; instead, Emacs will
|
2017-10-14 10:52:05 +00:00
|
|
|
|
terminate immediately. Both variables are non-nil by default.
|
2016-01-05 18:03:38 +00:00
|
|
|
|
These variables are for users who would like to avoid the small
|
|
|
|
|
probability of data corruption due to techniques Emacs uses to recover
|
|
|
|
|
in these situations.
|
|
|
|
|
|
2016-05-06 18:58:49 +00:00
|
|
|
|
** File local and directory local variables are now initialized each
|
|
|
|
|
time the major mode is set, not just when the file is first visited.
|
|
|
|
|
These local variables will thus not vanish on setting a major mode.
|
|
|
|
|
|
2016-04-24 11:55:56 +00:00
|
|
|
|
** A second dir-local file (.dir-locals-2.el) is now accepted.
|
2017-11-28 17:17:48 +00:00
|
|
|
|
See the doc string of 'dir-locals-file' for more information.
|
2016-04-24 11:55:56 +00:00
|
|
|
|
|
2016-11-14 12:56:58 +00:00
|
|
|
|
** Connection-local variables can be used to specify local variables
|
2016-11-14 16:13:09 +00:00
|
|
|
|
with a value depending on the connected remote server. For details,
|
2017-10-14 10:52:05 +00:00
|
|
|
|
see the node "(elisp) Connection Local Variables" in the ELisp manual.
|
2016-11-14 12:56:58 +00:00
|
|
|
|
|
2016-04-24 11:55:56 +00:00
|
|
|
|
** International domain names (IDNA) are now encoded via the new
|
2017-09-02 09:37:51 +00:00
|
|
|
|
puny.el library, so that one can visit Web sites with non-ASCII URLs.
|
2016-04-24 11:55:56 +00:00
|
|
|
|
|
2017-09-20 02:21:37 +00:00
|
|
|
|
** The new 'list-timers' command lists all active timers in a buffer,
|
2016-04-24 11:55:56 +00:00
|
|
|
|
where you can cancel them with the 'c' command.
|
|
|
|
|
|
2016-05-27 01:47:18 +00:00
|
|
|
|
** 'switch-to-buffer-preserve-window-point' now defaults to t.
|
2017-10-17 08:24:54 +00:00
|
|
|
|
Applications that call 'switch-to-buffer' and want to show the buffer at
|
|
|
|
|
the position of its point should use 'pop-to-buffer-same-window' in lieu
|
|
|
|
|
of 'switch-to-buffer'.
|
2016-05-27 01:47:18 +00:00
|
|
|
|
|
2016-09-30 13:22:26 +00:00
|
|
|
|
** The new variable 'debugger-stack-frame-as-list' allows displaying
|
|
|
|
|
all call stack frames in a Lisp backtrace buffer as lists. Both
|
|
|
|
|
debug.el and edebug.el have been updated to heed to this variable.
|
|
|
|
|
|
2017-06-28 11:23:47 +00:00
|
|
|
|
** Values in call stack frames are now displayed using 'cl-prin1'.
|
2017-10-14 10:52:05 +00:00
|
|
|
|
The old behavior of using 'prin1' can be restored by customizing the
|
2017-06-28 11:23:47 +00:00
|
|
|
|
new option 'debugger-print-function'.
|
|
|
|
|
|
2017-08-30 16:23:59 +00:00
|
|
|
|
** NUL bytes in text copied to the system clipboard are now replaced with "\0".
|
2017-02-12 00:47:55 +00:00
|
|
|
|
|
2016-11-04 22:07:01 +00:00
|
|
|
|
** The new variable 'x-ctrl-keysym' has been added to the existing
|
2016-11-04 09:09:31 +00:00
|
|
|
|
roster of X keysyms. It can be used in combination with another
|
|
|
|
|
variable of this kind to swap modifiers in Emacs.
|
|
|
|
|
|
2017-10-21 08:07:34 +00:00
|
|
|
|
** New input methods: 'cyrillic-tuvan', 'polish-prefix', 'uzbek-cyrillic'.
|
2016-11-18 09:58:36 +00:00
|
|
|
|
|
2017-07-14 12:53:14 +00:00
|
|
|
|
** The 'dutch' input method no longer attempts to support Turkish too.
|
2017-07-14 13:19:39 +00:00
|
|
|
|
Also, it no longer converts 'IJ' and 'ij' to the compatibility
|
|
|
|
|
characters U+0132 LATIN CAPITAL LIGATURE IJ and U+0133 LATIN SMALL
|
|
|
|
|
LIGATURE IJ.
|
2017-07-14 12:53:14 +00:00
|
|
|
|
|
Implement quoting the local part of a remote file name
* doc/emacs/files.texi (Quoted File Names):
* etc/NEWS: Mention quoting the local part of a remote file name.
* lisp/net/tramp.el (tramp-dissect-file-name): Check with
`tramp-tramp-file-p'.
(tramp-quoted-name-p, tramp-quote-name, tramp-unquote-name):
New defsubst.
(tramp-handle-substitute-in-file-name)
(tramp-handle-make-auto-save-file-name): Handle quoted files.
(tramp-shell-quote-argument): Unquote argument.
* lisp/net/tramp-sh.el (tramp-sh-handle-file-truename):
Handle quoted files.
* test/lisp/net/tramp-tests.el (tramp--test-expensive-test): New defvar.
(tramp--test-make-temp-name): New argument QUOTED.
(tramp-test01-file-name-syntax)
(tramp-test02-file-name-dissect)
(tramp-test04-substitute-in-file-name)
(tramp-test05-expand-file-name, tramp-test07-file-exists-p)
(tramp-test08-file-local-copy)
(tramp-test09-insert-file-contents)
(tramp-test10-write-region, tramp-test11-copy-file)
(tramp-test12-rename-file, tramp-test13-make-directory)
(tramp-test14-delete-directory, tramp-test15-copy-directory)
(tramp-test16-directory-files)
(tramp-test17-insert-directory)
(tramp-test18-file-attributes)
(tramp-test19-directory-files-and-attributes)
(tramp-test20-file-modes, tramp-test21-file-links)
(tramp-test22-file-times, tramp-test23-visited-file-modtime)
(tramp-test24-file-name-completion, tramp-test25-load)
(tramp-test26-process-file, tramp-test27-start-file-process)
(tramp-test28-shell-command, tramp-test30-vc-registered)
(tramp-test31-make-auto-save-file-name)
(tramp--test-check-files)
(tramp-test35-asynchronous-requests): Test also quoted file names.
(tramp--test-shell-command-to-string-asynchronously): Rename.
(tramp-test29-environment-variables): Use it.
2016-12-04 11:12:06 +00:00
|
|
|
|
** File name quoting by adding the prefix "/:" is now possible for the
|
|
|
|
|
local part of a remote file name. Thus, if you have a directory named
|
|
|
|
|
"/~" on the remote host "foo", you can prevent it from being
|
|
|
|
|
substituted by a home directory by writing it as "/foo:/:/~/file".
|
|
|
|
|
|
2016-09-11 15:09:57 +00:00
|
|
|
|
** The new variable 'maximum-scroll-margin' allows having effective
|
|
|
|
|
settings of 'scroll-margin' up to half the window size, instead of
|
|
|
|
|
always restricting the margin to a quarter of the window.
|
|
|
|
|
|
2017-04-12 13:29:35 +00:00
|
|
|
|
** Emacs can scroll horizontally using mouse, touchpad, and trackbar.
|
2018-03-02 01:44:22 +00:00
|
|
|
|
You can enable this by customizing 'mouse-wheel-tilt-scroll'. If you
|
2017-04-12 13:29:35 +00:00
|
|
|
|
want to reverse the direction of the scroll, customize
|
2018-03-02 01:44:22 +00:00
|
|
|
|
'mouse-wheel-flip-direction'.
|
2017-04-12 13:29:35 +00:00
|
|
|
|
|
2017-12-15 04:16:38 +00:00
|
|
|
|
** The default GnuTLS priority string now includes %DUMBFW.
|
2017-12-15 08:50:22 +00:00
|
|
|
|
This is to avoid bad behavior in some firewalls, which causes the
|
|
|
|
|
connection to be closed by the remote host.
|
2017-12-15 04:16:38 +00:00
|
|
|
|
|
2017-10-28 10:29:29 +00:00
|
|
|
|
** Emacsclient changes
|
|
|
|
|
|
|
|
|
|
*** Emacsclient has a new option '-u' / '--suppress-output'.
|
2017-08-30 16:23:59 +00:00
|
|
|
|
This option suppresses display of return values from the server
|
|
|
|
|
process.
|
2017-05-12 08:19:46 +00:00
|
|
|
|
|
2017-10-28 10:29:29 +00:00
|
|
|
|
*** Emacsclient has a new option '-T' / '--tramp'.
|
2017-05-19 08:51:16 +00:00
|
|
|
|
This helps with using a local Emacs session as the server for a remote
|
|
|
|
|
emacsclient. With appropriate setup, one can now set the EDITOR
|
|
|
|
|
environment variable on a remote machine to emacsclient, and
|
|
|
|
|
use the local Emacs to edit remote files via Tramp. See the node
|
2017-10-14 10:52:05 +00:00
|
|
|
|
"(emacs) emacsclient Options" in the user manual for the details.
|
2017-05-19 08:51:16 +00:00
|
|
|
|
|
2017-10-28 10:29:29 +00:00
|
|
|
|
*** Emacsclient now accepts command-line options in ALTERNATE_EDITOR
|
|
|
|
|
and '--alternate-editor'. For example, ALTERNATE_EDITOR="emacs -Q -nw".
|
|
|
|
|
Arguments may be quoted "like this", so that for example an absolute
|
|
|
|
|
path containing a space may be specified; quote escaping is not
|
|
|
|
|
supported.
|
|
|
|
|
|
2017-08-30 16:23:59 +00:00
|
|
|
|
** New user option 'dig-program-options' and extended functionality
|
|
|
|
|
for DNS-querying functions 'nslookup-host', 'dns-lookup-host',
|
|
|
|
|
and 'run-dig'. Each function now accepts an optional name server
|
|
|
|
|
argument interactively (with a prefix argument) and non-interactively.
|
|
|
|
|
|
2017-06-18 04:39:05 +00:00
|
|
|
|
** 'describe-key-briefly' now ignores mouse movement events.
|
|
|
|
|
|
2017-04-24 02:30:20 +00:00
|
|
|
|
** The new variable 'eval-expression-print-maximum-character' prevents
|
2017-08-30 16:23:59 +00:00
|
|
|
|
large integers from being displayed as characters by 'M-:' and similar
|
|
|
|
|
commands.
|
2017-04-24 02:30:20 +00:00
|
|
|
|
|
2017-05-20 11:41:53 +00:00
|
|
|
|
** Two new commands for finding the source code of Emacs Lisp
|
|
|
|
|
libraries: 'find-library-other-window' and 'find-library-other-frame'.
|
|
|
|
|
|
2018-02-04 17:18:39 +00:00
|
|
|
|
** The new variable 'display-raw-bytes-as-hex' allows you to change
|
|
|
|
|
the display of raw bytes from octal to hex.
|
2017-06-01 18:25:58 +00:00
|
|
|
|
|
2017-05-31 22:09:43 +00:00
|
|
|
|
** You can now provide explicit field numbers in format specifiers.
|
2017-10-14 10:52:05 +00:00
|
|
|
|
For example, '(format "%2$s %1$s %2$s" "X" "Y")' produces "Y X Y".
|
2017-05-31 22:09:43 +00:00
|
|
|
|
|
2017-06-17 14:42:44 +00:00
|
|
|
|
** Emacs now supports optional display of line numbers in the buffer.
|
2017-10-14 10:52:05 +00:00
|
|
|
|
This is similar to what 'linum-mode' provides, but much faster and
|
2017-06-17 14:42:44 +00:00
|
|
|
|
doesn't usurp the display margin for the line numbers. Customize the
|
|
|
|
|
buffer-local variable 'display-line-numbers' to activate this optional
|
2017-10-14 10:52:05 +00:00
|
|
|
|
display. Alternatively, you can use the 'display-line-numbers-mode'
|
|
|
|
|
minor mode or the global 'global-display-line-numbers-mode'. When
|
|
|
|
|
using these modes, customize 'display-line-numbers-type' with the same
|
|
|
|
|
value as you would use with 'display-line-numbers'.
|
2017-07-22 09:16:08 +00:00
|
|
|
|
|
2017-06-24 18:10:04 +00:00
|
|
|
|
Line numbers are not displayed at all in minibuffer windows and in
|
|
|
|
|
tooltips, as they are not useful there.
|
|
|
|
|
|
2017-06-24 13:58:01 +00:00
|
|
|
|
Lisp programs can disable line-number display for a particular screen
|
|
|
|
|
line by putting the 'display-line-numbers-disable' text property or
|
2017-06-24 17:11:56 +00:00
|
|
|
|
overlay property on the first character of that screen line. This is
|
|
|
|
|
intended for add-on packages that need a finer control of the display.
|
2017-06-24 13:58:01 +00:00
|
|
|
|
|
2017-07-07 09:21:10 +00:00
|
|
|
|
Lisp programs that need to know how much screen estate is used up for
|
|
|
|
|
line-number display in a window can use the new function
|
|
|
|
|
'line-number-display-width'.
|
|
|
|
|
|
2017-10-14 10:52:05 +00:00
|
|
|
|
'linum-mode' and all similar packages are henceforth becoming obsolete.
|
2017-06-17 14:42:44 +00:00
|
|
|
|
Users and developers are encouraged to switch to this new feature
|
|
|
|
|
instead.
|
|
|
|
|
|
2017-10-08 02:48:01 +00:00
|
|
|
|
** The new user option 'arabic-shaper-ZWNJ-handling' controls how to
|
|
|
|
|
handle ZWNJ in Arabic text rendering.
|
|
|
|
|
|
2016-01-07 01:45:14 +00:00
|
|
|
|
|
2016-10-01 08:14:05 +00:00
|
|
|
|
* Editing Changes in Emacs 26.1
|
2016-01-07 01:45:14 +00:00
|
|
|
|
|
2017-05-10 17:57:21 +00:00
|
|
|
|
** New variable 'column-number-indicator-zero-based'.
|
|
|
|
|
Traditionally, in Column Number mode, the displayed column number
|
|
|
|
|
counts from zero starting at the left margin of the window. This
|
|
|
|
|
behavior is now controlled by 'column-number-indicator-zero-based'.
|
|
|
|
|
If you would prefer for the displayed column number to count from one,
|
|
|
|
|
you may set this variable to nil. (Behind the scenes, there is now a
|
|
|
|
|
new mode line construct, '%C', which operates exactly as '%c' does
|
|
|
|
|
except that it counts from one.)
|
|
|
|
|
|
2017-05-18 20:18:29 +00:00
|
|
|
|
** New single-line horizontal scrolling mode.
|
|
|
|
|
The 'auto-hscroll-mode' variable can now have a new special value,
|
|
|
|
|
'current-line', which causes only the line where the cursor is
|
|
|
|
|
displayed to be horizontally scrolled when lines are truncated on
|
|
|
|
|
display and point moves outside the left or right window margin.
|
|
|
|
|
|
2017-05-21 10:16:09 +00:00
|
|
|
|
** New mode line constructs '%o' and '%q', and user option
|
|
|
|
|
'mode-line-percent-position'. '%o' displays the "degree of travel" of
|
|
|
|
|
the window through the buffer. Unlike the default '%p', this
|
|
|
|
|
percentage approaches 100% as the window approaches the end of the
|
|
|
|
|
buffer. '%q' displays the percentage offsets of both the start and
|
|
|
|
|
the end of the window, e.g. "5-17%". The new option
|
|
|
|
|
'mode-line-percent-position' makes it easier to switch between '%p',
|
|
|
|
|
'%P', and these new constructs.
|
|
|
|
|
|
2017-02-02 10:13:27 +00:00
|
|
|
|
** Two new user options 'list-matching-lines-jump-to-current-line' and
|
2017-10-14 10:52:05 +00:00
|
|
|
|
'list-matching-lines-current-line-face' to show the current line
|
|
|
|
|
highlighted in *Occur* buffer.
|
2017-02-02 10:13:27 +00:00
|
|
|
|
|
2017-02-02 10:13:05 +00:00
|
|
|
|
** The 'occur' command can now operate on the region.
|
|
|
|
|
|
2016-04-24 11:55:56 +00:00
|
|
|
|
** New bindings for 'query-replace-map'.
|
|
|
|
|
'undo', undo the last replacement; bound to 'u'.
|
|
|
|
|
'undo-all', undo all replacements; bound to 'U'.
|
|
|
|
|
|
2016-06-21 14:52:52 +00:00
|
|
|
|
** 'delete-trailing-whitespace' deletes whitespace after form feed.
|
|
|
|
|
In modes where form feed was treated as a whitespace character,
|
|
|
|
|
'delete-trailing-whitespace' would keep lines containing it unchanged.
|
|
|
|
|
It now deletes whitespace after the last form feed thus behaving the
|
|
|
|
|
same as in modes where the character is not whitespace.
|
|
|
|
|
|
2017-08-30 16:23:59 +00:00
|
|
|
|
** Emacs no longer prompts about editing a changed file when the file's
|
|
|
|
|
content is unchanged. Instead of only checking the modification time,
|
|
|
|
|
Emacs now also checks the file's actual content before prompting the user.
|
2016-09-02 15:44:13 +00:00
|
|
|
|
|
Support casing characters which map into multiple code points (bug#24603)
Implement unconditional special casing rules defined in Unicode standard.
Among other things, they deal with cases when a single code point is
replaced by multiple ones because single character does not exist (e.g.
‘fi’ ligature turning into ‘FL’) or is not commonly used (e.g. ß turning
into SS).
* admin/unidata/SpecialCasing.txt: New data file pulled from Unicode
standard distribution.
* admin/unidata/README: Mention SpecialCasing.txt.
* admin/unidata/unidata-get.el (unidata-gen-table-special-casing,
unidata-gen-table-special-casing--do-load): New functions generating
‘special-uppercase’, ‘special-lowercase’ and ‘special-titlecase’
character Unicode properties built from the SpecialCasing.txt Unicode
data file.
* src/casefiddle.c (struct casing_str_buf): New structure for
representing short strings used to handle one-to-many character
mappings.
(case_character_imlp): New function which can handle one-to-many
character mappings.
(case_character, case_single_character): Wrappers for the above
functions. The former may map one character to multiple (or no)
code points while the latter does what the former used to do (i.e.
handles one-to-one mappings only).
(do_casify_natnum, do_casify_unibyte_string,
do_casify_unibyte_region): Use case_single_character.
(do_casify_multibyte_string, do_casify_multibyte_region): Support new
features of case_character.
* (do_casify_region): Updated to reflact do_casify_multibyte_string
changes.
(casify_word): Handle situation when one character-length of a word
can change affecting where end of the word is.
(upcase, capitalize, upcase-initials): Update documentation to mention
limitations when working on characters.
* test/src/casefiddle-tests.el (casefiddle-tests-char-properties):
Add test cases for the newly introduced character properties.
(casefiddle-tests-casing): Update test cases which are now passing.
* test/lisp/char-fold-tests.el (char-fold--ascii-upcase,
char-fold--ascii-downcase): New functions which behave like old ‘upcase’
and ‘downcase’.
(char-fold--test-match-exactly): Use the new functions. This is needed
because otherwise fi and similar characters are turned into their multi-
-character representation.
* doc/lispref/strings.texi: Describe issue with casing characters versus
strings.
* doc/lispref/nonascii.texi: Describe the new character properties.
2016-10-04 22:06:01 +00:00
|
|
|
|
** Various casing improvements.
|
|
|
|
|
|
|
|
|
|
*** 'upcase', 'upcase-region' et al. convert title case characters
|
|
|
|
|
(such as Dz) into their upper case form (such as DZ).
|
|
|
|
|
|
|
|
|
|
*** 'capitalize', 'upcase-initials' et al. make use of title-case forms
|
|
|
|
|
of initial characters (correctly producing for example Džungla instead
|
|
|
|
|
of incorrect DŽungla).
|
|
|
|
|
|
|
|
|
|
*** Characters which turn into multiple ones when cased are correctly handled.
|
|
|
|
|
For example, fi ligature is converted to FI when upper cased.
|
2016-09-07 19:00:57 +00:00
|
|
|
|
|
2016-09-18 22:52:47 +00:00
|
|
|
|
*** Greek small sigma is correctly handled when at the end of the word.
|
|
|
|
|
Strings such as ΌΣΟΣ are now correctly converted to Όσος when
|
|
|
|
|
capitalized instead of incorrect Όσοσ (compare lowercase sigma at the
|
|
|
|
|
end of the word).
|
|
|
|
|
|
2017-04-22 18:58:38 +00:00
|
|
|
|
** Emacs can now auto-save buffers to visited files in a more robust
|
|
|
|
|
manner via the new mode 'auto-save-visited-mode'. Unlike
|
|
|
|
|
'auto-save-visited-file-name', this mode uses the normal saving
|
|
|
|
|
procedure and therefore obeys saving hooks.
|
|
|
|
|
'auto-save-visited-file-name' is now obsolete.
|
|
|
|
|
|
2017-08-30 17:50:25 +00:00
|
|
|
|
** New behavior of 'mark-defun'.
|
2017-03-31 11:06:06 +00:00
|
|
|
|
Prefix argument selects that many (or that many more) defuns.
|
|
|
|
|
Negative prefix arg flips the direction of selection. Also,
|
|
|
|
|
'mark-defun' between defuns correctly selects N following defuns (or
|
|
|
|
|
-N previous for negative arguments). Finally, comments preceding the
|
|
|
|
|
defun are selected unless they are separated from the defun by a blank
|
|
|
|
|
line.
|
|
|
|
|
|
2017-06-17 16:03:30 +00:00
|
|
|
|
** New command 'replace-buffer-contents'.
|
|
|
|
|
This command replaces the contents of the accessible portion of the
|
|
|
|
|
current buffer with the contents of the accessible portion of a
|
|
|
|
|
different buffer while keeping point, mark, markers, and text
|
|
|
|
|
properties as intact as possible.
|
2017-05-07 19:01:53 +00:00
|
|
|
|
|
2017-10-14 10:52:05 +00:00
|
|
|
|
** New commands 'apropos-local-variable' and 'apropos-local-value'.
|
2017-07-28 07:47:20 +00:00
|
|
|
|
These are buffer-local versions of 'apropos-variable' and
|
|
|
|
|
'apropos-value', respectively. They show buffer-local variables whose
|
|
|
|
|
names and values, respectively, match a given pattern.
|
|
|
|
|
|
2017-07-17 14:50:37 +00:00
|
|
|
|
** More user control of reordering bidirectional text for display.
|
|
|
|
|
The two new variables, 'bidi-paragraph-start-re' and
|
|
|
|
|
'bidi-paragraph-separate-re', allow customization of what exactly are
|
|
|
|
|
paragraphs, for the purposes of bidirectional display.
|
|
|
|
|
|
2017-08-31 03:12:22 +00:00
|
|
|
|
** New variable 'x-wait-for-event-timeout'.
|
|
|
|
|
This controls how long Emacs will wait for updates to the graphical
|
|
|
|
|
state to take effect (making a frame visible, for example).
|
|
|
|
|
|
2015-11-25 14:44:20 +00:00
|
|
|
|
|
2016-10-01 08:14:05 +00:00
|
|
|
|
* Changes in Specialized Modes and Packages in Emacs 26.1
|
2015-11-25 14:44:20 +00:00
|
|
|
|
|
2018-01-22 14:57:42 +00:00
|
|
|
|
** Emacs 26.1 comes with Org v9.1.6.
|
2017-10-12 07:52:44 +00:00
|
|
|
|
See the file ORG-NEWS for user-visible changes in Org.
|
|
|
|
|
|
2017-10-14 10:52:05 +00:00
|
|
|
|
** New function 'cl-generic-p'.
|
2017-07-28 15:28:48 +00:00
|
|
|
|
|
2017-07-02 13:09:02 +00:00
|
|
|
|
** Dired
|
2017-07-21 04:23:38 +00:00
|
|
|
|
|
2017-08-06 04:46:51 +00:00
|
|
|
|
*** You can answer 'all' in 'dired-do-delete' to delete recursively all
|
|
|
|
|
remaining directories without more prompts.
|
|
|
|
|
|
2017-07-30 02:02:49 +00:00
|
|
|
|
*** Dired supports wildcards in the directory part of the file names.
|
|
|
|
|
|
2017-08-30 16:23:59 +00:00
|
|
|
|
*** You can now use '`?`' in 'dired-do-shell-command'.
|
|
|
|
|
It gets replaced by the current file name, like ' ? '.
|
2017-07-02 13:09:02 +00:00
|
|
|
|
|
2017-10-13 18:51:13 +00:00
|
|
|
|
*** A new option 'dired-always-read-filesystem' defaulting to nil.
|
|
|
|
|
If non-nil, buffers visiting files are reverted before they are
|
|
|
|
|
searched; for instance, in 'dired-mark-files-containing-regexp' a
|
|
|
|
|
non-nil value of this option means the file is revisited in a
|
|
|
|
|
temporary buffer; this temporary buffer is the actual buffer searched:
|
|
|
|
|
the original buffer visiting the file is not modified.
|
2017-06-24 12:59:20 +00:00
|
|
|
|
|
2017-09-08 09:02:59 +00:00
|
|
|
|
*** Users can now customize mouse clicks in Dired in a more flexible way.
|
|
|
|
|
The new command 'dired-mouse-find-file' can be bound to a mouse click
|
|
|
|
|
and used to visit files/directories in Dired in the selected window.
|
|
|
|
|
The new command 'dired-mouse-find-file-other-frame' similarly visits
|
|
|
|
|
files/directories in another frame. You can write your own commands
|
|
|
|
|
that invoke 'dired-mouse-find-file' with non-default optional
|
|
|
|
|
arguments, to tailor the effects of mouse clicks on file names in
|
|
|
|
|
Dired buffers.
|
|
|
|
|
|
2017-08-30 16:23:59 +00:00
|
|
|
|
*** In wdired, when editing files to contain slash characters,
|
|
|
|
|
the resulting directories are automatically created. Whether to do
|
|
|
|
|
this is controlled by the 'wdired-create-parent-directories' variable.
|
2017-05-17 19:44:36 +00:00
|
|
|
|
|
2017-08-30 16:23:59 +00:00
|
|
|
|
*** 'W' is now bound to 'browse-url-of-dired-file', and is useful for
|
|
|
|
|
viewing HTML files and the like.
|
|
|
|
|
|
2017-09-08 09:36:59 +00:00
|
|
|
|
*** New variable 'dired-clean-confirm-killing-deleted-buffers'
|
|
|
|
|
controls whether Dired asks to kill buffers visiting deleted files and
|
|
|
|
|
directories. The default is t, so Dired asks for confirmation, to
|
|
|
|
|
keep previous behavior.
|
|
|
|
|
|
2017-08-30 16:23:59 +00:00
|
|
|
|
** html2text is now marked obsolete.
|
|
|
|
|
|
2017-10-14 10:52:05 +00:00
|
|
|
|
** smerge-refine-regions can refine regions in separate buffers.
|
2017-08-30 16:23:59 +00:00
|
|
|
|
|
|
|
|
|
** Info menu and index completion uses substring completion by default.
|
2017-10-14 10:52:05 +00:00
|
|
|
|
This can be customized via the 'info-menu' category in
|
|
|
|
|
'completion-category-overrides'.
|
2017-04-20 00:43:41 +00:00
|
|
|
|
|
2017-08-30 17:50:25 +00:00
|
|
|
|
** The ancestor buffer is shown by default in 3-way merges.
|
2017-10-14 10:52:05 +00:00
|
|
|
|
A new option 'ediff-show-ancestor' and a new toggle
|
|
|
|
|
'ediff-toggle-show-ancestor'.
|
2017-03-14 07:12:29 +00:00
|
|
|
|
|
2018-08-21 15:58:15 +00:00
|
|
|
|
** TeX: Add luatex and xetex as alternatives to pdftex.
|
2016-12-21 20:51:14 +00:00
|
|
|
|
|
2016-11-22 06:23:50 +00:00
|
|
|
|
** Electric-Buffer-menu
|
|
|
|
|
|
|
|
|
|
*** Key 'U' is bound to 'Buffer-menu-unmark-all' and key 'M-DEL' is
|
|
|
|
|
bound to 'Buffer-menu-unmark-all-buffers'.
|
|
|
|
|
|
2017-10-28 10:29:29 +00:00
|
|
|
|
** hideshow mode got four key bindings that are analogous to outline
|
|
|
|
|
mode bindings: 'C-c @ C-a', 'C-c @ C-t', 'C-c @ C-d', and 'C-c @ C-e'.
|
|
|
|
|
|
2016-11-22 06:23:50 +00:00
|
|
|
|
** bs
|
|
|
|
|
|
|
|
|
|
*** Two new commands 'bs-unmark-all', bound to 'U', and
|
|
|
|
|
'bs-unmark-previous', bound to <backspace>.
|
|
|
|
|
|
|
|
|
|
** Buffer-menu
|
|
|
|
|
|
|
|
|
|
*** Two new commands 'Buffer-menu-unmark-all', bound to 'U' and
|
|
|
|
|
'Buffer-menu-unmark-all-buffers', bound to 'M-DEL'.
|
|
|
|
|
|
2017-09-01 21:31:45 +00:00
|
|
|
|
** Checkdoc
|
|
|
|
|
|
|
|
|
|
*** 'checkdoc-arguments-in-order-flag' now defaults to nil.
|
|
|
|
|
|
2017-01-25 18:30:33 +00:00
|
|
|
|
** Gnus
|
|
|
|
|
|
2017-10-14 10:52:05 +00:00
|
|
|
|
*** The ~/.newsrc file will now only be saved if the native select
|
2017-01-25 18:30:33 +00:00
|
|
|
|
method is an NNTP select method.
|
|
|
|
|
|
2017-01-26 23:33:03 +00:00
|
|
|
|
*** A new command for sorting articles by readedness marks has been
|
2017-02-16 17:17:45 +00:00
|
|
|
|
added: 'C-c C-s C-m C-m'.
|
2017-01-26 23:33:03 +00:00
|
|
|
|
|
2017-10-14 10:52:05 +00:00
|
|
|
|
*** In 'message-citation-line-format' the '%Z' format is now the time
|
|
|
|
|
zone name instead of the numeric form. The '%z' format continues to
|
|
|
|
|
be the numeric form. The new behavior is compatible with
|
|
|
|
|
'format-time-string'.
|
2017-09-18 00:46:18 +00:00
|
|
|
|
|
2016-07-03 05:51:18 +00:00
|
|
|
|
** Ibuffer
|
|
|
|
|
|
2017-02-28 02:47:45 +00:00
|
|
|
|
*** New command 'ibuffer-jump'.
|
|
|
|
|
|
2017-02-16 17:17:45 +00:00
|
|
|
|
*** New filter commands 'ibuffer-filter-by-basename',
|
|
|
|
|
'ibuffer-filter-by-file-extension', 'ibuffer-filter-by-directory',
|
|
|
|
|
'ibuffer-filter-by-starred-name', 'ibuffer-filter-by-modified'
|
|
|
|
|
and 'ibuffer-filter-by-visiting-file'; bound respectively
|
ibuffer: New filters and commands
Add several new filters and improve documentation.
See discussion on:
https://lists.gnu.org/archive/html/emacs-devel/2016-11/msg00399.html
* lisp/ibuf-ext.el: Add paragraph to file commentary.
(ibuffer-saved-filters, ibuffer-filtering-qualifiers)
(ibuffer-filter-groups): Update doc string.
(ibuffer-unary-operand): Add new function that transparently
handles 'not' formats for compound filters.
(ibuffer-included-in-filter-p): Handle 'not' fully; update doc string.
(ibuffer-included-in-filter-p-1): Handle 'and' compound filters.
(ibuffer-decompose-filter): Handle 'and' as well,
and handle 'not' consistently with other uses.
(ibuffer-and-filter): New defun analogous to 'ibuffer-or-filter'.
(ibuffer--or-and-filter): New defun.
(ibuffer-or-filter, ibuffer-and-filter): Use it.
(ibuffer-format-qualifier): Handle 'and' filters as well.
(ibuffer-filter-by-basename, ibuffer-filter-by-file-extension)
(ibuffer-filter-by-directory, ibuffer-filter-by-starred-name)
(ibuffer-filter-by-modified, ibuffer-filter-by-visiting-file):
Add new pre-defined filters.
(ibuffer-filter-chosen-by-completion): Add new interactive command
for easily choosing a filter from the descriptions.
* lisp/ibuffer.el (ibuffer-mode-map):
Bind ibuffer-filter-by-basename, ibuffer-filter-by-file-extension,
ibuffer-filter-by-starred-name, ibuffer-filter-by-modified,
ibuffer-filter-by-visiting-file to '/b', '/.', '/*', '/i', '/v'
respectively; bind 'ibuffer-or-filter', 'ibuffer-and-filter',
'ibuffer-pop-filter' ,'ibuffer-pop-filter-group' and
'ibuffer-filter-disable' to '/|', '/&', '/<up>', '/S-<up>'
and '/ DEL' respectively.
* test/lisp/ibuffer-tests.el (ibuffer-autoload): Add appropriate
skip specification.
Add menu entries for the new filters.
(ibuffer-filter-inclusion-1, ibuffer-filter-inclusion-2
ibuffer-filter-inclusion-3, ibuffer-filter-inclusion-4
ibuffer-filter-inclusion-5, ibuffer-filter-inclusion-6
ibuffer-filter-inclusion-7, ibuffer-filter-inclusion-8
ibuffer-decompose-filter, ibuffer-and-filter
ibuffer-or-filter): Add new tests; they are skipped unless
ibuf-ext is loaded.
; * etc/NEWS: Add entries for new user-facing features.
2016-12-20 08:41:56 +00:00
|
|
|
|
to '/b', '/.', '//', '/*', '/i' and '/v'.
|
|
|
|
|
|
|
|
|
|
*** Two new commands 'ibuffer-filter-chosen-by-completion'
|
2017-02-16 17:17:45 +00:00
|
|
|
|
and 'ibuffer-and-filter', the second bound to '/&'.
|
ibuffer: New filters and commands
Add several new filters and improve documentation.
See discussion on:
https://lists.gnu.org/archive/html/emacs-devel/2016-11/msg00399.html
* lisp/ibuf-ext.el: Add paragraph to file commentary.
(ibuffer-saved-filters, ibuffer-filtering-qualifiers)
(ibuffer-filter-groups): Update doc string.
(ibuffer-unary-operand): Add new function that transparently
handles 'not' formats for compound filters.
(ibuffer-included-in-filter-p): Handle 'not' fully; update doc string.
(ibuffer-included-in-filter-p-1): Handle 'and' compound filters.
(ibuffer-decompose-filter): Handle 'and' as well,
and handle 'not' consistently with other uses.
(ibuffer-and-filter): New defun analogous to 'ibuffer-or-filter'.
(ibuffer--or-and-filter): New defun.
(ibuffer-or-filter, ibuffer-and-filter): Use it.
(ibuffer-format-qualifier): Handle 'and' filters as well.
(ibuffer-filter-by-basename, ibuffer-filter-by-file-extension)
(ibuffer-filter-by-directory, ibuffer-filter-by-starred-name)
(ibuffer-filter-by-modified, ibuffer-filter-by-visiting-file):
Add new pre-defined filters.
(ibuffer-filter-chosen-by-completion): Add new interactive command
for easily choosing a filter from the descriptions.
* lisp/ibuffer.el (ibuffer-mode-map):
Bind ibuffer-filter-by-basename, ibuffer-filter-by-file-extension,
ibuffer-filter-by-starred-name, ibuffer-filter-by-modified,
ibuffer-filter-by-visiting-file to '/b', '/.', '/*', '/i', '/v'
respectively; bind 'ibuffer-or-filter', 'ibuffer-and-filter',
'ibuffer-pop-filter' ,'ibuffer-pop-filter-group' and
'ibuffer-filter-disable' to '/|', '/&', '/<up>', '/S-<up>'
and '/ DEL' respectively.
* test/lisp/ibuffer-tests.el (ibuffer-autoload): Add appropriate
skip specification.
Add menu entries for the new filters.
(ibuffer-filter-inclusion-1, ibuffer-filter-inclusion-2
ibuffer-filter-inclusion-3, ibuffer-filter-inclusion-4
ibuffer-filter-inclusion-5, ibuffer-filter-inclusion-6
ibuffer-filter-inclusion-7, ibuffer-filter-inclusion-8
ibuffer-decompose-filter, ibuffer-and-filter
ibuffer-or-filter): Add new tests; they are skipped unless
ibuf-ext is loaded.
; * etc/NEWS: Add entries for new user-facing features.
2016-12-20 08:41:56 +00:00
|
|
|
|
|
2017-02-16 17:17:45 +00:00
|
|
|
|
*** The commands 'ibuffer-pop-filter', 'ibuffer-pop-filter-group',
|
|
|
|
|
'ibuffer-or-filter' and 'ibuffer-filter-disable' have the alternative
|
ibuffer: New filters and commands
Add several new filters and improve documentation.
See discussion on:
https://lists.gnu.org/archive/html/emacs-devel/2016-11/msg00399.html
* lisp/ibuf-ext.el: Add paragraph to file commentary.
(ibuffer-saved-filters, ibuffer-filtering-qualifiers)
(ibuffer-filter-groups): Update doc string.
(ibuffer-unary-operand): Add new function that transparently
handles 'not' formats for compound filters.
(ibuffer-included-in-filter-p): Handle 'not' fully; update doc string.
(ibuffer-included-in-filter-p-1): Handle 'and' compound filters.
(ibuffer-decompose-filter): Handle 'and' as well,
and handle 'not' consistently with other uses.
(ibuffer-and-filter): New defun analogous to 'ibuffer-or-filter'.
(ibuffer--or-and-filter): New defun.
(ibuffer-or-filter, ibuffer-and-filter): Use it.
(ibuffer-format-qualifier): Handle 'and' filters as well.
(ibuffer-filter-by-basename, ibuffer-filter-by-file-extension)
(ibuffer-filter-by-directory, ibuffer-filter-by-starred-name)
(ibuffer-filter-by-modified, ibuffer-filter-by-visiting-file):
Add new pre-defined filters.
(ibuffer-filter-chosen-by-completion): Add new interactive command
for easily choosing a filter from the descriptions.
* lisp/ibuffer.el (ibuffer-mode-map):
Bind ibuffer-filter-by-basename, ibuffer-filter-by-file-extension,
ibuffer-filter-by-starred-name, ibuffer-filter-by-modified,
ibuffer-filter-by-visiting-file to '/b', '/.', '/*', '/i', '/v'
respectively; bind 'ibuffer-or-filter', 'ibuffer-and-filter',
'ibuffer-pop-filter' ,'ibuffer-pop-filter-group' and
'ibuffer-filter-disable' to '/|', '/&', '/<up>', '/S-<up>'
and '/ DEL' respectively.
* test/lisp/ibuffer-tests.el (ibuffer-autoload): Add appropriate
skip specification.
Add menu entries for the new filters.
(ibuffer-filter-inclusion-1, ibuffer-filter-inclusion-2
ibuffer-filter-inclusion-3, ibuffer-filter-inclusion-4
ibuffer-filter-inclusion-5, ibuffer-filter-inclusion-6
ibuffer-filter-inclusion-7, ibuffer-filter-inclusion-8
ibuffer-decompose-filter, ibuffer-and-filter
ibuffer-or-filter): Add new tests; they are skipped unless
ibuf-ext is loaded.
; * etc/NEWS: Add entries for new user-facing features.
2016-12-20 08:41:56 +00:00
|
|
|
|
bindings '/<up>', '/S-<up>', '/|' and '/DEL', respectively.
|
|
|
|
|
|
|
|
|
|
*** The data format specifying filters has been extended to allow
|
|
|
|
|
explicit logical 'and', and a more flexible form for logical 'not'.
|
|
|
|
|
See 'ibuffer-filtering-qualifiers' doc string for full details.
|
|
|
|
|
|
2016-07-08 08:22:56 +00:00
|
|
|
|
*** A new command 'ibuffer-copy-buffername-as-kill'; bound
|
|
|
|
|
to 'B'.
|
|
|
|
|
|
2016-07-08 01:55:22 +00:00
|
|
|
|
*** New command 'ibuffer-change-marks'; bound to '* c'.
|
|
|
|
|
|
2016-07-07 16:34:35 +00:00
|
|
|
|
*** A new command 'ibuffer-mark-by-locked' to mark
|
|
|
|
|
all locked buffers; bound to '% L'.
|
|
|
|
|
|
|
|
|
|
*** A new option 'ibuffer-locked-char' to indicate
|
|
|
|
|
locked buffers; Ibuffer shows a new column displaying
|
|
|
|
|
'ibuffer-locked-char' for locked buffers.
|
|
|
|
|
|
2016-07-03 12:42:02 +00:00
|
|
|
|
*** A new command 'ibuffer-unmark-all-marks' to unmark
|
|
|
|
|
all buffers without asking confirmation; bound to
|
|
|
|
|
'U'; 'ibuffer-do-replace-regexp' bound to 'r'.
|
|
|
|
|
|
2016-08-31 03:54:05 +00:00
|
|
|
|
*** A new command 'ibuffer-mark-by-content-regexp' to mark buffers
|
2016-07-07 15:57:40 +00:00
|
|
|
|
whose content matches a regexp; bound to '% g'.
|
2016-07-03 05:51:18 +00:00
|
|
|
|
|
2016-08-31 03:54:05 +00:00
|
|
|
|
*** Two new options 'ibuffer-never-search-content-name' and
|
|
|
|
|
'ibuffer-never-search-content-mode' used by
|
|
|
|
|
'ibuffer-mark-by-content-regexp'.
|
2016-07-03 05:51:18 +00:00
|
|
|
|
|
2016-10-21 15:23:39 +00:00
|
|
|
|
** Browse-URL
|
|
|
|
|
|
|
|
|
|
*** Support for opening links to man pages in Man or WoMan mode.
|
|
|
|
|
|
2016-10-26 22:28:34 +00:00
|
|
|
|
** Comint
|
|
|
|
|
|
|
|
|
|
*** New user option 'comint-move-point-for-matching-input' to control
|
2017-10-14 10:52:05 +00:00
|
|
|
|
where to place point after 'C-c M-r' and 'C-c M-s'.
|
2016-10-26 22:28:34 +00:00
|
|
|
|
|
2017-12-15 09:30:25 +00:00
|
|
|
|
*** New user option 'comint-terminfo-terminal'.
|
|
|
|
|
This option allows control of the value of the TERM environment
|
|
|
|
|
variable Emacs puts into the environment of the Comint mode and its
|
|
|
|
|
derivatives, such as Shell mode and Compilation Shell minor-mode. The
|
|
|
|
|
default is "dumb", for compatibility with previous behavior.
|
|
|
|
|
|
2016-04-23 01:10:46 +00:00
|
|
|
|
** Compilation mode
|
|
|
|
|
|
|
|
|
|
*** Messages from CMake are now recognized.
|
|
|
|
|
|
2017-03-05 17:48:41 +00:00
|
|
|
|
*** The number of errors, warnings, and informational messages is now
|
|
|
|
|
displayed in the mode line. These are updated as compilation
|
|
|
|
|
proceeds.
|
|
|
|
|
|
2016-09-14 00:48:09 +00:00
|
|
|
|
** Grep
|
|
|
|
|
|
|
|
|
|
*** Grep commands will now use GNU grep's '--null' option if
|
|
|
|
|
available, which allows distinguishing the filename from contents if
|
|
|
|
|
they contain colons. This can be controlled by the new custom option
|
|
|
|
|
'grep-use-null-filename-separator'.
|
|
|
|
|
|
|
|
|
|
*** The grep/rgrep/lgrep functions will now ask about saving files
|
|
|
|
|
before running. This is controlled by the 'grep-save-buffers'
|
|
|
|
|
variable.
|
|
|
|
|
|
2016-10-20 14:29:40 +00:00
|
|
|
|
** Edebug
|
2016-05-07 06:42:29 +00:00
|
|
|
|
|
2016-10-20 14:29:40 +00:00
|
|
|
|
*** Edebug can be prevented from pausing 1 second after reaching a
|
2016-05-07 06:42:29 +00:00
|
|
|
|
breakpoint (e.g. with "f" and "o") by customizing the new option
|
2016-05-10 14:38:23 +00:00
|
|
|
|
'edebug-sit-on-break'.
|
2016-05-07 06:42:29 +00:00
|
|
|
|
|
2017-10-14 10:52:05 +00:00
|
|
|
|
*** New customizable option 'edebug-max-depth'.
|
2018-02-04 17:18:39 +00:00
|
|
|
|
This allows you to enlarge the maximum recursion depth when
|
|
|
|
|
instrumenting code.
|
2017-02-04 10:56:19 +00:00
|
|
|
|
|
2018-05-21 20:48:18 +00:00
|
|
|
|
*** 'edebug-prin1-to-string' now aliases 'cl-prin1-to-string'.
|
|
|
|
|
This means edebug output is affected by variables 'cl-print-readably'
|
|
|
|
|
and 'cl-print-compiled'. To completely restore the previous printing
|
|
|
|
|
behavior, use
|
|
|
|
|
|
|
|
|
|
(fset 'edebug-prin1-to-string #'prin1-to-string)
|
|
|
|
|
|
2016-10-18 22:05:51 +00:00
|
|
|
|
** Eshell
|
|
|
|
|
|
|
|
|
|
*** 'eshell-input-filter's value is now a named function
|
|
|
|
|
'eshell-input-filter-default', and has a new custom option
|
|
|
|
|
'eshell-input-filter-initial-space' to ignore adding commands prefixed
|
|
|
|
|
with blank space to eshell history.
|
|
|
|
|
|
2017-10-28 02:58:11 +00:00
|
|
|
|
** EUDC
|
|
|
|
|
|
|
|
|
|
*** Backward compatibility support for BBDB versions less than 3
|
|
|
|
|
(i.e., BBDB 2.x) is deprecated and will likely be removed in the next
|
|
|
|
|
major release of Emacs. Users of BBDB 2.x should plan to upgrade to
|
|
|
|
|
BBDB 3.x.
|
|
|
|
|
|
2016-02-04 07:00:37 +00:00
|
|
|
|
** eww
|
|
|
|
|
|
2016-11-02 19:58:28 +00:00
|
|
|
|
*** New 'M-RET' command for opening a link at point in a new eww buffer.
|
|
|
|
|
|
2016-03-22 18:01:30 +00:00
|
|
|
|
*** A new 's' command for switching to another eww buffer via the minibuffer.
|
2016-02-04 07:00:37 +00:00
|
|
|
|
|
2016-03-22 18:01:30 +00:00
|
|
|
|
*** The 'o' command ('shr-save-contents') has moved to 'O' to avoid collision
|
|
|
|
|
with the 'o' command from 'image-map'.
|
2016-02-24 07:07:49 +00:00
|
|
|
|
|
2016-04-24 11:55:56 +00:00
|
|
|
|
*** A new command 'C' ('eww-toggle-colors') can be used to toggle
|
|
|
|
|
whether to use the HTML-specified colors or not. The user can also
|
|
|
|
|
customize the 'shr-use-colors' variable.
|
|
|
|
|
|
2016-04-24 20:17:25 +00:00
|
|
|
|
*** Images that are being loaded are now marked with gray
|
2016-04-24 11:55:56 +00:00
|
|
|
|
"placeholder" images of the size specified by the HTML. They are then
|
|
|
|
|
replaced by the real images asynchronously, which will also now
|
|
|
|
|
respect width/height HTML specs (unless they specify widths/heights
|
|
|
|
|
bigger than the current window).
|
|
|
|
|
|
2017-05-11 23:40:45 +00:00
|
|
|
|
*** The 'w' command on links is now 'shr-maybe-probe-and-copy-url'.
|
|
|
|
|
'shr-copy-url' now only copies the url at point; users who wish to
|
|
|
|
|
avoid accidentally accessing remote links may rebind 'w' and 'u' in
|
|
|
|
|
'eww-link-keymap' to it.
|
|
|
|
|
|
2017-04-20 13:41:15 +00:00
|
|
|
|
** Ido
|
|
|
|
|
|
|
|
|
|
*** The commands 'find-alternate-file-other-window',
|
|
|
|
|
'dired-other-window', 'dired-other-frame', and
|
|
|
|
|
'display-buffer-other-window' are now remapped to Ido equivalents if
|
|
|
|
|
Ido mode is active.
|
|
|
|
|
|
2016-04-24 11:55:56 +00:00
|
|
|
|
** Images
|
|
|
|
|
|
|
|
|
|
*** Images are automatically scaled before displaying based on the
|
|
|
|
|
'image-scaling-factor' variable (if Emacs supports scaling the images
|
|
|
|
|
in question).
|
|
|
|
|
|
2017-07-15 00:45:19 +00:00
|
|
|
|
*** It's now possible to specify aspect-ratio preserving combinations
|
|
|
|
|
of :width/:max-height and :height/:max-width keywords. In either
|
|
|
|
|
case, the "max" keywords win. (Previously some combinations would,
|
|
|
|
|
depending on the aspect ratio of the image, just be ignored and in
|
|
|
|
|
other instances this would lead to the aspect ratio not being
|
|
|
|
|
preserved.)
|
|
|
|
|
|
2016-04-24 11:55:56 +00:00
|
|
|
|
*** Images inserted with 'insert-image' and related functions get a
|
|
|
|
|
keymap put into the text properties (or overlays) that span the
|
|
|
|
|
image. This keymap binds keystrokes for manipulating size and
|
|
|
|
|
rotation, as well as saving the image to a file. These commands are
|
|
|
|
|
also available in 'image-mode'.
|
|
|
|
|
|
|
|
|
|
*** A new library for creating and manipulating SVG images has been
|
2017-10-14 10:52:05 +00:00
|
|
|
|
added. See the "(elisp) SVG Images" section in the ELisp reference
|
|
|
|
|
manual for details.
|
2016-04-24 11:55:56 +00:00
|
|
|
|
|
|
|
|
|
*** New setf-able function to access and set image parameters is
|
|
|
|
|
provided: 'image-property'.
|
|
|
|
|
|
2016-12-16 02:59:15 +00:00
|
|
|
|
*** New commands 'image-scroll-left' and 'image-scroll-right'
|
|
|
|
|
for 'image-mode' that complement 'image-scroll-up' and
|
|
|
|
|
'image-scroll-down': they have the same prefix arg behavior and stop
|
|
|
|
|
at image boundaries.
|
|
|
|
|
|
2016-12-20 01:37:46 +00:00
|
|
|
|
** Image-Dired
|
|
|
|
|
|
|
|
|
|
*** Now provides a minor mode 'image-dired-minor-mode' which replaces
|
|
|
|
|
the function 'image-dired-setup-dired-keybindings'.
|
|
|
|
|
|
2017-08-30 17:50:25 +00:00
|
|
|
|
*** Thumbnail generation is now asynchronous.
|
2016-12-20 01:37:46 +00:00
|
|
|
|
The number of concurrent processes is limited by the variable
|
2018-02-03 21:42:55 +00:00
|
|
|
|
'image-dired-queue-active-limit'.
|
2016-12-20 01:37:46 +00:00
|
|
|
|
|
|
|
|
|
*** 'image-dired-thumbnail-storage' has a new option 'standard-large'
|
|
|
|
|
for generating 256x256 thumbnails according to the Thumbnail Managing
|
|
|
|
|
Standard.
|
|
|
|
|
|
|
|
|
|
*** Inherits movement keys from 'image-mode' for viewing full images.
|
|
|
|
|
This includes the usual char, line, and page movement commands.
|
|
|
|
|
|
|
|
|
|
*** All the -options types have been changed to argument lists
|
|
|
|
|
instead of shell command strings. This change affects
|
|
|
|
|
'image-dired-cmd-create-thumbnail-options',
|
|
|
|
|
'image-dired-cmd-create-temp-image-options',
|
|
|
|
|
'image-dired-cmd-rotate-thumbnail-options',
|
|
|
|
|
'image-dired-cmd-rotate-original-options',
|
|
|
|
|
'image-dired-cmd-write-exif-data-options',
|
|
|
|
|
'image-dired-cmd-read-exif-data-options', and introduces
|
|
|
|
|
'image-dired-cmd-pngnq-options', 'image-dired-cmd-pngcrush-options',
|
2017-10-14 10:52:05 +00:00
|
|
|
|
'image-dired-cmd-create-standard-thumbnail-options'.
|
2016-12-20 01:37:46 +00:00
|
|
|
|
|
2017-10-14 10:52:05 +00:00
|
|
|
|
*** Recognizes more tools by default, including pngnq-s9 and OptiPNG.
|
2016-12-20 01:37:46 +00:00
|
|
|
|
|
|
|
|
|
*** 'find-file' and related commands now work on thumbnails and
|
|
|
|
|
displayed images, providing a default argument of the original file name
|
|
|
|
|
via an addition to 'file-name-at-point-functions'.
|
|
|
|
|
|
2016-05-26 18:48:17 +00:00
|
|
|
|
** The default 'Info-default-directory-list' no longer checks some obsolete
|
|
|
|
|
directory suffixes (gnu, gnu/lib, gnu/lib/emacs, emacs, lib, lib/emacs)
|
|
|
|
|
when searching for info directories.
|
|
|
|
|
|
2016-02-02 02:08:21 +00:00
|
|
|
|
** The commands that add ChangeLog entries now prefer a VCS root directory
|
|
|
|
|
for the ChangeLog file, if none already exists. Customize
|
2016-03-22 18:01:30 +00:00
|
|
|
|
'change-log-directory-files' to nil for the old behavior.
|
2016-02-02 02:08:21 +00:00
|
|
|
|
|
2016-03-22 18:01:30 +00:00
|
|
|
|
** Support for non-string values of 'time-stamp-format' has been removed.
|
2016-01-21 01:11:16 +00:00
|
|
|
|
|
2016-04-17 17:17:12 +00:00
|
|
|
|
** Message
|
|
|
|
|
|
2016-04-24 20:17:25 +00:00
|
|
|
|
*** 'message-use-idna' now defaults to t (because Emacs comes with
|
2016-04-17 17:17:12 +00:00
|
|
|
|
built-in IDNA support now).
|
|
|
|
|
|
2016-05-29 15:59:33 +00:00
|
|
|
|
*** When sending HTML messages with embedded images, and you have
|
|
|
|
|
exiftool installed, and you rotate images with EXIF data (i.e.,
|
|
|
|
|
JPEGs), the rotational information will be inserted into the outgoing
|
|
|
|
|
image in the message. (The original image will not have its
|
|
|
|
|
orientation affected.)
|
|
|
|
|
|
2016-04-24 11:55:56 +00:00
|
|
|
|
*** The 'message-valid-fqdn-regexp' variable has been removed, since
|
|
|
|
|
there are now top-level domains added all the time. Message will no
|
|
|
|
|
longer warn about sending emails to top-level domains it hasn't heard
|
|
|
|
|
about.
|
|
|
|
|
|
2017-10-14 10:52:05 +00:00
|
|
|
|
*** 'message-beginning-of-line' (bound to 'C-a') understands folded headers.
|
2016-04-24 11:55:56 +00:00
|
|
|
|
In 'visual-line-mode' it will look for the true beginning of a header
|
|
|
|
|
while in non-'visual-line-mode' it will move the point to the indented
|
|
|
|
|
header's value.
|
|
|
|
|
|
2017-04-11 09:27:37 +00:00
|
|
|
|
** Package
|
|
|
|
|
|
|
|
|
|
*** The new variable 'package-gnupghome-dir' has been added to control
|
|
|
|
|
where the GnuPG home directory (used for signature verification) is
|
2017-10-14 10:52:05 +00:00
|
|
|
|
located and whether GnuPG's option '--homedir' is used or not.
|
2017-04-11 09:27:37 +00:00
|
|
|
|
|
2017-06-19 18:39:25 +00:00
|
|
|
|
*** Deleting a package no longer respects 'delete-by-moving-to-trash'.
|
|
|
|
|
|
2017-12-25 20:51:19 +00:00
|
|
|
|
** Python
|
|
|
|
|
|
|
|
|
|
*** The new variable 'python-indent-def-block-scale' has been added.
|
|
|
|
|
It controls the depth of indentation of arguments inside multi-line
|
|
|
|
|
function signatures.
|
|
|
|
|
|
2016-04-24 11:55:56 +00:00
|
|
|
|
** Tramp
|
|
|
|
|
|
2017-08-30 17:50:25 +00:00
|
|
|
|
*** The method part of remote file names is mandatory now.
|
|
|
|
|
A valid remote file name starts with "/method:host:" or
|
|
|
|
|
"/method:user@host:".
|
2017-03-13 17:30:54 +00:00
|
|
|
|
|
2017-03-16 15:23:07 +00:00
|
|
|
|
*** The new pseudo method "-" is a marker for the default method.
|
2017-03-13 17:30:54 +00:00
|
|
|
|
"/-::" is the shortest remote file name then.
|
|
|
|
|
|
2018-02-04 17:18:39 +00:00
|
|
|
|
*** The command 'tramp-change-syntax' allows you to choose an
|
|
|
|
|
alternative remote file name syntax.
|
2017-04-09 11:28:24 +00:00
|
|
|
|
|
2016-04-24 20:17:25 +00:00
|
|
|
|
*** New connection method "sg", which supports editing files under a
|
2016-01-15 10:10:37 +00:00
|
|
|
|
different group ID.
|
|
|
|
|
|
2016-02-05 17:57:35 +00:00
|
|
|
|
*** New connection method "doas" for OpenBSD hosts.
|
|
|
|
|
|
2018-02-04 17:18:39 +00:00
|
|
|
|
*** New connection method "gdrive", which allows access to Google
|
2016-07-04 13:36:30 +00:00
|
|
|
|
Drive onsite repositories.
|
|
|
|
|
|
2017-08-30 17:50:25 +00:00
|
|
|
|
*** Gateway methods in Tramp have been removed.
|
|
|
|
|
Instead, the Tramp manual documents how to configure ssh and PuTTY
|
|
|
|
|
accordingly.
|
Remove gateway methods in Tramp
* doc/misc/tramp.texi (Top, Configuration): Remove section
`Gateway methods', insert section `Firewalls' in menu.
(History): Gateways are removed now.
(Gateway methods): Remove section.
(Multi-hops, Traces and Profiles): Don't reference to gateways anymore.
(Firewalls): New section.
* etc/NEWS: Gateway methods in Tramp have been removed.
* lisp/net/tramp.el (tramp-methods): Adapt docstring.
(tramp-file-name-port, tramp-accept-process-output): Simplify.
* lisp/net/tramp-gw.el: Remove.
* lisp/net/tramp-sh.el (tramp-gw-tunnel-method)
(tramp-gw-socks-method): Remove declarations.
(tramp-methods) <scp, scpx, ssh, sshx, telnet, nc, plink, pscp>:
Remove `tramp-gw-args' and `tramp-default-port'. (Bug#18967)
(tramp-do-copy-or-rename-file-out-of-band)
(tramp-compute-multi-hops, tramp-maybe-open-connection):
Remove gateway support.
* test/lisp/net/tramp-tests.el (tramp-test03-file-name-defaults):
Remove gateway tests.
2016-12-21 11:42:22 +00:00
|
|
|
|
|
2017-02-11 09:29:29 +00:00
|
|
|
|
*** Setting the "ENV" environment variable in
|
|
|
|
|
'tramp-remote-process-environment' enables reading of shell
|
|
|
|
|
initialization files.
|
2016-08-09 09:50:13 +00:00
|
|
|
|
|
2017-08-24 13:53:56 +00:00
|
|
|
|
*** Tramp is able now to send SIGINT to remote asynchronous processes.
|
|
|
|
|
|
2017-02-26 11:45:06 +00:00
|
|
|
|
*** Variable 'tramp-completion-mode' is obsoleted.
|
|
|
|
|
|
2016-03-22 18:01:30 +00:00
|
|
|
|
** 'auto-revert-use-notify' is set back to t in 'global-auto-revert-mode'.
|
2016-03-04 14:01:36 +00:00
|
|
|
|
|
2017-07-01 11:09:20 +00:00
|
|
|
|
** JS mode
|
|
|
|
|
|
|
|
|
|
*** JS mode now sets 'comment-multi-line' to t.
|
|
|
|
|
|
|
|
|
|
*** New variable 'js-indent-align-list-continuation', when set to nil,
|
|
|
|
|
will not align continuations of bracketed lists, but will indent them
|
|
|
|
|
by the fixed width 'js-indent-level'.
|
2017-02-12 04:15:13 +00:00
|
|
|
|
|
2016-03-23 18:03:47 +00:00
|
|
|
|
** CSS mode
|
|
|
|
|
|
2016-09-24 11:55:36 +00:00
|
|
|
|
*** Support for completing attribute values, at-rules, bang-rules,
|
|
|
|
|
HTML tags, classes and IDs using the 'completion-at-point' command.
|
|
|
|
|
Completion candidates for HTML classes and IDs are retrieved from open
|
|
|
|
|
HTML mode buffers.
|
2016-03-23 18:03:47 +00:00
|
|
|
|
|
2017-01-31 19:08:54 +00:00
|
|
|
|
*** CSS mode now binds 'C-h S' to a function that will show
|
2017-01-20 04:40:38 +00:00
|
|
|
|
information about a CSS construct (an at-rule, property, pseudo-class,
|
|
|
|
|
pseudo-element, with the default being guessed from context). By
|
|
|
|
|
default the information is looked up on the Mozilla Developer Network,
|
|
|
|
|
but this can be customized using 'css-lookup-url-format'.
|
|
|
|
|
|
2017-01-25 07:53:49 +00:00
|
|
|
|
*** CSS colors are fontified using the color they represent as the
|
|
|
|
|
background. For instance, #ff0000 would be fontified with a red
|
|
|
|
|
background.
|
|
|
|
|
|
2016-04-21 21:47:05 +00:00
|
|
|
|
** Emacs now supports character name escape sequences in character and
|
2017-10-14 10:52:05 +00:00
|
|
|
|
string literals. The syntax variants '\N{character name}' and
|
|
|
|
|
'\N{U+code}' are supported.
|
2016-04-21 21:47:05 +00:00
|
|
|
|
|
2016-04-24 11:55:56 +00:00
|
|
|
|
** Prog mode has some support for multi-mode indentation.
|
|
|
|
|
This allows better indentation support in modes that support multiple
|
|
|
|
|
programming languages in the same buffer, like literate programming
|
|
|
|
|
environments or ANTLR programs with embedded Python code.
|
|
|
|
|
|
2017-12-14 09:18:51 +00:00
|
|
|
|
A major mode can provide indentation context for a sub-mode. To
|
|
|
|
|
support this, modes should use 'prog-first-column' instead of a
|
2017-12-20 22:33:48 +00:00
|
|
|
|
literal zero and avoid calling 'widen' in their indentation functions.
|
2017-12-14 09:18:51 +00:00
|
|
|
|
See the node "(elisp) Mode-Specific Indent" in the ELisp manual for
|
|
|
|
|
more details.
|
2016-04-24 11:55:56 +00:00
|
|
|
|
|
|
|
|
|
** ERC
|
|
|
|
|
|
|
|
|
|
*** New variable 'erc-default-port-tls' used to connect to TLS IRC
|
|
|
|
|
servers.
|
|
|
|
|
|
|
|
|
|
** URL
|
|
|
|
|
|
|
|
|
|
*** The new function 'url-cookie-delete-cookie' can be used to
|
|
|
|
|
programmatically delete all cookies, or cookies from a specific
|
|
|
|
|
domain.
|
|
|
|
|
|
2016-05-02 01:52:50 +00:00
|
|
|
|
*** 'url-retrieve-synchronously' now takes an optional timeout parameter.
|
2016-04-25 22:47:51 +00:00
|
|
|
|
|
2017-10-13 18:51:13 +00:00
|
|
|
|
*** The URL package now supports HTTPS over proxies supporting CONNECT.
|
2016-04-24 11:55:56 +00:00
|
|
|
|
|
2016-04-24 20:17:25 +00:00
|
|
|
|
*** 'url-user-agent' now defaults to 'default', and the User-Agent
|
|
|
|
|
string is computed dynamically based on 'url-privacy-level'.
|
2016-04-24 12:51:33 +00:00
|
|
|
|
|
2016-04-24 11:55:56 +00:00
|
|
|
|
** VC and related modes
|
|
|
|
|
|
2017-02-15 12:19:50 +00:00
|
|
|
|
*** 'vc-dir-mode' now binds 'vc-log-outgoing' to 'O'; and has various
|
|
|
|
|
branch-related commands on a keymap bound to 'B'.
|
|
|
|
|
|
2017-09-29 16:38:56 +00:00
|
|
|
|
*** 'vc-region-history' is now bound to 'C-x v h', replacing the older
|
|
|
|
|
'vc-insert-headers' binding.
|
|
|
|
|
|
2018-02-04 21:58:37 +00:00
|
|
|
|
*** New user option 'vc-git-print-log-follow' to follow renames in Git logs
|
|
|
|
|
for a single file.
|
|
|
|
|
|
2016-06-07 12:05:36 +00:00
|
|
|
|
** CC mode
|
|
|
|
|
|
|
|
|
|
*** Opening a .h file will turn C or C++ mode depending on language used.
|
2017-11-19 08:19:51 +00:00
|
|
|
|
This is done with the help of the 'c-or-c++-mode' function, which
|
|
|
|
|
analyzes buffer contents to infer whether it's a C or C++ source file.
|
2016-06-07 12:05:36 +00:00
|
|
|
|
|
2017-10-23 22:38:40 +00:00
|
|
|
|
** New option 'cpp-message-min-time-interval' to allow user control
|
|
|
|
|
of progress messages in cpp.el.
|
|
|
|
|
|
2017-05-24 00:34:08 +00:00
|
|
|
|
** New DNS mode command 'dns-mode-ipv6-to-nibbles' to convert IPv6 addresses
|
|
|
|
|
to a format suitable for reverse lookup zone files.
|
|
|
|
|
|
2017-08-20 12:56:38 +00:00
|
|
|
|
** Ispell
|
|
|
|
|
|
2017-08-30 17:50:25 +00:00
|
|
|
|
*** Enchant is now supported as a spell-checker.
|
2017-10-14 10:52:05 +00:00
|
|
|
|
Enchant is a meta-spell-checker that uses providers such as Hunspell
|
|
|
|
|
to do the actual checking. With it, users can use spell-checkers not
|
|
|
|
|
directly supported by Emacs, such as Voikko, Hspell and AppleSpell,
|
|
|
|
|
more easily share personal word-lists with other programs, and
|
|
|
|
|
configure different spelling-checkers for different languages.
|
|
|
|
|
(Version 2.1.0 or later of Enchant is required.)
|
2017-08-20 12:56:38 +00:00
|
|
|
|
|
2016-10-15 20:16:26 +00:00
|
|
|
|
** Flymake
|
|
|
|
|
|
2018-08-21 15:58:15 +00:00
|
|
|
|
*** Flymake has been completely redesigned.
|
2017-10-10 14:57:52 +00:00
|
|
|
|
Flymake now annotates arbitrary buffer regions, not just lines. It
|
|
|
|
|
supports arbitrary diagnostic types, not just errors and warnings (see
|
|
|
|
|
variable 'flymake-diagnostic-types-alist').
|
|
|
|
|
|
|
|
|
|
It also supports multiple simultaneous backends, meaning that you can
|
|
|
|
|
check your buffer from different perspectives (see variable
|
|
|
|
|
'flymake-diagnostic-functions'). Backends for Emacs Lisp mode are
|
|
|
|
|
provided.
|
|
|
|
|
|
2017-10-14 10:52:05 +00:00
|
|
|
|
The old Flymake behavior is preserved in the so-called "legacy
|
2017-10-10 14:57:52 +00:00
|
|
|
|
backend", which has been updated to benefit from the new UI features.
|
2016-10-15 20:16:26 +00:00
|
|
|
|
|
2017-10-21 08:17:56 +00:00
|
|
|
|
** Term
|
|
|
|
|
|
2018-02-28 04:13:00 +00:00
|
|
|
|
*** 'term-char-mode' now makes its buffer read-only.
|
2017-10-21 08:17:56 +00:00
|
|
|
|
The buffer is made read-only to prevent changes from being made by
|
|
|
|
|
anything other than the process filter; and movements of point away
|
|
|
|
|
from the process mark are counter-acted so that the cursor is in the
|
|
|
|
|
correct position after each command. This is needed to avoid states
|
|
|
|
|
which are inconsistent with the state of the terminal understood by
|
|
|
|
|
the inferior process.
|
|
|
|
|
|
2018-02-28 04:13:00 +00:00
|
|
|
|
New user options 'term-char-mode-buffer-read-only' and
|
|
|
|
|
'term-char-mode-point-at-process-mark' control these behaviors, and
|
2017-10-21 08:17:56 +00:00
|
|
|
|
are non-nil by default. Customize these options to nil if you want
|
|
|
|
|
the previous behavior.
|
|
|
|
|
|
2017-10-13 15:37:47 +00:00
|
|
|
|
** Xref
|
|
|
|
|
|
|
|
|
|
*** When an *xref* buffer is needed, 'TAB' quits and jumps to an xref.
|
|
|
|
|
A new command 'xref-quit-and-goto-xref', bound to 'TAB' in *xref*
|
|
|
|
|
buffers, quits the window before jumping to the destination. In many
|
|
|
|
|
situations, the intended window configuration is restored, just as if
|
|
|
|
|
the *xref* buffer hadn't been necessary in the first place.
|
|
|
|
|
|
2016-01-07 01:45:14 +00:00
|
|
|
|
|
2016-10-01 08:14:05 +00:00
|
|
|
|
* New Modes and Packages in Emacs 26.1
|
2016-01-07 01:45:14 +00:00
|
|
|
|
|
2016-08-31 03:54:05 +00:00
|
|
|
|
** New Elisp data-structure library 'radix-tree'.
|
2016-05-31 03:22:49 +00:00
|
|
|
|
|
2017-02-07 04:27:47 +00:00
|
|
|
|
** New library 'xdg' with utilities for some XDG standards and specs.
|
|
|
|
|
|
2017-03-23 17:34:18 +00:00
|
|
|
|
** HTML
|
|
|
|
|
|
2017-04-07 02:26:28 +00:00
|
|
|
|
*** A new submode of 'html-mode', 'mhtml-mode', is now the default
|
2017-04-13 16:59:37 +00:00
|
|
|
|
mode for *.html files. This mode handles indentation,
|
|
|
|
|
fontification, and commenting for embedded JavaScript and CSS.
|
2017-03-23 17:34:18 +00:00
|
|
|
|
|
2017-10-14 10:52:05 +00:00
|
|
|
|
** New mode 'conf-toml-mode' is a sub-mode of 'conf-mode', specialized
|
|
|
|
|
for editing TOML files.
|
2017-08-23 22:06:48 +00:00
|
|
|
|
|
2017-10-14 10:52:05 +00:00
|
|
|
|
** New mode 'conf-desktop-mode' is a sub-mode of 'conf-unix-mode',
|
2017-08-28 02:22:29 +00:00
|
|
|
|
specialized for editing freedesktop.org desktop entries.
|
|
|
|
|
|
2017-05-13 17:25:39 +00:00
|
|
|
|
** New minor mode 'pixel-scroll-mode' provides smooth pixel-level scrolling.
|
|
|
|
|
|
2017-08-01 18:23:21 +00:00
|
|
|
|
** New major mode 'less-css-mode' (a minor variant of 'css-mode') for
|
|
|
|
|
editing Less files.
|
|
|
|
|
|
2018-03-22 10:55:15 +00:00
|
|
|
|
** New package 'auth-source-pass' integrates 'auth-source' with the
|
|
|
|
|
password manager password-store (http://passwordstore.org).
|
|
|
|
|
|
2016-01-07 01:45:14 +00:00
|
|
|
|
|
2016-10-01 08:14:05 +00:00
|
|
|
|
* Incompatible Lisp Changes in Emacs 26.1
|
2016-01-07 01:45:14 +00:00
|
|
|
|
|
2017-10-14 10:52:05 +00:00
|
|
|
|
** 'password-data' is now a hash-table so that 'password-read' can use
|
|
|
|
|
any object for the 'key' argument.
|
2017-07-28 16:27:00 +00:00
|
|
|
|
|
2017-10-14 10:52:05 +00:00
|
|
|
|
** Command 'dired-mark-extension' now automatically prepends a '.' to the
|
2017-03-31 08:27:08 +00:00
|
|
|
|
extension when not present. The new command 'dired-mark-suffix' behaves
|
|
|
|
|
similarly but it doesn't prepend a '.'.
|
|
|
|
|
|
2017-03-09 14:32:03 +00:00
|
|
|
|
** Certain cond/pcase/cl-case forms are now compiled using a faster jump
|
2017-08-30 17:50:25 +00:00
|
|
|
|
table implementation. This uses a new bytecode op 'switch', which
|
|
|
|
|
isn't compatible with previous Emacs versions. This functionality can
|
|
|
|
|
be disabled by setting 'byte-compile-cond-use-jump-table' to nil.
|
2017-03-09 14:32:03 +00:00
|
|
|
|
|
2017-11-06 07:45:52 +00:00
|
|
|
|
** If 'comment-auto-fill-only-comments' is non-nil, 'auto-fill-function'
|
|
|
|
|
is now called only if either no comment syntax is defined for the
|
|
|
|
|
current buffer or the self-insertion takes place within a comment.
|
|
|
|
|
|
2017-08-31 21:22:39 +00:00
|
|
|
|
** The alist 'ucs-names' is now a hash table.
|
|
|
|
|
|
2018-03-10 15:39:41 +00:00
|
|
|
|
** 'if-let' and 'when-let' now support binding lists as defined by the
|
|
|
|
|
SRFI-2 (Scheme Request for Implementation 2).
|
2017-09-12 16:44:45 +00:00
|
|
|
|
|
2016-04-24 11:55:56 +00:00
|
|
|
|
** 'C-up', 'C-down', 'C-left' and 'C-right' are now defined in term
|
|
|
|
|
mode to send the same escape sequences that xterm does. This makes
|
2017-10-14 10:52:05 +00:00
|
|
|
|
things like 'forward-word' in readline work.
|
2016-04-24 11:55:56 +00:00
|
|
|
|
|
2017-02-14 00:04:28 +00:00
|
|
|
|
** Customizable variable 'query-replace-from-to-separator'
|
|
|
|
|
now doesn't propertize the string value of the separator.
|
2017-10-14 10:52:05 +00:00
|
|
|
|
Instead, text properties are added by 'query-replace-read-from'.
|
2017-02-14 00:04:28 +00:00
|
|
|
|
Additionally, the new nil value restores pre-24.5 behavior
|
|
|
|
|
of not providing replacement pairs via the history.
|
|
|
|
|
|
2016-11-06 16:53:47 +00:00
|
|
|
|
** Some obsolete functions, variables, and faces have been removed:
|
2017-10-14 10:52:05 +00:00
|
|
|
|
|
|
|
|
|
*** 'make-variable-frame-local'. Variables cannot be frame-local any more.
|
|
|
|
|
|
|
|
|
|
*** From subr.el: 'window-dot', 'set-window-dot', 'read-input',
|
|
|
|
|
'show-buffer', 'eval-current-buffer', 'string-to-int'.
|
|
|
|
|
|
|
|
|
|
*** 'icomplete-prospects-length'.
|
|
|
|
|
|
Remove obsolete default-FOO variables
* etc/NEWS: Indicate the removed variables.
* lisp/emacs-lisp/edebug.el (edebug-outside-mark): Fix comment.
* lisp/subr.el (default-mode-line-format, default-header-line-format):
(default-line-spacing, default-abbrev-mode, default-ctl-arrow):
(default-truncate-lines, default-left-margin, default-tab-width):
(default-case-fold-search, default-left-margin-width):
(default-right-margin-width, default-left-fringe-width):
(default-right-fringe-width, default-fringes-outside-margins):
(default-scroll-bar-width, default-vertical-scroll-bar):
(default-indicate-empty-lines, default-indicate-buffer-boundaries):
(default-fringe-indicator-alist, default-fringe-cursor-alist):
(default-scroll-up-aggressively, default-scroll-down-aggressively):
(default-fill-column, default-cursor-type):
(default-cursor-in-non-selected-windows):
(default-buffer-file-coding-system, default-major-mode):
(default-enable-multibyte-characters): Remove obsolete declarations.
* src/buffer.c (default-mode-line-format, default-header-line-format):
(default-line-spacing, default-abbrev-mode, default-ctl-arrow):
(default-truncate-lines, default-left-margin, default-tab-width):
(default-case-fold-search, default-left-margin-width):
(default-right-margin-width, default-left-fringe-width):
(default-right-fringe-width, default-fringes-outside-margins):
(default-scroll-bar-width, default-vertical-scroll-bar):
(default-indicate-empty-lines, default-indicate-buffer-boundaries):
(default-fringe-indicator-alist, default-fringe-cursor-alist):
(default-scroll-up-aggressively, default-scroll-down-aggressively):
(default-fill-column, default-cursor-type):
(default-cursor-in-non-selected-windows):
(default-buffer-file-coding-system, default-major-mode):
(default-enable-multibyte-characters): Remove.
* src/fileio.c (choose_write_coding_system): Fix comment.
* src/lisp.h (DEFVAR_BUFFER_DEFAULTS): Remove.
2016-11-08 02:31:47 +00:00
|
|
|
|
*** All the default-FOO variables that hold the default value of the
|
|
|
|
|
FOO variable. Use 'default-value' and 'setq-default' to access and
|
2016-11-19 22:57:40 +00:00
|
|
|
|
change FOO, respectively. The exhaustive list of removed variables is:
|
Remove obsolete default-FOO variables
* etc/NEWS: Indicate the removed variables.
* lisp/emacs-lisp/edebug.el (edebug-outside-mark): Fix comment.
* lisp/subr.el (default-mode-line-format, default-header-line-format):
(default-line-spacing, default-abbrev-mode, default-ctl-arrow):
(default-truncate-lines, default-left-margin, default-tab-width):
(default-case-fold-search, default-left-margin-width):
(default-right-margin-width, default-left-fringe-width):
(default-right-fringe-width, default-fringes-outside-margins):
(default-scroll-bar-width, default-vertical-scroll-bar):
(default-indicate-empty-lines, default-indicate-buffer-boundaries):
(default-fringe-indicator-alist, default-fringe-cursor-alist):
(default-scroll-up-aggressively, default-scroll-down-aggressively):
(default-fill-column, default-cursor-type):
(default-cursor-in-non-selected-windows):
(default-buffer-file-coding-system, default-major-mode):
(default-enable-multibyte-characters): Remove obsolete declarations.
* src/buffer.c (default-mode-line-format, default-header-line-format):
(default-line-spacing, default-abbrev-mode, default-ctl-arrow):
(default-truncate-lines, default-left-margin, default-tab-width):
(default-case-fold-search, default-left-margin-width):
(default-right-margin-width, default-left-fringe-width):
(default-right-fringe-width, default-fringes-outside-margins):
(default-scroll-bar-width, default-vertical-scroll-bar):
(default-indicate-empty-lines, default-indicate-buffer-boundaries):
(default-fringe-indicator-alist, default-fringe-cursor-alist):
(default-scroll-up-aggressively, default-scroll-down-aggressively):
(default-fill-column, default-cursor-type):
(default-cursor-in-non-selected-windows):
(default-buffer-file-coding-system, default-major-mode):
(default-enable-multibyte-characters): Remove.
* src/fileio.c (choose_write_coding_system): Fix comment.
* src/lisp.h (DEFVAR_BUFFER_DEFAULTS): Remove.
2016-11-08 02:31:47 +00:00
|
|
|
|
'default-mode-line-format', 'default-header-line-format',
|
|
|
|
|
'default-line-spacing', 'default-abbrev-mode', 'default-ctl-arrow',
|
|
|
|
|
'default-truncate-lines', 'default-left-margin', 'default-tab-width',
|
|
|
|
|
'default-case-fold-search', 'default-left-margin-width',
|
|
|
|
|
'default-right-margin-width', 'default-left-fringe-width',
|
|
|
|
|
'default-right-fringe-width', 'default-fringes-outside-margins',
|
|
|
|
|
'default-scroll-bar-width', 'default-vertical-scroll-bar',
|
|
|
|
|
'default-indicate-empty-lines', 'default-indicate-buffer-boundaries',
|
|
|
|
|
'default-fringe-indicator-alist', 'default-fringe-cursor-alist',
|
|
|
|
|
'default-scroll-up-aggressively', 'default-scroll-down-aggressively',
|
|
|
|
|
'default-fill-column', 'default-cursor-type',
|
|
|
|
|
'default-cursor-in-non-selected-windows',
|
|
|
|
|
'default-buffer-file-coding-system', 'default-major-mode', and
|
|
|
|
|
'default-enable-multibyte-characters'.
|
2017-10-14 10:52:05 +00:00
|
|
|
|
|
|
|
|
|
*** Many variables obsoleted in 22.1 referring to face symbols.
|
2016-11-06 16:53:47 +00:00
|
|
|
|
|
2018-08-21 15:58:15 +00:00
|
|
|
|
** The variable 'text-quoting-style' is now a customizable option.
|
|
|
|
|
It controls whether to and how to translate ASCII quotes in messages
|
|
|
|
|
and help output. Its possible values and their semantics remain
|
|
|
|
|
unchanged from Emacs 25. In particular, when this variable's value is
|
|
|
|
|
'grave', all quotes in formats are output as-is.
|
2016-05-10 14:38:23 +00:00
|
|
|
|
|
2016-05-18 07:48:35 +00:00
|
|
|
|
** Functions like 'check-declare-file' and 'check-declare-directory'
|
|
|
|
|
now generate less chatter and more-compact diagnostics. The auxiliary
|
|
|
|
|
function 'check-declare-errmsg' has been removed.
|
|
|
|
|
|
2017-10-14 10:52:05 +00:00
|
|
|
|
** The regular expression character class '[:blank:]' now matches
|
2017-01-06 14:56:51 +00:00
|
|
|
|
Unicode horizontal whitespace as defined in the Unicode Technical
|
2017-10-14 10:52:05 +00:00
|
|
|
|
Standard #18. If you only want to match space and tab, use '[ \t]'
|
2017-01-06 14:56:51 +00:00
|
|
|
|
instead.
|
|
|
|
|
|
2017-08-30 16:23:59 +00:00
|
|
|
|
** 'min' and 'max' no longer round their results.
|
|
|
|
|
Formerly, they returned a floating-point value if any argument was
|
|
|
|
|
floating-point, which was sometimes numerically incorrect. For
|
|
|
|
|
example, on a 64-bit host (max 1e16 10000000000000001) now returns its
|
|
|
|
|
second argument instead of its first.
|
2017-03-06 23:14:32 +00:00
|
|
|
|
|
2017-05-06 20:23:03 +00:00
|
|
|
|
** The variable 'old-style-backquotes' has been made internal and
|
|
|
|
|
renamed to 'lread--old-style-backquotes'. No user code should use
|
|
|
|
|
this variable.
|
|
|
|
|
|
2017-08-20 00:15:52 +00:00
|
|
|
|
** 'default-file-name-coding-system' now defaults to a coding system
|
2017-10-14 10:52:05 +00:00
|
|
|
|
that does not process CRLF. For example, it defaults to 'utf-8-unix'
|
|
|
|
|
instead of to 'utf-8'. Before this change, Emacs would sometimes
|
2017-08-20 00:15:52 +00:00
|
|
|
|
mishandle file names containing these control characters.
|
|
|
|
|
|
2017-08-27 01:36:38 +00:00
|
|
|
|
** 'file-attributes', 'file-symlink-p' and 'make-symbolic-link' no
|
|
|
|
|
longer quietly mutate the target of a local symbolic link, so that
|
|
|
|
|
Emacs can access and copy them reliably regardless of their contents.
|
|
|
|
|
The following changes are involved.
|
|
|
|
|
|
|
|
|
|
*** 'file-attributes' and 'file-symlink-p' no longer prepend "/:" to
|
|
|
|
|
symbolic links whose targets begin with "/" and contain ":". For
|
2017-09-05 13:32:03 +00:00
|
|
|
|
example, if a symbolic link "x" has a target "/y:z:", '(file-symlink-p
|
|
|
|
|
"x")' now returns "/y:z:" rather than "/:/y:z:".
|
2017-08-27 01:36:38 +00:00
|
|
|
|
|
2017-09-05 13:32:03 +00:00
|
|
|
|
*** 'make-symbolic-link' no longer looks for file name handlers of
|
|
|
|
|
target when creating a symbolic link. For example,
|
|
|
|
|
'(make-symbolic-link "/y:z:" "x")' now creates a symbolic link to
|
|
|
|
|
"/y:z:" instead of failing.
|
|
|
|
|
|
|
|
|
|
*** 'make-symbolic-link' removes the remote part of a link target if
|
|
|
|
|
target and newname have the same remote part. For example,
|
|
|
|
|
'(make-symbolic-link "/x:y:a" "/x:y:b")' creates a link with the
|
|
|
|
|
literal string "a"; and '(make-symbolic-link "/x:y:a" "/x:z:b")'
|
|
|
|
|
creates a link with the literal string "/x:y:a" instead of failing.
|
2017-08-27 01:36:38 +00:00
|
|
|
|
|
|
|
|
|
*** 'make-symbolic-link' now expands a link target with leading "~"
|
|
|
|
|
only when the optional third arg is an integer, as when invoked
|
2017-09-05 13:32:03 +00:00
|
|
|
|
interactively. For example, '(make-symbolic-link "~y" "x")' now
|
|
|
|
|
creates a link with target the literal string "~y"; to get the old
|
|
|
|
|
behavior, use '(make-symbolic-link (expand-file-name "~y") "x")'. To
|
|
|
|
|
avoid this expansion in interactive use, you can now prefix the link
|
|
|
|
|
target with "/:". For example, '(make-symbolic-link "/:~y" "x" 1)'
|
|
|
|
|
now creates a link to literal "~y".
|
|
|
|
|
|
|
|
|
|
** 'file-truename' returns a quoted file name if the target of a
|
|
|
|
|
symbolic link has remote file name syntax.
|
2017-08-27 01:36:38 +00:00
|
|
|
|
|
Reimplement module functions
Instead of a lambda, create a new type containing all data required to
call the function, and support it in the evaluator. Because this type
now also needs to store the function documentation, it is too big for
Lisp_Misc; use a pseudovector instead. That also has the nice benefit
that we don't have to add special support to the garbage collector.
Since the new type is user-visible, give it a predicate.
Now we can easily support 'help-function-args' and 'func-arity'; add
unit tests for these.
* src/lisp.h (allocate_module_function, MODULE_FUNCTIONP)
(XMODULE_FUNCTION): New pseudovector type 'module function'.
* src/eval.c (FUNCTIONP): Also treat module functions as functions.
(funcall_lambda, Ffuncall, eval_sub): Add support for calling module
functions.
(Ffunc_arity): Add support for detecting the arity of module
functions.
* src/emacs-module.c (module_make_function): Adapt to new structure.
Return module function object directly instead of wrapping it in a
lambda; remove FIXME.
(funcall_module): New function to call module functions. Replaces
`internal--module-call' and is called directly from eval.c.
(syms_of_module): Remove internal helper function, which is no longer
needed.
(module_function_arity): New helper function.
* src/data.c (Ftype_of): Adapt to new implementation.
(Fmodule_function_p, syms_of_data): New user-visible function. Now
that module functions are first-class objects, they deserve a
predicate. Define it even if not compiled with --enable-modules so
that Lisp code doesn't have to check for the function's existence.
* src/doc.c (Fdocumentation): Support module functions.
* src/print.c (print_object): Adapt to new implementation.
* src/alloc.c (mark_object): Specialized garbage collector support is
no longer needed.
* lisp/help.el (help-function-arglist): Support module functions.
While there, simplify the arity calculation by using `func-arity',
which does the right thing for all kinds of functions.
* test/data/emacs-module/mod-test.c: Amend docstring so we can test
the argument list.
* test/src/emacs-module-tests.el (mod-test-sum-docstring): Adapt to
new docstring.
(mod-test-non-local-exit-signal-test): Because `internal--module-call'
is gone, the backtrace has changed and no longer leaks the
implementation.
(module--func-arity): New test for `func-arity'.
(module--help-function-arglist): New test for `help-function-arglist'.
2017-05-13 14:29:40 +00:00
|
|
|
|
** Module functions are now implemented slightly differently; in
|
|
|
|
|
particular, the function 'internal--module-call' has been removed.
|
|
|
|
|
Code that depends on undocumented internals of the module system might
|
|
|
|
|
break.
|
|
|
|
|
|
2017-09-05 13:32:03 +00:00
|
|
|
|
** The argument LOCKNAME of 'write-region' is propagated to file name
|
|
|
|
|
handlers now.
|
2017-08-12 10:30:39 +00:00
|
|
|
|
|
2017-08-27 10:38:46 +00:00
|
|
|
|
** When built against recent versions of GTK+, Emacs always uses
|
|
|
|
|
gtk_window_move for moving frames and ignores the value of the
|
|
|
|
|
variable 'x-gtk-use-window-move'. The variable is now obsolete.
|
|
|
|
|
|
2017-09-10 22:39:24 +00:00
|
|
|
|
** Several functions that create or rename files now treat their
|
|
|
|
|
destination argument specially only when it is a directory name, i.e.,
|
|
|
|
|
when it ends in '/' on GNU and other POSIX-like systems. When the
|
|
|
|
|
destination argument D of one of these functions is an existing
|
|
|
|
|
directory and the intent is to act on an entry in that directory, D
|
|
|
|
|
should now be a directory name. For example, (rename-file "e" "f/")
|
|
|
|
|
renames to 'f/e'. Although this formerly happened sometimes even when
|
|
|
|
|
D was not a directory name, as in (rename-file "e" "f") where 'f'
|
|
|
|
|
happened to be a directory, the old behavior often contradicted the
|
|
|
|
|
documentation and had inherent races that led to security holes. A
|
|
|
|
|
call like (rename-file C D) that used the old, undocumented behavior
|
|
|
|
|
can be written as (rename-file C (file-name-as-directory D)), a
|
|
|
|
|
formulation portable to both older and newer versions of Emacs.
|
2017-10-14 10:52:05 +00:00
|
|
|
|
Affected functions include 'add-name-to-file', 'copy-directory',
|
|
|
|
|
'copy-file', 'format-write-file', 'gnus-copy-file',
|
|
|
|
|
'make-symbolic-link', 'rename-file', 'thumbs-rename-images', and
|
|
|
|
|
'write-file'.
|
2017-09-10 22:39:24 +00:00
|
|
|
|
|
2017-09-16 10:02:31 +00:00
|
|
|
|
** The list returned by 'overlays-at' is now in decreasing priority order.
|
|
|
|
|
The documentation of this function always said the order should be
|
|
|
|
|
that of decreasing priority, if the 2nd argument of the function is
|
|
|
|
|
non-nil, but the code returned the list in the increasing order of
|
|
|
|
|
priority instead. Now the code does what the documentation says it
|
|
|
|
|
should do.
|
|
|
|
|
|
2017-10-07 11:32:12 +00:00
|
|
|
|
** 'format' now avoids allocating a new string in more cases.
|
|
|
|
|
'format' was previously documented to return a newly-allocated string,
|
|
|
|
|
but this documentation was not correct, as (eq x (format x)) returned
|
|
|
|
|
t when x was the empty string. 'format' is no longer documented to
|
|
|
|
|
return a newly-allocated string, and the implementation now takes
|
|
|
|
|
advantage of the doc change to avoid making copies of strings in
|
|
|
|
|
common cases like (format "foo") and (format "%s" "foo").
|
|
|
|
|
|
2017-09-29 10:27:42 +00:00
|
|
|
|
** The function 'eldoc-message' now accepts a single argument.
|
|
|
|
|
Programs that called it with multiple arguments before should pass
|
|
|
|
|
them through 'format' first. Even that is discouraged: for ElDoc
|
|
|
|
|
support, you should set 'eldoc-documentation-function' instead of
|
|
|
|
|
calling 'eldoc-message' directly.
|
2017-10-14 10:52:05 +00:00
|
|
|
|
|
2017-11-13 17:46:13 +00:00
|
|
|
|
** Using '&rest' or '&optional' incorrectly is now an error.
|
|
|
|
|
For example giving '&optional' without a following variable, or
|
|
|
|
|
passing '&optional' multiple times:
|
|
|
|
|
|
|
|
|
|
(defun foo (&optional &rest x))
|
|
|
|
|
(defun bar (&optional &optional x))
|
|
|
|
|
|
|
|
|
|
Previously, Emacs would just ignore the extra keyword, or give
|
|
|
|
|
incorrect results in certain cases.
|
|
|
|
|
|
2017-12-22 09:48:15 +00:00
|
|
|
|
** The pinentry.el library has been removed.
|
|
|
|
|
That package (and the corresponding change in GnuPG and pinentry)
|
|
|
|
|
was intended to provide a way to input passphrase through Emacs with
|
|
|
|
|
GnuPG 2.0. However, the change to support that was only implemented
|
|
|
|
|
in GnuPG >= 2.1 and didn't get backported to GnuPG 2.0. And with
|
|
|
|
|
GnuPG 2.1 and later, pinentry.el is not needed at all. So the
|
|
|
|
|
library was useless, and we removed it. GnuPG 2.0 is no longer
|
|
|
|
|
supported by the upstream project.
|
|
|
|
|
|
|
|
|
|
To adapt to the change, you may need to set 'epa-pinentry-mode' to the
|
2018-04-02 05:59:27 +00:00
|
|
|
|
symbol 'loopback'. Alternatively, leave 'epa-pinentry-mode' at its
|
|
|
|
|
default value of nil, and remove the 'allow-emacs-pinentry' setting
|
|
|
|
|
from your 'gpg-agent.conf' configuration file, usually found in the
|
|
|
|
|
'~/.gnupg' directory.
|
2017-12-22 09:48:15 +00:00
|
|
|
|
|
2017-12-31 04:37:17 +00:00
|
|
|
|
Note that previously, it was said that passphrase input through
|
|
|
|
|
minibuffer would be much less secure than other graphical pinentry
|
|
|
|
|
programs. However, these days the difference is insignificant: the
|
|
|
|
|
'read-password' function sufficiently protects input from leakage to
|
|
|
|
|
message logs. Emacs still doesn't use secure memory to protect
|
|
|
|
|
passphrases, but it was also removed from other pinentry programs as
|
|
|
|
|
the attack is unrealistic on modern computer systems which don't
|
|
|
|
|
utilize swap memory usually.
|
|
|
|
|
|
2018-04-20 06:12:10 +00:00
|
|
|
|
** The function 'display-buffer-in-major-side-window' no longer exists.
|
2018-04-18 12:19:21 +00:00
|
|
|
|
It has been renamed as internal function 'window--make-major-side-window',
|
2018-04-20 06:12:10 +00:00
|
|
|
|
however applications should instead call 'display-buffer-in-side-window'
|
2018-04-18 12:19:21 +00:00
|
|
|
|
(passing the SIDE and SLOT parameters as elements of ALIST). This approach
|
2018-04-20 06:12:10 +00:00
|
|
|
|
is backwards-compatible with versions of Emacs in which the old function
|
|
|
|
|
exists. See the node "Displaying Buffers in Side Windows" in the ELisp
|
|
|
|
|
manual for more details.
|
2016-01-07 01:45:14 +00:00
|
|
|
|
|
2016-10-01 08:14:05 +00:00
|
|
|
|
* Lisp Changes in Emacs 26.1
|
2016-01-07 01:45:14 +00:00
|
|
|
|
|
2017-09-02 09:37:51 +00:00
|
|
|
|
** The function 'assoc' now takes an optional third argument TESTFN.
|
|
|
|
|
This argument, when non-nil, is used for comparison instead of
|
|
|
|
|
'equal'.
|
2017-07-28 16:02:01 +00:00
|
|
|
|
|
2017-07-17 12:30:50 +00:00
|
|
|
|
** New optional argument TESTFN in 'alist-get', 'map-elt' and 'map-put'.
|
2017-09-02 09:37:51 +00:00
|
|
|
|
If non-nil, the argument specifies a function to use for comparison,
|
|
|
|
|
instead of, respectively, 'assq' and 'eql'.
|
2017-07-17 12:30:50 +00:00
|
|
|
|
|
2017-04-17 09:01:39 +00:00
|
|
|
|
** New function 'seq-set-equal-p' to check if SEQUENCE1 and SEQUENCE2
|
|
|
|
|
contain the same elements, regardless of the order.
|
|
|
|
|
|
2017-09-02 09:37:51 +00:00
|
|
|
|
** The new function 'mapbacktrace' applies a function to all frames of
|
|
|
|
|
the current stack trace.
|
|
|
|
|
|
|
|
|
|
** The new function 'file-name-case-insensitive-p' tests whether a
|
|
|
|
|
given file is on a case-insensitive filesystem.
|
|
|
|
|
|
|
|
|
|
** Several accessors for the value returned by 'file-attributes'
|
|
|
|
|
have been added. They are: 'file-attribute-type',
|
|
|
|
|
'file-attribute-link-number', 'file-attribute-user-id',
|
|
|
|
|
'file-attribute-group-id', 'file-attribute-access-time',
|
|
|
|
|
'file-attribute-modification-time',
|
|
|
|
|
'file-attribute-status-change-time', 'file-attribute-size',
|
|
|
|
|
'file-attribute-modes', 'file-attribute-inode-number',
|
|
|
|
|
'file-attribute-device-number' and 'file-attribute-collect'.
|
|
|
|
|
|
|
|
|
|
** The new function 'buffer-hash' computes a fast, non-consing hash of
|
|
|
|
|
a buffer's contents.
|
|
|
|
|
|
|
|
|
|
** 'interrupt-process' now consults the list 'interrupt-process-functions',
|
|
|
|
|
to determine which function has to be called in order to deliver the
|
|
|
|
|
SIGINT signal. This allows Tramp to send the SIGINT signal to remote
|
|
|
|
|
asynchronous processes. The hitherto existing implementation has been
|
|
|
|
|
moved to 'internal-default-interrupt-process'.
|
|
|
|
|
|
|
|
|
|
** The new function 'read-multiple-choice' prompts for multiple-choice
|
|
|
|
|
questions, with a handy way to display help texts.
|
|
|
|
|
|
|
|
|
|
** 'comment-indent-function' values may now return a cons to specify a
|
|
|
|
|
range of indentation.
|
|
|
|
|
|
|
|
|
|
** New optional argument TEXT in 'make-temp-file'.
|
|
|
|
|
|
2017-10-14 10:52:05 +00:00
|
|
|
|
** New function 'define-symbol-prop'.
|
2017-07-14 15:04:19 +00:00
|
|
|
|
|
|
|
|
|
** New function 'secure-hash-algorithms' to list the algorithms that
|
|
|
|
|
'secure-hash' supports.
|
|
|
|
|
See the node "(elisp) Checksum/Hash" in the ELisp manual for details.
|
|
|
|
|
|
|
|
|
|
** Emacs now exposes the GnuTLS cryptographic API with the functions
|
|
|
|
|
'gnutls-macs' and 'gnutls-hash-mac'; 'gnutls-digests' and
|
|
|
|
|
'gnutls-hash-digest'; 'gnutls-ciphers' and 'gnutls-symmetric-encrypt'
|
|
|
|
|
and 'gnutls-symmetric-decrypt'.
|
|
|
|
|
See the node "(elisp) GnuTLS Cryptography" in the ELisp manual for details.
|
|
|
|
|
|
2017-11-05 15:26:36 +00:00
|
|
|
|
** The function 'gnutls-available-p' now returns a list of capabilities
|
|
|
|
|
supported by the GnuTLS library used by Emacs.
|
|
|
|
|
|
2017-04-04 21:06:25 +00:00
|
|
|
|
** Emacs now supports records for user-defined types, via the new
|
2017-04-08 01:54:40 +00:00
|
|
|
|
functions 'make-record', 'record', and 'recordp'. Records are now
|
|
|
|
|
used internally to represent cl-defstruct and defclass instances, for
|
|
|
|
|
example.
|
2017-04-04 21:06:25 +00:00
|
|
|
|
|
2017-12-22 10:04:23 +00:00
|
|
|
|
If your program defines new record types, you should use
|
|
|
|
|
package-naming conventions for naming those types. This is so any
|
|
|
|
|
potential conflicts with other types are avoided.
|
|
|
|
|
|
2017-02-04 09:16:55 +00:00
|
|
|
|
** 'save-some-buffers' now uses 'save-some-buffers-default-predicate'
|
|
|
|
|
to decide which buffers to ask about, if the PRED argument is nil.
|
|
|
|
|
The default value of 'save-some-buffers-default-predicate' is nil,
|
|
|
|
|
which means ask about all file-visiting buffers.
|
|
|
|
|
|
2017-01-30 18:02:18 +00:00
|
|
|
|
** string-(to|as|make)-(uni|multi)byte are now declared obsolete.
|
2017-08-30 16:23:59 +00:00
|
|
|
|
|
2016-11-27 08:31:58 +00:00
|
|
|
|
** New variable 'while-no-input-ignore-events' which allow
|
|
|
|
|
setting which special events 'while-no-input' should ignore.
|
|
|
|
|
It is a list of symbols.
|
|
|
|
|
|
2016-10-20 14:29:40 +00:00
|
|
|
|
** New function 'undo-amalgamate-change-group' to get rid of
|
|
|
|
|
undo-boundaries between two states.
|
2016-07-19 01:04:39 +00:00
|
|
|
|
|
2016-11-04 22:07:01 +00:00
|
|
|
|
** New var 'definition-prefixes' is a hash table mapping prefixes to
|
|
|
|
|
the files where corresponding definitions can be found. This can be
|
|
|
|
|
used to fetch definitions that are not yet loaded, for example for
|
|
|
|
|
'C-h f'.
|
2016-05-27 16:33:57 +00:00
|
|
|
|
|
2016-10-20 14:29:40 +00:00
|
|
|
|
** New var 'syntax-ppss-table' to control the syntax-table used in
|
|
|
|
|
'syntax-ppss'.
|
2016-01-16 20:06:04 +00:00
|
|
|
|
|
2016-05-10 14:38:23 +00:00
|
|
|
|
** 'define-derived-mode' can now specify an :after-hook form, which
|
2016-05-08 13:24:20 +00:00
|
|
|
|
gets evaluated after the new mode's hook has run. This can be used to
|
|
|
|
|
incorporate configuration changes made in the mode hook into the
|
|
|
|
|
mode's setup.
|
|
|
|
|
|
2018-04-10 15:25:27 +00:00
|
|
|
|
** Autoload files are now generated without timestamps.
|
|
|
|
|
Set 'autoload-timestamps' to a non-nil value to get timestamps in
|
|
|
|
|
autoload files.
|
2016-01-07 07:33:33 +00:00
|
|
|
|
|
2016-10-20 14:29:40 +00:00
|
|
|
|
** 'gnutls-boot' now takes a parameter ':complete-negotiation' that
|
|
|
|
|
says that negotiation should complete even on non-blocking sockets.
|
2016-03-05 16:04:23 +00:00
|
|
|
|
|
2016-04-24 11:55:56 +00:00
|
|
|
|
** There is now a new variable 'flyspell-sort-corrections-function'
|
|
|
|
|
that allows changing the way corrections are sorted.
|
|
|
|
|
|
|
|
|
|
** The new command 'fortune-message' has been added, which displays
|
|
|
|
|
fortunes in the echo area.
|
|
|
|
|
|
2016-03-26 08:19:43 +00:00
|
|
|
|
** New function 'func-arity' returns information about the argument list
|
2016-04-24 20:17:25 +00:00
|
|
|
|
of an arbitrary function. This generalizes 'subr-arity' for functions
|
|
|
|
|
that are not built-in primitives. We recommend using this new
|
|
|
|
|
function instead of 'subr-arity'.
|
2016-03-26 08:19:43 +00:00
|
|
|
|
|
2017-01-21 23:18:53 +00:00
|
|
|
|
** New function 'region-bounds' can be used in the interactive spec
|
|
|
|
|
to provide region boundaries (for rectangular regions more than one)
|
|
|
|
|
to an interactively callable function as a single argument instead of
|
2017-10-14 10:52:05 +00:00
|
|
|
|
two separate arguments 'region-beginning' and 'region-end'.
|
2017-01-21 23:18:53 +00:00
|
|
|
|
|
2018-08-21 15:58:15 +00:00
|
|
|
|
** 'parse-partial-sexp' state has a new element.
|
|
|
|
|
Element 10 is non-nil when the last character scanned might be the
|
|
|
|
|
first character of a two character construct, i.e., a comment
|
|
|
|
|
delimiter or escaped character. Its value is the syntax of that last
|
|
|
|
|
character.
|
2016-03-20 13:19:48 +00:00
|
|
|
|
|
2016-10-20 14:29:40 +00:00
|
|
|
|
** 'parse-partial-sexp's state, element 9, has now been confirmed as
|
2016-03-20 13:19:48 +00:00
|
|
|
|
permanent and documented, and may be used by Lisp programs. Its value
|
|
|
|
|
is a list of currently open parenthesis positions, starting with the
|
|
|
|
|
outermost parenthesis.
|
|
|
|
|
|
2016-04-24 11:55:56 +00:00
|
|
|
|
** 'read-color' will now display the color names using the color itself
|
|
|
|
|
as the background color.
|
|
|
|
|
|
2016-04-04 16:36:30 +00:00
|
|
|
|
** The function 'redirect-debugging-output' now works on platforms
|
|
|
|
|
other than GNU/Linux.
|
|
|
|
|
|
2016-04-24 11:55:56 +00:00
|
|
|
|
** The new function 'string-version-lessp' compares strings by
|
|
|
|
|
interpreting consecutive runs of numerical characters as numbers, and
|
|
|
|
|
compares their numerical values. According to this predicate,
|
|
|
|
|
"foo2.png" is smaller than "foo12.png".
|
|
|
|
|
|
2017-03-03 17:17:51 +00:00
|
|
|
|
** Numeric comparisons and 'logb' no longer return incorrect answers
|
2017-10-14 10:52:05 +00:00
|
|
|
|
due to internal rounding errors. For example, '(< most-positive-fixnum
|
|
|
|
|
(+ 1.0 most-positive-fixnum))' now correctly returns t on 64-bit hosts.
|
2017-03-02 17:11:11 +00:00
|
|
|
|
|
2017-03-05 21:29:28 +00:00
|
|
|
|
** The functions 'ffloor', 'fceiling', 'ftruncate' and 'fround' now
|
|
|
|
|
accept only floating-point arguments, as per their documentation.
|
|
|
|
|
Formerly, they quietly accepted integer arguments and sometimes
|
2017-10-14 10:52:05 +00:00
|
|
|
|
returned nonsensical answers, e.g., '(< N (ffloor N))' could return t.
|
2017-03-05 21:29:28 +00:00
|
|
|
|
|
2017-03-05 07:14:52 +00:00
|
|
|
|
** On hosts like GNU/Linux x86-64 where a 'long double' fraction
|
|
|
|
|
contains at least EMACS_INT_WIDTH - 3 bits, 'format' no longer returns
|
|
|
|
|
incorrect answers due to internal rounding errors when formatting
|
2017-10-14 10:52:05 +00:00
|
|
|
|
Emacs integers with '%e', '%f', or '%g' conversions. For example, on
|
|
|
|
|
these hosts '(eql N (string-to-number (format "%.0f" N)))' now returns
|
|
|
|
|
t for all Emacs integers N.
|
2017-03-05 07:14:52 +00:00
|
|
|
|
|
2017-03-05 07:14:52 +00:00
|
|
|
|
** Calls that accept floating-point integers (for use on hosts with
|
|
|
|
|
limited integer range) now signal an error if arguments are not
|
2018-02-13 05:49:30 +00:00
|
|
|
|
integral. For example '(decode-char 'ascii 0.5)' now signals an
|
|
|
|
|
error.
|
|
|
|
|
|
|
|
|
|
** Functions 'string-trim-left', 'string-trim-right' and 'string-trim'
|
|
|
|
|
now accept optional arguments which specify the regexp of a substring
|
|
|
|
|
to trim.
|
2017-03-05 07:14:52 +00:00
|
|
|
|
|
2016-04-25 17:41:29 +00:00
|
|
|
|
** The new function 'char-from-name' converts a Unicode name string
|
|
|
|
|
to the corresponding character code.
|
|
|
|
|
|
2016-04-08 21:02:48 +00:00
|
|
|
|
** New functions 'sxhash-eq' and 'sxhash-eql' return hash codes of a
|
|
|
|
|
Lisp object suitable for use with 'eq' and 'eql' correspondingly. If
|
|
|
|
|
two objects are 'eq' ('eql'), then the result of 'sxhash-eq'
|
|
|
|
|
('sxhash-eql') on them will be the same.
|
|
|
|
|
|
|
|
|
|
** Function 'sxhash' has been renamed to 'sxhash-equal' for
|
|
|
|
|
consistency with the new functions. For compatibility, 'sxhash'
|
|
|
|
|
remains as an alias to 'sxhash-equal'.
|
|
|
|
|
|
2017-02-21 23:31:29 +00:00
|
|
|
|
** 'make-hash-table' now defaults to a rehash threshold of 0.8125
|
|
|
|
|
instead of 0.8, to avoid rounding glitches.
|
|
|
|
|
|
2017-02-16 17:17:45 +00:00
|
|
|
|
** New function 'add-variable-watcher' can be used to call a function
|
2015-12-13 19:47:58 +00:00
|
|
|
|
when a symbol's value is changed. This is used to implement the new
|
2017-02-16 17:17:45 +00:00
|
|
|
|
debugger command 'debug-on-variable-change'.
|
2015-12-13 19:47:58 +00:00
|
|
|
|
|
2018-02-28 04:13:00 +00:00
|
|
|
|
** New variable 'print-escape-control-characters' causes 'prin1' and
|
|
|
|
|
'print' to output control characters as backslash sequences.
|
|
|
|
|
|
2016-04-12 16:19:11 +00:00
|
|
|
|
** Time conversion functions that accept a time zone rule argument now
|
|
|
|
|
allow it to be OFFSET or a list (OFFSET ABBR), where the integer
|
|
|
|
|
OFFSET is a count of seconds east of Universal Time, and the string
|
|
|
|
|
ABBR is a time zone abbreviation. The affected functions are
|
|
|
|
|
'current-time-string', 'current-time-zone', 'decode-time',
|
|
|
|
|
'format-time-string', and 'set-time-zone-rule'.
|
|
|
|
|
|
2017-10-14 10:52:05 +00:00
|
|
|
|
** 'format-time-string' now formats '%q' to the calendar quarter.
|
2016-11-20 00:15:29 +00:00
|
|
|
|
|
2017-08-30 16:23:59 +00:00
|
|
|
|
** New built-in function 'mapcan'.
|
|
|
|
|
It avoids unnecessary consing (and garbage collection).
|
Add `make-nearby-temp-file' and `temporary-file-directory'
* doc/lispref/files.texi (Unique File Names):
Introduce `make-nearby-temp-file' and `temporary-file-directory'.
(Magic File Names): Mention `make-nearby-temp-file' and
`temporary-file-directory'.
* etc/NEWS (provided): Mention `make-nearby-temp-file' and
`temporary-file-directory'.
* lisp/files.el (mounted-file-systems): New defcustom.
(temporary-file-directory, make-nearby-temp-file): New defuns.
(normal-backup-enable-predicate): Fix docstring.
* lisp/net/tramp-adb.el (tramp-adb-file-name-handler-alist):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist):
* lisp/net/tramp-sh.el (tramp-sh-file-name-handler-alist):
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist):
<make-nearby-temp-file, temporary-file-directory>: Add handler.
* lisp/net/tramp.el (tramp-file-name-for-operation):
Add `make-nearby-temp-file' and `temporary-file-directory'.
(tramp-get-remote-tmpdir): Remove compatibility code.
(tramp-handle-temporary-file-directory)
(tramp-handle-make-nearby-temp-file): New defuns.
* lisp/org/ob-core.el (org-babel-local-file-name):
* lisp/progmodes/gud.el (gud-common-init):
* lisp/vc/vc-hooks.el (vc-user-login-name): Use `file-remote-p'.
* lisp/vc/vc-git.el (vc-git-checkin): Handle remote log message.
* test/lisp/net/tramp-tests.el (tramp-test06-directory-file-name):
Check `tramp--test-enabled'.
(tramp-test18-file-attributes): Add tests for
`file-ownership-preserved-p'.
(tramp-test27-start-file-process, tramp-test28-shell-command):
Reduce timeouts in `accept-process-output'.
(tramp-test--shell-command-to-string-asynchronously): Add timeout.
(tramp-test29-environment-variables): Remove additional sleep calls.
(tramp-test32-make-nearby-temp-file): New test.
(tramp--test-special-characters, tramp--test-utf8): Adapt docstring.
(tramp-test33-special-characters)
(tramp-test33-special-characters-with-stat)
(tramp-test33-special-characters-with-perl)
(tramp-test33-special-characters-with-ls, tramp-test34-utf8)
(tramp-test34-utf8-with-stat, tramp-test34-utf8-with-perl)
(tramp-test34-utf8-with-ls)
(tramp-test35-asynchronous-requests)
(tramp-test36-recursive-load, tramp-test37-unload): Rename.
(tramp--test-ftp-p): Simplify check.
(tramp--test-sh-p): New defun.
(tramp-test20-file-modes, tramp-test22-file-times)
(tramp-test26-process-file, tramp-test27-start-file-process)
(tramp-test28-shell-command)
(tramp-test29-environment-variables)
(tramp-test30-vc-registered)
(tramp-test33-special-characters-with-stat)
(tramp-test33-special-characters-with-perl)
(tramp-test33-special-characters-with-ls)
(tramp-test34-utf8-with-stat, tramp-test34-utf8-with-perl)
(tramp-test34-utf8-with-ls)
(tramp-test35-asynchronous-requests): Use it.
2016-08-07 11:57:23 +00:00
|
|
|
|
|
Move cXXXr and cXXXXr to subr.el
* etc/NEWS: Mention new core Elisp.
* doc/lispref/lists.texi (List Elements): Document and index the new
functions.
* doc/misc/cl.texi (List Functions): Change "defines" to "aliases".
* lisp/subr.el (caaar, caadr, cadar, caddr, cdaar, cdadr, cddar)
(cdddr, caaaar caaadr, caadar, caaddr, cadaar, cadadr, caddar):
(cadddr, cdaaar, cdaadr, cdadar, cdaddr, cddaar, cddadr, cdddar):
(cddddr): New functions.
* lisp/emacs-lisp/cl-lib.el (cl-caaar, cl-caadr, cl-cadar, cl-caddr):
(cl-cdaar, cl-cdadr, cl-cddar cl-cdddr, cl-caaaar cl-caaadr):
(cl-caadar, cl-caaddr, cl-cadaar, cl-cadadr, cl-caddar, cl-cadddr):
(cl-cdaaar, cl-cdaadr, cl-cdadar, cl-cdaddr, cl-cddaar, cl-cddadr):
(cl-cdddar, cl-cddddr): Alias to new subr functions.
* lisp/emacs-lisp/cl.el (cl-unload-function): Remove cXXXr and cXXXXr
elements.
2017-01-25 19:21:10 +00:00
|
|
|
|
** 'car' and 'cdr' compositions 'cXXXr' and 'cXXXXr' are now part of Elisp.
|
|
|
|
|
|
2017-09-12 15:08:00 +00:00
|
|
|
|
** 'gensym' is now part of Elisp.
|
|
|
|
|
|
Signal list cycles in ‘length’ etc.
Use macros like FOR_EACH_TAIL instead of maybe_quit to
catch list cycles automatically instead of relying on the
user becoming impatient and typing C-g (Bug#25606).
* src/fns.c (Flength, Fmember, Fmemq, Fmemql, Fassq, Fassoc, Frassq)
(Frassoc, Fdelete, Freverse):
Use FOR_EACH_TAIL instead of maybe_quit.
(Fnreverse): Use simple EQ to check for circular list instead
of rarely_quit, as this suffices in this unusual case.
(Fplist_put, Flax_plist_put, Flax_plist_put):
Use FOR_EACH_TAIL_CONS instead of maybe_quit.
(internal_equal): Use FOR_EACH_TAIL_CONS to check lists, instead
of by-hand tail recursion that did not catch cycles.
* src/fns.c (Fsafe_length, Fplist_get):
* src/xdisp.c (display_mode_element):
Use FOR_EACH_TAIL_SAFE instead of by-hand Floyd’s algorithm.
* src/lisp.h (QUIT_COUNT_HEURISTIC): Remove; no longer needed.
(rarely_quit): Simply count toward USHRT_MAX + 1, since the
fancier versions are no longer needed.
(FOR_EACH_TAIL_CONS, FOR_EACH_TAIL_SAFE)
(FOR_EACH_TAIL_INTERNAL): New macros, the last with definiens
mostly taken from FOR_EACH_TAIL.
(FOR_EACH_TAIL): Rewrite in terms of FOR_EACH_TAIL_INTERNAL.
2017-02-05 21:25:37 +00:00
|
|
|
|
** Low-level list functions like 'length' and 'member' now do a better
|
|
|
|
|
job of signaling list cycles instead of looping indefinitely.
|
|
|
|
|
|
2016-08-31 03:54:05 +00:00
|
|
|
|
** The new functions 'make-nearby-temp-file' and 'temporary-file-directory'
|
2017-10-31 21:01:34 +00:00
|
|
|
|
can be used for creation of temporary files on remote or mounted directories.
|
2016-07-09 23:18:47 +00:00
|
|
|
|
|
2017-08-25 19:44:52 +00:00
|
|
|
|
** On GNU platforms when operating on a local file, 'file-attributes'
|
|
|
|
|
no longer suffers from a race when called while another process is
|
|
|
|
|
altering the filesystem. On non-GNU platforms 'file-attributes'
|
|
|
|
|
attempts to detect the race, and returns nil if it does so.
|
|
|
|
|
|
2016-11-20 15:29:47 +00:00
|
|
|
|
** The new function 'file-local-name' can be used to specify arguments
|
|
|
|
|
of remote processes.
|
|
|
|
|
|
2016-12-09 09:03:05 +00:00
|
|
|
|
** The new functions 'file-name-quote', 'file-name-unquote' and
|
|
|
|
|
'file-name-quoted-p' can be used to quote / unquote file names with
|
|
|
|
|
the prefix "/:".
|
|
|
|
|
|
2016-10-21 20:04:02 +00:00
|
|
|
|
** The new error 'file-missing', a subcategory of 'file-error', is now
|
|
|
|
|
signaled instead of 'file-error' if a file operation acts on a file
|
|
|
|
|
that does not exist.
|
|
|
|
|
|
2016-10-18 16:36:03 +00:00
|
|
|
|
** The function 'delete-directory' no longer signals an error when
|
|
|
|
|
operating recursively and when some other process deletes the directory
|
|
|
|
|
or its files before 'delete-directory' gets to them.
|
|
|
|
|
|
2017-10-31 21:01:34 +00:00
|
|
|
|
** New error type 'user-search-failed' like 'search-failed' but
|
2017-04-13 16:59:37 +00:00
|
|
|
|
avoids debugger like 'user-error'.
|
|
|
|
|
|
2017-04-09 10:46:57 +00:00
|
|
|
|
** The function 'line-number-at-pos' now takes a second optional
|
2017-08-30 17:50:25 +00:00
|
|
|
|
argument 'absolute'. If this parameter is nil, the default, this
|
2017-04-09 10:46:57 +00:00
|
|
|
|
function keeps on returning the line number taking potential narrowing
|
2017-08-30 17:50:25 +00:00
|
|
|
|
into account. If this parameter is non-nil, the function ignores
|
2017-04-09 10:46:57 +00:00
|
|
|
|
narrowing and returns the absolute line number.
|
|
|
|
|
|
2017-09-13 14:27:37 +00:00
|
|
|
|
** The function 'color-distance' now takes a second optional argument
|
|
|
|
|
'metric'. When non-nil, it should be a function of two arguments that
|
|
|
|
|
accepts two colors and returns a number.
|
|
|
|
|
|
2017-08-30 17:50:25 +00:00
|
|
|
|
** Changes in Frame and Window Handling
|
Document and fix some bugs with side windows
Add a documentation for side windows and fix some bugs
found when testing their behavior. Also add a new window
parameter `no-delete-other-window', a new `display-buffer'
alist member called `window-parameters', and functions to
toggle and reverse side windows on a frame. Add new function
`window-swap-states' to exchange states of two live windows.
* lisp/window.el (display-buffer-in-atom-window): Use
`split-window-no-error'.
(window-sides-vertical): Maybe change layouts when setting this
variable.
(window-sides-reversed): New option.
(window-sides-slots): Rewrite doc-string and help echoes.
(window-sides-shown): New buffer-local variable set when showing
a buffer in a side window.
(window--sides-inhibit-check): New variable.
(window--sides-reverse-on-frame-p, window-toggle-side-windows)
(window--sides-reverse-all, window--sides-reverse-frame)
(window--sides-reverse-side, window--sides-reverse)
(window--sides-verticalize-frame, window--sides-verticalize)
(window--sides-check-failed): New functions.
(window--side-window-p): Remove function.
(window--major-non-side-window): Rename to `window-main-window',
adjust callers, rewrite doc-string.
(window--major-side-window): Rename to
`window--make-major-side-window-next-to', adjust caller, fix
doc-string.
(display-buffer-in-major-side-window): Rename to
`window--make-major-side-window', adjust
caller, rewrite doc-string. Make `window-side' and
`window-slot' parameters persistent (Bug#23858). Don't set
`delete-window' parameter. Add `preserve-size' entry to ALIST.
(delete-side-window): Remove function.
(display-buffer-in-side-window): Fix doc-string. Don't set
`delete-window' parameter. Add `preserve-size' entry to ALIST.
(window--side-check): Rename to window--sides-check. Rewrite
completely. Adjust caller.
(window-resize-no-error): Don't describe PIXELWISE argument.
(adjust-window-trailing-edge): Fix bug that disallowed
re-enlarging windows that were too small.
(window-deletable-p): Don't tell that a minibuffer window on a
non-minibuffer-only frame can be deleted. Fix doc-string.
(delete-window): Handle deleting a side window here (the
`delete-window' parameter is no more set for side windows).
(delete-other-windows): Handle ‘no-delete-other-window'
parameter. Don't treat side windows separately (see discussion
of Bug#24368) but keep optimization that makes the main window
the root window of its frame.
(switch-to-prev-buffer, switch-to-next-buffer): Handle side
windows and buffers shown in side windows separately.
(split-window-no-error): New function.
(window--state-get-1): Use right buffer when storing window
point and start positions and WRITABLE is nil (Bug#24368).
(window--state-put-1): Fix handling of `window-combination-limit'.
Use `split-window-no-error'.
(window--state-put-2): Try to restore windows with preserved
size to their original size. Fix bug where a fixed window's width
was not preserved.
(window-state-put): When reducing an internal window to a live
one, don't choose a side window.
(window-swap-states): New function.
(window-splittable-p): Don't call `window--side-window-p'.
(window--display-buffer): Handle `window-parameters' ALIST entry.
Minor rewrite.
(display-buffer): Mention `window-parameters' entry in
doc-string.
(display-buffer-at-bottom): Call `split-window-no-error'.
* doc/lispref/elisp.texi (Top): New section "Side Windows".
* doc/lispref/windows.texi (Deleting Windows): Fix descriptions
of `delete-window' and `delete-other-windows' wrt window
parameters and side windows.
(Display Action Functions): Mention `window-parameters' ALIST
entry.
(Side Windows): New section (Bug#18170).
(Window Configurations): Describe new function `window-swap-states'.
(Window Parameters): Say that functions may behave specially when
their homonymous window parameter has been set. Mention new
parameter `no-delete-other-window'. Add cross reference for
`window-side' and `window-slot' parameters.
2016-10-05 08:28:36 +00:00
|
|
|
|
|
2017-04-13 16:59:37 +00:00
|
|
|
|
*** Resizing a frame no longer runs 'window-configuration-change-hook'.
|
|
|
|
|
'window-size-change-functions' should be used instead.
|
|
|
|
|
|
|
|
|
|
*** The new function 'frame-size-changed-p' can tell whether a frame has
|
|
|
|
|
been resized since the last time 'window-size-change-functions' has been
|
|
|
|
|
run.
|
|
|
|
|
|
|
|
|
|
*** The function 'frame-geometry' now also returns the width of a
|
|
|
|
|
frame's outer border.
|
|
|
|
|
|
2017-10-14 10:52:05 +00:00
|
|
|
|
*** New frame parameters and changed semantics for older ones:
|
2017-04-13 16:59:37 +00:00
|
|
|
|
|
|
|
|
|
**** 'z-group' positions a frame above or below all others.
|
|
|
|
|
|
|
|
|
|
**** 'min-width' and 'min-height' specify the absolute minimum size of a
|
|
|
|
|
frame.
|
|
|
|
|
|
|
|
|
|
**** 'parent-frame' makes a frame the child frame of another Emacs
|
2017-10-14 10:52:05 +00:00
|
|
|
|
frame. The section "(elisp) Child Frames" in the ELisp manual
|
|
|
|
|
describes the intrinsics of that relationship.
|
2017-04-13 16:59:37 +00:00
|
|
|
|
|
|
|
|
|
**** 'delete-before' triggers deletion of one frame before that of
|
|
|
|
|
another.
|
|
|
|
|
|
|
|
|
|
**** 'mouse-wheel-frame' specifies another frame whose windows shall be
|
|
|
|
|
scrolled instead.
|
|
|
|
|
|
|
|
|
|
**** 'no-other-frame' has 'next-frame' and 'previous-frame' skip this
|
|
|
|
|
frame.
|
|
|
|
|
|
|
|
|
|
**** 'skip-taskbar' removes a frame's icon from the taskbar and has
|
2017-10-14 10:52:05 +00:00
|
|
|
|
'Alt-<TAB>' skip this frame.
|
2017-04-13 16:59:37 +00:00
|
|
|
|
|
|
|
|
|
**** 'no-focus-on-map' avoids that a frame gets input focus when mapped.
|
|
|
|
|
|
|
|
|
|
**** 'no-accept-focus' means that a frame does not want to get input
|
|
|
|
|
focus via the mouse.
|
|
|
|
|
|
|
|
|
|
**** 'undecorated' removes the window manager decorations from a frame.
|
|
|
|
|
|
|
|
|
|
**** 'override-redirect' tells the window manager to disregard this
|
|
|
|
|
frame.
|
|
|
|
|
|
2018-02-04 17:18:39 +00:00
|
|
|
|
**** 'width' and 'height' now allow the specification of pixel values
|
|
|
|
|
and ratios.
|
2017-04-13 16:59:37 +00:00
|
|
|
|
|
2018-02-04 17:18:39 +00:00
|
|
|
|
**** 'left' and 'top' now allow the specification of ratios.
|
Provide additional support for child frames
Provide mouse dragging and resizing of frames. Allow resizing
frames proportionally. Provide additional functionality for
child frames. Minor bug fixes.
* lisp/frame.el (frame-border-width, frame-pixel-width)
(frame-pixel-height): Alias to `frame-internal-border-width',
`frame-native-width' and `frame-native-height'.
(frame-inner-width, frame-inner-height, frame-outer-width)
(frame-outer-height): New functions.
* lisp/minibuffer.el (completion-auto-help): Fix typo.
* lisp/mouse.el (mouse-drag-line, mouse-drag-mode-line)
(mouse-drag-header-line): Allow moving a frame by dragging the
mode line of its bottommost window (on a minibuffer-less frame)
or the header line of its topmost window.
(mouse-drag-vertical-line): Mention argument in doc-string.
(mouse-resize-frame, mouse-drag-frame, mouse-drag-left-edge)
(mouse-drag-top-left-corner, mouse-drag-top-edge)
(mouse-drag-top-right-corner, mouse-drag-right-edge)
(mouse-drag-bottom-right-corner, mouse-drag-bottom-edge)
(mouse-drag-bottom-left-corner): New functions for resizing a
frame by dragging its internal border together with
corresponding key bindings.
* lisp/tooltip.el (tooltip-frame-parameters): Add
'no-special-glyphs' to default parameters and update version
tag.
* lisp/window.el (frame-auto-hide-function): Add choice to make
frame invisible and update version tag.
(window--delete): Handle 'auto-hide-function' frame parameter.
(window--maybe-raise-frame): Respect 'no-focus-on-map' and
'no-accept-focus' frame parameters.
(display-buffer--action-function-custom-type): Add
`display-buffer-in-child-frame'.
(display-buffer): Mention `display-buffer-in-child-frame' in
doc-string.
(display-buffer-in-child-frame): New action function for
`display-buffer'.
(window--sanitize-margin): Return zero when MARGIN cannot be
sanitized.
(fit-frame-to-buffer): Major rewrite to handle child frames and
'fit-frame-to-buffer-sizes' and 'fit-frame-to-buffer-margins'
frame parameters.
(window-largest-empty-rectangle--maximums-1)
(window-largest-empty-rectangle--maximums)
(window-largest-empty-rectangle--disjoint-maximums)
(window-largest-empty-rectangle): New functions.
* src/dispextern.h (WINDOW_WANTS_MODELINE_P)
(WINDOW_WANTS_HEADER_LINE_P): Remove. Functionality is now
provided by corresponding functions window_wants_modeline and
window_wants_header_line in window.c. Adjust users.
* src/dispnew.c (adjust_glyph_matrix)
(buffer_posn_from_coords): Use window_wants_modeline and
window_wants_header_line instead of WINDOW_WANTS_MODELINE_P and
WINDOW_WANTS_HEADER_LINE_P.
* src/frame.c (keep_ratio): New function.
(adjust_frame_size): Call keep_ratio for each of F's child
frames.
(make_frame): Initialize no_special_glyphs slot.
(frame_internal_border_part): New function.
(Fframe_pixel_width, Fframe_pixel_height, Fborder_width): Rename
to Fframe_native_width, Fframe_native_height mand
Fframe_internal_border_width.
(frame_parm_table): Add Qno_special_glyphs entry.
(frame_float_type): New enumeration type.
(frame_float): New function to handle frame size and position
ratios.
(x_set_frame_parameters): Handle size and position ratios.
(x_set_no_special_glyphs): New function
(x_figure_window_size): Handle size and position ratios.
(syms_of_frame): Add Qdisplay_monitor_attributes_list,
Qno_special_glyphs, Qframe_edges, Qkeep_ratio, Qwidth_only,
Qheight_only, Qleft_only and Qtop_only.
* src/frame.h (internal_border_part): New enumeration type.
(struct frame): New slot no_special_glyphs.
(FRAME_NO_SPECIAL_GLYPHS): New macro.
* src/gtkutil.c (xg_frame_restack): Return immediately for
GTK versions before 2.18.0.
* src/keyboard.c (internal_border_parts): New array constant.
(make_lispy_position): For frames with border dragging enabled
return internal border part.
(syms_of_keyboard): New symbols Qdrag_internal_border,
Qleft_edge, Qtop_left_corner, Qtop_edge, Qtop_right_corner,
Qright_edge, Qbottom_right_corner, Qbottom_edge and
Qbottom_left_corner.
* src/minibuf.c (read_minibuf_unwind): When exiting the
minibuffer deal with frames that have the 'minibuffer-exit'
parameter set.
(syms_of_minibuf): New symbol Qminibuffer_exit.
* src/nsfns.m (frame_parm_handler): Add entry for
x_set_no_special_glyphs.
(Fx_create_frame): Handle 'no-special-glyphs' parameter.
Intitialize new cursor types for dragging frame borders.
* src/nsterm.h (struct ns_output): Add new cursor types for
dragging frame borders.
* src/w32fns.c (w32_frame_parm_handlers): Add entry for
x_set_no_special_glyphs.
(Fx_create_frame): Handle 'no-special-glyphs' parameter.
Intitialize new cursor types for dragging frame borders.
* src/w32term.h (struct w32_output): Add new cursor types for
dragging frame borders.
* src/window.c (coordinates_in_window)
(Fwindow_line_height, window_internal_height): Use
window_wants_modeline and window_wants_header_line instead of
WINDOW_WANTS_MODELINE_P and WINDOW_WANTS_HEADER_LINE_P.
(Fwindow_lines_pixel_dimensions): New function.
(window_parameter): New function.
(Fwindow_parameter): Call window_parameter.
(window_wants_mode_line, window_wants_header_line): New
functions replacing the macros WINDOW_WANTS_MODELINE_P and
WINDOW_WANTS_HEADER_LINE_P from dispextern.h.
(syms_of_window): New symbols Qmode_line_format and
Qheader_line_format.
* src/window.h: Reorganize and re-comment macros. Use
window_wants_modeline and window_wants_header_line instead of
WINDOW_WANTS_MODELINE_P and WINDOW_WANTS_HEADER_LINE_P.
(MINI_NON_ONLY_WINDOW_P, MINI_ONLY_WINDOW_P): Minor rewrite.
(WINDOW_BUFFER): New macro.
(WINDOW_BOX_LEFT_EDGE_COL, WINDOW_BOX_RIGHT_EDGE_COL): Remove.
* src/xdisp.c (window_text_bottom_y, window_box_height)
(window_box, start_display)
(compute_window_start_on_continuation_line)
(try_cursor_movement, redisplay_window)
(try_window_reusing_current_matrix, try_window_id)
(display_line, expose_window): Use window_wants_modeline and
window_wants_header_line instead of WINDOW_WANTS_MODELINE_P and
WINDOW_WANTS_HEADER_LINE_P.
(pos_visible_p, display_mode_lines): Respect W's
'mode-line-format' and 'header-line-format' window parameters.
(init_iterator): Use window_wants_modeline and
window_wants_header_line instead of WINDOW_WANTS_MODELINE_P and
WINDOW_WANTS_HEADER_LINE_P. For tip frames respect
no_special_glyphs value.
(note_mouse_highlight): Set frame border cursors when on
internal border.
(x_draw_right_divider, x_draw_bottom_divider): Try to improve
drawing of window dividers.
* src/xfns.c (mouse_cursor): Add entries for border parts.
(mouse_cursor_types): Add entries for cursor types to drag
frame borders.
(INSTALL_CURSOR): Add entries for new cursor types to drag
frame borders.
(Fx_create_frame): Handle 'no-special-glyphs' parameter.
(x_frame_parm_handlers): Add entry for
x_set_no_special_glyphs.
(Vx_window_left_edge_shape, Vx_window_top_left_corner_shape)
(Vx_window_top_edge_shape, Vx_window_top_right_corner_shape)
(Vx_window_right_edge_shape)
(Vx_window_bottom_right_corner_shape)
(Vx_window_bottom_edge_shape)
(Vx_window_bottom_left_corner_shape): New variables.
(x_frame_restack): Call xg_frame_restack only for GTK versions
starting with 2.18.0.
* src/xterm.c (x_free_frame_resources): Remove new cursors for
dragging frame borders.
* src/xterm.h (struct x_output): Add new cursor types for
dragging frame borders.
* doc/lispref/display.texi (Size of Displayed Text): Document
`window-lines-pixel-dimensions'.
* doc/lispref/elisp.texi (Top): Add entry for "Mouse Dragging
Parameters".
* doc/lispref/frames.texi (Frame Size): Replace
frame-pixel-width/-height by frame-native-width/-height. Add
frame-inner-width/-height and frame-outer-width/-height docs.
(Position Parameters): Describe specifying position as ratios.
Clarify remark about positions relative to bottom/ridge display
edge.
(Size Parameters): Describe specifying sizes as ratios.
Describe 'fit-frame-to-buffer-margins' and
'fit-frame-to-buffer-sizes' parameters.
(Layout Parameters): Describe 'no-special-glyphs' parameter.
(Frame Interaction Parameters): Describe 'auto-hide-function',
'minibuffer-exit' and 'keep-ratio' parameters.
(Mouse Dragging Parameters): New section describing
'drag-internal-border', 'drag-with-header-line',
'drag-with-mode-line', 'snap-width', 'top-visible' and
'bottom-visible' parameters.
(Management Parameters): Mention that `override-redirect' has
no effect on MS Windows.
(Font and Color Parameters): Mention child frames for `alpha'
parameter.
(Child Frames): Rewrite section with description and cross
references to new frame parameters added.
* doc/lispref/modes.texi (Mode Line Basics): Mention
'mode-line-format' and 'header-line-format' window parameters.
* doc/lispref/windows.texi (Resizing Windows): Mention effect
of `fit-frame-to-buffer-margins' for child frames.
(Display Action Functions): New action function
`display-buffer-in-child-frame'.
(Quitting Windows): Mention `make-frame-invisible' as optional
value of `frame-auto-hide-function' and `auto-hide-function'
frame paameter.
(Coordinates and Windows): Describe new function
`window-largest-empty-rectangle'.
(Window Parameters): Describe new parameters 'mode-line-format'
and 'header-line-format'. Index all window parameters described
in this section.
2017-06-25 09:33:25 +00:00
|
|
|
|
|
|
|
|
|
**** 'keep-ratio' preserves size and position of child frames when their
|
|
|
|
|
parent frame is resized.
|
|
|
|
|
|
|
|
|
|
**** 'no-special-glyphs' suppresses display of truncation and
|
|
|
|
|
continuation glyphs in a frame.
|
|
|
|
|
|
|
|
|
|
**** 'auto-hide-function' and 'minibuffer-exit' handle auto hiding of
|
|
|
|
|
frames and exiting from minibuffer individually.
|
|
|
|
|
|
|
|
|
|
**** 'fit-frame-to-buffer-margins' and 'fit-frame-to-buffer-sizes'
|
|
|
|
|
handle fitting a frame to its buffer individually.
|
|
|
|
|
|
|
|
|
|
**** 'drag-internal-border', 'drag-with-header-line',
|
|
|
|
|
'drag-with-mode-line', 'snap-width', 'top-visible' and 'bottom-visible'
|
2018-02-04 17:18:39 +00:00
|
|
|
|
allow dragging and resizing frames with the mouse.
|
Provide additional support for child frames
Provide mouse dragging and resizing of frames. Allow resizing
frames proportionally. Provide additional functionality for
child frames. Minor bug fixes.
* lisp/frame.el (frame-border-width, frame-pixel-width)
(frame-pixel-height): Alias to `frame-internal-border-width',
`frame-native-width' and `frame-native-height'.
(frame-inner-width, frame-inner-height, frame-outer-width)
(frame-outer-height): New functions.
* lisp/minibuffer.el (completion-auto-help): Fix typo.
* lisp/mouse.el (mouse-drag-line, mouse-drag-mode-line)
(mouse-drag-header-line): Allow moving a frame by dragging the
mode line of its bottommost window (on a minibuffer-less frame)
or the header line of its topmost window.
(mouse-drag-vertical-line): Mention argument in doc-string.
(mouse-resize-frame, mouse-drag-frame, mouse-drag-left-edge)
(mouse-drag-top-left-corner, mouse-drag-top-edge)
(mouse-drag-top-right-corner, mouse-drag-right-edge)
(mouse-drag-bottom-right-corner, mouse-drag-bottom-edge)
(mouse-drag-bottom-left-corner): New functions for resizing a
frame by dragging its internal border together with
corresponding key bindings.
* lisp/tooltip.el (tooltip-frame-parameters): Add
'no-special-glyphs' to default parameters and update version
tag.
* lisp/window.el (frame-auto-hide-function): Add choice to make
frame invisible and update version tag.
(window--delete): Handle 'auto-hide-function' frame parameter.
(window--maybe-raise-frame): Respect 'no-focus-on-map' and
'no-accept-focus' frame parameters.
(display-buffer--action-function-custom-type): Add
`display-buffer-in-child-frame'.
(display-buffer): Mention `display-buffer-in-child-frame' in
doc-string.
(display-buffer-in-child-frame): New action function for
`display-buffer'.
(window--sanitize-margin): Return zero when MARGIN cannot be
sanitized.
(fit-frame-to-buffer): Major rewrite to handle child frames and
'fit-frame-to-buffer-sizes' and 'fit-frame-to-buffer-margins'
frame parameters.
(window-largest-empty-rectangle--maximums-1)
(window-largest-empty-rectangle--maximums)
(window-largest-empty-rectangle--disjoint-maximums)
(window-largest-empty-rectangle): New functions.
* src/dispextern.h (WINDOW_WANTS_MODELINE_P)
(WINDOW_WANTS_HEADER_LINE_P): Remove. Functionality is now
provided by corresponding functions window_wants_modeline and
window_wants_header_line in window.c. Adjust users.
* src/dispnew.c (adjust_glyph_matrix)
(buffer_posn_from_coords): Use window_wants_modeline and
window_wants_header_line instead of WINDOW_WANTS_MODELINE_P and
WINDOW_WANTS_HEADER_LINE_P.
* src/frame.c (keep_ratio): New function.
(adjust_frame_size): Call keep_ratio for each of F's child
frames.
(make_frame): Initialize no_special_glyphs slot.
(frame_internal_border_part): New function.
(Fframe_pixel_width, Fframe_pixel_height, Fborder_width): Rename
to Fframe_native_width, Fframe_native_height mand
Fframe_internal_border_width.
(frame_parm_table): Add Qno_special_glyphs entry.
(frame_float_type): New enumeration type.
(frame_float): New function to handle frame size and position
ratios.
(x_set_frame_parameters): Handle size and position ratios.
(x_set_no_special_glyphs): New function
(x_figure_window_size): Handle size and position ratios.
(syms_of_frame): Add Qdisplay_monitor_attributes_list,
Qno_special_glyphs, Qframe_edges, Qkeep_ratio, Qwidth_only,
Qheight_only, Qleft_only and Qtop_only.
* src/frame.h (internal_border_part): New enumeration type.
(struct frame): New slot no_special_glyphs.
(FRAME_NO_SPECIAL_GLYPHS): New macro.
* src/gtkutil.c (xg_frame_restack): Return immediately for
GTK versions before 2.18.0.
* src/keyboard.c (internal_border_parts): New array constant.
(make_lispy_position): For frames with border dragging enabled
return internal border part.
(syms_of_keyboard): New symbols Qdrag_internal_border,
Qleft_edge, Qtop_left_corner, Qtop_edge, Qtop_right_corner,
Qright_edge, Qbottom_right_corner, Qbottom_edge and
Qbottom_left_corner.
* src/minibuf.c (read_minibuf_unwind): When exiting the
minibuffer deal with frames that have the 'minibuffer-exit'
parameter set.
(syms_of_minibuf): New symbol Qminibuffer_exit.
* src/nsfns.m (frame_parm_handler): Add entry for
x_set_no_special_glyphs.
(Fx_create_frame): Handle 'no-special-glyphs' parameter.
Intitialize new cursor types for dragging frame borders.
* src/nsterm.h (struct ns_output): Add new cursor types for
dragging frame borders.
* src/w32fns.c (w32_frame_parm_handlers): Add entry for
x_set_no_special_glyphs.
(Fx_create_frame): Handle 'no-special-glyphs' parameter.
Intitialize new cursor types for dragging frame borders.
* src/w32term.h (struct w32_output): Add new cursor types for
dragging frame borders.
* src/window.c (coordinates_in_window)
(Fwindow_line_height, window_internal_height): Use
window_wants_modeline and window_wants_header_line instead of
WINDOW_WANTS_MODELINE_P and WINDOW_WANTS_HEADER_LINE_P.
(Fwindow_lines_pixel_dimensions): New function.
(window_parameter): New function.
(Fwindow_parameter): Call window_parameter.
(window_wants_mode_line, window_wants_header_line): New
functions replacing the macros WINDOW_WANTS_MODELINE_P and
WINDOW_WANTS_HEADER_LINE_P from dispextern.h.
(syms_of_window): New symbols Qmode_line_format and
Qheader_line_format.
* src/window.h: Reorganize and re-comment macros. Use
window_wants_modeline and window_wants_header_line instead of
WINDOW_WANTS_MODELINE_P and WINDOW_WANTS_HEADER_LINE_P.
(MINI_NON_ONLY_WINDOW_P, MINI_ONLY_WINDOW_P): Minor rewrite.
(WINDOW_BUFFER): New macro.
(WINDOW_BOX_LEFT_EDGE_COL, WINDOW_BOX_RIGHT_EDGE_COL): Remove.
* src/xdisp.c (window_text_bottom_y, window_box_height)
(window_box, start_display)
(compute_window_start_on_continuation_line)
(try_cursor_movement, redisplay_window)
(try_window_reusing_current_matrix, try_window_id)
(display_line, expose_window): Use window_wants_modeline and
window_wants_header_line instead of WINDOW_WANTS_MODELINE_P and
WINDOW_WANTS_HEADER_LINE_P.
(pos_visible_p, display_mode_lines): Respect W's
'mode-line-format' and 'header-line-format' window parameters.
(init_iterator): Use window_wants_modeline and
window_wants_header_line instead of WINDOW_WANTS_MODELINE_P and
WINDOW_WANTS_HEADER_LINE_P. For tip frames respect
no_special_glyphs value.
(note_mouse_highlight): Set frame border cursors when on
internal border.
(x_draw_right_divider, x_draw_bottom_divider): Try to improve
drawing of window dividers.
* src/xfns.c (mouse_cursor): Add entries for border parts.
(mouse_cursor_types): Add entries for cursor types to drag
frame borders.
(INSTALL_CURSOR): Add entries for new cursor types to drag
frame borders.
(Fx_create_frame): Handle 'no-special-glyphs' parameter.
(x_frame_parm_handlers): Add entry for
x_set_no_special_glyphs.
(Vx_window_left_edge_shape, Vx_window_top_left_corner_shape)
(Vx_window_top_edge_shape, Vx_window_top_right_corner_shape)
(Vx_window_right_edge_shape)
(Vx_window_bottom_right_corner_shape)
(Vx_window_bottom_edge_shape)
(Vx_window_bottom_left_corner_shape): New variables.
(x_frame_restack): Call xg_frame_restack only for GTK versions
starting with 2.18.0.
* src/xterm.c (x_free_frame_resources): Remove new cursors for
dragging frame borders.
* src/xterm.h (struct x_output): Add new cursor types for
dragging frame borders.
* doc/lispref/display.texi (Size of Displayed Text): Document
`window-lines-pixel-dimensions'.
* doc/lispref/elisp.texi (Top): Add entry for "Mouse Dragging
Parameters".
* doc/lispref/frames.texi (Frame Size): Replace
frame-pixel-width/-height by frame-native-width/-height. Add
frame-inner-width/-height and frame-outer-width/-height docs.
(Position Parameters): Describe specifying position as ratios.
Clarify remark about positions relative to bottom/ridge display
edge.
(Size Parameters): Describe specifying sizes as ratios.
Describe 'fit-frame-to-buffer-margins' and
'fit-frame-to-buffer-sizes' parameters.
(Layout Parameters): Describe 'no-special-glyphs' parameter.
(Frame Interaction Parameters): Describe 'auto-hide-function',
'minibuffer-exit' and 'keep-ratio' parameters.
(Mouse Dragging Parameters): New section describing
'drag-internal-border', 'drag-with-header-line',
'drag-with-mode-line', 'snap-width', 'top-visible' and
'bottom-visible' parameters.
(Management Parameters): Mention that `override-redirect' has
no effect on MS Windows.
(Font and Color Parameters): Mention child frames for `alpha'
parameter.
(Child Frames): Rewrite section with description and cross
references to new frame parameters added.
* doc/lispref/modes.texi (Mode Line Basics): Mention
'mode-line-format' and 'header-line-format' window parameters.
* doc/lispref/windows.texi (Resizing Windows): Mention effect
of `fit-frame-to-buffer-margins' for child frames.
(Display Action Functions): New action function
`display-buffer-in-child-frame'.
(Quitting Windows): Mention `make-frame-invisible' as optional
value of `frame-auto-hide-function' and `auto-hide-function'
frame paameter.
(Coordinates and Windows): Describe new function
`window-largest-empty-rectangle'.
(Window Parameters): Describe new parameters 'mode-line-format'
and 'header-line-format'. Index all window parameters described
in this section.
2017-06-25 09:33:25 +00:00
|
|
|
|
|
2017-10-29 10:35:32 +00:00
|
|
|
|
**** 'minibuffer' is now set to the default minibuffer window when
|
|
|
|
|
initially specified as nil and is not reset to nil when initially
|
|
|
|
|
specifying a minibuffer window.
|
|
|
|
|
|
2017-04-13 16:59:37 +00:00
|
|
|
|
*** The new function 'frame-list-z-order' returns a list of all frames
|
|
|
|
|
in Z (stacking) order.
|
|
|
|
|
|
|
|
|
|
*** The function 'x-focus-frame' optionally tries to not activate its
|
|
|
|
|
frame.
|
|
|
|
|
|
|
|
|
|
*** The variable 'focus-follows-mouse' has a third meaningful value
|
|
|
|
|
'auto-raise' to indicate that the window manager automatically raises a
|
|
|
|
|
frame when the mouse pointer enters it.
|
|
|
|
|
|
|
|
|
|
*** The new function 'frame-restack' puts a frame above or below
|
|
|
|
|
another on the display.
|
|
|
|
|
|
|
|
|
|
*** The new face 'internal-border' specifies the background of a frame's
|
|
|
|
|
internal border.
|
|
|
|
|
|
|
|
|
|
*** The NORECORD argument of 'select-window' now has a meaningful value
|
|
|
|
|
'mark-for-redisplay' which is like any other non-nil value but marks
|
|
|
|
|
WINDOW for redisplay.
|
|
|
|
|
|
2017-10-14 10:52:05 +00:00
|
|
|
|
*** Support for side windows is now official. The display action
|
|
|
|
|
function 'display-buffer-in-side-window' will display its buffer in a
|
|
|
|
|
side window. Functions for toggling all side windows on a frame,
|
|
|
|
|
changing and reversing the layout of side windows and returning the
|
|
|
|
|
main (major non-side) window of a frame are provided. For details
|
|
|
|
|
consult the section "(elisp) Side Windows" in the ELisp manual.
|
Document and fix some bugs with side windows
Add a documentation for side windows and fix some bugs
found when testing their behavior. Also add a new window
parameter `no-delete-other-window', a new `display-buffer'
alist member called `window-parameters', and functions to
toggle and reverse side windows on a frame. Add new function
`window-swap-states' to exchange states of two live windows.
* lisp/window.el (display-buffer-in-atom-window): Use
`split-window-no-error'.
(window-sides-vertical): Maybe change layouts when setting this
variable.
(window-sides-reversed): New option.
(window-sides-slots): Rewrite doc-string and help echoes.
(window-sides-shown): New buffer-local variable set when showing
a buffer in a side window.
(window--sides-inhibit-check): New variable.
(window--sides-reverse-on-frame-p, window-toggle-side-windows)
(window--sides-reverse-all, window--sides-reverse-frame)
(window--sides-reverse-side, window--sides-reverse)
(window--sides-verticalize-frame, window--sides-verticalize)
(window--sides-check-failed): New functions.
(window--side-window-p): Remove function.
(window--major-non-side-window): Rename to `window-main-window',
adjust callers, rewrite doc-string.
(window--major-side-window): Rename to
`window--make-major-side-window-next-to', adjust caller, fix
doc-string.
(display-buffer-in-major-side-window): Rename to
`window--make-major-side-window', adjust
caller, rewrite doc-string. Make `window-side' and
`window-slot' parameters persistent (Bug#23858). Don't set
`delete-window' parameter. Add `preserve-size' entry to ALIST.
(delete-side-window): Remove function.
(display-buffer-in-side-window): Fix doc-string. Don't set
`delete-window' parameter. Add `preserve-size' entry to ALIST.
(window--side-check): Rename to window--sides-check. Rewrite
completely. Adjust caller.
(window-resize-no-error): Don't describe PIXELWISE argument.
(adjust-window-trailing-edge): Fix bug that disallowed
re-enlarging windows that were too small.
(window-deletable-p): Don't tell that a minibuffer window on a
non-minibuffer-only frame can be deleted. Fix doc-string.
(delete-window): Handle deleting a side window here (the
`delete-window' parameter is no more set for side windows).
(delete-other-windows): Handle ‘no-delete-other-window'
parameter. Don't treat side windows separately (see discussion
of Bug#24368) but keep optimization that makes the main window
the root window of its frame.
(switch-to-prev-buffer, switch-to-next-buffer): Handle side
windows and buffers shown in side windows separately.
(split-window-no-error): New function.
(window--state-get-1): Use right buffer when storing window
point and start positions and WRITABLE is nil (Bug#24368).
(window--state-put-1): Fix handling of `window-combination-limit'.
Use `split-window-no-error'.
(window--state-put-2): Try to restore windows with preserved
size to their original size. Fix bug where a fixed window's width
was not preserved.
(window-state-put): When reducing an internal window to a live
one, don't choose a side window.
(window-swap-states): New function.
(window-splittable-p): Don't call `window--side-window-p'.
(window--display-buffer): Handle `window-parameters' ALIST entry.
Minor rewrite.
(display-buffer): Mention `window-parameters' entry in
doc-string.
(display-buffer-at-bottom): Call `split-window-no-error'.
* doc/lispref/elisp.texi (Top): New section "Side Windows".
* doc/lispref/windows.texi (Deleting Windows): Fix descriptions
of `delete-window' and `delete-other-windows' wrt window
parameters and side windows.
(Display Action Functions): Mention `window-parameters' ALIST
entry.
(Side Windows): New section (Bug#18170).
(Window Configurations): Describe new function `window-swap-states'.
(Window Parameters): Say that functions may behave specially when
their homonymous window parameter has been set. Mention new
parameter `no-delete-other-window'. Add cross reference for
`window-side' and `window-slot' parameters.
2016-10-05 08:28:36 +00:00
|
|
|
|
|
2016-10-17 07:59:20 +00:00
|
|
|
|
*** Support for atomic windows - rectangular compositions of windows
|
2016-10-20 14:29:40 +00:00
|
|
|
|
treated by 'split-window', 'delete-window' and 'delete-other-windows'
|
2016-10-17 07:59:20 +00:00
|
|
|
|
like a single live window - is now official. For details consult the
|
2017-10-14 10:52:05 +00:00
|
|
|
|
section "(elisp) Atomic Windows" in the ELisp manual.
|
2016-10-17 07:59:20 +00:00
|
|
|
|
|
2018-02-04 17:18:39 +00:00
|
|
|
|
*** New 'display-buffer' alist entry 'window-parameters' allows the
|
|
|
|
|
assignment of window parameters to the window used for displaying the
|
|
|
|
|
buffer.
|
Document and fix some bugs with side windows
Add a documentation for side windows and fix some bugs
found when testing their behavior. Also add a new window
parameter `no-delete-other-window', a new `display-buffer'
alist member called `window-parameters', and functions to
toggle and reverse side windows on a frame. Add new function
`window-swap-states' to exchange states of two live windows.
* lisp/window.el (display-buffer-in-atom-window): Use
`split-window-no-error'.
(window-sides-vertical): Maybe change layouts when setting this
variable.
(window-sides-reversed): New option.
(window-sides-slots): Rewrite doc-string and help echoes.
(window-sides-shown): New buffer-local variable set when showing
a buffer in a side window.
(window--sides-inhibit-check): New variable.
(window--sides-reverse-on-frame-p, window-toggle-side-windows)
(window--sides-reverse-all, window--sides-reverse-frame)
(window--sides-reverse-side, window--sides-reverse)
(window--sides-verticalize-frame, window--sides-verticalize)
(window--sides-check-failed): New functions.
(window--side-window-p): Remove function.
(window--major-non-side-window): Rename to `window-main-window',
adjust callers, rewrite doc-string.
(window--major-side-window): Rename to
`window--make-major-side-window-next-to', adjust caller, fix
doc-string.
(display-buffer-in-major-side-window): Rename to
`window--make-major-side-window', adjust
caller, rewrite doc-string. Make `window-side' and
`window-slot' parameters persistent (Bug#23858). Don't set
`delete-window' parameter. Add `preserve-size' entry to ALIST.
(delete-side-window): Remove function.
(display-buffer-in-side-window): Fix doc-string. Don't set
`delete-window' parameter. Add `preserve-size' entry to ALIST.
(window--side-check): Rename to window--sides-check. Rewrite
completely. Adjust caller.
(window-resize-no-error): Don't describe PIXELWISE argument.
(adjust-window-trailing-edge): Fix bug that disallowed
re-enlarging windows that were too small.
(window-deletable-p): Don't tell that a minibuffer window on a
non-minibuffer-only frame can be deleted. Fix doc-string.
(delete-window): Handle deleting a side window here (the
`delete-window' parameter is no more set for side windows).
(delete-other-windows): Handle ‘no-delete-other-window'
parameter. Don't treat side windows separately (see discussion
of Bug#24368) but keep optimization that makes the main window
the root window of its frame.
(switch-to-prev-buffer, switch-to-next-buffer): Handle side
windows and buffers shown in side windows separately.
(split-window-no-error): New function.
(window--state-get-1): Use right buffer when storing window
point and start positions and WRITABLE is nil (Bug#24368).
(window--state-put-1): Fix handling of `window-combination-limit'.
Use `split-window-no-error'.
(window--state-put-2): Try to restore windows with preserved
size to their original size. Fix bug where a fixed window's width
was not preserved.
(window-state-put): When reducing an internal window to a live
one, don't choose a side window.
(window-swap-states): New function.
(window-splittable-p): Don't call `window--side-window-p'.
(window--display-buffer): Handle `window-parameters' ALIST entry.
Minor rewrite.
(display-buffer): Mention `window-parameters' entry in
doc-string.
(display-buffer-at-bottom): Call `split-window-no-error'.
* doc/lispref/elisp.texi (Top): New section "Side Windows".
* doc/lispref/windows.texi (Deleting Windows): Fix descriptions
of `delete-window' and `delete-other-windows' wrt window
parameters and side windows.
(Display Action Functions): Mention `window-parameters' ALIST
entry.
(Side Windows): New section (Bug#18170).
(Window Configurations): Describe new function `window-swap-states'.
(Window Parameters): Say that functions may behave specially when
their homonymous window parameter has been set. Mention new
parameter `no-delete-other-window'. Add cross reference for
`window-side' and `window-slot' parameters.
2016-10-05 08:28:36 +00:00
|
|
|
|
|
2017-04-13 16:59:37 +00:00
|
|
|
|
*** New function 'display-buffer-reuse-mode-window' is an action function
|
2017-08-30 17:50:25 +00:00
|
|
|
|
suitable for use in 'display-buffer-alist'. For example, to avoid
|
|
|
|
|
creating a new window when opening man pages when there's already one,
|
|
|
|
|
use
|
|
|
|
|
|
2017-04-13 16:59:37 +00:00
|
|
|
|
(add-to-list 'display-buffer-alist
|
|
|
|
|
'("\\`\\*Man .*\\*\\'" .
|
|
|
|
|
(display-buffer-reuse-mode-window
|
|
|
|
|
(inhibit-same-window . nil)
|
|
|
|
|
(mode . Man-mode))))
|
|
|
|
|
|
2017-08-19 08:58:25 +00:00
|
|
|
|
*** New window parameter 'no-delete-other-windows' prevents that
|
2016-10-20 14:29:40 +00:00
|
|
|
|
its window gets deleted by 'delete-other-windows'.
|
Document and fix some bugs with side windows
Add a documentation for side windows and fix some bugs
found when testing their behavior. Also add a new window
parameter `no-delete-other-window', a new `display-buffer'
alist member called `window-parameters', and functions to
toggle and reverse side windows on a frame. Add new function
`window-swap-states' to exchange states of two live windows.
* lisp/window.el (display-buffer-in-atom-window): Use
`split-window-no-error'.
(window-sides-vertical): Maybe change layouts when setting this
variable.
(window-sides-reversed): New option.
(window-sides-slots): Rewrite doc-string and help echoes.
(window-sides-shown): New buffer-local variable set when showing
a buffer in a side window.
(window--sides-inhibit-check): New variable.
(window--sides-reverse-on-frame-p, window-toggle-side-windows)
(window--sides-reverse-all, window--sides-reverse-frame)
(window--sides-reverse-side, window--sides-reverse)
(window--sides-verticalize-frame, window--sides-verticalize)
(window--sides-check-failed): New functions.
(window--side-window-p): Remove function.
(window--major-non-side-window): Rename to `window-main-window',
adjust callers, rewrite doc-string.
(window--major-side-window): Rename to
`window--make-major-side-window-next-to', adjust caller, fix
doc-string.
(display-buffer-in-major-side-window): Rename to
`window--make-major-side-window', adjust
caller, rewrite doc-string. Make `window-side' and
`window-slot' parameters persistent (Bug#23858). Don't set
`delete-window' parameter. Add `preserve-size' entry to ALIST.
(delete-side-window): Remove function.
(display-buffer-in-side-window): Fix doc-string. Don't set
`delete-window' parameter. Add `preserve-size' entry to ALIST.
(window--side-check): Rename to window--sides-check. Rewrite
completely. Adjust caller.
(window-resize-no-error): Don't describe PIXELWISE argument.
(adjust-window-trailing-edge): Fix bug that disallowed
re-enlarging windows that were too small.
(window-deletable-p): Don't tell that a minibuffer window on a
non-minibuffer-only frame can be deleted. Fix doc-string.
(delete-window): Handle deleting a side window here (the
`delete-window' parameter is no more set for side windows).
(delete-other-windows): Handle ‘no-delete-other-window'
parameter. Don't treat side windows separately (see discussion
of Bug#24368) but keep optimization that makes the main window
the root window of its frame.
(switch-to-prev-buffer, switch-to-next-buffer): Handle side
windows and buffers shown in side windows separately.
(split-window-no-error): New function.
(window--state-get-1): Use right buffer when storing window
point and start positions and WRITABLE is nil (Bug#24368).
(window--state-put-1): Fix handling of `window-combination-limit'.
Use `split-window-no-error'.
(window--state-put-2): Try to restore windows with preserved
size to their original size. Fix bug where a fixed window's width
was not preserved.
(window-state-put): When reducing an internal window to a live
one, don't choose a side window.
(window-swap-states): New function.
(window-splittable-p): Don't call `window--side-window-p'.
(window--display-buffer): Handle `window-parameters' ALIST entry.
Minor rewrite.
(display-buffer): Mention `window-parameters' entry in
doc-string.
(display-buffer-at-bottom): Call `split-window-no-error'.
* doc/lispref/elisp.texi (Top): New section "Side Windows".
* doc/lispref/windows.texi (Deleting Windows): Fix descriptions
of `delete-window' and `delete-other-windows' wrt window
parameters and side windows.
(Display Action Functions): Mention `window-parameters' ALIST
entry.
(Side Windows): New section (Bug#18170).
(Window Configurations): Describe new function `window-swap-states'.
(Window Parameters): Say that functions may behave specially when
their homonymous window parameter has been set. Mention new
parameter `no-delete-other-window'. Add cross reference for
`window-side' and `window-slot' parameters.
2016-10-05 08:28:36 +00:00
|
|
|
|
|
Provide additional support for child frames
Provide mouse dragging and resizing of frames. Allow resizing
frames proportionally. Provide additional functionality for
child frames. Minor bug fixes.
* lisp/frame.el (frame-border-width, frame-pixel-width)
(frame-pixel-height): Alias to `frame-internal-border-width',
`frame-native-width' and `frame-native-height'.
(frame-inner-width, frame-inner-height, frame-outer-width)
(frame-outer-height): New functions.
* lisp/minibuffer.el (completion-auto-help): Fix typo.
* lisp/mouse.el (mouse-drag-line, mouse-drag-mode-line)
(mouse-drag-header-line): Allow moving a frame by dragging the
mode line of its bottommost window (on a minibuffer-less frame)
or the header line of its topmost window.
(mouse-drag-vertical-line): Mention argument in doc-string.
(mouse-resize-frame, mouse-drag-frame, mouse-drag-left-edge)
(mouse-drag-top-left-corner, mouse-drag-top-edge)
(mouse-drag-top-right-corner, mouse-drag-right-edge)
(mouse-drag-bottom-right-corner, mouse-drag-bottom-edge)
(mouse-drag-bottom-left-corner): New functions for resizing a
frame by dragging its internal border together with
corresponding key bindings.
* lisp/tooltip.el (tooltip-frame-parameters): Add
'no-special-glyphs' to default parameters and update version
tag.
* lisp/window.el (frame-auto-hide-function): Add choice to make
frame invisible and update version tag.
(window--delete): Handle 'auto-hide-function' frame parameter.
(window--maybe-raise-frame): Respect 'no-focus-on-map' and
'no-accept-focus' frame parameters.
(display-buffer--action-function-custom-type): Add
`display-buffer-in-child-frame'.
(display-buffer): Mention `display-buffer-in-child-frame' in
doc-string.
(display-buffer-in-child-frame): New action function for
`display-buffer'.
(window--sanitize-margin): Return zero when MARGIN cannot be
sanitized.
(fit-frame-to-buffer): Major rewrite to handle child frames and
'fit-frame-to-buffer-sizes' and 'fit-frame-to-buffer-margins'
frame parameters.
(window-largest-empty-rectangle--maximums-1)
(window-largest-empty-rectangle--maximums)
(window-largest-empty-rectangle--disjoint-maximums)
(window-largest-empty-rectangle): New functions.
* src/dispextern.h (WINDOW_WANTS_MODELINE_P)
(WINDOW_WANTS_HEADER_LINE_P): Remove. Functionality is now
provided by corresponding functions window_wants_modeline and
window_wants_header_line in window.c. Adjust users.
* src/dispnew.c (adjust_glyph_matrix)
(buffer_posn_from_coords): Use window_wants_modeline and
window_wants_header_line instead of WINDOW_WANTS_MODELINE_P and
WINDOW_WANTS_HEADER_LINE_P.
* src/frame.c (keep_ratio): New function.
(adjust_frame_size): Call keep_ratio for each of F's child
frames.
(make_frame): Initialize no_special_glyphs slot.
(frame_internal_border_part): New function.
(Fframe_pixel_width, Fframe_pixel_height, Fborder_width): Rename
to Fframe_native_width, Fframe_native_height mand
Fframe_internal_border_width.
(frame_parm_table): Add Qno_special_glyphs entry.
(frame_float_type): New enumeration type.
(frame_float): New function to handle frame size and position
ratios.
(x_set_frame_parameters): Handle size and position ratios.
(x_set_no_special_glyphs): New function
(x_figure_window_size): Handle size and position ratios.
(syms_of_frame): Add Qdisplay_monitor_attributes_list,
Qno_special_glyphs, Qframe_edges, Qkeep_ratio, Qwidth_only,
Qheight_only, Qleft_only and Qtop_only.
* src/frame.h (internal_border_part): New enumeration type.
(struct frame): New slot no_special_glyphs.
(FRAME_NO_SPECIAL_GLYPHS): New macro.
* src/gtkutil.c (xg_frame_restack): Return immediately for
GTK versions before 2.18.0.
* src/keyboard.c (internal_border_parts): New array constant.
(make_lispy_position): For frames with border dragging enabled
return internal border part.
(syms_of_keyboard): New symbols Qdrag_internal_border,
Qleft_edge, Qtop_left_corner, Qtop_edge, Qtop_right_corner,
Qright_edge, Qbottom_right_corner, Qbottom_edge and
Qbottom_left_corner.
* src/minibuf.c (read_minibuf_unwind): When exiting the
minibuffer deal with frames that have the 'minibuffer-exit'
parameter set.
(syms_of_minibuf): New symbol Qminibuffer_exit.
* src/nsfns.m (frame_parm_handler): Add entry for
x_set_no_special_glyphs.
(Fx_create_frame): Handle 'no-special-glyphs' parameter.
Intitialize new cursor types for dragging frame borders.
* src/nsterm.h (struct ns_output): Add new cursor types for
dragging frame borders.
* src/w32fns.c (w32_frame_parm_handlers): Add entry for
x_set_no_special_glyphs.
(Fx_create_frame): Handle 'no-special-glyphs' parameter.
Intitialize new cursor types for dragging frame borders.
* src/w32term.h (struct w32_output): Add new cursor types for
dragging frame borders.
* src/window.c (coordinates_in_window)
(Fwindow_line_height, window_internal_height): Use
window_wants_modeline and window_wants_header_line instead of
WINDOW_WANTS_MODELINE_P and WINDOW_WANTS_HEADER_LINE_P.
(Fwindow_lines_pixel_dimensions): New function.
(window_parameter): New function.
(Fwindow_parameter): Call window_parameter.
(window_wants_mode_line, window_wants_header_line): New
functions replacing the macros WINDOW_WANTS_MODELINE_P and
WINDOW_WANTS_HEADER_LINE_P from dispextern.h.
(syms_of_window): New symbols Qmode_line_format and
Qheader_line_format.
* src/window.h: Reorganize and re-comment macros. Use
window_wants_modeline and window_wants_header_line instead of
WINDOW_WANTS_MODELINE_P and WINDOW_WANTS_HEADER_LINE_P.
(MINI_NON_ONLY_WINDOW_P, MINI_ONLY_WINDOW_P): Minor rewrite.
(WINDOW_BUFFER): New macro.
(WINDOW_BOX_LEFT_EDGE_COL, WINDOW_BOX_RIGHT_EDGE_COL): Remove.
* src/xdisp.c (window_text_bottom_y, window_box_height)
(window_box, start_display)
(compute_window_start_on_continuation_line)
(try_cursor_movement, redisplay_window)
(try_window_reusing_current_matrix, try_window_id)
(display_line, expose_window): Use window_wants_modeline and
window_wants_header_line instead of WINDOW_WANTS_MODELINE_P and
WINDOW_WANTS_HEADER_LINE_P.
(pos_visible_p, display_mode_lines): Respect W's
'mode-line-format' and 'header-line-format' window parameters.
(init_iterator): Use window_wants_modeline and
window_wants_header_line instead of WINDOW_WANTS_MODELINE_P and
WINDOW_WANTS_HEADER_LINE_P. For tip frames respect
no_special_glyphs value.
(note_mouse_highlight): Set frame border cursors when on
internal border.
(x_draw_right_divider, x_draw_bottom_divider): Try to improve
drawing of window dividers.
* src/xfns.c (mouse_cursor): Add entries for border parts.
(mouse_cursor_types): Add entries for cursor types to drag
frame borders.
(INSTALL_CURSOR): Add entries for new cursor types to drag
frame borders.
(Fx_create_frame): Handle 'no-special-glyphs' parameter.
(x_frame_parm_handlers): Add entry for
x_set_no_special_glyphs.
(Vx_window_left_edge_shape, Vx_window_top_left_corner_shape)
(Vx_window_top_edge_shape, Vx_window_top_right_corner_shape)
(Vx_window_right_edge_shape)
(Vx_window_bottom_right_corner_shape)
(Vx_window_bottom_edge_shape)
(Vx_window_bottom_left_corner_shape): New variables.
(x_frame_restack): Call xg_frame_restack only for GTK versions
starting with 2.18.0.
* src/xterm.c (x_free_frame_resources): Remove new cursors for
dragging frame borders.
* src/xterm.h (struct x_output): Add new cursor types for
dragging frame borders.
* doc/lispref/display.texi (Size of Displayed Text): Document
`window-lines-pixel-dimensions'.
* doc/lispref/elisp.texi (Top): Add entry for "Mouse Dragging
Parameters".
* doc/lispref/frames.texi (Frame Size): Replace
frame-pixel-width/-height by frame-native-width/-height. Add
frame-inner-width/-height and frame-outer-width/-height docs.
(Position Parameters): Describe specifying position as ratios.
Clarify remark about positions relative to bottom/ridge display
edge.
(Size Parameters): Describe specifying sizes as ratios.
Describe 'fit-frame-to-buffer-margins' and
'fit-frame-to-buffer-sizes' parameters.
(Layout Parameters): Describe 'no-special-glyphs' parameter.
(Frame Interaction Parameters): Describe 'auto-hide-function',
'minibuffer-exit' and 'keep-ratio' parameters.
(Mouse Dragging Parameters): New section describing
'drag-internal-border', 'drag-with-header-line',
'drag-with-mode-line', 'snap-width', 'top-visible' and
'bottom-visible' parameters.
(Management Parameters): Mention that `override-redirect' has
no effect on MS Windows.
(Font and Color Parameters): Mention child frames for `alpha'
parameter.
(Child Frames): Rewrite section with description and cross
references to new frame parameters added.
* doc/lispref/modes.texi (Mode Line Basics): Mention
'mode-line-format' and 'header-line-format' window parameters.
* doc/lispref/windows.texi (Resizing Windows): Mention effect
of `fit-frame-to-buffer-margins' for child frames.
(Display Action Functions): New action function
`display-buffer-in-child-frame'.
(Quitting Windows): Mention `make-frame-invisible' as optional
value of `frame-auto-hide-function' and `auto-hide-function'
frame paameter.
(Coordinates and Windows): Describe new function
`window-largest-empty-rectangle'.
(Window Parameters): Describe new parameters 'mode-line-format'
and 'header-line-format'. Index all window parameters described
in this section.
2017-06-25 09:33:25 +00:00
|
|
|
|
*** New window parameters 'mode-line-format' and 'header-line-format'
|
2018-02-04 17:18:39 +00:00
|
|
|
|
allow the buffer-local formats for this window to be overridden.
|
Provide additional support for child frames
Provide mouse dragging and resizing of frames. Allow resizing
frames proportionally. Provide additional functionality for
child frames. Minor bug fixes.
* lisp/frame.el (frame-border-width, frame-pixel-width)
(frame-pixel-height): Alias to `frame-internal-border-width',
`frame-native-width' and `frame-native-height'.
(frame-inner-width, frame-inner-height, frame-outer-width)
(frame-outer-height): New functions.
* lisp/minibuffer.el (completion-auto-help): Fix typo.
* lisp/mouse.el (mouse-drag-line, mouse-drag-mode-line)
(mouse-drag-header-line): Allow moving a frame by dragging the
mode line of its bottommost window (on a minibuffer-less frame)
or the header line of its topmost window.
(mouse-drag-vertical-line): Mention argument in doc-string.
(mouse-resize-frame, mouse-drag-frame, mouse-drag-left-edge)
(mouse-drag-top-left-corner, mouse-drag-top-edge)
(mouse-drag-top-right-corner, mouse-drag-right-edge)
(mouse-drag-bottom-right-corner, mouse-drag-bottom-edge)
(mouse-drag-bottom-left-corner): New functions for resizing a
frame by dragging its internal border together with
corresponding key bindings.
* lisp/tooltip.el (tooltip-frame-parameters): Add
'no-special-glyphs' to default parameters and update version
tag.
* lisp/window.el (frame-auto-hide-function): Add choice to make
frame invisible and update version tag.
(window--delete): Handle 'auto-hide-function' frame parameter.
(window--maybe-raise-frame): Respect 'no-focus-on-map' and
'no-accept-focus' frame parameters.
(display-buffer--action-function-custom-type): Add
`display-buffer-in-child-frame'.
(display-buffer): Mention `display-buffer-in-child-frame' in
doc-string.
(display-buffer-in-child-frame): New action function for
`display-buffer'.
(window--sanitize-margin): Return zero when MARGIN cannot be
sanitized.
(fit-frame-to-buffer): Major rewrite to handle child frames and
'fit-frame-to-buffer-sizes' and 'fit-frame-to-buffer-margins'
frame parameters.
(window-largest-empty-rectangle--maximums-1)
(window-largest-empty-rectangle--maximums)
(window-largest-empty-rectangle--disjoint-maximums)
(window-largest-empty-rectangle): New functions.
* src/dispextern.h (WINDOW_WANTS_MODELINE_P)
(WINDOW_WANTS_HEADER_LINE_P): Remove. Functionality is now
provided by corresponding functions window_wants_modeline and
window_wants_header_line in window.c. Adjust users.
* src/dispnew.c (adjust_glyph_matrix)
(buffer_posn_from_coords): Use window_wants_modeline and
window_wants_header_line instead of WINDOW_WANTS_MODELINE_P and
WINDOW_WANTS_HEADER_LINE_P.
* src/frame.c (keep_ratio): New function.
(adjust_frame_size): Call keep_ratio for each of F's child
frames.
(make_frame): Initialize no_special_glyphs slot.
(frame_internal_border_part): New function.
(Fframe_pixel_width, Fframe_pixel_height, Fborder_width): Rename
to Fframe_native_width, Fframe_native_height mand
Fframe_internal_border_width.
(frame_parm_table): Add Qno_special_glyphs entry.
(frame_float_type): New enumeration type.
(frame_float): New function to handle frame size and position
ratios.
(x_set_frame_parameters): Handle size and position ratios.
(x_set_no_special_glyphs): New function
(x_figure_window_size): Handle size and position ratios.
(syms_of_frame): Add Qdisplay_monitor_attributes_list,
Qno_special_glyphs, Qframe_edges, Qkeep_ratio, Qwidth_only,
Qheight_only, Qleft_only and Qtop_only.
* src/frame.h (internal_border_part): New enumeration type.
(struct frame): New slot no_special_glyphs.
(FRAME_NO_SPECIAL_GLYPHS): New macro.
* src/gtkutil.c (xg_frame_restack): Return immediately for
GTK versions before 2.18.0.
* src/keyboard.c (internal_border_parts): New array constant.
(make_lispy_position): For frames with border dragging enabled
return internal border part.
(syms_of_keyboard): New symbols Qdrag_internal_border,
Qleft_edge, Qtop_left_corner, Qtop_edge, Qtop_right_corner,
Qright_edge, Qbottom_right_corner, Qbottom_edge and
Qbottom_left_corner.
* src/minibuf.c (read_minibuf_unwind): When exiting the
minibuffer deal with frames that have the 'minibuffer-exit'
parameter set.
(syms_of_minibuf): New symbol Qminibuffer_exit.
* src/nsfns.m (frame_parm_handler): Add entry for
x_set_no_special_glyphs.
(Fx_create_frame): Handle 'no-special-glyphs' parameter.
Intitialize new cursor types for dragging frame borders.
* src/nsterm.h (struct ns_output): Add new cursor types for
dragging frame borders.
* src/w32fns.c (w32_frame_parm_handlers): Add entry for
x_set_no_special_glyphs.
(Fx_create_frame): Handle 'no-special-glyphs' parameter.
Intitialize new cursor types for dragging frame borders.
* src/w32term.h (struct w32_output): Add new cursor types for
dragging frame borders.
* src/window.c (coordinates_in_window)
(Fwindow_line_height, window_internal_height): Use
window_wants_modeline and window_wants_header_line instead of
WINDOW_WANTS_MODELINE_P and WINDOW_WANTS_HEADER_LINE_P.
(Fwindow_lines_pixel_dimensions): New function.
(window_parameter): New function.
(Fwindow_parameter): Call window_parameter.
(window_wants_mode_line, window_wants_header_line): New
functions replacing the macros WINDOW_WANTS_MODELINE_P and
WINDOW_WANTS_HEADER_LINE_P from dispextern.h.
(syms_of_window): New symbols Qmode_line_format and
Qheader_line_format.
* src/window.h: Reorganize and re-comment macros. Use
window_wants_modeline and window_wants_header_line instead of
WINDOW_WANTS_MODELINE_P and WINDOW_WANTS_HEADER_LINE_P.
(MINI_NON_ONLY_WINDOW_P, MINI_ONLY_WINDOW_P): Minor rewrite.
(WINDOW_BUFFER): New macro.
(WINDOW_BOX_LEFT_EDGE_COL, WINDOW_BOX_RIGHT_EDGE_COL): Remove.
* src/xdisp.c (window_text_bottom_y, window_box_height)
(window_box, start_display)
(compute_window_start_on_continuation_line)
(try_cursor_movement, redisplay_window)
(try_window_reusing_current_matrix, try_window_id)
(display_line, expose_window): Use window_wants_modeline and
window_wants_header_line instead of WINDOW_WANTS_MODELINE_P and
WINDOW_WANTS_HEADER_LINE_P.
(pos_visible_p, display_mode_lines): Respect W's
'mode-line-format' and 'header-line-format' window parameters.
(init_iterator): Use window_wants_modeline and
window_wants_header_line instead of WINDOW_WANTS_MODELINE_P and
WINDOW_WANTS_HEADER_LINE_P. For tip frames respect
no_special_glyphs value.
(note_mouse_highlight): Set frame border cursors when on
internal border.
(x_draw_right_divider, x_draw_bottom_divider): Try to improve
drawing of window dividers.
* src/xfns.c (mouse_cursor): Add entries for border parts.
(mouse_cursor_types): Add entries for cursor types to drag
frame borders.
(INSTALL_CURSOR): Add entries for new cursor types to drag
frame borders.
(Fx_create_frame): Handle 'no-special-glyphs' parameter.
(x_frame_parm_handlers): Add entry for
x_set_no_special_glyphs.
(Vx_window_left_edge_shape, Vx_window_top_left_corner_shape)
(Vx_window_top_edge_shape, Vx_window_top_right_corner_shape)
(Vx_window_right_edge_shape)
(Vx_window_bottom_right_corner_shape)
(Vx_window_bottom_edge_shape)
(Vx_window_bottom_left_corner_shape): New variables.
(x_frame_restack): Call xg_frame_restack only for GTK versions
starting with 2.18.0.
* src/xterm.c (x_free_frame_resources): Remove new cursors for
dragging frame borders.
* src/xterm.h (struct x_output): Add new cursor types for
dragging frame borders.
* doc/lispref/display.texi (Size of Displayed Text): Document
`window-lines-pixel-dimensions'.
* doc/lispref/elisp.texi (Top): Add entry for "Mouse Dragging
Parameters".
* doc/lispref/frames.texi (Frame Size): Replace
frame-pixel-width/-height by frame-native-width/-height. Add
frame-inner-width/-height and frame-outer-width/-height docs.
(Position Parameters): Describe specifying position as ratios.
Clarify remark about positions relative to bottom/ridge display
edge.
(Size Parameters): Describe specifying sizes as ratios.
Describe 'fit-frame-to-buffer-margins' and
'fit-frame-to-buffer-sizes' parameters.
(Layout Parameters): Describe 'no-special-glyphs' parameter.
(Frame Interaction Parameters): Describe 'auto-hide-function',
'minibuffer-exit' and 'keep-ratio' parameters.
(Mouse Dragging Parameters): New section describing
'drag-internal-border', 'drag-with-header-line',
'drag-with-mode-line', 'snap-width', 'top-visible' and
'bottom-visible' parameters.
(Management Parameters): Mention that `override-redirect' has
no effect on MS Windows.
(Font and Color Parameters): Mention child frames for `alpha'
parameter.
(Child Frames): Rewrite section with description and cross
references to new frame parameters added.
* doc/lispref/modes.texi (Mode Line Basics): Mention
'mode-line-format' and 'header-line-format' window parameters.
* doc/lispref/windows.texi (Resizing Windows): Mention effect
of `fit-frame-to-buffer-margins' for child frames.
(Display Action Functions): New action function
`display-buffer-in-child-frame'.
(Quitting Windows): Mention `make-frame-invisible' as optional
value of `frame-auto-hide-function' and `auto-hide-function'
frame paameter.
(Coordinates and Windows): Describe new function
`window-largest-empty-rectangle'.
(Window Parameters): Describe new parameters 'mode-line-format'
and 'header-line-format'. Index all window parameters described
in this section.
2017-06-25 09:33:25 +00:00
|
|
|
|
|
2016-10-20 14:29:40 +00:00
|
|
|
|
*** New command 'window-swap-states' swaps the states of two live
|
Document and fix some bugs with side windows
Add a documentation for side windows and fix some bugs
found when testing their behavior. Also add a new window
parameter `no-delete-other-window', a new `display-buffer'
alist member called `window-parameters', and functions to
toggle and reverse side windows on a frame. Add new function
`window-swap-states' to exchange states of two live windows.
* lisp/window.el (display-buffer-in-atom-window): Use
`split-window-no-error'.
(window-sides-vertical): Maybe change layouts when setting this
variable.
(window-sides-reversed): New option.
(window-sides-slots): Rewrite doc-string and help echoes.
(window-sides-shown): New buffer-local variable set when showing
a buffer in a side window.
(window--sides-inhibit-check): New variable.
(window--sides-reverse-on-frame-p, window-toggle-side-windows)
(window--sides-reverse-all, window--sides-reverse-frame)
(window--sides-reverse-side, window--sides-reverse)
(window--sides-verticalize-frame, window--sides-verticalize)
(window--sides-check-failed): New functions.
(window--side-window-p): Remove function.
(window--major-non-side-window): Rename to `window-main-window',
adjust callers, rewrite doc-string.
(window--major-side-window): Rename to
`window--make-major-side-window-next-to', adjust caller, fix
doc-string.
(display-buffer-in-major-side-window): Rename to
`window--make-major-side-window', adjust
caller, rewrite doc-string. Make `window-side' and
`window-slot' parameters persistent (Bug#23858). Don't set
`delete-window' parameter. Add `preserve-size' entry to ALIST.
(delete-side-window): Remove function.
(display-buffer-in-side-window): Fix doc-string. Don't set
`delete-window' parameter. Add `preserve-size' entry to ALIST.
(window--side-check): Rename to window--sides-check. Rewrite
completely. Adjust caller.
(window-resize-no-error): Don't describe PIXELWISE argument.
(adjust-window-trailing-edge): Fix bug that disallowed
re-enlarging windows that were too small.
(window-deletable-p): Don't tell that a minibuffer window on a
non-minibuffer-only frame can be deleted. Fix doc-string.
(delete-window): Handle deleting a side window here (the
`delete-window' parameter is no more set for side windows).
(delete-other-windows): Handle ‘no-delete-other-window'
parameter. Don't treat side windows separately (see discussion
of Bug#24368) but keep optimization that makes the main window
the root window of its frame.
(switch-to-prev-buffer, switch-to-next-buffer): Handle side
windows and buffers shown in side windows separately.
(split-window-no-error): New function.
(window--state-get-1): Use right buffer when storing window
point and start positions and WRITABLE is nil (Bug#24368).
(window--state-put-1): Fix handling of `window-combination-limit'.
Use `split-window-no-error'.
(window--state-put-2): Try to restore windows with preserved
size to their original size. Fix bug where a fixed window's width
was not preserved.
(window-state-put): When reducing an internal window to a live
one, don't choose a side window.
(window-swap-states): New function.
(window-splittable-p): Don't call `window--side-window-p'.
(window--display-buffer): Handle `window-parameters' ALIST entry.
Minor rewrite.
(display-buffer): Mention `window-parameters' entry in
doc-string.
(display-buffer-at-bottom): Call `split-window-no-error'.
* doc/lispref/elisp.texi (Top): New section "Side Windows".
* doc/lispref/windows.texi (Deleting Windows): Fix descriptions
of `delete-window' and `delete-other-windows' wrt window
parameters and side windows.
(Display Action Functions): Mention `window-parameters' ALIST
entry.
(Side Windows): New section (Bug#18170).
(Window Configurations): Describe new function `window-swap-states'.
(Window Parameters): Say that functions may behave specially when
their homonymous window parameter has been set. Mention new
parameter `no-delete-other-window'. Add cross reference for
`window-side' and `window-slot' parameters.
2016-10-05 08:28:36 +00:00
|
|
|
|
windows.
|
2016-10-20 14:29:40 +00:00
|
|
|
|
|
2017-04-13 16:59:37 +00:00
|
|
|
|
*** New functions 'window-pixel-width-before-size-change' and
|
|
|
|
|
'window-pixel-height-before-size-change' support detecting which
|
|
|
|
|
window changed size when 'window-size-change-functions' are run.
|
2017-04-01 13:34:04 +00:00
|
|
|
|
|
Provide additional support for child frames
Provide mouse dragging and resizing of frames. Allow resizing
frames proportionally. Provide additional functionality for
child frames. Minor bug fixes.
* lisp/frame.el (frame-border-width, frame-pixel-width)
(frame-pixel-height): Alias to `frame-internal-border-width',
`frame-native-width' and `frame-native-height'.
(frame-inner-width, frame-inner-height, frame-outer-width)
(frame-outer-height): New functions.
* lisp/minibuffer.el (completion-auto-help): Fix typo.
* lisp/mouse.el (mouse-drag-line, mouse-drag-mode-line)
(mouse-drag-header-line): Allow moving a frame by dragging the
mode line of its bottommost window (on a minibuffer-less frame)
or the header line of its topmost window.
(mouse-drag-vertical-line): Mention argument in doc-string.
(mouse-resize-frame, mouse-drag-frame, mouse-drag-left-edge)
(mouse-drag-top-left-corner, mouse-drag-top-edge)
(mouse-drag-top-right-corner, mouse-drag-right-edge)
(mouse-drag-bottom-right-corner, mouse-drag-bottom-edge)
(mouse-drag-bottom-left-corner): New functions for resizing a
frame by dragging its internal border together with
corresponding key bindings.
* lisp/tooltip.el (tooltip-frame-parameters): Add
'no-special-glyphs' to default parameters and update version
tag.
* lisp/window.el (frame-auto-hide-function): Add choice to make
frame invisible and update version tag.
(window--delete): Handle 'auto-hide-function' frame parameter.
(window--maybe-raise-frame): Respect 'no-focus-on-map' and
'no-accept-focus' frame parameters.
(display-buffer--action-function-custom-type): Add
`display-buffer-in-child-frame'.
(display-buffer): Mention `display-buffer-in-child-frame' in
doc-string.
(display-buffer-in-child-frame): New action function for
`display-buffer'.
(window--sanitize-margin): Return zero when MARGIN cannot be
sanitized.
(fit-frame-to-buffer): Major rewrite to handle child frames and
'fit-frame-to-buffer-sizes' and 'fit-frame-to-buffer-margins'
frame parameters.
(window-largest-empty-rectangle--maximums-1)
(window-largest-empty-rectangle--maximums)
(window-largest-empty-rectangle--disjoint-maximums)
(window-largest-empty-rectangle): New functions.
* src/dispextern.h (WINDOW_WANTS_MODELINE_P)
(WINDOW_WANTS_HEADER_LINE_P): Remove. Functionality is now
provided by corresponding functions window_wants_modeline and
window_wants_header_line in window.c. Adjust users.
* src/dispnew.c (adjust_glyph_matrix)
(buffer_posn_from_coords): Use window_wants_modeline and
window_wants_header_line instead of WINDOW_WANTS_MODELINE_P and
WINDOW_WANTS_HEADER_LINE_P.
* src/frame.c (keep_ratio): New function.
(adjust_frame_size): Call keep_ratio for each of F's child
frames.
(make_frame): Initialize no_special_glyphs slot.
(frame_internal_border_part): New function.
(Fframe_pixel_width, Fframe_pixel_height, Fborder_width): Rename
to Fframe_native_width, Fframe_native_height mand
Fframe_internal_border_width.
(frame_parm_table): Add Qno_special_glyphs entry.
(frame_float_type): New enumeration type.
(frame_float): New function to handle frame size and position
ratios.
(x_set_frame_parameters): Handle size and position ratios.
(x_set_no_special_glyphs): New function
(x_figure_window_size): Handle size and position ratios.
(syms_of_frame): Add Qdisplay_monitor_attributes_list,
Qno_special_glyphs, Qframe_edges, Qkeep_ratio, Qwidth_only,
Qheight_only, Qleft_only and Qtop_only.
* src/frame.h (internal_border_part): New enumeration type.
(struct frame): New slot no_special_glyphs.
(FRAME_NO_SPECIAL_GLYPHS): New macro.
* src/gtkutil.c (xg_frame_restack): Return immediately for
GTK versions before 2.18.0.
* src/keyboard.c (internal_border_parts): New array constant.
(make_lispy_position): For frames with border dragging enabled
return internal border part.
(syms_of_keyboard): New symbols Qdrag_internal_border,
Qleft_edge, Qtop_left_corner, Qtop_edge, Qtop_right_corner,
Qright_edge, Qbottom_right_corner, Qbottom_edge and
Qbottom_left_corner.
* src/minibuf.c (read_minibuf_unwind): When exiting the
minibuffer deal with frames that have the 'minibuffer-exit'
parameter set.
(syms_of_minibuf): New symbol Qminibuffer_exit.
* src/nsfns.m (frame_parm_handler): Add entry for
x_set_no_special_glyphs.
(Fx_create_frame): Handle 'no-special-glyphs' parameter.
Intitialize new cursor types for dragging frame borders.
* src/nsterm.h (struct ns_output): Add new cursor types for
dragging frame borders.
* src/w32fns.c (w32_frame_parm_handlers): Add entry for
x_set_no_special_glyphs.
(Fx_create_frame): Handle 'no-special-glyphs' parameter.
Intitialize new cursor types for dragging frame borders.
* src/w32term.h (struct w32_output): Add new cursor types for
dragging frame borders.
* src/window.c (coordinates_in_window)
(Fwindow_line_height, window_internal_height): Use
window_wants_modeline and window_wants_header_line instead of
WINDOW_WANTS_MODELINE_P and WINDOW_WANTS_HEADER_LINE_P.
(Fwindow_lines_pixel_dimensions): New function.
(window_parameter): New function.
(Fwindow_parameter): Call window_parameter.
(window_wants_mode_line, window_wants_header_line): New
functions replacing the macros WINDOW_WANTS_MODELINE_P and
WINDOW_WANTS_HEADER_LINE_P from dispextern.h.
(syms_of_window): New symbols Qmode_line_format and
Qheader_line_format.
* src/window.h: Reorganize and re-comment macros. Use
window_wants_modeline and window_wants_header_line instead of
WINDOW_WANTS_MODELINE_P and WINDOW_WANTS_HEADER_LINE_P.
(MINI_NON_ONLY_WINDOW_P, MINI_ONLY_WINDOW_P): Minor rewrite.
(WINDOW_BUFFER): New macro.
(WINDOW_BOX_LEFT_EDGE_COL, WINDOW_BOX_RIGHT_EDGE_COL): Remove.
* src/xdisp.c (window_text_bottom_y, window_box_height)
(window_box, start_display)
(compute_window_start_on_continuation_line)
(try_cursor_movement, redisplay_window)
(try_window_reusing_current_matrix, try_window_id)
(display_line, expose_window): Use window_wants_modeline and
window_wants_header_line instead of WINDOW_WANTS_MODELINE_P and
WINDOW_WANTS_HEADER_LINE_P.
(pos_visible_p, display_mode_lines): Respect W's
'mode-line-format' and 'header-line-format' window parameters.
(init_iterator): Use window_wants_modeline and
window_wants_header_line instead of WINDOW_WANTS_MODELINE_P and
WINDOW_WANTS_HEADER_LINE_P. For tip frames respect
no_special_glyphs value.
(note_mouse_highlight): Set frame border cursors when on
internal border.
(x_draw_right_divider, x_draw_bottom_divider): Try to improve
drawing of window dividers.
* src/xfns.c (mouse_cursor): Add entries for border parts.
(mouse_cursor_types): Add entries for cursor types to drag
frame borders.
(INSTALL_CURSOR): Add entries for new cursor types to drag
frame borders.
(Fx_create_frame): Handle 'no-special-glyphs' parameter.
(x_frame_parm_handlers): Add entry for
x_set_no_special_glyphs.
(Vx_window_left_edge_shape, Vx_window_top_left_corner_shape)
(Vx_window_top_edge_shape, Vx_window_top_right_corner_shape)
(Vx_window_right_edge_shape)
(Vx_window_bottom_right_corner_shape)
(Vx_window_bottom_edge_shape)
(Vx_window_bottom_left_corner_shape): New variables.
(x_frame_restack): Call xg_frame_restack only for GTK versions
starting with 2.18.0.
* src/xterm.c (x_free_frame_resources): Remove new cursors for
dragging frame borders.
* src/xterm.h (struct x_output): Add new cursor types for
dragging frame borders.
* doc/lispref/display.texi (Size of Displayed Text): Document
`window-lines-pixel-dimensions'.
* doc/lispref/elisp.texi (Top): Add entry for "Mouse Dragging
Parameters".
* doc/lispref/frames.texi (Frame Size): Replace
frame-pixel-width/-height by frame-native-width/-height. Add
frame-inner-width/-height and frame-outer-width/-height docs.
(Position Parameters): Describe specifying position as ratios.
Clarify remark about positions relative to bottom/ridge display
edge.
(Size Parameters): Describe specifying sizes as ratios.
Describe 'fit-frame-to-buffer-margins' and
'fit-frame-to-buffer-sizes' parameters.
(Layout Parameters): Describe 'no-special-glyphs' parameter.
(Frame Interaction Parameters): Describe 'auto-hide-function',
'minibuffer-exit' and 'keep-ratio' parameters.
(Mouse Dragging Parameters): New section describing
'drag-internal-border', 'drag-with-header-line',
'drag-with-mode-line', 'snap-width', 'top-visible' and
'bottom-visible' parameters.
(Management Parameters): Mention that `override-redirect' has
no effect on MS Windows.
(Font and Color Parameters): Mention child frames for `alpha'
parameter.
(Child Frames): Rewrite section with description and cross
references to new frame parameters added.
* doc/lispref/modes.texi (Mode Line Basics): Mention
'mode-line-format' and 'header-line-format' window parameters.
* doc/lispref/windows.texi (Resizing Windows): Mention effect
of `fit-frame-to-buffer-margins' for child frames.
(Display Action Functions): New action function
`display-buffer-in-child-frame'.
(Quitting Windows): Mention `make-frame-invisible' as optional
value of `frame-auto-hide-function' and `auto-hide-function'
frame paameter.
(Coordinates and Windows): Describe new function
`window-largest-empty-rectangle'.
(Window Parameters): Describe new parameters 'mode-line-format'
and 'header-line-format'. Index all window parameters described
in this section.
2017-06-25 09:33:25 +00:00
|
|
|
|
*** The new function 'window-lines-pixel-dimensions' returns the pixel
|
|
|
|
|
dimensions of a window's text lines.
|
|
|
|
|
|
|
|
|
|
*** The new function 'window-largest-empty-rectangle' returns the
|
|
|
|
|
dimensions of the largest rectangular area not occupying any text in a
|
|
|
|
|
window's body.
|
|
|
|
|
|
2017-04-13 16:59:37 +00:00
|
|
|
|
*** The semantics of 'mouse-autoselect-window' has changed slightly.
|
2017-10-14 10:52:05 +00:00
|
|
|
|
For details see the section "(elisp) Mouse Window Auto-selection" in
|
|
|
|
|
the ELisp manual.
|
2017-04-02 01:02:50 +00:00
|
|
|
|
|
2017-09-01 13:38:55 +00:00
|
|
|
|
*** 'select-frame-by-name' now may return a frame on another display
|
|
|
|
|
if it does not find a suitable one on the current display.
|
|
|
|
|
|
2018-08-21 15:58:15 +00:00
|
|
|
|
** 'tcl-auto-fill-mode' is now declared obsolete.
|
|
|
|
|
Its functionality can be replicated simply by setting
|
|
|
|
|
'comment-auto-fill-only-comments'.
|
2017-04-02 01:02:50 +00:00
|
|
|
|
|
2017-10-14 10:52:05 +00:00
|
|
|
|
** New pcase pattern 'rx' to match against an rx-style regular expression.
|
2017-08-30 16:23:59 +00:00
|
|
|
|
For details, see the doc string of 'rx--pcase-macroexpander'.
|
2017-07-20 19:36:18 +00:00
|
|
|
|
|
2017-09-21 08:26:00 +00:00
|
|
|
|
** New functions to set region from secondary selection and vice versa.
|
|
|
|
|
The new functions 'secondary-selection-to-region' and
|
|
|
|
|
'secondary-selection-from-region' let you set the beginning and the
|
2017-10-13 18:51:13 +00:00
|
|
|
|
end of the region from those of the secondary selection and vice
|
2017-09-21 08:26:00 +00:00
|
|
|
|
versa.
|
|
|
|
|
|
2017-10-08 02:48:01 +00:00
|
|
|
|
** New function 'lgstring-remove-glyph' can be used to modify a
|
|
|
|
|
gstring returned by the underlying layout engine (e.g. m17n-flt,
|
|
|
|
|
uniscribe).
|
|
|
|
|
|
2016-01-07 01:45:14 +00:00
|
|
|
|
|
2016-10-01 08:14:05 +00:00
|
|
|
|
* Changes in Emacs 26.1 on Non-Free Operating Systems
|
2016-01-07 01:45:14 +00:00
|
|
|
|
|
Improve the register-hotkey functionality on MS-Windows
* src/w32fns.c (_WIN32_WINNT): Define to 0x0600, needed for
keyboard hook functionality.
Include w32inevt.h, basetyps.h and unknwn.h.
(VK_ANY, WM_WTSSESSION_CHANGE, WTS_SESSION_LOCK): New macros.
(kbdhook): A new struct definition.
(funhook, setup_w32_kbdhook, remove_w32_kbdhook, hook_w32_key)
(check_w32_winkey_state, reset_w32_kbdhook_state): New functions.
(modifier_set): Call check_w32_winkey_state if a Win key was
pressed and the keyboard hook is active.
(w32_wnd_proc): Don't handle Win key combinations if the keyboard
hook is active. Only register/unregister the hotkeys if the
keyboard hook is not active. When WM_CREATE is received, call
setup_w32_kbdhook. When WM_DESTROY is received, call
reset_w32_kbdhook_state.
(lookup_vk_code): When the keyboard hook is active, map
alphanumeric characters to themselves.
(w32_parse_and_hook_hot_key): Renamed from w32_parse_hot_key. Map
modified keys to VK_ANY if the keyboard hook is active. Register
Alt-x and Win-x combinations.
(Fw32_shell_execute): Update doc string to reflect new
functionality. Bypass the code that posts the
WM_EMACS_REGISTER_HOT_KEY message if the keyboard hook is active.
(Fw32_unregister_hot_key): Bypass the code that posts the
WM_EMACS_UNREGISTER_HOT_KEY message if the keyboard hook is active.
(syms_of_w32fns) <w32-pass-lwindow-to-system>
<w32-pass-rwindow-to-system, w32-phantom-key-code>
<w32-lwindow-modifier, w32-rwindow-modifier>: Update doc strings
to reflect the new functionality.
* src/w32console.c (initialize_w32_display): Install the low-level
keyboard hook.
* src/w32inevt.c (key_event): Handle Win-x combinations only if
the keyboard hook is not active. If the hook is active, use
check_w32_winkey_state instead.
* src/w32term.h (setup_w32_kbdhook, remove_w32_kbdhook)
(check_w32_winkey_state): Add prototypes.
(w32_kbdhook_active): New macro.
* doc/emacs/msdos.texi (Windows Keyboard): Update to reflect the
new functionality.
2016-02-26 10:51:24 +00:00
|
|
|
|
** Intercepting hotkeys on Windows 7 and later now works better.
|
|
|
|
|
The new keyboard hooking code properly grabs system hotkeys such as
|
2017-10-14 10:52:05 +00:00
|
|
|
|
'Win-*' and 'Alt-TAB', in a way that Emacs can get at them before the
|
2016-03-22 18:01:30 +00:00
|
|
|
|
system. This makes the 'w32-register-hot-key' functionality work
|
Improve the register-hotkey functionality on MS-Windows
* src/w32fns.c (_WIN32_WINNT): Define to 0x0600, needed for
keyboard hook functionality.
Include w32inevt.h, basetyps.h and unknwn.h.
(VK_ANY, WM_WTSSESSION_CHANGE, WTS_SESSION_LOCK): New macros.
(kbdhook): A new struct definition.
(funhook, setup_w32_kbdhook, remove_w32_kbdhook, hook_w32_key)
(check_w32_winkey_state, reset_w32_kbdhook_state): New functions.
(modifier_set): Call check_w32_winkey_state if a Win key was
pressed and the keyboard hook is active.
(w32_wnd_proc): Don't handle Win key combinations if the keyboard
hook is active. Only register/unregister the hotkeys if the
keyboard hook is not active. When WM_CREATE is received, call
setup_w32_kbdhook. When WM_DESTROY is received, call
reset_w32_kbdhook_state.
(lookup_vk_code): When the keyboard hook is active, map
alphanumeric characters to themselves.
(w32_parse_and_hook_hot_key): Renamed from w32_parse_hot_key. Map
modified keys to VK_ANY if the keyboard hook is active. Register
Alt-x and Win-x combinations.
(Fw32_shell_execute): Update doc string to reflect new
functionality. Bypass the code that posts the
WM_EMACS_REGISTER_HOT_KEY message if the keyboard hook is active.
(Fw32_unregister_hot_key): Bypass the code that posts the
WM_EMACS_UNREGISTER_HOT_KEY message if the keyboard hook is active.
(syms_of_w32fns) <w32-pass-lwindow-to-system>
<w32-pass-rwindow-to-system, w32-phantom-key-code>
<w32-lwindow-modifier, w32-rwindow-modifier>: Update doc strings
to reflect the new functionality.
* src/w32console.c (initialize_w32_display): Install the low-level
keyboard hook.
* src/w32inevt.c (key_event): Handle Win-x combinations only if
the keyboard hook is not active. If the hook is active, use
check_w32_winkey_state instead.
* src/w32term.h (setup_w32_kbdhook, remove_w32_kbdhook)
(check_w32_winkey_state): Add prototypes.
(w32_kbdhook_active): New macro.
* doc/emacs/msdos.texi (Windows Keyboard): Update to reflect the
new functionality.
2016-02-26 10:51:24 +00:00
|
|
|
|
again on all versions of MS-Windows starting with Windows 7. On
|
|
|
|
|
Windows NT and later you can now register any hotkey combination. (On
|
|
|
|
|
Windows 9X, the previous limitations, spelled out in the Emacs manual,
|
|
|
|
|
still apply.)
|
|
|
|
|
|
2016-05-02 01:52:50 +00:00
|
|
|
|
** 'convert-standard-filename' no longer mirrors slashes on MS-Windows.
|
2016-04-25 08:50:37 +00:00
|
|
|
|
Previously, on MS-Windows this function converted slash characters in
|
2016-09-07 16:21:08 +00:00
|
|
|
|
file names into backslashes. It no longer does that. If your Lisp
|
|
|
|
|
program used 'convert-standard-filename' to prepare file names to be
|
|
|
|
|
passed to subprocesses (which is not the recommended usage of that
|
|
|
|
|
function), you will now have to mirror slashes in your application
|
|
|
|
|
code. One possible way is this:
|
|
|
|
|
|
|
|
|
|
(let ((start 0))
|
|
|
|
|
(while (string-match "/" file-name start)
|
|
|
|
|
(aset file-name (match-beginning 0) ?\\)
|
|
|
|
|
(setq start (match-end 0))))
|
2016-04-25 08:50:37 +00:00
|
|
|
|
|
2017-08-30 16:23:59 +00:00
|
|
|
|
** GUI sessions on MS-Windows now treat SIGINT like Posix platforms do.
|
2016-09-05 16:50:59 +00:00
|
|
|
|
The effect of delivering a Ctrl-C (SIGINT) signal to a GUI Emacs on
|
|
|
|
|
MS-Windows is now the same as on Posix platforms -- Emacs saves the
|
|
|
|
|
session and exits. In particular, this will happen if you start
|
|
|
|
|
emacs.exe from the Windows shell, then type Ctrl-C into that shell's
|
|
|
|
|
window.
|
|
|
|
|
|
2016-10-08 13:52:40 +00:00
|
|
|
|
** 'signal-process' supports SIGTRAP on Windows XP and later.
|
|
|
|
|
The 'kill' emulation on Windows now maps SIGTRAP to a call to the
|
|
|
|
|
'DebugBreakProcess' API. This causes the receiving process to break
|
|
|
|
|
execution and return control to the debugger. If no debugger is
|
|
|
|
|
attached to the receiving process, the call is typically ignored.
|
|
|
|
|
This is in contrast to the default action on POSIX Systems, where it
|
|
|
|
|
causes the receiving process to terminate with a core dump if no
|
|
|
|
|
debugger has been attached to it.
|
|
|
|
|
|
Provide additional support for child frames
Provide mouse dragging and resizing of frames. Allow resizing
frames proportionally. Provide additional functionality for
child frames. Minor bug fixes.
* lisp/frame.el (frame-border-width, frame-pixel-width)
(frame-pixel-height): Alias to `frame-internal-border-width',
`frame-native-width' and `frame-native-height'.
(frame-inner-width, frame-inner-height, frame-outer-width)
(frame-outer-height): New functions.
* lisp/minibuffer.el (completion-auto-help): Fix typo.
* lisp/mouse.el (mouse-drag-line, mouse-drag-mode-line)
(mouse-drag-header-line): Allow moving a frame by dragging the
mode line of its bottommost window (on a minibuffer-less frame)
or the header line of its topmost window.
(mouse-drag-vertical-line): Mention argument in doc-string.
(mouse-resize-frame, mouse-drag-frame, mouse-drag-left-edge)
(mouse-drag-top-left-corner, mouse-drag-top-edge)
(mouse-drag-top-right-corner, mouse-drag-right-edge)
(mouse-drag-bottom-right-corner, mouse-drag-bottom-edge)
(mouse-drag-bottom-left-corner): New functions for resizing a
frame by dragging its internal border together with
corresponding key bindings.
* lisp/tooltip.el (tooltip-frame-parameters): Add
'no-special-glyphs' to default parameters and update version
tag.
* lisp/window.el (frame-auto-hide-function): Add choice to make
frame invisible and update version tag.
(window--delete): Handle 'auto-hide-function' frame parameter.
(window--maybe-raise-frame): Respect 'no-focus-on-map' and
'no-accept-focus' frame parameters.
(display-buffer--action-function-custom-type): Add
`display-buffer-in-child-frame'.
(display-buffer): Mention `display-buffer-in-child-frame' in
doc-string.
(display-buffer-in-child-frame): New action function for
`display-buffer'.
(window--sanitize-margin): Return zero when MARGIN cannot be
sanitized.
(fit-frame-to-buffer): Major rewrite to handle child frames and
'fit-frame-to-buffer-sizes' and 'fit-frame-to-buffer-margins'
frame parameters.
(window-largest-empty-rectangle--maximums-1)
(window-largest-empty-rectangle--maximums)
(window-largest-empty-rectangle--disjoint-maximums)
(window-largest-empty-rectangle): New functions.
* src/dispextern.h (WINDOW_WANTS_MODELINE_P)
(WINDOW_WANTS_HEADER_LINE_P): Remove. Functionality is now
provided by corresponding functions window_wants_modeline and
window_wants_header_line in window.c. Adjust users.
* src/dispnew.c (adjust_glyph_matrix)
(buffer_posn_from_coords): Use window_wants_modeline and
window_wants_header_line instead of WINDOW_WANTS_MODELINE_P and
WINDOW_WANTS_HEADER_LINE_P.
* src/frame.c (keep_ratio): New function.
(adjust_frame_size): Call keep_ratio for each of F's child
frames.
(make_frame): Initialize no_special_glyphs slot.
(frame_internal_border_part): New function.
(Fframe_pixel_width, Fframe_pixel_height, Fborder_width): Rename
to Fframe_native_width, Fframe_native_height mand
Fframe_internal_border_width.
(frame_parm_table): Add Qno_special_glyphs entry.
(frame_float_type): New enumeration type.
(frame_float): New function to handle frame size and position
ratios.
(x_set_frame_parameters): Handle size and position ratios.
(x_set_no_special_glyphs): New function
(x_figure_window_size): Handle size and position ratios.
(syms_of_frame): Add Qdisplay_monitor_attributes_list,
Qno_special_glyphs, Qframe_edges, Qkeep_ratio, Qwidth_only,
Qheight_only, Qleft_only and Qtop_only.
* src/frame.h (internal_border_part): New enumeration type.
(struct frame): New slot no_special_glyphs.
(FRAME_NO_SPECIAL_GLYPHS): New macro.
* src/gtkutil.c (xg_frame_restack): Return immediately for
GTK versions before 2.18.0.
* src/keyboard.c (internal_border_parts): New array constant.
(make_lispy_position): For frames with border dragging enabled
return internal border part.
(syms_of_keyboard): New symbols Qdrag_internal_border,
Qleft_edge, Qtop_left_corner, Qtop_edge, Qtop_right_corner,
Qright_edge, Qbottom_right_corner, Qbottom_edge and
Qbottom_left_corner.
* src/minibuf.c (read_minibuf_unwind): When exiting the
minibuffer deal with frames that have the 'minibuffer-exit'
parameter set.
(syms_of_minibuf): New symbol Qminibuffer_exit.
* src/nsfns.m (frame_parm_handler): Add entry for
x_set_no_special_glyphs.
(Fx_create_frame): Handle 'no-special-glyphs' parameter.
Intitialize new cursor types for dragging frame borders.
* src/nsterm.h (struct ns_output): Add new cursor types for
dragging frame borders.
* src/w32fns.c (w32_frame_parm_handlers): Add entry for
x_set_no_special_glyphs.
(Fx_create_frame): Handle 'no-special-glyphs' parameter.
Intitialize new cursor types for dragging frame borders.
* src/w32term.h (struct w32_output): Add new cursor types for
dragging frame borders.
* src/window.c (coordinates_in_window)
(Fwindow_line_height, window_internal_height): Use
window_wants_modeline and window_wants_header_line instead of
WINDOW_WANTS_MODELINE_P and WINDOW_WANTS_HEADER_LINE_P.
(Fwindow_lines_pixel_dimensions): New function.
(window_parameter): New function.
(Fwindow_parameter): Call window_parameter.
(window_wants_mode_line, window_wants_header_line): New
functions replacing the macros WINDOW_WANTS_MODELINE_P and
WINDOW_WANTS_HEADER_LINE_P from dispextern.h.
(syms_of_window): New symbols Qmode_line_format and
Qheader_line_format.
* src/window.h: Reorganize and re-comment macros. Use
window_wants_modeline and window_wants_header_line instead of
WINDOW_WANTS_MODELINE_P and WINDOW_WANTS_HEADER_LINE_P.
(MINI_NON_ONLY_WINDOW_P, MINI_ONLY_WINDOW_P): Minor rewrite.
(WINDOW_BUFFER): New macro.
(WINDOW_BOX_LEFT_EDGE_COL, WINDOW_BOX_RIGHT_EDGE_COL): Remove.
* src/xdisp.c (window_text_bottom_y, window_box_height)
(window_box, start_display)
(compute_window_start_on_continuation_line)
(try_cursor_movement, redisplay_window)
(try_window_reusing_current_matrix, try_window_id)
(display_line, expose_window): Use window_wants_modeline and
window_wants_header_line instead of WINDOW_WANTS_MODELINE_P and
WINDOW_WANTS_HEADER_LINE_P.
(pos_visible_p, display_mode_lines): Respect W's
'mode-line-format' and 'header-line-format' window parameters.
(init_iterator): Use window_wants_modeline and
window_wants_header_line instead of WINDOW_WANTS_MODELINE_P and
WINDOW_WANTS_HEADER_LINE_P. For tip frames respect
no_special_glyphs value.
(note_mouse_highlight): Set frame border cursors when on
internal border.
(x_draw_right_divider, x_draw_bottom_divider): Try to improve
drawing of window dividers.
* src/xfns.c (mouse_cursor): Add entries for border parts.
(mouse_cursor_types): Add entries for cursor types to drag
frame borders.
(INSTALL_CURSOR): Add entries for new cursor types to drag
frame borders.
(Fx_create_frame): Handle 'no-special-glyphs' parameter.
(x_frame_parm_handlers): Add entry for
x_set_no_special_glyphs.
(Vx_window_left_edge_shape, Vx_window_top_left_corner_shape)
(Vx_window_top_edge_shape, Vx_window_top_right_corner_shape)
(Vx_window_right_edge_shape)
(Vx_window_bottom_right_corner_shape)
(Vx_window_bottom_edge_shape)
(Vx_window_bottom_left_corner_shape): New variables.
(x_frame_restack): Call xg_frame_restack only for GTK versions
starting with 2.18.0.
* src/xterm.c (x_free_frame_resources): Remove new cursors for
dragging frame borders.
* src/xterm.h (struct x_output): Add new cursor types for
dragging frame borders.
* doc/lispref/display.texi (Size of Displayed Text): Document
`window-lines-pixel-dimensions'.
* doc/lispref/elisp.texi (Top): Add entry for "Mouse Dragging
Parameters".
* doc/lispref/frames.texi (Frame Size): Replace
frame-pixel-width/-height by frame-native-width/-height. Add
frame-inner-width/-height and frame-outer-width/-height docs.
(Position Parameters): Describe specifying position as ratios.
Clarify remark about positions relative to bottom/ridge display
edge.
(Size Parameters): Describe specifying sizes as ratios.
Describe 'fit-frame-to-buffer-margins' and
'fit-frame-to-buffer-sizes' parameters.
(Layout Parameters): Describe 'no-special-glyphs' parameter.
(Frame Interaction Parameters): Describe 'auto-hide-function',
'minibuffer-exit' and 'keep-ratio' parameters.
(Mouse Dragging Parameters): New section describing
'drag-internal-border', 'drag-with-header-line',
'drag-with-mode-line', 'snap-width', 'top-visible' and
'bottom-visible' parameters.
(Management Parameters): Mention that `override-redirect' has
no effect on MS Windows.
(Font and Color Parameters): Mention child frames for `alpha'
parameter.
(Child Frames): Rewrite section with description and cross
references to new frame parameters added.
* doc/lispref/modes.texi (Mode Line Basics): Mention
'mode-line-format' and 'header-line-format' window parameters.
* doc/lispref/windows.texi (Resizing Windows): Mention effect
of `fit-frame-to-buffer-margins' for child frames.
(Display Action Functions): New action function
`display-buffer-in-child-frame'.
(Quitting Windows): Mention `make-frame-invisible' as optional
value of `frame-auto-hide-function' and `auto-hide-function'
frame paameter.
(Coordinates and Windows): Describe new function
`window-largest-empty-rectangle'.
(Window Parameters): Describe new parameters 'mode-line-format'
and 'header-line-format'. Index all window parameters described
in this section.
2017-06-25 09:33:25 +00:00
|
|
|
|
** 'set-mouse-position' and 'set-mouse-absolute-pixel-position' work
|
2017-05-18 19:31:46 +00:00
|
|
|
|
on macOS.
|
|
|
|
|
|
2017-07-10 19:08:14 +00:00
|
|
|
|
** Emacs can now be run as a GUI application from the command line on
|
|
|
|
|
macOS.
|
|
|
|
|
|
2017-08-24 20:59:33 +00:00
|
|
|
|
** 'ns-appearance' and 'ns-transparent-titlebar' change the appearance
|
|
|
|
|
of frame decorations on macOS 10.9+.
|
|
|
|
|
|
|
|
|
|
** 'ns-use-thin-smoothing' enables thin font smoothing on macOS 10.8+.
|
|
|
|
|
|
2017-08-30 16:23:59 +00:00
|
|
|
|
** 'process-attributes' on Darwin systems now returns more information.
|
|
|
|
|
|
2017-09-08 18:26:47 +00:00
|
|
|
|
** Mousewheel and trackpad scrolling on macOS 10.7+ now behaves more
|
2017-09-24 21:35:21 +00:00
|
|
|
|
like the macOS default. The new variables 'ns-mwheel-line-height',
|
|
|
|
|
'ns-use-mwheel-acceleration' and 'ns-use-mwheel-momentum' can be used
|
|
|
|
|
to customize the behavior.
|
2017-09-08 18:26:47 +00:00
|
|
|
|
|
2001-01-25 20:15:31 +00:00
|
|
|
|
|
1999-10-03 12:39:42 +00:00
|
|
|
|
----------------------------------------------------------------------
|
2007-02-11 01:18:25 +00:00
|
|
|
|
This file is part of GNU Emacs.
|
1999-10-03 12:39:42 +00:00
|
|
|
|
|
2008-05-15 07:32:14 +00:00
|
|
|
|
GNU Emacs is free software: you can redistribute it and/or modify
|
2007-02-11 01:18:25 +00:00
|
|
|
|
it under the terms of the GNU General Public License as published by
|
2008-05-15 07:32:14 +00:00
|
|
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
(at your option) any later version.
|
2007-02-11 01:18:25 +00:00
|
|
|
|
|
|
|
|
|
GNU Emacs is distributed in the hope that it will be useful,
|
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
GNU General Public License for more details.
|
1999-10-03 12:39:42 +00:00
|
|
|
|
|
2007-02-11 01:18:25 +00:00
|
|
|
|
You should have received a copy of the GNU General Public License
|
2017-09-13 22:52:52 +00:00
|
|
|
|
along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.
|
1999-10-03 12:39:42 +00:00
|
|
|
|
|
2001-01-25 20:15:31 +00:00
|
|
|
|
|
1999-10-03 12:39:42 +00:00
|
|
|
|
Local variables:
|
2016-09-07 19:00:57 +00:00
|
|
|
|
coding: utf-8
|
1999-10-03 12:39:42 +00:00
|
|
|
|
mode: outline
|
|
|
|
|
paragraph-separate: "[ ]*$"
|
|
|
|
|
end:
|