]> git.eshelyaron.com Git - emacs.git/log
emacs.git
3 years ago; MH-E doc: SourceForge repo is no longer current
Stephen Gildea [Sat, 21 Aug 2021 21:37:54 +0000 (14:37 -0700)]
; MH-E doc: SourceForge repo is no longer current

* doc/misc/mh-e.texi, lisp/mh-e/mh-e.el: Update references to
SourceForge with current URLs and a note that MH-E development
no longer occurs in that repository.

3 years ago* test/Makefile.in: Turn off hydra verbose logging for electric-tests.
Glenn Morris [Sat, 21 Aug 2021 19:17:39 +0000 (12:17 -0700)]
* test/Makefile.in: Turn off hydra verbose logging for electric-tests.

3 years ago* test/lisp/net/tramp-tests.el: Reduce hydra run time by 1 hour.
Glenn Morris [Sat, 21 Aug 2021 18:46:40 +0000 (11:46 -0700)]
* test/lisp/net/tramp-tests.el: Reduce hydra run time by 1 hour.

It's just too slow to run these after every commit.

3 years ago; Load xref when needed (not all functions are autoloaded)
Mattias Engdegård [Sat, 21 Aug 2021 18:16:41 +0000 (20:16 +0200)]
; Load xref when needed (not all functions are autoloaded)

3 years ago* test/lisp/electric-tests.el: Un-skip c-mode tests on hydra.
Glenn Morris [Sat, 21 Aug 2021 16:41:16 +0000 (09:41 -0700)]
* test/lisp/electric-tests.el: Un-skip c-mode tests on hydra.

3 years agoFix failures in recent files tests
Lars Ingebrigtsen [Sat, 21 Aug 2021 15:45:24 +0000 (17:45 +0200)]
Fix failures in recent files tests

* test/lisp/files-tests.el (files-tests-buffer-offer-save)
(files-tests-save-buffers-kill-emacs--asks-to-save-buffers):
`read-event' is called with arguments.

3 years agoClarify cl-defstruct doc string and manual entry somewhat
Lars Ingebrigtsen [Sat, 21 Aug 2021 14:50:16 +0000 (16:50 +0200)]
Clarify cl-defstruct doc string and manual entry somewhat

* doc/misc/cl.texi (Structures): Rename the slot "name" in the
examples to "first-name", since we're talking about the names of
slots a lot here, and having a slot with the name "name" makes the
examples somewhat confusing.
* lisp/emacs-lisp/cl-macs.el (cl-defstruct): Clarify certain
things about slots (bug#14278).

3 years ago; * lisp/dired.el (dired-jump): Doc fix.
Eli Zaretskii [Sat, 21 Aug 2021 14:38:27 +0000 (17:38 +0300)]
; * lisp/dired.el (dired-jump): Doc fix.

3 years agoFix perldb doc string
Lars Ingebrigtsen [Sat, 21 Aug 2021 14:28:51 +0000 (16:28 +0200)]
Fix perldb doc string

* lisp/progmodes/gud.el (perldb): Fix doc string (bug#14588).

3 years agoClarify dired-jump doc string
Lars Ingebrigtsen [Sat, 21 Aug 2021 14:20:30 +0000 (16:20 +0200)]
Clarify dired-jump doc string

* lisp/dired.el (dired-jump): Make the doc string say what happens
in buffers not visiting files (bug#14733).

3 years ago; Fix Texinfo markup of a recent change
Eli Zaretskii [Sat, 21 Aug 2021 14:15:43 +0000 (17:15 +0300)]
; Fix Texinfo markup of a recent change

* doc/lispintro/emacs-lisp-intro.texi (count-words-in-defun): Fix
last change.

3 years ago; * src/syntax.c: Remove a stray comment.
Eli Zaretskii [Sat, 21 Aug 2021 14:13:46 +0000 (17:13 +0300)]
; * src/syntax.c: Remove a stray comment.

3 years agoTweak the comment-start-skip example in the manual
Lars Ingebrigtsen [Sat, 21 Aug 2021 14:07:44 +0000 (16:07 +0200)]
Tweak the comment-start-skip example in the manual

* doc/emacs/programs.texi (Options for Comments): Tweak the
example regexp for comment-start-skip (bug#15006).

3 years agoClarify how to do the `count-words-in-defun' recipe
Lars Ingebrigtsen [Sat, 21 Aug 2021 13:43:06 +0000 (15:43 +0200)]
Clarify how to do the `count-words-in-defun' recipe

* doc/lispintro/emacs-lisp-intro.texi (count-words-in-defun):
Clarify the recipe (bug#15069).

3 years ago; * etc/NEWS: Fix last change.
Eli Zaretskii [Sat, 21 Aug 2021 13:38:24 +0000 (16:38 +0300)]
; * etc/NEWS: Fix last change.

3 years agoMake parse-partial-sexp signal an error if TO is smaller than FROM
Lars Ingebrigtsen [Sat, 21 Aug 2021 13:24:15 +0000 (15:24 +0200)]
Make parse-partial-sexp signal an error if TO is smaller than FROM

* src/syntax.c (Fparse_partial_sexp): Signal an error if TO is
smaller than FROM (bug#49944).

3 years agoMention problems with synthetic fonts on macOS
Lars Ingebrigtsen [Sat, 21 Aug 2021 13:03:21 +0000 (15:03 +0200)]
Mention problems with synthetic fonts on macOS

* etc/PROBLEMS: Mention synthetic fonts (bug#18818).

3 years agoFix display bug on macOS (bug#50112)
Alan Third [Sat, 21 Aug 2021 12:09:37 +0000 (13:09 +0100)]
Fix display bug on macOS (bug#50112)

* src/nsterm.m ([EmacsLayer initWithColorSpace:]): Use the colorspace
setter.
([EmacsLayer setColorSpace:]): Sometimes we seem to get null
colorspaces, so set a default in this case.
([EmacsLayer getContext]): Check whether there's been a surface or
graphics context allocation failure and log it.

3 years ago* configure.ac: Make homebrew check for libgccjit match macports.
Alan Third [Tue, 17 Aug 2021 19:38:55 +0000 (20:38 +0100)]
* configure.ac: Make homebrew check for libgccjit match macports.

3 years agoRemove default "Select" title from NS popup menus (bug#50067)
Mattias Engdegård [Fri, 20 Aug 2021 19:21:05 +0000 (21:21 +0200)]
Remove default "Select" title from NS popup menus (bug#50067)

* src/menu.c (x_popup_menu_1): Remove default "Select" title.
* src/nsmenu.m (ns_menu_show): Allow title to be absent.

3 years agoUse overlay arrow to indicate current *xref* selection
Mattias Engdegård [Sat, 21 Aug 2021 10:38:40 +0000 (12:38 +0200)]
Use overlay arrow to indicate current *xref* selection

* lisp/progmodes/xref.el (xref--set-arrow): New function.
(xref-show-location-at-point, xref-goto-xref)
(xref--next-error-function): Call it.
(xref--show-common-initialize): Remove arrow.

3 years agoAdd "Find References" to context menu (bug#50067)
Mattias Engdegård [Fri, 20 Aug 2021 16:19:43 +0000 (18:19 +0200)]
Add "Find References" to context menu (bug#50067)

The new entry appears next to "Find Definition" and like it only
appears when the context menu was invoked on an identifier.

* lisp/progmodes/prog-mode.el (prog-context-menu): New menu entry.
* lisp/progmodes/xref.el (xref-find-references-at-mouse): New
function, analogous to `xref-find-definitions-at-mouse`.

3 years agoIndicate progress while searching for references in xref
Mattias Engdegård [Sat, 21 Aug 2021 09:34:32 +0000 (11:34 +0200)]
Indicate progress while searching for references in xref

* lisp/progmodes/xref.el (xref-backend-references): Add messages to
show the user that something is happening instead of silently freezing
during the frequently long synchronous searches for references.

3 years agoRe-type the :location slot in `xref-match-item` to `xref-location`
Mattias Engdegård [Sat, 21 Aug 2021 09:05:57 +0000 (11:05 +0200)]
Re-type the :location slot in `xref-match-item` to `xref-location`

* lisp/progmodes/xref.el (xref-match-item): Change type for
:location from `xref-file-location`, which was likely a mistake,
to `xref-location`. This allows `xref-make-match` to take
arguments of any subtype of `xref-location` (bug#50067).

3 years agoAdd xref operations to context menu unconditionally
Mattias Engdegård [Sat, 21 Aug 2021 08:59:54 +0000 (10:59 +0200)]
Add xref operations to context menu unconditionally

* lisp/progmodes/prog-mode.el (prog-context-menu):
Add xref operations to the context menu even if xref hasn't been
loaded yet; the functions involved are autoloaded (bug#50067).

3 years agoCC Mode: Move a macro to before its first use in a file.
Alan Mackenzie [Sat, 21 Aug 2021 09:39:31 +0000 (09:39 +0000)]
CC Mode: Move a macro to before its first use in a file.

* lisp/progmodes/cc-defs.el (c-benign-error): Move earlier in the file for the
benefit of c-tnt-chng-cleanup.

3 years ago; * etc/TODO: Fix typo.
Basil L. Contovounesios [Sat, 21 Aug 2021 09:37:26 +0000 (10:37 +0100)]
; * etc/TODO: Fix typo.

3 years agoImprove documentation of context menus
Eli Zaretskii [Sat, 21 Aug 2021 08:49:56 +0000 (11:49 +0300)]
Improve documentation of context menus

* doc/lispref/modes.texi (Major Mode Conventions): Add conventions
of setting menu-bar menus and context menus for a major mode.
* doc/emacs/frames.texi (Menu Mouse Clicks): Fix description of
context menu functionality.

3 years agoImprove doc string of 'M-.'
Eli Zaretskii [Sat, 21 Aug 2021 08:17:09 +0000 (11:17 +0300)]
Improve doc string of 'M-.'

* lisp/progmodes/xref.el (xref-find-definitions): Mention 'M-,' in
the doc string.

3 years ago; * lisp/simple.el (execute-extended-command): Fix comment wording.
Eli Zaretskii [Sat, 21 Aug 2021 08:05:04 +0000 (11:05 +0300)]
; * lisp/simple.el (execute-extended-command): Fix comment wording.

3 years ago; * etc/NEWS: State the default behavior when copying symlinks.
Eli Zaretskii [Sat, 21 Aug 2021 08:01:44 +0000 (11:01 +0300)]
; * etc/NEWS: State the default behavior when copying symlinks.

3 years agoImprove documentation of 'file-preserve-symlinks-on-save'
Eli Zaretskii [Sat, 21 Aug 2021 07:58:24 +0000 (10:58 +0300)]
Improve documentation of 'file-preserve-symlinks-on-save'

* lisp/files.el (file-precious-flag): Mention
'file-preserve-symlinks-on-save' in the doc string.

* doc/lispref/files.texi (Saving Buffers): Move the description of
'file-preserve-symlinks-on-save' from here...
* doc/emacs/files.texi (Customize Save): ...to here.  Improve
wording.

* etc/NEWS: Fix wording of 'file-preserve-symlinks-on-save' entry.

3 years ago; * doc/emacs/custom.texi (Minibuffer Maps): Fix wording.
Eli Zaretskii [Sat, 21 Aug 2021 07:37:23 +0000 (10:37 +0300)]
; * doc/emacs/custom.texi (Minibuffer Maps): Fix wording.

3 years agoFix documentation of 'repeat-mode' changes
Eli Zaretskii [Sat, 21 Aug 2021 07:31:35 +0000 (10:31 +0300)]
Fix documentation of 'repeat-mode' changes

* doc/emacs/basic.texi (Repeating): Fix indexing.  Improve
wording.

3 years agoFix documentation of recently-added tests for files.el
Eli Zaretskii [Sat, 21 Aug 2021 07:22:45 +0000 (10:22 +0300)]
Fix documentation of recently-added tests for files.el

* test/lisp/files-tests.el (files-tests--save-some-buffers)
(files-tests-save-some-buffers)
(files-tests--with-buffer-offer-save)
(files-tests-buffer-offer-save): Doc fixes.

3 years ago; * lisp/progmodes/project.el: Fix punctuation in the commentary.
Eli Zaretskii [Sat, 21 Aug 2021 07:10:28 +0000 (10:10 +0300)]
; * lisp/progmodes/project.el: Fix punctuation in the commentary.

3 years ago* etc/TODO: Entry about markers being non-scalable. (Bug#49127)
Eli Zaretskii [Sat, 21 Aug 2021 06:33:34 +0000 (09:33 +0300)]
* etc/TODO: Entry about markers being non-scalable.  (Bug#49127)

3 years agoSpeed up project--read-project-buffer in remote buffers
Dmitry Gutov [Sat, 21 Aug 2021 02:26:12 +0000 (05:26 +0300)]
Speed up project--read-project-buffer in remote buffers

* lisp/progmodes/project.el (project-buffers): New generic function.
(project--read-project-buffer): Use it here (bug#49264).
(project--buffers-to-kill): And here.
(project-buffers): Specialized implementation for vc-project.

3 years ago* lisp/bindings.el (page-navigation-repeat-map): Fix bootstrap.
Glenn Morris [Fri, 20 Aug 2021 22:56:27 +0000 (15:56 -0700)]
* lisp/bindings.el (page-navigation-repeat-map): Fix bootstrap.

3 years agoFix c-tentative-buffer-changes to be nestable in c-save-buffer-state
Alan Mackenzie [Fri, 20 Aug 2021 21:12:37 +0000 (21:12 +0000)]
Fix c-tentative-buffer-changes to be nestable in c-save-buffer-state

* lisp/progmodes/cc-defs.el (c-tentative-buffer-changes)
(c-tnt-chng-record-state, c-tnt-chng-cleanup): Enhance such that a
buffer-undo-list of t is handled specially, so that a nil isn't consed onto
it.  Thus garbage collection can't later remove the (nil . t) from the end of
the buffer-undo-list, causing an infinite loop.

3 years ago; * test/lisp/files-tests.el: Add tests for save-some-buffers (Bug#46374)
Tino Calancha [Fri, 20 Aug 2021 16:07:19 +0000 (18:07 +0200)]
; * test/lisp/files-tests.el: Add tests for save-some-buffers (Bug#46374)

3 years agoMark page navigation commands as repeatable
Davide Masserut [Fri, 20 Aug 2021 15:49:35 +0000 (17:49 +0200)]
Mark page navigation commands as repeatable

* doc/emacs/basic.texi (Repeating): Document page navigation
repeatability.

* lisp/bindings.el (page-navigation-repeat-map): Add new map
(bug#50137).
* lisp/bindings.el (forward-page):
(backward-page): Mark as repeatable.

Copyright-paperwork-exempt: yes

3 years agoDocument how to get rid of completion on `SPC' and `?'
Lars Ingebrigtsen [Fri, 20 Aug 2021 15:00:10 +0000 (17:00 +0200)]
Document how to get rid of completion on `SPC' and `?'

* doc/emacs/custom.texi (Minibuffer Maps): Mention how to get rid
of completion on `SPC' and `?' (bug#16528).

3 years agoFix printing of C-@ in `describe-fontset'
Lars Ingebrigtsen [Fri, 20 Aug 2021 14:35:56 +0000 (16:35 +0200)]
Fix printing of C-@ in `describe-fontset'

* lisp/international/mule-diag.el (mule--kbd-at): New function
(bug#17836).
(print-fontset-element): Use it to get multi-key things correct.

3 years agoAllow preserving symlinks with file-precious-flag set
Lars Ingebrigtsen [Fri, 20 Aug 2021 14:20:51 +0000 (16:20 +0200)]
Allow preserving symlinks with file-precious-flag set

* doc/lispref/files.texi (Saving Buffers): Document it.
* lisp/files.el (file-preserve-symlinks-on-save): New user option
(bug#18125).
(basic-save-buffer-2): Use it.

3 years agoFix infinite recursion in mode: tex
Lars Ingebrigtsen [Fri, 20 Aug 2021 13:57:06 +0000 (15:57 +0200)]
Fix infinite recursion in mode: tex

* lisp/textmodes/tex-mode.el (tex--redirect-to-submode): Inhibit
recursion when called from file-local variables (bug#50126).

3 years agoFix infinite recursion of conf-mode
Lars Ingebrigtsen [Fri, 20 Aug 2021 13:55:24 +0000 (15:55 +0200)]
Fix infinite recursion of conf-mode

* lisp/textmodes/conf-mode.el (conf-mode): Inhibit recursion when
called from file-local variables (bug#50126).

3 years agoAllow copy-directory to copy the source as a symlink
Marco Centurion [Fri, 20 Aug 2021 13:43:41 +0000 (15:43 +0200)]
Allow copy-directory to copy the source as a symlink

* doc/emacs/files.texi (Copying and Naming): Document it.

* lisp/files.el (copy-directory): Allow copying symbolic links as
is (bug#10897).
(copy-directory-create-symlink): New user option.

Copyright-paperwork-exempt: yes

3 years agoFurther tweaks to execute-extended-command
Lars Ingebrigtsen [Fri, 20 Aug 2021 13:07:24 +0000 (15:07 +0200)]
Further tweaks to execute-extended-command

* lisp/simple.el (execute-extended-command): Move finding the
short command to the timer command, too (bug#50042).  This further
ensures that post-command-hook is run faster.

3 years agoRemove even more waiting from execute-extended-command
Lars Ingebrigtsen [Fri, 20 Aug 2021 12:55:40 +0000 (14:55 +0200)]
Remove even more waiting from execute-extended-command

* lisp/simple.el (execute-extended-command): Remove all the
waiting from the command and do it all with timers (bug#50042).
This ensures that post-command-hook is run immediately also when
the command has messaged something.

3 years ago; * lisp/mouse.el: Fix typos in previous change
Mattias Engdegård [Fri, 20 Aug 2021 11:51:36 +0000 (13:51 +0200)]
; * lisp/mouse.el: Fix typos in previous change

3 years agoUse C-mouse-1 for context menu on NS
Mattias Engdegård [Fri, 20 Aug 2021 10:03:20 +0000 (12:03 +0200)]
Use C-mouse-1 for context menu on NS

The Mac platform convention is to use control-left-click for context
menus (as a synonym to right-click).

* lisp/mouse.el (context-menu--old-bindings): Remove.
(context-menu--saved-bindings)
(context-menu--bind-mouse, context-menu--reset-bindings): New.
(context-menu-mode): Use new functions, with C-mouse-1 as extra
binding on NS.

3 years agoFix xref {prev,next}-error target buffer match highlighting extent
Mattias Engdegård [Thu, 19 Aug 2021 21:15:29 +0000 (23:15 +0200)]
Fix xref {prev,next}-error target buffer match highlighting extent

* lisp/progmodes/xref.el (xref--next-error-function):
Bind `xref--current-item` during the call to `xref--show-location` so
that `xref-pulse-momentarily` finds the match extent.

3 years agoDon't mutate string literal
Mattias Engdegård [Thu, 19 Aug 2021 09:35:41 +0000 (11:35 +0200)]
Don't mutate string literal

* lisp/obsolete/terminal.el (terminal-escape-map): Rewrite loop in a
simpler and more robust way.

3 years agoTweak a failing custom test
Lars Ingebrigtsen [Fri, 20 Aug 2021 00:32:02 +0000 (02:32 +0200)]
Tweak a failing custom test

* test/lisp/custom-tests.el (custom-tests-require-theme): Fix a
native-comp-related test failure.

In this test, we set load-path to nil, and under native-comp some of
the tests want to give a warning:

Warning (comp): Cannot look-up eln file as no source file was
found for /tmp/custom-tests-bfdbkW/custom-tests--d.elc

But we can't load warning.el after setting load-path to nil, so
require it first.

3 years agoMake icomplete-forward-completions O(1) when icomplete-scroll is t
João Távora [Thu, 19 Aug 2021 22:54:51 +0000 (23:54 +0100)]
Make icomplete-forward-completions O(1) when icomplete-scroll is t

In particular, this makes the recently added
icomplete-vertical-goto-last (bug#49005) be O(n) instead of O(n^2).
That used to be almost unbearably slow for large n.

* lisp/icomplete.el (icomplete-forward-completions):  don't call last
unless needed.

3 years agoRemove more mentions of the removed `M-o' facemenu binding
Lars Ingebrigtsen [Thu, 19 Aug 2021 16:26:18 +0000 (18:26 +0200)]
Remove more mentions of the removed `M-o' facemenu binding

* doc/emacs/text.texi (Fill Commands, Fill Commands): Adjust `M-o'
mentions.

* etc/refcards/refcard.tex (section{Formatting}):
* etc/refcards/pt-br-refcard.tex (section{Formatando}):
* etc/refcards/fr-refcard.tex (section{Formater}): Remove mention
of `M-o'.

3 years agoCorrectly call completion-in-region in shell.el
Madhu [Thu, 19 Aug 2021 16:01:06 +0000 (18:01 +0200)]
Correctly call completion-in-region in shell.el

* lisp/shell.el (shell-dynamic-complete-command)
(shell-dynamic-complete-environment-variable): Correctly call
completion-in-region (bug#50125).

Copyright-paperwork-exempt: yes

3 years ago; Fix escaping in recent ibuf-ext.el doc change.
Basil L. Contovounesios [Thu, 19 Aug 2021 15:58:58 +0000 (16:58 +0100)]
; Fix escaping in recent ibuf-ext.el doc change.

3 years agoFix space at the start of appt mode line element
Lars Ingebrigtsen [Thu, 19 Aug 2021 15:48:14 +0000 (17:48 +0200)]
Fix space at the start of appt mode line element

* lisp/calendar/appt.el (appt-check): Add space at the end
(bug#18164) -- all `global-mode-string' elements should have it
there to get an even space distribution.

3 years agoAdd ibuffer-saved-filter-groups example to the doc string
Lars Ingebrigtsen [Thu, 19 Aug 2021 15:11:00 +0000 (17:11 +0200)]
Add ibuffer-saved-filter-groups example to the doc string

* lisp/ibuf-ext.el (ibuffer-saved-filter-groups): Add an example
for this complicated syntax (bug#18694).

3 years agoFix dired switch (that contain quotes and spaces) parsing
Lars Ingebrigtsen [Thu, 19 Aug 2021 14:21:07 +0000 (16:21 +0200)]
Fix dired switch (that contain quotes and spaces) parsing

* lisp/files.el (insert-directory): Tokenize shell strings
correctly (bug#18875).

3 years agoFix st.el doc string
Lars Ingebrigtsen [Thu, 19 Aug 2021 13:19:23 +0000 (15:19 +0200)]
Fix st.el doc string

* lisp/term/st.el (xterm-st-extra-capabilities): New user option
(bug#50119).
(terminal-init-st): Use it to avoid a two-second timeout.

3 years agoAdd support for history of image tags and completion in the minibuffer
Peter Münster [Wed, 18 Aug 2021 09:21:51 +0000 (11:21 +0200)]
Add support for history of image tags and completion in the minibuffer

* lisp/image-dired.el (image-dired-tag-history): New variable holding the
tag history.
(image-dired-tag-files, image-dired-tag-thumbnail, image-dired-delete-tag)
(image-dired-tag-thumbnail-remove): Use it for the user input.

3 years agoAvoid problems when one tag/file is a substring of another
Peter Münster [Wed, 18 Aug 2021 00:02:02 +0000 (02:02 +0200)]
Avoid problems when one tag/file is a substring of another

* lisp/image-dired.el (image-dired-remove-tag): End of filename is bound
by ";" and end of tag is bound by ";" or end of line.

3 years agoNew placement of newline characters in image-dired-db-file
Peter Münster [Tue, 17 Aug 2021 23:37:43 +0000 (01:37 +0200)]
New placement of newline characters in image-dired-db-file

It's more usual to have the newline at the end of the line, instead of the
beginning. This change avoids missing newline at the end of the file, an
empty line at the start and eventually a lot of empty lines when
`require-final-newline' is not nil.

* lisp/image-dired.el (image-dired-write-tags): Insert newline at the end
of the line, instead of the beginning.
(image-dired-remove-tag): Do not delete empty line at end of buffer.

3 years agoFix deletion of associated image
Peter Münster [Mon, 16 Aug 2021 22:19:08 +0000 (00:19 +0200)]
Fix deletion of associated image

* lisp/image-dired.el (image-dired-delete-marked): Treat original images
first, because point position is used when there are no marked files.

3 years agoFix inaccuracies in documentation of 'message-truncate-lines'
Eli Zaretskii [Thu, 19 Aug 2021 12:44:55 +0000 (15:44 +0300)]
Fix inaccuracies in documentation of 'message-truncate-lines'

* doc/lispref/display.texi (Echo Area Customization):
* src/xdisp.c (syms_of_xdisp): Adjust the documentation of
message-truncate-lines to changes that fixed bug#46718.

3 years agoMinor doc fixes in icomplete.el
Eli Zaretskii [Thu, 19 Aug 2021 12:29:49 +0000 (15:29 +0300)]
Minor doc fixes in icomplete.el

* lisp/icomplete.el (icomplete-section): Add :version.
(icomplete--augment): Doc fix.

3 years ago; * src/xdisp.c (hscroll_window_tree): Fix a typo in a comment.
Eli Zaretskii [Thu, 19 Aug 2021 12:25:26 +0000 (15:25 +0300)]
; * src/xdisp.c (hscroll_window_tree): Fix a typo in a comment.

3 years agoFix errors with hscrolling mini-windows under truncate-lines
Eli Zaretskii [Thu, 19 Aug 2021 12:24:14 +0000 (15:24 +0300)]
Fix errors with hscrolling mini-windows under truncate-lines

* src/xdisp.c (hscroll_window_tree): Disallow hscroll in
mini-windows that display echo-area messages.  (Bug#50096)

3 years agostterm doesn't understand all codes that xterm does
Lars Ingebrigtsen [Thu, 19 Aug 2021 12:18:27 +0000 (14:18 +0200)]
stterm doesn't understand all codes that xterm does

* lisp/term/st.el (xterm-st-extra-capabilities): New user option
(bug#50119).
(terminal-init-st): Use it to avoid a two-second timeout.

3 years ago; Correct :version tag of icomplete-selected-match face
João Távora [Thu, 19 Aug 2021 10:29:14 +0000 (11:29 +0100)]
; Correct :version tag of icomplete-selected-match face

* lisp/icomplete.el (icomplete-selected-match): Fix :version

3 years agoSection by 'group-function' in Icomplete and Fido's vertical modes
João Távora [Wed, 18 Aug 2021 23:48:26 +0000 (00:48 +0100)]
Section by 'group-function' in Icomplete and Fido's vertical modes

Fixes: bug#48545
* lisp/icomplete.el (icomplete--augment): Rewrite from icomplete--affixate.
(icomplete--render-vertical): Rework.
(icomplete--vertical-minibuffer-setup): Separator is hardcoded "\n", no
need to set.

3 years agoImprove fix of bug#49888 on no-pattern flex sorting
João Távora [Thu, 19 Aug 2021 10:04:37 +0000 (11:04 +0100)]
Improve fix of bug#49888 on no-pattern flex sorting

This version is functionally equivalent, but doesn't duplicate any
code.  When nothing "flexy" is happening, it works by simply not doing
any metadata adjustments, instead of attempting to synthesize a
function to mimic the non-flex case.

* lisp/minibuffer.el (completion--flex-adjust-metadata): Simplify.

3 years agoFix vc-root-diff broken with Git as well
Dmitry Gutov [Thu, 19 Aug 2021 00:57:58 +0000 (03:57 +0300)]
Fix vc-root-diff broken with Git as well

* lisp/vc/vc.el (vc-root-diff): Fix similar to 35023214031e1 by
avoiding the abbreviated directory name in argument (bug#39452).

3 years agoImprove documentation of 'assoc'
Eli Zaretskii [Wed, 18 Aug 2021 19:07:30 +0000 (22:07 +0300)]
Improve documentation of 'assoc'

* doc/lispref/lists.texi (Association Lists):
* src/fns.c (Fassoc): Document how TESTFN is called.  (Bug#50110)

3 years ago; Fix paren typo
Glenn Morris [Wed, 18 Aug 2021 18:50:42 +0000 (11:50 -0700)]
; Fix paren typo

3 years ago* lisp/progmodes/xref.el (xref--collect-matches): Widen temporarily.
Juri Linkov [Wed, 18 Aug 2021 17:02:39 +0000 (20:02 +0300)]
* lisp/progmodes/xref.el (xref--collect-matches): Widen temporarily.

3 years ago* lisp/mouse.el: More fixes for context-menu.
Juri Linkov [Wed, 18 Aug 2021 17:01:03 +0000 (20:01 +0300)]
* lisp/mouse.el: More fixes for context-menu.

(context-menu-map): Remove menu title "Context Menu" (bug#50067).
(context-menu-minor): Reverse sub-menus to display exactly in the same order
as on the menu bar.

3 years agoImprove documentation of last change.
Eli Zaretskii [Wed, 18 Aug 2021 16:10:01 +0000 (19:10 +0300)]
Improve documentation of last change.

* etc/NEWS: Mention the string value of 'auto-composition-mode'.

* src/composite.c (syms_of_composite) <auto-composition-mode>: Doc
fix.

3 years agoDisable auto compositions on the Linux console only
Lars Ingebrigtsen [Wed, 18 Aug 2021 14:24:40 +0000 (16:24 +0200)]
Disable auto compositions on the Linux console only

* lisp/term/linux.el (terminal-init-linux): Disable auto
compositions on "linux" consoles (bug#21363).

* src/composite.c (inhibit_auto_composition): New function to
implement this.
(composition_compute_stop_pos, composition_adjust_point)
(Ffind_composition_internal): Use it.
(syms_of_composite): Document it.

* src/lisp.h: Export tty_type_name.

* src/term.c (tty_type_name): Factored out.
(Ftty_type): Use it.

3 years agoAdd undo-in-region test case for bug#21523
Lars Ingebrigtsen [Wed, 18 Aug 2021 13:32:19 +0000 (15:32 +0200)]
Add undo-in-region test case for bug#21523

3 years agoYet another place inside redisplay_window to prevent quitting
Eli Zaretskii [Wed, 18 Aug 2021 13:14:29 +0000 (16:14 +0300)]
Yet another place inside redisplay_window to prevent quitting

* src/xdisp.c (handle_single_display_spec): Inhibit quitting
around the call to lookup_image.  (Bug#44448)

3 years agoFix abort when turning on Hebrew or Arabic input methods
Eli Zaretskii [Wed, 18 Aug 2021 13:01:57 +0000 (16:01 +0300)]
Fix abort when turning on Hebrew or Arabic input methods

* src/xdisp.c (face_before_or_after_it_pos): Add the missing
initialization of the bidi scan direction.  (Bug#50107)

3 years agoAdd menu bindings to new functions in image-dired.el
Peter Münster [Wed, 18 Aug 2021 12:53:25 +0000 (14:53 +0200)]
Add menu bindings to new functions in image-dired.el

* lisp/image-dired.el (image-dired--with-marked): New macro for
cycling over marked thumbnails.
(image-dired-tag-thumbnail, image-dired-tag-thumbnail-remove): Can
handle now also all marked thumbnails.
(image-dired-tag-marked-thumbnails): Remove it, because it's
obsoleted by `image-dired-tag-thumbnail' now.
(image-dired-delete-marked): Use new macro
`image-dired--with-marked', and add command to menu (bug#50000).

3 years ago; * etc/NEWS (Icomplete): Fix typo and remove redundant word
João Távora [Wed, 18 Aug 2021 10:37:55 +0000 (11:37 +0100)]
; * etc/NEWS (Icomplete): Fix typo and remove redundant word

3 years agoFix ediff3 layouts with window-combination-resize non-nil (Bug#49277)
pillule [Wed, 18 Aug 2021 07:21:06 +0000 (09:21 +0200)]
Fix ediff3 layouts with window-combination-resize non-nil (Bug#49277)

* lisp/vc/ediff-wind.el (ediff-setup-windows-plain-compare)
(ediff-setup-windows-multiframe-compare): Fix three windows
layouts produced by ediff3 when 'window-combination-resize'
was customized to t and 'even-window-sizes' to nil.

3 years agoFix behavior when switch-to-prev-buffer-skip is a function (Bug#49275)
pillule [Wed, 18 Aug 2021 07:16:06 +0000 (09:16 +0200)]
Fix behavior when switch-to-prev-buffer-skip is a function (Bug#49275)

* lisp/window.el (switch-to-prev-buffer)
(switch-to-next-buffer): More correctly handle cases where
'switch-to-prev-buffer-skip' is a function.

3 years ago; Fix quoting of braces in electric-tests.el.
Basil L. Contovounesios [Tue, 17 Aug 2021 23:54:44 +0000 (00:54 +0100)]
; Fix quoting of braces in electric-tests.el.

3 years ago* Fix `native-compile-target-directory' effectiveness for async compilation.
Andrea Corallo [Tue, 17 Aug 2021 21:44:12 +0000 (23:44 +0200)]
* Fix `native-compile-target-directory' effectiveness for async compilation.

* lisp/emacs-lisp/comp.el (comp-run-async-workers): Forward to async
workers `native-compile-target-directory'.

3 years ago* lisp/mouse.el (context-menu-filter-function): Fix type.
Glenn Morris [Tue, 17 Aug 2021 18:31:09 +0000 (11:31 -0700)]
* lisp/mouse.el (context-menu-filter-function): Fix type.

3 years agoAnother fix for quitting while displaying non-selected windows
Eli Zaretskii [Tue, 17 Aug 2021 18:29:58 +0000 (21:29 +0300)]
Another fix for quitting while displaying non-selected windows

* src/xdisp.c (handle_face_prop, extend_face_to_end_of_line):
Inhibit quitting around the call to face_at_pos, to prevent
leaking wrong value of point when the user quits while we
redisplay a non-selected window.  (Bug#44448)

3 years ago* test/lisp/electric-tests.el: Skip most c-mode tests on hydra.
Glenn Morris [Tue, 17 Aug 2021 15:53:00 +0000 (08:53 -0700)]
* test/lisp/electric-tests.el: Skip most c-mode tests on hydra.

3 years ago; * etc/NEWS: Fix wording of a recently added entry.
Eli Zaretskii [Tue, 17 Aug 2021 12:47:10 +0000 (15:47 +0300)]
; * etc/NEWS: Fix wording of a recently added entry.

3 years ago; Fix a comment in a recent commit.
Eli Zaretskii [Tue, 17 Aug 2021 12:40:05 +0000 (15:40 +0300)]
; Fix a comment in a recent commit.

* lisp/help-mode.el (help-mode-syntax-table): Fix punctuation in a
comment.

3 years agoFix TTY display performance degradation due to many markers
Eli Zaretskii [Tue, 17 Aug 2021 12:31:53 +0000 (15:31 +0300)]
Fix TTY display performance degradation due to many markers

* src/coding.c (encode_coding_object): Don't assume that
src_object == dst_object means src_object is the current buffer.
Add the missing commentary that explains the arguments.
(Bug#49127)

3 years agoImprove `forward-sexp' in *Help* buffers
Michalis V [Tue, 17 Aug 2021 12:20:57 +0000 (14:20 +0200)]
Improve `forward-sexp' in *Help* buffers

* lisp/help-mode.el (help-mode-syntax-table): New variable (bug#39134).
(help-make-xrefs): Use it to make picking out symbols in curved
quotes work reliably.
(help-xref-on-pp): Ditto.

3 years agoBind <up> and <down> in icomplete-vertical-mode
João Távora [Tue, 17 Aug 2021 12:06:06 +0000 (13:06 +0100)]
Bind <up> and <down> in icomplete-vertical-mode

Suggested by Ergus <spacibba@aol.com>

* lisp/icomplete.el (icomplete-vertical-mode-minibuffer-map): Bind
<up> and <down>

3 years agoJump to first,last completion with M-<, M-> in icomplete-vertical-mode
João Távora [Tue, 17 Aug 2021 11:48:37 +0000 (12:48 +0100)]
Jump to first,last completion with M-<, M-> in icomplete-vertical-mode

Fixes: bug#49005
Co-authored-by: Simon Lang <simon.lang@outlook.com>
* lisp/icomplete.el (icomplete-backward-completions): Return
non-nil iff something was stepped.  Ajust docstring.
(icomplete-forward-completions): Adjust docstring.
(icomplete-vertical-goto-first, icomplete-vertical-goto-last): New commands.
(icomplete-vertical-mode-minibuffer-map): Bind new commands to M-< and M->.