]> git.eshelyaron.com Git - emacs.git/log
emacs.git
4 years ago* Nativecomp testsuite rework for derived return type specifiers
Andrea Corallo [Wed, 11 Nov 2020 16:59:46 +0000 (17:59 +0100)]
* Nativecomp testsuite rework for derived return type specifiers

As we have derived return type specifiers as some test for them.  Also
rewrite some propagation related test using return type specifiers too
as it's way more convenient.

* test/src/comp-tests.el (fw-prop-1): Nit rename.
(comp-tests-check-ret-type-spec): New function.
(comp-tests-type-spec-tests): New variable.
(comp-tests-cond-rw-0-var) Remove variable.
(cond-rw-0, cond-rw-1, cond-rw-2, cond-rw-3, cond-rw-4, cond-rw-5)
Remove tests as now covered by `comp-tests-check-ret-type-spec'.

4 years ago* Add nativecomp derived return type specifier computation support
Andrea Corallo [Wed, 11 Nov 2020 16:23:25 +0000 (17:23 +0100)]
* Add nativecomp derived return type specifier computation support

* lisp/emacs-lisp/comp.el (comp-post-pass-hooks): Nit.
(comp-func): Add `ret-type-specifier' slot.
(comp-ret-type-spec): New function.
(comp-final): Call `comp-ret-type-spec'.

4 years ago* Unline some functions to optimize bootstrap time
Andrea Corallo [Wed, 11 Nov 2020 14:54:58 +0000 (15:54 +0100)]
* Unline some functions to optimize bootstrap time

* lisp/emacs-lisp/comp.el (comp-mvar-value-vld-p)
(comp-mvar-value, comp-mvar-fixnum-p, comp-set-op-p)
(comp-assign-op-p, comp-call-op-p, comp-type-hint-p)
(comp-func-ret-typeset, comp-function-pure-p)
(comp-alloc-class-to-container, comp-lex-byte-func-p)
(comp-lap-eob-p, comp-lap-fall-through-p, comp-emit)
(comp-emit-set-call, comp-mvar-propagate)
(comp-function-foldable-p, comp-function-call-maybe-fold)
(comp-trampoline-filename): Uninline functions.

4 years ago* Add to elisp-mode `emacs-lisp-native-compile-and-load'
Andrea Corallo [Tue, 10 Nov 2020 17:58:56 +0000 (18:58 +0100)]
* Add to elisp-mode `emacs-lisp-native-compile-and-load'

* lisp/progmodes/elisp-mode.el
(emacs-lisp--before-compile-buffer): New function.
(emacs-lisp-byte-compile-and-load): Use the previous.
(emacs-lisp-native-compile-and-load): New function.

4 years ago* Fix limple-mode for new type and range limple semantic
Andrea Corallo [Sun, 8 Nov 2020 11:16:34 +0000 (12:16 +0100)]
* Fix limple-mode for new type and range limple semantic

* lisp/emacs-lisp/comp.el (comp-limple-branches, comp-limple-ops):
New variables.
(comp-limple-lock-keywords): Update value.

4 years agoAdd a nativecomp testcase
Andrea Corallo [Wed, 11 Nov 2020 15:17:03 +0000 (16:17 +0100)]
Add a nativecomp testcase

Having this while re-debugging the boostrap would have saved few hours
of debug so let's add it.

* test/src/comp-tests.el (and-3): Add test.
* test/src/comp-test-funcs.el (comp-test-and-3-var): New var.
(comp-test-and-3-f): New function.

4 years agoAdd initial nativecomp typeset and range propagation support
Andrea Corallo [Sat, 7 Nov 2020 20:47:30 +0000 (21:47 +0100)]
Add initial nativecomp typeset and range propagation support

This commit add an initial support for a better type propagation and
integer range propagation.

Each mvar can be now characterized by a set of types, a set of values
and an integral range.

* lisp/emacs-lisp/comp.el (comp-known-ret-types): Store into
typeset and remove fixnum.
(comp-known-ret-ranges, comp-type-predicates): New variables.
(comp-ctxt): Remove supertype-memoize slot and add
union-typesets-mem.
(comp-mvar): Remove const-vld, constant, type slots. Add typeset,
valset, range slots.
(comp-mvar-value-vld-p, comp-mvar-value, comp-mvar-fixnum-p)
(comp-mvar-symbol-p, comp-mvar-cons-p)
(comp-mvar-type-hint-match-p, comp-func-ret-typeset)
(comp-func-ret-range): New functions.
(make-comp-mvar, make-comp-ssa-mvar): Update logic.
(comp--typeof-types): New variable.
(comp-supertypes, comp-common-supertype): Logic update.
(comp-subtype-p, comp-union-typesets, comp-range-1+)
(comp-range-1-, comp-range-<, comp-range-union)
(comp-range-intersection): New functions.
(comp-fwprop-prologue, comp-mvar-propagate)
(comp-function-foldable-p, comp-function-call-maybe-fold)
(comp-fwprop-insn, comp-call-optim-func, comp-finalize-relocs):
Logic update.

* src/comp.c (emit_mvar_rval, emit_call_with_type_hint)
(emit_call2_with_type_hint): Logic update.

* lisp/emacs-lisp/cl-preloaded.el (cl--typeof-types): Undo the add
of fixnum and bignum as unnecessary.

* test/src/comp-tests.el
(comp-tests-mentioned-p-1, comp-tests-cond-rw-checker-val)
(comp-tests-cond-rw-checker-type, cond-rw-1, cond-rw-2)
(cond-rw-3, cond-rw-4, cond-rw-5): Update for new type interface.
(range-simple-union, range-simple-intersection): New integer range
tests.
(union-types): New union type test.

4 years ago* Rename two nativecomp functions
Andrea Corallo [Sun, 8 Nov 2020 09:40:05 +0000 (10:40 +0100)]
* Rename two nativecomp functions

* lisp/emacs-lisp/comp.el (comp-function-foldable-p): Rename from
comp-function-optimizable-p.
(comp-function-call-maybe-fold): Same from
comp-function-call-maybe-fold.

4 years ago* lisp/emacs-lisp/comp.el (comp-fwprop-insn): Fix phi function.
Andrea Corallo [Sun, 8 Nov 2020 19:45:43 +0000 (20:45 +0100)]
* lisp/emacs-lisp/comp.el (comp-fwprop-insn): Fix phi function.

4 years ago* lisp/emacs-lisp/comp.el (comp-common-supertype-2): Fix null intersection
Andrea Corallo [Sat, 7 Nov 2020 20:00:14 +0000 (21:00 +0100)]
* lisp/emacs-lisp/comp.el (comp-common-supertype-2): Fix null intersection

4 years ago* Allow for manually bumbing new native compiler ABI versions
Andrea Corallo [Sat, 7 Nov 2020 15:03:14 +0000 (16:03 +0100)]
* Allow for manually bumbing new native compiler ABI versions

* src/comp.c (ABI_VERSION): Define macro.
(hash_native_abi): Include ABI_VERSION in the hashing.
(syms_of_comp): Tweak docstring.

4 years agoMerge remote-tracking branch 'savannah/master' into HEAD
Andrea Corallo [Sat, 7 Nov 2020 15:21:36 +0000 (16:21 +0100)]
Merge remote-tracking branch 'savannah/master' into HEAD

4 years ago* lisp/emacs-lisp/lisp-mode.el: Avoid false-positive "hidden arg" in strings
Stefan Monnier [Sat, 7 Nov 2020 15:15:22 +0000 (10:15 -0500)]
* lisp/emacs-lisp/lisp-mode.el: Avoid false-positive "hidden arg" in strings

(lisp--match-hidden-arg): Don't misfire in strings and comments.

Reported by: Andrii Kolomoiets <andreyk.mad@gmail.com>

4 years agoAdd test for recent change in enable-theme
Mauro Aranda [Sat, 7 Nov 2020 12:53:21 +0000 (09:53 -0300)]
Add test for recent change in enable-theme

* test/lisp/custom-tests.el (custom-test-enable-theme-keeps-settings):
Enabling a theme should not change the theme settings, so test for
that.  See
https://lists.gnu.org/archive/html/emacs-devel/2020-11/msg00232.html

4 years ago* Fix non native compiled build
Andrea Corallo [Sat, 7 Nov 2020 11:31:37 +0000 (12:31 +0100)]
* Fix non native compiled build

* lisp/emacs-lisp/advice.el (ad-add-advice): Do not try to
install trampolines in vanilla builds.

4 years agoAllow for native compilation qualities to be specified per input file
Andrea Corallo [Fri, 6 Nov 2020 23:13:01 +0000 (00:13 +0100)]
Allow for native compilation qualities to be specified per input file

* lisp/emacs-lisp/bytecomp.el (byte-native-qualities): Define
variable.
(byte-compile-from-buffer): Spill compilation qualities.
* lisp/emacs-lisp/comp.el (comp-speed, comp-debug): Make
them file local variables.
(comp-ctxt): Add `speed' and `debug' slots.
(comp-spill-speed, comp-spill-lap-function): Make use of these.
(comp-spill-lap-function): Spill qualities from
`byte-native-qualities'.
(comp-limplify-top-level): Do not use `comp-speed' but ctxt value
unstead.
(comp-final): Do not propagate qualities as they are already
in the `comp-ctxt'.
(comp--native-compile): Close on `byte-native-qualities'.
* src/comp.c (comp_t): Add 'speed' and 'debug' fields.
(emit_comment, emit_mvar_rval, emit_static_object)
(emit_ctxt_code, Fcomp__init_ctxt): Use these instead of the
global variables.
(Fcomp__compile_ctxt_to_file): Set comp.speed and comp.debug and
use them.

4 years agoHandle type hierarchy in native compiler forward propagation
Andrea Corallo [Fri, 6 Nov 2020 21:22:48 +0000 (22:22 +0100)]
Handle type hierarchy in native compiler forward propagation

2020-11-07  Andrea Corallo  <andrea.corallo@arm.com>

* lisp/emacs-lisp/cl-preloaded.el (cl--typeof-types): Add fixnum
and bignum.
* lisp/emacs-lisp/comp.el (comp-ctxt): Add `supertype-memoize'
slot.
(comp-supertypes, comp-common-supertype-2)
(comp-common-supertype): New functions.
(comp-fwprop-insn): Make use of `comp-common-supertype' to
identify the common supertype to be propagated.

4 years ago; * src/xdisp.c (redisplay_window): Add comment for a recent change.
Eli Zaretskii [Sat, 7 Nov 2020 08:44:30 +0000 (10:44 +0200)]
; * src/xdisp.c (redisplay_window): Add comment for a recent change.

4 years agoFix scrolling problems with misc-fixed fonts under Cairo
Eli Zaretskii [Sat, 7 Nov 2020 08:27:15 +0000 (10:27 +0200)]
Fix scrolling problems with misc-fixed fonts under Cairo

* src/ftcrfont.c (ftcrfont_glyph_extents): Avoid rounding up the
glyph ascent to a higher value than needed due to floating-point
roundoff errors.  (Bug#44284)

4 years agoDelete outdated comment about C rewrite in apropos.el
Stefan Kangas [Sat, 7 Nov 2020 07:20:21 +0000 (08:20 +0100)]
Delete outdated comment about C rewrite in apropos.el

Maybe it made sense to rewrite apropos.el in C for speed in 1991, but
today the speed increase would not outweigh the maintenance burden.

* lisp/apropos.el: Delete outdated comment.

4 years agoAdd some more tests for keymap.c
Stefan Kangas [Sat, 7 Nov 2020 06:55:50 +0000 (07:55 +0100)]
Add some more tests for keymap.c

* test/src/keymap-tests.el (keymap-make-keymap)
(keymap-make-sparse-keymap, keymap-keymapp)
(keymap-keymap-parent, keymap-keymap-set-parent/returns-parent)
(keymap-copy-keymap/is-equal, keymap-copy-keymap/is-not-eq)
(keymap-lookup-key, keymap-apropos-internal)
(keymap-apropos-internal/predicate): New tests.
(keymap-tests--make-keymap-test): New defun.

4 years agoRectify skip-set argument
Mattias Engdegård [Fri, 6 Nov 2020 22:02:29 +0000 (23:02 +0100)]
Rectify skip-set argument

* lisp/gnus/gnus-search.el (gnus-search-query-end-of-input):
Remove brackets that don't belong.  Found by relint.

4 years agoFix javac message parsing column number off-by-one
Mattias Engdegård [Fri, 6 Nov 2020 16:10:55 +0000 (17:10 +0100)]
Fix javac message parsing column number off-by-one

* lisp/progmodes/compile.el (compilation-error-regexp-alist-alist):
'javac': Column numbers are 1-based by default; remove subtraction and
η-reduce.  Translate regexp to rx (mechanised).
* test/lisp/progmodes/compile-tests.el (compile-tests--test-regexps-data):
Adapt 'javac' test cases to the change.

4 years agoFix --enable-check-lisp-object-type build
Glenn Morris [Fri, 6 Nov 2020 16:00:54 +0000 (08:00 -0800)]
Fix --enable-check-lisp-object-type build

* src/print.c (syms_of_print) <print-integers-as-characters>:
Fix type.

4 years agoUpdate gdb-mi-tests
Mattias Engdegård [Fri, 6 Nov 2020 14:37:17 +0000 (15:37 +0100)]
Update gdb-mi-tests

* test/lisp/progmodes/gdb-mi-tests.el (gdb-mi-parse-value):
Make test pass after the change in gdb-mi-decode-strings default value.

4 years ago* lisp/gnus/gnus-search.el (gnus-search-contact-tables): Fix type.
Mattias Engdegård [Fri, 6 Nov 2020 12:43:53 +0000 (13:43 +0100)]
* lisp/gnus/gnus-search.el (gnus-search-contact-tables): Fix type.

A more precise type is desirable but at it is now correct ('list' is not).

4 years agoChange the default value of gdb-mi-decode-strings to t (bug#44173)
Mattias Engdegård [Sat, 31 Oct 2020 13:44:58 +0000 (14:44 +0100)]
Change the default value of gdb-mi-decode-strings to t (bug#44173)

This is likely to be a more commonly wanted default value today.

* lisp/progmodes/gdb-mi.el (gdb-mi-decode-strings): Change default.
* doc/emacs/building.texi (Source Buffers): Update manual.
* etc/NEWS: Announce.

4 years agoReduce integer-output-format to print-integers-as-characters
Mattias Engdegård [Mon, 2 Nov 2020 22:37:16 +0000 (23:37 +0100)]
Reduce integer-output-format to print-integers-as-characters

The variable now only controls whether characters are printed, not
the radix.  Control chars are printed in human-readable syntax
only when special escapes such as ?\n are available.  Spaces,
formatting and combining chars are excluded (bug#44155).
Done in collaboration with Juri Linkov.

* src/character.c (graphic_base_p):
* src/print.c (named_escape): New functions.
(print_object): Change semantics as described above.
(syms_of_print): Rename integer-output-format.  Update doc string.
* doc/lispref/streams.texi (Output Variables):
* etc/NEWS:
* test/src/print-tests.el (print-integers-as-characters):
Rename and update according to new semantics.  The test now passes.

4 years agoGo back to not using custom-push-theme when enabling a theme
Mauro Aranda [Fri, 6 Nov 2020 12:34:08 +0000 (09:34 -0300)]
Go back to not using custom-push-theme when enabling a theme

* lisp/custom.el (enable-theme): Relying on custom-push-theme to
handle theme settings and prior user settings was a mistake.  The
theme settings haven't changed between loading the theme and enabling
it, so we don't need all of what custom-push-theme does.  However, we
still need to save a user setting outside of Customize, in order to be
able to get back to it, so do that in enable-theme itself.

4 years agoImprove documentation of a recent change
Eli Zaretskii [Fri, 6 Nov 2020 11:49:07 +0000 (13:49 +0200)]
Improve documentation of a recent change

* doc/emacs/mule.texi (Select Input Method): Add an @anchor.
* doc/emacs/search.texi (Special Isearch): Add cross-reference and
improve wording.

4 years agoSupport transient input methods in Isearch mode (bug#44266)
Juri Linkov [Fri, 6 Nov 2020 08:31:58 +0000 (10:31 +0200)]
Support transient input methods in Isearch mode (bug#44266)

* doc/emacs/mule.texi (Select Input Method): Rename
transient-input-method to activate-transient-input-method.

* doc/emacs/search.texi (Special Isearch):
Document isearch-transient-input-method.

* lisp/international/isearch-x.el (isearch-transient-input-method):
New function.
(isearch-process-search-multibyte-characters):
Call 'deactivate-transient-input-method' after 'read-string'.

* lisp/international/mule-cmds.el (mule-menu-keymap): Remove
duplicate menu item 'describe-input-method'.  Add new menu item
'activate-transient-input-method'.
(default-transient-input-method): Rename from transient-input-method.
(current-transient-input-method)
(previous-transient-input-method): New buffer-local variables.
(deactivate-input-method): Don't add
current-transient-input-method to input-method-history.
(toggle-input-method): Call deactivate-transient-input-method
when current-transient-input-method is non-nil.
(activate-transient-input-method): Rename from transient-input-method.
(deactivate-transient-input-method): New function with body from
renamed function transient-input-method.

* lisp/isearch.el (isearch-menu-bar-map): Add new menu item
'isearch-transient-input-method'.
(isearch-mode-map): Bind 'C-x \' to isearch-transient-input-method.
(isearch-forward): Add isearch-transient-input-method to docstring.
(isearch-message-prefix): Use shorter string for narrowed buffer.

4 years ago; * etc/NEWS: Fix wording in a recently added entry.
Eli Zaretskii [Fri, 6 Nov 2020 05:51:07 +0000 (07:51 +0200)]
; * etc/NEWS: Fix wording in a recently added entry.

4 years agoAdd more tests for where-is-internal
Stefan Kangas [Fri, 6 Nov 2020 03:45:26 +0000 (04:45 +0100)]
Add more tests for where-is-internal

* test/src/keymap-tests.el (keymap-where-is-internal)
(keymap-where-is-internal/firstonly-t)
(keymap-where-is-internal/menu-item)
(keymap-where-is-internal/advertised-binding)
(keymap-where-is-internal/advertised-binding-respect-remap)
(keymap-where-is-internal/remap)
(keymap-where-is-internal/shadowed): New tests.
(keymap-where-is-internal/preferred-modifier-is-a-string):
Rename from keymap-where-is-internal-test.

4 years agoFixes and improvements to gnus-search
Eric Abrahamsen [Thu, 5 Nov 2020 05:13:03 +0000 (21:13 -0800)]
Fixes and improvements to gnus-search

* lisp/gnus/gnus-search.el (gnus-search-default-engines): Change type
from a list of two-element lists, to alist. This matches nnir's old
option type, and should make transition easier.
(nnir-imap-default-search-key): Note that variable is obsolete.
(gnus-search-transform-expression): Interpret the "attachment" key as
"body" in imap searches. Allow specifying larger/smaller message size
values in KB or MB units.
(gnus-search-server-to-engine): Fix error in this function, and
clarify somewhat.

4 years ago* doc/misc/gnus.texi (Selection Groups): Delete excessive paren
Katsumi Yamaoka [Thu, 5 Nov 2020 22:32:09 +0000 (22:32 +0000)]
* doc/misc/gnus.texi (Selection Groups): Delete excessive paren

4 years agoEnable/disable buttons, tool bar and menu items in Custom buffer (Bug#14398)
Mauro Aranda [Thu, 5 Nov 2020 21:56:29 +0000 (18:56 -0300)]
Enable/disable buttons, tool bar and menu items in Custom buffer (Bug#14398)

* lisp/cus-edit.el (custom-reset-extended-menu): Keymap menu for the
Revert... menu button.
(custom-reset-menu): Keep for backward compatibility, but default to
nil, so we prefer the keymap menu instead.
(custom-reset): Pass the new keymap menu to widget-choose.

(custom-commands): Add an element to each list item, to manage its
enable/disable state.  Add docstring.
(custom-command-buttons): New variable, to hold the buttons that act
on all options in a Custom buffer.
(custom-buffer-create-internal): When creating the command buttons,
add the optional :notify function to enable/disable them.  Add the
buttons to the new variable custom-command-buttons.
(customize-menu-create): Notify the command buttons after creating the
Custom buffer, so they are correctly enabled/disabled.
(custom-redraw-magic, custom-notify): Notify the command buttons and
update the tool bar when changing a widget to the modified state.

4 years ago* A native compiler forward propagation fix
Andrea Corallo [Thu, 5 Nov 2020 21:23:48 +0000 (22:23 +0100)]
* A native compiler forward propagation fix

* lisp/emacs-lisp/comp.el (comp-fwprop-insn): Fix `comp-mvar'
`const-vld' slot left unset while propagating in phis.

4 years agoFix coding system in eww-display-pdf
Basil L. Contovounesios [Thu, 5 Nov 2020 21:06:39 +0000 (21:06 +0000)]
Fix coding system in eww-display-pdf

* lisp/net/eww.el (eww-display-pdf): Make *eww pdf* buffer unibyte
before populating it to avoid conversions.  The binding for
coding-system-for-write is then no longer necessary, and can be
delegated to the viewer invoked by mailcap-view-mime.  Suggested by
Stefan Monnier <monnier@iro.umontreal.ca>.  (Bug#44338)

4 years ago* src/minibuf.c (move_minibuffer_onto_frame): Fix comparison
Philipp Stephani [Thu, 5 Nov 2020 20:11:14 +0000 (21:11 +0100)]
* src/minibuf.c (move_minibuffer_onto_frame): Fix comparison

4 years agoAllow minibuffer to stay in its original frame. Tidy up this area.
Alan Mackenzie [Thu, 5 Nov 2020 19:27:43 +0000 (19:27 +0000)]
Allow minibuffer to stay in its original frame.  Tidy up this area.

* doc/emacs/mini.texi (Basic Minibuffer): Add an entry for
minibuffer-follows-selected-frame.

* doc/lispref/minibuf.texi (Minibuffer Misc): Describe the new parameter to
minibufferp, LIVE.

* etc/NEWS: Add an entry describing the new minibuffer strategy.

* lisp/cus-start.el (minibuffer-prompt-properties--setter): Add an entry for
minibuffer-follows-selected-frame.

* lisp/minibuffer.el (minibuffer-message): Check for the current buffer being
an _active_ minibuffer rather than merely a minibuffer.

* src/frame.c (do_switch_frame): Call move_minibuffer_onto_frame.

* src/lisp.h (Top level): Add prototypes for move_minibuffer_onto_frame and
is_minibuffer.

* src/minibuf.c (minibuf_follows_frame): New function which ignores local and
let-bound values of minibuffer-follows-selected-frame.
(choose_minibuf_frame): Reformulate this function to reuse a minibuffer window
where possible, and to ensure no other frame has its minibuffer current, but
only when `minibuffer-follows-selected-frame'.
(move_minibuffer_onto_frame): New function.
(live_minibuffer_p): New function.
(Fminibufferp): Add a new &optional parameter LIVE.  Reformulate, possibly
calling live_minibuffer_p.
(read_minibuf): move the incrementation of minibuf_level to before the call of
choose_minibuf_frame.  Empty the miniwindows of frames without an active
minibuffer, rather than of all but the current frame.
(is_minibuffer): New function.
(read_minibuf_unwind): Note the miniwindow being restored and resize all other
miniwindows to zero size.
(minibuffer-follows-selected-frame): New configuration variable.

* src/window.c (candidate_window_p): In some scenarios, check the miniwindow
holds an active minibuffer.

* src/xdisp.c (get_window_cursor_type): Suppress the cursor for non-active
miniwindows, regardless of minibuf_level.

4 years agoImprove eww support for externally viewed PDFs
Basil L. Contovounesios [Tue, 3 Nov 2020 22:54:34 +0000 (22:54 +0000)]
Improve eww support for externally viewed PDFs

The *eww pdf* buffer is only needed when viewing PDFs within Emacs,
e.g., with doc-view-mode.  External PDF viewers are called with a
temporary file, so the buffer is not needed in that case.  What's
more, mailcap-view-mime erased the buffer and left it in
fundamental-mode until now, so the user was left staring at a
useless, empty buffer.  To make things even worse, external viewers
were invoked synchronously until now, so the user could not browse
the PDF file and use Emacs simultaneously.

* lisp/net/mailcap.el (mailcap--async-shell): New function.
(mailcap-view-mime): Use it to invoke external viewers
asynchronously.  Mention erasure of current buffer in that case in
docstring.  Add a period between the temporary file name and its
extension.

* lisp/net/eww.el (eww-display-pdf): Simplify using
insert-buffer-substring.  Fix coding-system-for-write for a stream
of raw bytes.  Pop to *eww pdf* buffer only if it is used for
displaying a document; otherwise kill it.  (bug#44338)

4 years ago; Silence byte-compiler warnings in tests
Stefan Kangas [Thu, 5 Nov 2020 17:23:56 +0000 (18:23 +0100)]
; Silence byte-compiler warnings in tests

* test/lisp/emacs-lisp/easy-mmode-tests.el (easy-mmode--minor-mode):
* test/lisp/progmodes/cperl-mode-tests.el (cperl-bug30393):
Silence byte-compiler.

4 years agoStill fixes for Tramp directory-files-*
Michael Albinus [Thu, 5 Nov 2020 16:36:04 +0000 (17:36 +0100)]
Still fixes for Tramp directory-files-*

* lisp/net/tramp.el (tramp-handle-directory-files):
* lisp/net/tramp-adb.el
(tramp-adb-handle-directory-files-and-attributes): Fix COUNT.

* lisp/net/tramp-crypt.el (tramp-crypt-handle-directory-files):
Implement COUNT.

* lisp/net/tramp-gvfs.el (tramp-gvfs-dbus-byte-array-to-string):
* lisp/net/tramp-integration.el (tramp-eshell-directory-change):
Use `nbutlast'.

* lisp/net/tramp-rclone.el (tramp-rclone-handle-delete-directory)
(tramp-rclone-handle-delete-file): Reorder cache flushing.
(tramp-rclone-handle-directory-files):
Use `tramp-compat-directory-files'.

* lisp/net/tramp-sh.el (tramp-sh-handle-directory-files-and-attributes):
Fix NOSORT and COUNT.

* lisp/net/tramp-smb.el (tramp-smb-handle-directory-files): Fix NOSORT.

* test/lisp/net/tramp-tests.el (tramp--test-share-p): New defun.
(tramp-test05-expand-file-name-relative): Use it.
(tramp-test16-directory-files)
(tramp-test19-directory-files-and-attributes): Strengthen test.
(tramp-test20-file-modes): Simplify check.

4 years agoLet pdf-view-mode take precedence over doc-view-mode
Lars Ingebrigtsen [Tue, 3 Nov 2020 14:50:44 +0000 (15:50 +0100)]
Let pdf-view-mode take precedence over doc-view-mode

* lisp/net/mailcap.el (mailcap-mime-data): Note the order, and let
pdf-view-mode take precedence, since it's an optional package
(bug#44338).

4 years ago; Silence byte-compiler warning in xdisp-tests.el
Stefan Kangas [Thu, 5 Nov 2020 14:42:26 +0000 (15:42 +0100)]
; Silence byte-compiler warning in xdisp-tests.el

* test/src/xdisp-tests.el (xdisp-tests--minibuffer-scroll): Silence
byte-compiler.

4 years agoSync biblatex entries and fields with v3.15
Basil L. Contovounesios [Thu, 29 Oct 2020 22:48:12 +0000 (22:48 +0000)]
Sync biblatex entries and fields with v3.15

* lisp/textmodes/bibtex.el (bibtex-BibTeX-entry-alist): Fix
abbreviation of PhD.
(bibtex-biblatex-entry-alist, bibtex-biblatex-field-alist): Sync
standard entry and field types with those described in the biblatex
v3.15 manual of 2020-08-19 (bug#44322).

4 years agoImprove display of tabulated list header line labels (bug#44068)
Stephen Berman [Wed, 4 Nov 2020 22:52:21 +0000 (23:52 +0100)]
Improve display of tabulated list header line labels (bug#44068)

* lisp/emacs-lisp/tabulated-list.el (tabulated-list-init-header):
Ensure sort indicator appears after the label of any selected
sortable column that is wide enough and enable label truncation
when narrowing a column.

* lisp/emacs-lisp/timer-list.el (timer-list-mode): Improve column
alignment.
(timer-list--function-predicate): Correct typo in doc string.

4 years ago* src/term.c (handle_one_term_event): Simplify.
Stefan Monnier [Wed, 4 Nov 2020 18:44:51 +0000 (13:44 -0500)]
* src/term.c (handle_one_term_event): Simplify.

Remove the `hold_quit` argument which was never used.
Streamline the control flow.
Thanks to Jared Finder <jared@finder.org> for pointing it out.

* src/keyboard.c (tty_read_avail_input): Simplify accordingly.

4 years agoAvoid use of eieio-oset-default
Eric Abrahamsen [Wed, 4 Nov 2020 06:31:42 +0000 (22:31 -0800)]
Avoid use of eieio-oset-default

* lisp/gnus/gnus-search.el: Replace with an :initform tag on the slot
definition. `symbol-value' is necessary, otherwise the defclass macro
will treat the option as a quoted symbol.

4 years ago* lisp-mode.el: Fix missing highlight of "hidden" string arg
Stefan Monnier [Wed, 4 Nov 2020 16:37:00 +0000 (11:37 -0500)]
* lisp-mode.el: Fix missing highlight of "hidden" string arg

* lisp/emacs-lisp/lisp-mode.el (lisp-el-font-lock-keywords-2)
(lisp-cl-font-lock-keywords-2): Highlight "hidden arg" even if it
already has another face.

4 years ago* lisp/progmodes/project.el (project--files-in-directory): Fix formatting
Manuel Uberti [Wed, 4 Nov 2020 14:41:53 +0000 (15:41 +0100)]
* lisp/progmodes/project.el (project--files-in-directory): Fix formatting

Copyright-paperwork-exempt: yes

4 years agoUse lexical-binding in mule-charsets.el
Stefan Kangas [Wed, 4 Nov 2020 14:50:52 +0000 (15:50 +0100)]
Use lexical-binding in mule-charsets.el

* admin/charsets/mule-charsets.el: Use lexical-binding.
(mule-charsets-header): Rename from 'header' to silence byte-compiler.

4 years agoRemove unused variable in ispell.el (thanks, Stefan Kangas)
Reuben Thomas [Wed, 4 Nov 2020 08:50:25 +0000 (08:50 +0000)]
Remove unused variable in ispell.el (thanks, Stefan Kangas)

* lisp/textmodes/ispell.el (ispell-check-version): Remove unused
variable `speller'.

4 years agoFix warnings in url-irc.el
Stefan Kangas [Wed, 4 Nov 2020 06:40:16 +0000 (07:40 +0100)]
Fix warnings in url-irc.el

* lisp/url/url-irc.el (zenirc-server-alist, zenirc-buffer-name):
Declare to fix warnings.
(url-irc-rcirc): Silence warning by adding missing password argument
to rcirc-connect.

4 years ago* lisp/obsolete/nnir.el: Add "Obsolete-since" header.
Stefan Kangas [Wed, 4 Nov 2020 06:12:21 +0000 (07:12 +0100)]
* lisp/obsolete/nnir.el: Add "Obsolete-since" header.

4 years ago* lisp/cedet/srecode.el: Use lexical-binding.
Stefan Kangas [Tue, 3 Nov 2020 07:15:39 +0000 (08:15 +0100)]
* lisp/cedet/srecode.el: Use lexical-binding.

4 years agoFix misuses of `make-local-variable` on hooks
Stefan Monnier [Wed, 4 Nov 2020 05:24:45 +0000 (00:24 -0500)]
Fix misuses of `make-local-variable` on hooks

* lisp/vc/smerge-mode.el (smerge-ediff):
* lisp/progmodes/python.el (python-pdbtrack-setup-tracking):
* lisp/net/tramp-smb.el (tramp-smb-call-winexe):
* lisp/net/secrets.el (secrets-mode):
* lisp/mail/rmail.el (rmail-variables):
* lisp/ielm.el (inferior-emacs-lisp-mode):
* lisp/erc/erc-log.el (erc-log-setup-logging): Use `add-hook`.

* lisp/eshell/em-unix.el (eshell/diff):
* lisp/eshell/em-hist.el (eshell-hist-initialize): Don't
`make-local-variable` on hooks.

4 years agoRemove gmane search engine
Eric Abrahamsen [Sun, 1 Nov 2020 01:30:57 +0000 (18:30 -0700)]
Remove gmane search engine

Remove the gnus-search-gmane class and all associated methods.  If
search functionality is ever resurrected, then revert this commit.

* lisp/gnus/gnus-search.el: Delete code, and remove from default value
of `gnus-search-default-engines'.

4 years agoMove nnir.el to lisp/obsolete
Eric Abrahamsen [Fri, 16 Oct 2020 16:34:06 +0000 (09:34 -0700)]
Move nnir.el to lisp/obsolete

* lisp/obsolete/nnir.el: This is no longer used, but users might still
be requiring it.

4 years agoNew gnus-search library
Eric Abrahamsen [Thu, 15 Oct 2020 04:39:46 +0000 (21:39 -0700)]
New gnus-search library

This library provides a fundamental reworking of the search
functionality previously found in nnir.el.  It uses class-based search
engines to interface with external searching facilities, and a parsed
search query syntax that can search multiple engines.

* lisp/gnus/gnus-search.el: New library containing search
functionality for Gnus.
* doc/misc/gnus.texi: Document.
* lisp/gnus/gnus-group.el (gnus-group-make-search-group,
gnus-group-read-ephemeral-search-group): Remove references to nnir,
change meaning of prefix argument, change values of nnselect-function
and nnselect-args.
* lisp/gnus/nnselect.el: Replace references to nnir
(nnselect-request-article): Use gnus-search functions, and search
criteria.
(nnselect-request-thread, nnselect-search-thread): Use gnus-search
thread search.
(gnus-summary-make-search-group): Switch to use gnus-search function
and arguments.
* test/lisp/gnus/search-tests.el: Tests for new functionality.

4 years ago* lisp/progmodes/tcl.el: Use lexical-binding
Stefan Monnier [Wed, 4 Nov 2020 04:02:13 +0000 (23:02 -0500)]
* lisp/progmodes/tcl.el: Use lexical-binding

Remove redundant `:group` args.

4 years agoFix last change
Eli Zaretskii [Tue, 3 Nov 2020 19:48:23 +0000 (21:48 +0200)]
Fix last change

* lisp/mwheel.el (mwheel-scroll): Don't use passive tense in doc
string.

4 years agoHorizontal mouse wheel scrolling amount (bug#43568)
Juri Linkov [Tue, 3 Nov 2020 19:06:11 +0000 (21:06 +0200)]
Horizontal mouse wheel scrolling amount (bug#43568)

* lisp/mwheel.el (mouse-wheel-scroll-amount-horizontal): New defcustom.
(mwheel-scroll): Use it.

* doc/emacs/frames.texi (Mouse Commands): Update doc about horizontal
scrolling step.

4 years agoSome Tramp fixes for directory-files-* and delete-*
Michael Albinus [Tue, 3 Nov 2020 17:47:32 +0000 (18:47 +0100)]
Some Tramp fixes for directory-files-* and delete-*

* lisp/files.el (delete-directory): Simplify check for trash.

* lisp/net/ange-ftp.el (ange-ftp-delete-file): Implement TRASH.

* lisp/net/tramp-compat.el (tramp-compat-directory-files)
(tramp-compat-directory-files-and-attributes)
(tramp-compat-directory-empty-p): New defaliases.

* lisp/net/tramp.el (tramp-handle-directory-files-and-attributes)
(tramp-skeleton-delete-directory):
* lisp/net/tramp-gvfs.el (tramp-gvfs-handle-delete-directory): Use them.

* lisp/net/tramp-sh.el (tramp-sh-handle-directory-files-and-attributes):
Implement COUNT.

* test/lisp/net/tramp-tests.el (tramp-test14-delete-directory):
Do not run trash test for ange-ftp.
(tramp-test16-directory-files)
(tramp-test19-directory-files-and-attributes): Check COUNT argument.

4 years agoFactor out some common code in ispell.el
Reuben Thomas [Mon, 2 Nov 2020 21:45:40 +0000 (21:45 +0000)]
Factor out some common code in ispell.el

* lisp/textmodes/ispell.el (ispell-with-safe-default-directory): Add
  macro.
  (ispell-call-process, ispell-call-process-region): Use it.

4 years agoSimplify ispell-check-version’s use of -vv flag
Reuben Thomas [Mon, 2 Nov 2020 21:41:05 +0000 (21:41 +0000)]
Simplify ispell-check-version’s use of -vv flag

* lisp/textmodes/ispell.el (ispell-check-version): All supported spell
checker programs accept -vv, including aspell for many years, so use
it.

4 years agocperl-mode: Fix indentation for Emacs 26
Harald Jörg [Tue, 3 Nov 2020 14:28:40 +0000 (15:28 +0100)]
cperl-mode: Fix indentation for Emacs 26

* lisp/progmodes/cperl-mode.el (cperl-mode): Add a fix
which is only required for Emacs versions older than 27.

* test/lisp/progmodes/cperl-mode-tests.el (cperl-bug30393):
Add a test to verify correct indentation (bug#30393).

4 years agoFix customizing user options of type face
Mauro Aranda [Tue, 3 Nov 2020 13:02:51 +0000 (10:02 -0300)]
Fix customizing user options of type face

* lisp/cus-edit.el (face): Move the %f escape after the tag, because
otherwise customizing a face user option doesn't work:
custom-variable-value-create thinks that everything up until the first
":" is part of the tag, and the item widget doesn't know how to handle
the %f escape.

4 years agoUse lexical-binding in some url-*.el files
Stefan Kangas [Tue, 3 Nov 2020 03:37:44 +0000 (04:37 +0100)]
Use lexical-binding in some url-*.el files

* lisp/url/url-dired.el:
* lisp/url/url-ftp.el:
* lisp/url/url-irc.el: Use lexical-binding.

4 years agoUse lexical-binding in solitaire.el
Stefan Kangas [Tue, 3 Nov 2020 03:16:03 +0000 (04:16 +0100)]
Use lexical-binding in solitaire.el

* lisp/play/solitaire.el: Use lexical-binding.  Remove redundant
:group args.

4 years agoUse lexical-binding in some of emulation/edt*.el
Stefan Kangas [Tue, 3 Nov 2020 02:55:50 +0000 (03:55 +0100)]
Use lexical-binding in some of emulation/edt*.el

* lisp/emulation/edt-vt100.el:
* lisp/emulation/edt-pc.el:
* lisp/emulation/edt-lk201.el: Use lexical-binding.

4 years agoUse lexical-binding in pcmpl-rpm.el
Stefan Kangas [Tue, 3 Nov 2020 01:23:46 +0000 (02:23 +0100)]
Use lexical-binding in pcmpl-rpm.el

* lisp/pcmpl-rpm.el: Use lexical-binding.  Remove redundant :group
args.
(pcmpl-rpm-packages): Quote function symbol as such.

4 years agoUse lexical-binding in pcmpl-cvs.el
Stefan Kangas [Tue, 3 Nov 2020 01:06:05 +0000 (02:06 +0100)]
Use lexical-binding in pcmpl-cvs.el

* lisp/pcmpl-cvs.el: Use lexical-binding.
(executable): Remove unnecessary require.
(pcmpl-cvs-binary): Remove redundant :group arg.
(pcmpl-cvs-tags): Quote function symbol as such.

4 years ago; * lisp/pcomplete.el: Fix typo.
Stefan Kangas [Tue, 3 Nov 2020 01:04:22 +0000 (02:04 +0100)]
; * lisp/pcomplete.el: Fix typo.

4 years agoFix exiting the finder-commentary buffer
Stefan Kangas [Tue, 3 Nov 2020 00:35:01 +0000 (01:35 +0100)]
Fix exiting the finder-commentary buffer

* lisp/finder.el (finder-exit): Fix exiting the finder-commentary
buffer.  (Bug#44384)
(finder-buffer): New defconst.
(finder-list-keywords): Use above new defconst.

4 years agocperl-mode: Skip a test for older Emacsen (preparing for ELPA)
Harald Jörg [Mon, 2 Nov 2020 22:44:58 +0000 (23:44 +0100)]
cperl-mode: Skip a test for older Emacsen (preparing for ELPA)

* test/lisp/progmodes/cperl-mode-tests.el (cperl-bug37127):
Skip this test for older Emacsen.  The bug has been fixed
in Emacs, but outside of CPerl mode, and therefore will not
be available for older versions via ELPA.

4 years agoImprove ert-resource-directory docstring
Stefan Kangas [Mon, 2 Nov 2020 18:06:46 +0000 (19:06 +0100)]
Improve ert-resource-directory docstring

* lisp/emacs-lisp/ert-x.el (ert-resource-directory): Improve
docstring.

4 years agoFix previous patch to ispell.el
Reuben Thomas [Mon, 2 Nov 2020 22:10:56 +0000 (22:10 +0000)]
Fix previous patch to ispell.el

* lisp/textmodes/ispell.el (ispell--call-enchant-lsmod):
with-current-buffer and with-output-to-string need to be the other
way around.

4 years agoFix previous code change to `ispell--call-enchant-lsmod'
Reuben Thomas [Mon, 2 Nov 2020 21:37:46 +0000 (21:37 +0000)]
Fix previous code change to `ispell--call-enchant-lsmod'

* lisp/textmodes/ispell.el (ispell--call-enchant-lsmod): Restore the
use of with-current-buffer, to avoid enchant-lsmod’s output being
dumped into the current buffer.

4 years agoExplain last change
Eli Zaretskii [Mon, 2 Nov 2020 19:47:18 +0000 (21:47 +0200)]
Explain last change

* lisp/textmodes/ispell.el (ispell--call-enchant-lsmod): Explain
the workaround with discarding stderr.  (Bug#44318)

4 years agoMake ispell.el ignore warnings from enchant-lsmod (closes #44318)
Reuben Thomas [Mon, 2 Nov 2020 18:06:11 +0000 (18:06 +0000)]
Make ispell.el ignore warnings from enchant-lsmod (closes #44318)

* lisp/textmodes/ispell.el (ispell--call-enchant-lsmod): Don’t capture
  stderr. Also remove unnecessary with-current-buffer wrapper.

4 years agoAdd missing argument to directory_files_internal calls
Mattias Engdegård [Mon, 2 Nov 2020 17:54:14 +0000 (18:54 +0100)]
Add missing argument to directory_files_internal calls

* src/kqueue.c (kqueue_compare_dir_list, Fkqueue_add_watch):
Pass the new seventh argument.

4 years agoFix a recent change in dired.c
Eli Zaretskii [Mon, 2 Nov 2020 17:55:48 +0000 (19:55 +0200)]
Fix a recent change in dired.c

* src/dired.c (directory_files_internal): Fix type of integer
variables to avoid overflow in 32-bit builds --with-wide-int.

4 years agoImprove documentation of a recent commit
Eli Zaretskii [Mon, 2 Nov 2020 17:49:32 +0000 (19:49 +0200)]
Improve documentation of a recent commit

* lisp/international/mule-cmds.el (transient-input-method): Doc
fix.  Add :version tag.
(transient-input-method): Doc fix.

* etc/NEWS:
* doc/emacs/mule.texi (Select Input Method): Fix wording of the
last change.

4 years ago; Merge from origin/emacs-27
Glenn Morris [Mon, 2 Nov 2020 17:27:41 +0000 (09:27 -0800)]
; Merge from origin/emacs-27

The following commit was skipped:

cd69a50648 (origin/emacs-27) Recover the contents of the schemas.xml ...

4 years agoMerge from origin/emacs-27
Glenn Morris [Mon, 2 Nov 2020 17:27:40 +0000 (09:27 -0800)]
Merge from origin/emacs-27

4e6104ea0b ; * src/xdisp.c (display_string): Fix a typo in a comment.
7162228815 Improve indexing of check-declare
d218b28ab5 ; * lisp/autoinsert.el (auto-insert-alist): Fix texinfo URL.

4 years ago; Merge from origin/emacs-27
Glenn Morris [Mon, 2 Nov 2020 17:27:40 +0000 (09:27 -0800)]
; Merge from origin/emacs-27

The following commits were skipped:

4de7daa1b9 (emacs-27) ; Auto-commit of loaddefs files.
0c01381423 * doc/lispref/commands.texi (Key Sequence Input): Fix inde...
487aae38d4 Updating docs with all special window prefix keys.

4 years agoMerge from origin/emacs-27
Glenn Morris [Mon, 2 Nov 2020 17:27:40 +0000 (09:27 -0800)]
Merge from origin/emacs-27

1fc9de4b81 Improve reproducibility of generated -pkg.el files
da6234e2df Make sure pixel sizes are zero when setting window size fo...
2d15296db1 Fix failure of 'emacs --daemon' on Cygwin
8abce5b0c6 CC Mode: Only recognize foo (*bar) as a function pointer w...
85d1d8d768 Fix NEWS entry for fix of Bug#44080
2443b15a91 * src/buffer.c (syms_of_buffer) <fill-column>: Improve doc...

# Conflicts:
# etc/NEWS

4 years agoFix some glitches in recent directory-files-* changes
Michael Albinus [Mon, 2 Nov 2020 16:56:06 +0000 (17:56 +0100)]
Fix some glitches in recent directory-files-* changes

* doc/lispref/files.texi (Contents of Directories):
Fix description of directory-files, directory-empty-p and
directory-files-and-attributes.

* etc/NEWS: Fix entry for directory-files-and-attributes.  Fix typos.

* lisp/dired.el (directory-empty-p): Move function from here ...

* lisp/files.el (directory-empty-p): ... to here.

* lisp/net/ange-ftp.el (ange-ftp-directory-files): Call `nreverse' later.

* lisp/net/tramp.el (tramp-handle-directory-files):
* lisp/net/tramp-adb.el
(tramp-adb-handle-directory-files-and-attributes): Do not call
`nreverse'.

* src/dired.c (Fdirectory_files)
(Fdirectory_files_and_attributes): Fix docstrings.

* test/src/dired-tests.el: Removed.  Tests moved to
test/lisp/dired-tests.el.

* test/lisp/dired-tests.el (dired-test-bug27899): Tag it :unstable.
(dired-test-directory-files)
(dired-test-directory-files-and-attributes): New tests.

4 years agoMerge branch 'master' of git.sv.gnu.org:/srv/git/emacs into master
Michael Albinus [Mon, 2 Nov 2020 16:53:00 +0000 (17:53 +0100)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs into master

4 years agoFix Elisp's elisp--documentation-one-liner (bug#43609)
João Távora [Mon, 2 Nov 2020 16:24:59 +0000 (16:24 +0000)]
Fix Elisp's elisp--documentation-one-liner (bug#43609)

To be backward compatible, this function must return nil when there is
a symbol at point but no documentation for it.  Before this fixed it
returned the string "<symbol-name>: nil".

* lisp/progmodes/elisp-mode.el (elisp--documentation-one-liner):
Check callback actually produced non-nil doc.

4 years agoFix mouse-1 on [Show] buttons in the *Help* buffer
Lars Ingebrigtsen [Mon, 2 Nov 2020 15:53:57 +0000 (16:53 +0100)]
Fix mouse-1 on [Show] buttons in the *Help* buffer

* lisp/descr-text.el (describe-text-sexp): Add a `follow-link' so
that the [Show] buttons work correctly with mouse-1 (bug#44340).

4 years agoRecover the contents of the schemas.xml file
Yasuhiro KIMURA [Sun, 1 Nov 2020 13:01:31 +0000 (14:01 +0100)]
Recover the contents of the schemas.xml file

* etc/schema/schemas.xml: Recover the file, which was apparently
(mostly) removed by mistake by commit 165f738382 (bug#42851).

Copyright-paperwork-exempt: yes

4 years agoAdd directory-empty-p and new argument COUNT for directory-files-*
Arthur Miller [Mon, 2 Nov 2020 11:38:27 +0000 (12:38 +0100)]
Add directory-empty-p and new argument COUNT for directory-files-*

* doc/lispref/files.texi (Contents of Directories): Mention COUNT
argument of directory-files.  Add directory-empty-p.

* etc/NEWS: Mention directory-empty-p and directory-files changes.

* lisp/dired.el (directory-empty-p): New defun.

* lisp/net/ange-ftp.el (ange-ftp-directory-files)
(ange-ftp-directory-files-and-attributes):
* lisp/net/tramp.el (tramp-handle-directory-files)
(tramp-handle-directory-files-and-attributes):
* lisp/net/tramp-adb.el
(tramp-adb-handle-directory-files-and-attributes):
* lisp/net/tramp-rclone.el (tramp-rclone-handle-directory-files):
* lisp/net/tramp-sh.el (tramp-sh-handle-directory-files-and-attributes):
* lisp/net/tramp-smb.el (tramp-smb-handle-directory-files): Add new COUNT
argument.

* src/dired.c (directory_files_internal): Implement new
RETURN_COUNT argument.
(Fdirectory_files, Fdirectory_files_and_attributes): Add new COUNT
argument.

* src/lisp.h (directory_files_internal): Add RETURN_COUNT to declaration.

* src/sysdep.c (list_system_processes): Add Qnil to
directory_files_internal call.

* test/src/dired-tests.el (directory-files-and-attributes-tests):
New file.

4 years agoPartially revert previous define-minor-mode change
Lars Ingebrigtsen [Mon, 2 Nov 2020 09:17:08 +0000 (10:17 +0100)]
Partially revert previous define-minor-mode change

* lisp/emacs-lisp/easy-mmode.el (easy-mmode--arg-docstring):
Only document the values we want to support, not the ones we
actually support.
(define-minor-mode): Partially revert to previous behaviour.

4 years agoFix mistake in Lisp conversion of describe-map-tree
Stefan Kangas [Sun, 1 Nov 2020 21:49:12 +0000 (22:49 +0100)]
Fix mistake in Lisp conversion of describe-map-tree

* lisp/help.el (describe-map-tree): Fix mistake in conversion to Lisp
from the C function describe_map_tree; make the condition match the
now removed C code.  (Bug#44360)

4 years agoTransient input methods bound to 'C-x \' (bug#44266)
Juri Linkov [Sun, 1 Nov 2020 21:35:41 +0000 (23:35 +0200)]
Transient input methods bound to 'C-x \' (bug#44266)

* lisp/international/mule-cmds.el (ctl-x-map): Bind 'C-x \' to
'transient-input-method'.
(input-method-function): New defcustom.
(transient-input-method): New command.

* doc/emacs/mule.texi (Select Input Method): Document transient-input-method.

4 years ago* lisp/leim/quail/compose.el: New input method (bug#44267).
Juri Linkov [Sun, 1 Nov 2020 21:25:10 +0000 (23:25 +0200)]
* lisp/leim/quail/compose.el: New input method (bug#44267).

4 years agoShow nobreak-space face for more blank characters in describe-char.
Juri Linkov [Sun, 1 Nov 2020 21:20:53 +0000 (23:20 +0200)]
Show nobreak-space face for more blank characters in describe-char.

* lisp/descr-text.el (describe-char): Handle more non-ASCII whitespace
characters added in f018cffca0098ad1b82c51730a6d6cf146e3c488 (bug#44236)

4 years ago; * src/xdisp.c (display_string): Fix a typo in a comment.
Eli Zaretskii [Sun, 1 Nov 2020 19:49:35 +0000 (21:49 +0200)]
; * src/xdisp.c (display_string): Fix a typo in a comment.