]> git.eshelyaron.com Git - emacs.git/log
emacs.git
3 years ago; * lisp/auth-source-pass.el: Improve docstrings
Damien Cassou [Sun, 27 Jun 2021 15:38:59 +0000 (17:38 +0200)]
; * lisp/auth-source-pass.el: Improve docstrings

3 years agolisp/auth-source-pass.el: Support multiple hosts in search spec
Iku Iwasa [Sun, 27 Jun 2021 15:36:00 +0000 (17:36 +0200)]
lisp/auth-source-pass.el: Support multiple hosts in search spec

* lisp/auth-source-pass.el (auth-source-pass-search): Accept a list of
strings for argument HOST.
(auth-source-pass--build-result): Rename argument HOST to HOSTS. Also
return value "host" from entry if it exists.
(auth-source-pass--find-match): Rename argument HOST to HOSTS. Iterate
over each host in HOSTS.
* test/lisp/auth-source-pass-tests.el: Add corresponding tests

3 years agoDon't pass 'null-device' to 'call-process' in ispell
Jim Porter [Thu, 1 Jul 2021 11:01:00 +0000 (13:01 +0200)]
Don't pass 'null-device' to 'call-process' in ispell

* lisp/textmodes/ispell.el (ispell-find-hunspell-dictionaries):
Replace 'null-device' with nil (bug#49283).  This allows running a
local ispell process when editing a buffer editing a file via Tramp.

3 years agoNew frame parameter 'drag-with-tab-line' (Bug#49247)
Martin Rudalics [Fri, 2 Jul 2021 08:55:42 +0000 (10:55 +0200)]
New frame parameter 'drag-with-tab-line' (Bug#49247)

The new frame parameter 'drag-with-tab-line' allows to move
frames by dragging their topmost windows' tab line with the
mouse thus achieving a behavior similar to that provided by
the 'drag-with-header-line' parameter.

* lisp/mouse.el (mouse-drag-tab-line): New function.
(mouse-drag-frame-resize, mouse-drag-frame-move)
([tab-line down-mouse-1]): Handle tab line dragging in various
keymaps.
* doc/lispref/frames.texi (Mouse Dragging Parameters): Describe
new parameter 'drag-with-tab-line'.
* etc/NEWS: Add entry for 'drag-with-tab-line'.

3 years agoFix a problem of cus-start.el for remote default directories
Michael Albinus [Fri, 2 Jul 2021 08:01:46 +0000 (10:01 +0200)]
Fix a problem of cus-start.el for remote default directories

* lisp/cus-start.el: Bind `default-directory' to "/" when calling
`shell-command-to-string' for a local value on DARWIN.

3 years agoFix NS self contained eln location (bug#49271)
Alan Third [Wed, 30 Jun 2021 18:58:13 +0000 (19:58 +0100)]
Fix NS self contained eln location (bug#49271)

* Makefile.in:
* configure.ac: Change eln file install location to
Contents/Frameworks.
* src/comp.c (hash_native_abi): Replace dots with underscores in the
eln install location as the macOS code-signing tool won't sign the
files if the parent directories have dots.

3 years agoFix NS native comp search path (bug#49270)
Alan Third [Tue, 29 Jun 2021 21:02:43 +0000 (22:02 +0100)]
Fix NS native comp search path (bug#49270)

* configure.ac (NS_SELF_CONTAINED): We need to make lispdirrel the
same as lispdir when building a self contained app bundle as they're
both relative paths.

3 years ago* lisp/transient.el: Update to package version 0.3.6.
Jonas Bernoulli [Thu, 1 Jul 2021 15:20:58 +0000 (17:20 +0200)]
* lisp/transient.el: Update to package version 0.3.6.

3 years ago; Auto-commit of loaddefs files.
Glenn Morris [Thu, 1 Jul 2021 13:28:40 +0000 (06:28 -0700)]
; Auto-commit of loaddefs files.

3 years agoUpdate describe-prefix-binding manual text
Mattias Engdegård [Thu, 1 Jul 2021 12:27:13 +0000 (14:27 +0200)]
Update describe-prefix-binding manual text

* doc/emacs/help.texi (Misc Help): `ESC ?` isn't unbound any more.

3 years agoHandle test environment variables
Michael Albinus [Thu, 1 Jul 2021 11:43:44 +0000 (13:43 +0200)]
Handle test environment variables

* lisp/emacs-lisp/ert.el (ert-summarize-tests-batch-and-exit):
Check also for EMACS_EMBA_CI.

* test/README (SELECTOR): Mention EMACS_TEST_VERBOSE.

* test/infra/gitlab-ci.yml (variables): Set EMACS_TEST_VERBOSE.

3 years agoFix copy/paste error in emacsclient.desktop
Peter Oliver [Thu, 1 Jul 2021 10:46:10 +0000 (12:46 +0200)]
Fix copy/paste error in emacsclient.desktop

* etc/emacsclient.desktop: new-instance should read new-window.

3 years agoDoc cleanup
Michael Albinus [Thu, 1 Jul 2021 08:19:48 +0000 (10:19 +0200)]
Doc cleanup

* doc/lispref/files.texi (File Locks, Changing Files)
(File Name Components, File Name Expansion, Magic File Names):
* lisp/files.el (locate-dominating-stop-dir-regexp)
(auto-mode-alist, set-auto-mode, file-name-with-extension)
(backup-directory-alist, wildcard-to-regexp)
(save-buffers-kill-terminal): Doc fixes.

* etc/NEWS: Fix typos.

3 years agoIn files that use allout use it for all headings
Jonas Bernoulli [Wed, 30 Jun 2021 20:17:01 +0000 (22:17 +0200)]
In files that use allout use it for all headings

* lisp/allout.el: Don't prefix regular comments with three
semicolons.
* lisp/icomplete.el: Use allout syntax for all headings.
* lisp/net/eudc.el: Use allout syntax for all headings.

3 years ago* lisp/comint.el: Prefix headings with enough semicolons.
Jonas Bernoulli [Wed, 30 Jun 2021 20:15:13 +0000 (22:15 +0200)]
* lisp/comint.el: Prefix headings with enough semicolons.

Outline headings must begin with three or more semicolons.

3 years agoImprove consistency of outline headings in dired libraries
Jonas Bernoulli [Sun, 14 Mar 2021 19:24:07 +0000 (20:24 +0100)]
Improve consistency of outline headings in dired libraries

* lisp/dired-aux.el: Improve consistency of outline headings.
* lisp/dired-x.el: Improve consistency of outline headings.
* lisp/dired.el: Improve consistency of outline headings.

- Use three semicolons at beginning of headings because that already
  is the dominant number of semicolons for headings in these files.
- Prefix each heading with a ^L instead of randomly omitting it in
  front of some.
- Always prefix the line with the ^L with a completely empty line.
- Begin headings with a capital letter.
- Do not update complete headings.
- Do not end headings with a period.
- Remove a handful of section end markers.
- Address further inconsistencies.

3 years agoCleanup whitespace and comments in dired libraries
Jonas Bernoulli [Wed, 30 Jun 2021 18:10:30 +0000 (20:10 +0200)]
Cleanup whitespace and comments in dired libraries

* lisp/dired-aux.el: Cleanup whitespace and comments.
* lisp/dired-x.el: Cleanup whitespace and comments.
* lisp/dired.el: Cleanup whitespace and comments.

3 years ago; Mention the previous change in NEWS
Jonas Bernoulli [Wed, 30 Jun 2021 19:38:54 +0000 (21:38 +0200)]
; Mention the previous change in NEWS

3 years agoAdd new function lm-maintainers (bug#48592)
Jonas Bernoulli [Mon, 3 May 2021 21:22:47 +0000 (23:22 +0200)]
Add new function lm-maintainers (bug#48592)

* doc/lispref/tips.texi (Library Headers): Improve wording.
* lisp/emacs-lisp/lisp-mnt.el (lm-maintainers): New function.
(lm-maintainer): Make obsolete in favor of lm-maintainer.
(lm-verify): Use lm-maintainers.
(lm-report-bug): Use lm-maintainers.

3 years ago* lisp/emacs-lisp/lisp-mnt.el (lm-crack-address): Right-trim name.
Jonas Bernoulli [Sat, 22 May 2021 19:58:53 +0000 (21:58 +0200)]
* lisp/emacs-lisp/lisp-mnt.el (lm-crack-address): Right-trim name.

The addresses might be aligned in which case we have to trim the
extra whitespace at the end of the names.

3 years agoAdjust docstring of lisp-mode (bug#49278)
João Távora [Wed, 30 Jun 2021 16:00:13 +0000 (17:00 +0100)]
Adjust docstring of lisp-mode (bug#49278)

* lisp/emacs-lisp/lisp-mode.el (lisp-mode): Mention that this mode is
primarily for Common Lisp.

3 years agoAdd new user option to transform kill ring contents
Lars Ingebrigtsen [Wed, 30 Jun 2021 13:55:50 +0000 (15:55 +0200)]
Add new user option to transform kill ring contents

* doc/emacs/killing.texi (Kill Options): Document it.
* lisp/simple.el (kill-new): Use it.
(kill-transform-function): New user option (bug#29013).

3 years agoMake the minor mode doc strings say that they're minor modes
Lars Ingebrigtsen [Wed, 30 Jun 2021 13:31:26 +0000 (15:31 +0200)]
Make the minor mode doc strings say that they're minor modes

* lisp/emacs-lisp/easy-mmode.el (easy-mmode--arg-docstring):
Mention that this is a minor mode (bug#20462).

3 years agoFrom .desktop files, reuse a frame or start a new Emacs as required
Peter Oliver [Wed, 30 Jun 2021 13:11:21 +0000 (15:11 +0200)]
From .desktop files, reuse a frame or start a new Emacs as required

* doc/emacs/misc.texi: (Using Emacs as a Server) Explain
emacsclient.desktop.
* etc/NEWS: (Emacs Server): Explain emacsclient.desktop.
* emacs-mail.desktop, etc/emacsclient.desktop: Automatically try to
reuse an existing frame, open a new frame, or start a new Emacs
daemon.  Add actions for specific behaviours (bug#49195).

3 years agoRevert more of a partially reverted emacsclient.desktop patch
Peter Oliver [Wed, 30 Jun 2021 13:01:46 +0000 (15:01 +0200)]
Revert more of a partially reverted emacsclient.desktop patch

* etc/emacsclient.desktop: Undo setting of StartupWMClass=Emacsd, since
this relies on a change to etc/emacs.service which was also undone.  See
bug#37847 for more explanation (bug#49259).

3 years agoFix problem when creating an .authinfo entry with an existing machine name
Lars Ingebrigtsen [Wed, 30 Jun 2021 12:27:49 +0000 (14:27 +0200)]
Fix problem when creating an .authinfo entry with an existing machine name

* lisp/auth-source.el (auth-source-netrc-create): Don't return the
incorrect data if there's a matching host entry but the wrong user
name (bug#49289).

3 years agoAdd new function file-name-with-extension
Colin Woodbury [Wed, 30 Jun 2021 12:07:29 +0000 (14:07 +0200)]
Add new function file-name-with-extension

* doc/lispref/files.texi (File Name Components): Document it.
* lisp/emacs-lisp/shortdoc.el (file-name): Ditto.

* lisp/files.el (file-name-with-extension): New function.

3 years agoFix NS port built with gcc
Alan Third [Tue, 29 Jun 2021 21:17:20 +0000 (22:17 +0100)]
Fix NS port built with gcc

* src/nsterm.m (ns_relocate): The NSArray shorthand notation doesn't
work in GCC.

3 years ago* lisp/repeat.el (describe-repeat): New command (bug#49265).
Juri Linkov [Tue, 29 Jun 2021 20:36:16 +0000 (23:36 +0300)]
* lisp/repeat.el (describe-repeat): New command (bug#49265).

3 years agoSync with Tramp 2.5.1
Michael Albinus [Tue, 29 Jun 2021 15:15:55 +0000 (17:15 +0200)]
Sync with Tramp 2.5.1

* doc/misc/trampver.texi:
* lisp/net/trampver.el: Change version to "2.5.1".

* lisp/tramp.el (tramp-handle-write-region):
* lisp/tramp-adb.el (tramp-adb-handle-write-region):
* lisp/tramp-sh.el (tramp-sh-handle-write-region): Call local
`write-region' directly.

* test/lisp/net/tramp-tests.el (tramp--test-utf8): Adapt test for
MS Windows.

3 years agoIn read_minibuf_unwind don't try to select dead window (Bug#49248)
Martin Rudalics [Tue, 29 Jun 2021 07:21:22 +0000 (09:21 +0200)]
In read_minibuf_unwind don't try to select dead window (Bug#49248)

* src/minibuf.c (read_minibuf_unwind): Don't try to select dead
window (Bug#49248).

3 years agoMerge from origin/emacs-27
Glenn Morris [Mon, 28 Jun 2021 14:50:45 +0000 (07:50 -0700)]
Merge from origin/emacs-27

ef5f3d5ee7 (origin/emacs-27) C++ Mode: Handle new keywords static_cas...

3 years ago* lisp/textmodes/ispell.el: Fix finding dictionaries for Enchant.
Reuben Thomas [Sun, 27 Jun 2021 21:08:40 +0000 (22:08 +0100)]
* lisp/textmodes/ispell.el: Fix finding dictionaries for Enchant.

(ispell-find-enchant-dictionaries):

I originally copied this code from the equivalent code for
Aspell. Unfortunately it was wrong for the case of Enchant: it should
find only dictionaries that Enchant knows about, and not merge in
`ispell-dictionary-base-alist' or add a default element, as these
are dealt with in `ispell-set-spellchecker-params'.

This caused a bug where the correct `-d' argument would not be added
to the invocation of enchant, leading to the process not being
correctly started.

3 years ago* lisp/textmodes/ispell.el: Check process is live before interacting.
Reuben Thomas [Sun, 27 Jun 2021 21:07:06 +0000 (22:07 +0100)]
* lisp/textmodes/ispell.el: Check process is live before interacting.

Check that `ispell-process' is live before trying to read from or
write to it. This avoids a hang if the process has died.

3 years ago; * Makefile.in: Fix out-of-tree builds on NS
Mattias Engdegård [Mon, 28 Jun 2021 09:44:07 +0000 (11:44 +0200)]
; * Makefile.in: Fix out-of-tree builds on NS

3 years agoFix bug#49229 in shell.el
Michael Albinus [Mon, 28 Jun 2021 06:14:10 +0000 (08:14 +0200)]
Fix bug#49229 in shell.el

* lisp/shell.el (shell): Ensure, that a remote shell is remote.
(Bug#49229)

3 years ago* lisp/files.el (hack-one-local-variable): Allow `add-function` in `eval:`
Stefan Monnier [Sun, 27 Jun 2021 22:01:13 +0000 (18:01 -0400)]
* lisp/files.el (hack-one-local-variable): Allow `add-function` in `eval:`

Fixes: bug#49163
3 years ago* lisp/textmodes/flyspell.el: Fix bug#49104
Stefan Monnier [Sun, 27 Jun 2021 19:06:25 +0000 (15:06 -0400)]
* lisp/textmodes/flyspell.el: Fix bug#49104

(flyspell--prev-meta-tab-binding): Delete var.
(flyspell-prog-mode): Don't set it.
(flyspell-auto-correct-word): Lookup the "next" command dynamically.

3 years agoC++ Mode: Handle new keywords static_cast, etc., wrt angle brackets
Alan Mackenzie [Sun, 27 Jun 2021 12:59:18 +0000 (12:59 +0000)]
C++ Mode: Handle new keywords static_cast, etc., wrt angle brackets

* lisp/progmodes/cc-langs.el (c-<>-arglist-kwds): Add const_cast,
dynamic_cast, reinterpret_cast and static_cast into this lang const.

* lisp/progmodes/cc-engine.el (c-clear-<-pair-props, c-clear->-pair-props)
(c-clear-<-pair-props-if-match-after, c-clear->-pair-props-if-match-before)
(c-forward-<>-arglist-recur):
Invalidate caches with c-trunctate-lit-pos-cache.
(c-forward-<>-arglist-recur): If in a matching <...> expression, the < has a
syntax-table property, but the > not, remove that property.

3 years ago* lisp/minibuffer.el (completion-in-region--single-word): Simplify
Stefan Monnier [Sat, 26 Jun 2021 16:29:52 +0000 (12:29 -0400)]
* lisp/minibuffer.el (completion-in-region--single-word): Simplify

Remove redundant args `collection` and `predicate` which were always
equal to `minibuffer-completion-table` and
`minibuffer-completion-predicate` anyway.

(minibuffer-complete-word):
* lisp/emacs-lisp/crm.el (crm-complete-word): Simplify accordingly.

3 years ago* lisp/minibuffer.el (minibuffer--completion-prompt-end): Rename
Stefan Monnier [Sat, 26 Jun 2021 16:22:22 +0000 (12:22 -0400)]
* lisp/minibuffer.el (minibuffer--completion-prompt-end): Rename

3 years ago* lisp/emacs-lisp/cl-macs.el: Fix test regression
Stefan Monnier [Sat, 26 Jun 2021 16:20:11 +0000 (12:20 -0400)]
* lisp/emacs-lisp/cl-macs.el: Fix test regression

(cl--alist-to-plist): New function.
(cl-struct-slot-info): Use it.

3 years agoFix Tramp bug#49229
Michael Albinus [Sat, 26 Jun 2021 14:26:02 +0000 (16:26 +0200)]
Fix Tramp bug#49229

* lisp/net/tramp.el (tramp-file-name-handler): Drop possible
volume letter when `expand-file-name' is called with a local
absolute file name as first argument.  (Bug#49229)

3 years ago* lisp/minibuffer.el (completion--prompt-end): New function (bug#30668)
Stefan Monnier [Sat, 26 Jun 2021 13:38:21 +0000 (09:38 -0400)]
* lisp/minibuffer.el (completion--prompt-end): New function (bug#30668)

(minibuffer-complete, minibuffer-force-complete-and-exit)
(minibuffer-force-complete, minibuffer-complete-and-exit)
(minibuffer-complete-word, minibuffer-completion-help): Use it.

3 years agoFix NS self-contained build configuration
Alan Third [Sat, 26 Jun 2021 11:46:43 +0000 (12:46 +0100)]
Fix NS self-contained build configuration

* configure.ac: When rebuilding epaths.h for NS check that we're
actually doing an NS build first.

3 years ago; * src/lread.c (load_path_default): Remove unused variable.
Eli Zaretskii [Sat, 26 Jun 2021 09:46:39 +0000 (12:46 +0300)]
; * src/lread.c (load_path_default): Remove unused variable.

3 years agoFix NS native compilation builds
Alan Third [Wed, 16 Jun 2021 20:28:10 +0000 (21:28 +0100)]
Fix NS native compilation builds

* Makefile.in (ns_applibexecdir):
(ns_applibdir):
(ns_appdir): New variables.
(.PHONY): Include new rule.
(epaths-force-ns-self-contained): Remove the app bundle directory from
all paths.
* configure.ac (NS_SELF_CONTAINED): Set the default site-lisp
directory instead of hard-coding it in the ObjC code, and use the new
epaths generating make rule.
* src/callproc.c (init_callproc_1):
(init_callproc): Remove all the NS specific code as the special cases
are now handled by decode_env_path.
* src/emacs.c (load_pdump):
(decode_env_path): Use ns_relocate to find the correct directory after
relocation.
* src/lread.c (load_path_default): Remove all the NS specific code as
the special cases are now handled by decode_env_path.
* src/nsterm.h: Update function definitions.
* src/nsterm.m (ns_etc_directory):
(ns_exec_path):
(ns_load_path): Remove functions that are no longer needed.
(ns_relocate): New function to calculate paths within the NS app
bundle.
* nextstep/Makefile.in (ns_applibexecdir): New variable, and update
anything relying on the libexec location.

3 years agoSmall improvements to handling of IMAP mark search
Eric Abrahamsen [Sat, 26 Jun 2021 03:42:16 +0000 (20:42 -0700)]
Small improvements to handling of IMAP mark search

* lisp/gnus/gnus-search.el (gnus-search-imap-handle-flag): Use a
KEYWORD search for any mark starting with a "$", so
"mark:$hasattachment" goes through as "KEYWORD $hasattachment".

3 years ago; * etc/NEWS: Re-arrange two items.
Stefan Kangas [Fri, 25 Jun 2021 20:09:06 +0000 (22:09 +0200)]
; * etc/NEWS: Re-arrange two items.

3 years agoPrint newlines as \n instead of \12 in ERT results
Mattias Engdegård [Fri, 25 Jun 2021 17:43:04 +0000 (19:43 +0200)]
Print newlines as \n instead of \12 in ERT results

This makes test errors unquestionably more readable.  The change also
makes FF print as \f; other controls still use octal escapes.

* lisp/emacs-lisp/ert.el (ert--pp-with-indentation-and-newline):
Run `pp` with `pp-escape-newlines` set to `t`.

3 years ago; * etc/NEWS: Fix typo.
Stefan Kangas [Fri, 25 Jun 2021 16:31:26 +0000 (18:31 +0200)]
; * etc/NEWS: Fix typo.

3 years agoMake (find-face-definition 'default) work more reliably
Lars Ingebrigtsen [Fri, 25 Jun 2021 15:16:28 +0000 (17:16 +0200)]
Make (find-face-definition 'default) work more reliably

* lisp/emacs-lisp/find-func.el (find-function--defface): New
function (bug#30230).
(find-function-regexp-alist): Use it to skip past definitions
inside comments and strings.

3 years agoFix the name of the sorted minor mode map after previous change
Lars Ingebrigtsen [Fri, 25 Jun 2021 13:58:03 +0000 (15:58 +0200)]
Fix the name of the sorted minor mode map after previous change

* lisp/bindings.el (mode-line-major-mode-keymap): Change the name
of the minor mode menu items.

3 years agoFix race conditions between Lisp threads in GTK builds
Eli Zaretskii [Fri, 25 Jun 2021 13:52:48 +0000 (16:52 +0300)]
Fix race conditions between Lisp threads in GTK builds

* src/xgselect.c (release_select_lock, acquire_select_lock)
[GCC >= 4.7.0]: Use '__atomic' builtins to prevent races between
threads in accessing 'threads_holding_glib_lock'.  Reported by
<dick.r.chiang@gmail.com>.  (Bug#36609)

3 years agoFix Tramp bug#49178
Michael Albinus [Fri, 25 Jun 2021 12:18:28 +0000 (14:18 +0200)]
Fix Tramp bug#49178

* lisp/net/tramp.el (tramp-handle-find-backup-file-name)
(tramp-handle-make-auto-save-file-name): Adapt checks.  (Bug#49178)

3 years ago* lisp/tab-bar.el (tab-bar--define-keys): Fix global-mode-string (bug#49215)
Juri Linkov [Fri, 25 Jun 2021 09:38:27 +0000 (12:38 +0300)]
* lisp/tab-bar.el (tab-bar--define-keys): Fix global-mode-string (bug#49215)

3 years agoPrevent Org mode from mistakenly changing Calendar keymap
Stephen Berman [Fri, 25 Jun 2021 09:11:43 +0000 (11:11 +0200)]
Prevent Org mode from mistakenly changing Calendar keymap

* lisp/org/org-compat.el (org--setup-calendar-bindings): Fix logic
in test of 'org-agenda-diary-file' (bug#48199).

3 years agoFix syntax-category of some punctuation characters
Eli Zaretskii [Fri, 25 Jun 2021 05:36:27 +0000 (08:36 +0300)]
Fix syntax-category of some punctuation characters

* lisp/textmodes/text-mode.el (text-mode-syntax-table): Don't
modify the global syntax-table just because we load text-mode.el.
This happens at loadup time, and then affects the default syntax
in all modes, not just in text-mode and its derivatives.
(Bug#49214)

3 years ago* lisp/bindings.el (bindings--sort-menu-keymap): Add "menu" in its name
Stefan Monnier [Thu, 24 Jun 2021 21:34:57 +0000 (17:34 -0400)]
* lisp/bindings.el (bindings--sort-menu-keymap): Add "menu" in its name

(bindings--menu-item-string): Use `pcase`.

3 years ago* lisp/emacs-lisp/cl-preloaded.el: Fix the format of props in slot-descs
Stefan Monnier [Thu, 24 Jun 2021 21:32:20 +0000 (17:32 -0400)]
* lisp/emacs-lisp/cl-preloaded.el: Fix the format of props in slot-descs

(cl--plist-remove): Remove.
(cl--plist-to-alist): New function.
(cl-struct-define): Use it to convert slots's properties to the
format expected by `cl-slot-descriptor`.

* lisp/emacs-lisp/cl-extra.el (cl--describe-class-slots): Revert last
changes, not needed any more.

3 years agoDon't call ERT explainer on error
Mattias Engdegård [Thu, 24 Jun 2021 18:48:41 +0000 (20:48 +0200)]
Don't call ERT explainer on error

* lisp/emacs-lisp/ert.el (ert--expand-should-1): If the predicate form
signals an error, don't call an explainer because the arguments passed
(the error and error argument, respectively) do not make any sense to
the explainer at all.

3 years agoAttempt to make defclass documentation more legible
Lars Ingebrigtsen [Thu, 24 Jun 2021 18:24:43 +0000 (20:24 +0200)]
Attempt to make defclass documentation more legible

* lisp/emacs-lisp/cl-extra.el (cl--print-table): Attempt to make
defclass documentation more readable (bug#30998).
(cl--describe-class-slots): Ditto.

3 years agoFix printing of defclass documentation slots again
Lars Ingebrigtsen [Thu, 24 Jun 2021 18:13:08 +0000 (20:13 +0200)]
Fix printing of defclass documentation slots again

* lisp/emacs-lisp/cl-extra.el (cl--describe-class-slots): Fix
printing defclass slots, and retain printing of defstruct slots
(bug#30998 and bug#46662).

3 years agoAllow `C-u M-x dig' to ask for a query type
Lars Ingebrigtsen [Thu, 24 Jun 2021 16:51:38 +0000 (18:51 +0200)]
Allow `C-u M-x dig' to ask for a query type

* lisp/net/dig.el (dig): Allow prompting for a query type
(bug#31810).

3 years agoAdd SASL authentication to rcirc
Alex McGrath [Thu, 24 Jun 2021 16:45:08 +0000 (18:45 +0200)]
Add SASL authentication to rcirc

* lisp/net/rcirc.el (rcirc-handler-AUTHENTICATE): New function
(bug#48601).
(rcirc-authenticate):
(rcirc-connect): Support sasl.
(rcirc-get-server-password, rcirc-get-server-method): New functions.
(rcirc-authinfo): Document it.

3 years agoFix highlighting in cperl-mode for "for /regex/"
E. Choroba [Thu, 24 Jun 2021 16:15:07 +0000 (18:15 +0200)]
Fix highlighting in cperl-mode for "for /regex/"

* lisp/progmodes/cperl-mode.el (cperl-find-pods-heres): Fix
highlighting of regexp in "print for /./;" (bug#49192).

3 years agoIgnore file-missing errors during diff-refined font-locking
Jim Porter [Thu, 24 Jun 2021 16:07:25 +0000 (18:07 +0200)]
Ignore file-missing errors during diff-refined font-locking

* lisp/vc/diff-mode.el (diff--font-lock-refined): Ignore file-missing
errors (bug#49197).

3 years agoClarify the help in the package buffers
Lars Ingebrigtsen [Thu, 24 Jun 2021 14:59:42 +0000 (16:59 +0200)]
Clarify the help in the package buffers

* lisp/emacs-lisp/package.el (package--quick-help-keys): Clarify
marking help (bug#40457).

3 years agoSort the items in 'mode-line-mode-menu' before displaying the menu
Jim Porter [Thu, 24 Jun 2021 14:50:51 +0000 (16:50 +0200)]
Sort the items in 'mode-line-mode-menu' before displaying the menu

* lisp/bindings.el (bindings--menu-item-string, bindings--sort-keymap):
New functions.
(mode-line-major-mode-keymap, mode-line-minor-mode-keymap):
Sort 'mode-line-mode-menu'.

3 years ago* lisp/printing.el (pr-global-menubar): Fix duplicate menu problem.
Saroj Thirumalai [Wed, 23 Jun 2021 20:17:03 +0000 (23:17 +0300)]
* lisp/printing.el (pr-global-menubar): Fix duplicate menu problem.

In Emacs 27.1 Print menu items were moved to a submenu of the File menu.
The Printing package (lisp/printing.el) replaces the Print menu (via the
function: pr-global-menubar).  The latter needs to be updated to reflect the
changes; otherwise, a second Print (sub)menu is created at the end of the
File menu.

Copyright-paperwork-exempt: yes

3 years agoFix defvar->defcustom conversion in ethio-util.el
Mauro Aranda [Wed, 23 Jun 2021 15:08:04 +0000 (12:08 -0300)]
Fix defvar->defcustom conversion in ethio-util.el

* lisp/language/ethio-util.el (ethio-primary-language)
(ethio-secondary-language): Don't quote the const.
(ethio-use-three-dot-question, ethio-quote-vowel-always)
(ethio-W-sixth-always, ethio-numeric-reduction)
(ethio-java-save-lowercase): Really make them defcustom.

3 years agoMake ethio-* variables into user options
Lars Ingebrigtsen [Wed, 23 Jun 2021 14:28:32 +0000 (16:28 +0200)]
Make ethio-* variables into user options

* lisp/language/ethio-util.el (ethiopic): New group.
(ethio-primary-language, ethio-secondary-language)
(ethio-use-colon-for-colon, ethio-use-three-dot-question)
(ethio-quote-vowel-always, ethio-W-sixth-always)
(ethio-numeric-reduction, ethio-java-save-lowercase): Make into
user options (bug#33024).

3 years agoRevert "Sort the items in 'mode-line-mode-menu' before displaying the menu"
Lars Ingebrigtsen [Wed, 23 Jun 2021 14:10:25 +0000 (16:10 +0200)]
Revert "Sort the items in 'mode-line-mode-menu' before displaying the menu"

This reverts commit d4d6d8f335165e2bda8942b4acd45e5bab613b70.

This approach doesn't work on certain types of keymaps, so it should be implemented in a different way.

3 years agoSort the items in 'mode-line-mode-menu' before displaying the menu
Jim Porter [Wed, 23 Jun 2021 13:02:52 +0000 (15:02 +0200)]
Sort the items in 'mode-line-mode-menu' before displaying the menu

* lisp/bindings.el (bindings--menu-item-string, bindings--sort-keymap):
New functions.
(mode-line-major-mode-keymap, mode-line-minor-mode-keymap):
Sort 'mode-line-mode-menu'.

3 years agoClean up code in `message-replace-header'
dickmao [Wed, 23 Jun 2021 12:50:05 +0000 (14:50 +0200)]
Clean up code in `message-replace-header'

* lisp/gnus/message.el (message-replace-header): Elide redundancy
(bug#49180).

3 years agoFix message-replace-header after recent change
dickmao [Tue, 22 Jun 2021 22:23:48 +0000 (00:23 +0200)]
Fix message-replace-header after recent change

* lisp/gnus/message.el (message-replace-header): Restore else
branch removed by mistake in 989de3b824 (bug#49179).

3 years agoGive feedback to the user in dired-do-find-regexp
Lars Ingebrigtsen [Tue, 22 Jun 2021 15:10:19 +0000 (17:10 +0200)]
Give feedback to the user in dired-do-find-regexp

* lisp/dired-aux.el (dired-do-find-regexp): Give some feedback to
the user (bug#35352).

3 years agoMake minor mode docstrings say what the mode "variable" is
Lars Ingebrigtsen [Tue, 22 Jun 2021 14:03:37 +0000 (16:03 +0200)]
Make minor mode docstrings say what the mode "variable" is

* lisp/emacs-lisp/easy-mmode.el (easy-mmode--arg-docstring): Add
the mode variable (bug#36500).
(easy-mmode--mode-docstring):
(define-minor-mode): Pass in the getter.

3 years agoUse named face for apropos-button
Protesilaos Stavrou [Tue, 22 Jun 2021 13:33:26 +0000 (15:33 +0200)]
Use named face for apropos-button

* etc/NEWS: Document new face.
* lisp/apropos.el (apropos-button): Define new face.
(apropos-face): Specify face instead of hardcoding
attributes (bug#49162).

3 years agoIf the daemon’s TTY is our only frame, create a new frame
Peter Oliver [Tue, 22 Jun 2021 13:21:33 +0000 (15:21 +0200)]
If the daemon’s TTY is our only frame, create a new frame

* server.el (server-process-filter): If there won't be a current frame
to use, fall back to trying to create a new one (bug#11033).

3 years agoAdvertise support for Startup Notification when built with GTK
Peter Oliver [Tue, 22 Jun 2021 13:17:28 +0000 (15:17 +0200)]
Advertise support for Startup Notification when built with GTK

* etc/emacsclient.desktop, etc/emacsclient.desktop: Specify
StartupNotify=true.
* configure.ac (USE_STARTUP_NOTIFICATION): New variable, yes iff
HAVE_GTK.
* Makefile.in (install-etc): Remove StartupNotify=true from
etc/*.desktop unless USE_STARTUP_NOTIFICATION (bug#48783).

3 years agoMake tex-compile-commands heed tex-start-options
Utkarsh Singh [Tue, 22 Jun 2021 13:07:59 +0000 (15:07 +0200)]
Make tex-compile-commands heed tex-start-options

* lisp/textmodes/tex-mode.el (tex-compile-commands): Respect
`tex-start-options' (bug#49018).

3 years agoFix "make -j install"
Eli Zaretskii [Tue, 22 Jun 2021 13:05:35 +0000 (16:05 +0300)]
Fix "make -j install"

* Makefile.in (install-eln): Depend on 'lisp', so that people
could say "make -j install" without a separate "make" step.
(Bug#49099)

3 years agotime-stamp: add principled, expressive %z
Stephen Gildea [Tue, 22 Jun 2021 04:28:20 +0000 (21:28 -0700)]
time-stamp: add principled, expressive %z

* lisp/time-stamp.el (time-stamp-formatz-from-parsed-options): New
function for time zone offset formatting ("%z" variants).

* test/lisp/time-stamp-tests.el (formatz*): New unit tests to cover
the new implementation of %5z.

3 years agoFix shortdoc-add-function section creation
Basil L. Contovounesios [Mon, 21 Jun 2021 15:00:39 +0000 (16:00 +0100)]
Fix shortdoc-add-function section creation

* lisp/emacs-lisp/shortdoc.el (shortdoc-add-function): Use nconc to
actually append a new section to the list of groups while avoiding a
previous OBOE.  Push a new group to the front of shortdoc--groups
without copying it, just like define-short-documentation-group does.
(buffer): Fix copypasta in unlock-buffer example.

* test/lisp/emacs-lisp/shortdoc-tests.el (shortdoc-examples): Also
check that :no-value forms demonstrate the right function.

* doc/lispref/help.texi (Documentation Groups): Clarify that @dots
in the define-short-documentation-group arglist refer to whole
key-value pairs.  Fix typo in :eg-result-string description.

3 years agoNEWS for tool bar "X" in *Help* buffers change (bug#49139)
Lars Ingebrigtsen [Mon, 21 Jun 2021 13:16:50 +0000 (15:16 +0200)]
NEWS for tool bar "X" in *Help* buffers change (bug#49139)

3 years agoFix prompting for large files when loading literally
Lars Ingebrigtsen [Mon, 21 Jun 2021 12:58:15 +0000 (14:58 +0200)]
Fix prompting for large files when loading literally

* lisp/files.el (find-file-noselect): Don't include "literally" in
the "large file" prompt if we're gonna load literally anyway
(bug#49144).

3 years agoMake find-file-literally ignore local variables again
Lars Ingebrigtsen [Mon, 21 Jun 2021 12:50:59 +0000 (14:50 +0200)]
Make find-file-literally ignore local variables again

* lisp/files.el (find-file-noselect-1): Re-inhibit local variables
when loading a file literally (bug#49143).  This was broken by
5bedbe6b1d.

3 years agoRefactor gnus-article-sort-by-*
Alex Bochannek [Mon, 21 Jun 2021 12:35:48 +0000 (14:35 +0200)]
Refactor gnus-article-sort-by-*

* lisp/gnus/gnus-sum.el (gnus-article-sort-extract-extra): New
function (bug#49081).
(gnus-article-sort-by-recipient): Use it.
(gnus-article-sort-by-newsgroups): Ditto.

3 years agoFurther fixes for bound-and-true-p doc string
Lars Ingebrigtsen [Sun, 20 Jun 2021 11:50:25 +0000 (13:50 +0200)]
Further fixes for bound-and-true-p doc string

* lisp/bindings.el (bound-and-true-p): Improve doc string.

3 years ago* Do not attempt to write .elc files when not necessary (bug#49118)
Andrea Corallo [Mon, 21 Jun 2021 09:44:58 +0000 (11:44 +0200)]
* Do not attempt to write .elc files when not necessary (bug#49118)

* lisp/emacs-lisp/bytecomp.el (byte-compile-file): Do not attempt to
write .elc files when not necessary.

3 years agoFix GNUstep menu update crashes
Alan Third [Thu, 10 Jun 2021 22:52:19 +0000 (23:52 +0100)]
Fix GNUstep menu update crashes

* src/nsmenu.m (ns_update_menubar): close the submenus before modifying them.
([EmacsMenu close]): Make sure to close all submenus.

3 years agoFix GNUstep build warnings
Alan Third [Thu, 3 Jun 2021 22:15:17 +0000 (23:15 +0100)]
Fix GNUstep build warnings

* src/nsterm.h ([EmacsWindow orderedIndex]):
* src/nsterm.m ([EmacsWindow orderedIndex]): Implement orderedIndex
for use under GNUstep.
* src/nsmenu.m (free_frame_menubar):
(ns_update_menubar):
([EmacsMenu addSubmenuWithTitle:]):
([EmacsMenu addItemWithWidgetValue:attributes:]): Cast return values
to correct types.
([EmacsMenu fillWithWidgetValue:]): Move variable definition inside
relevant #ifdef block.
([EmacsMenu menuWillOpen:]):
([EmacsMenu menuDidClose:]):
([EmacsMenu confinementRectForMenu:onScreen:]):
([EmacsMenu menu:willHighlightItem:]): New functions to silence build
warnings.
* src/nsfont.m (nsfont_open): Remove pointless fabs call.

3 years agoAdapt tests in tramp-archive-tests.el
Michael Albinus [Sun, 20 Jun 2021 15:50:52 +0000 (17:50 +0200)]
Adapt tests in tramp-archive-tests.el

* test/lisp/net/tramp-archive-tests.el
(tramp-archive-test05-expand-file-name)
(tramp-archive-test06-directory-file-name): Adapt tests.

3 years ago; Fix typo in NEWS
Robert Pluim [Sun, 20 Jun 2021 15:11:44 +0000 (17:11 +0200)]
; Fix typo in NEWS

3 years agoAdd input methods for Lakota
Grant Shangreaux [Sun, 23 May 2021 16:28:25 +0000 (11:28 -0500)]
Add input methods for Lakota

The White Hat and Suggested Lakota Orthography are represented here
by three different input modes: A prefix and postfix mode for the SLO,
and a postfix mode for the White Hat orthography.
* lisp/leim/quail/latin-post.el (lakota-slo-postfix)
(lakota-white-hat-postfix):
* lisp/leim/quail/latin-pre.el (lakota-slo-prefix): New input methods.
* etc/HELLO: Call out the additions.

3 years ago; * lisp/help-mode.el (help-customize): Doc fix. (Bug#36767)
Eli Zaretskii [Sun, 20 Jun 2021 07:01:25 +0000 (10:01 +0300)]
; * lisp/help-mode.el (help-customize): Doc fix.  (Bug#36767)

3 years agoAdd new convenience command for *Help*
Juri Linkov [Sat, 19 Jun 2021 23:14:29 +0000 (02:14 +0300)]
Add new convenience command for *Help*

* doc/emacs/help.texi (Help Mode): Document it (bug#36767).

* lisp/help-mode.el (help-mode-map): Add 'c'.
(help-mode-menu): Add help-customize.
(help-customize): New command.

3 years agoFix error in tramp-archive.el
Michael Albinus [Sat, 19 Jun 2021 16:11:50 +0000 (18:11 +0200)]
Fix error in tramp-archive.el

* lisp/net/tramp-archive.el (tramp-archive-file-name-handler):
Archive must exist.  (Bug#49030, Bug#49043)

* test/lisp/net/tramp-archive-tests.el
(tramp-archive-test06-directory-file-name): Tag it :unstable temporarily.

3 years agoMerge from origin/emacs-27
Glenn Morris [Sat, 19 Jun 2021 15:17:47 +0000 (08:17 -0700)]
Merge from origin/emacs-27

7722b510aa (origin/emacs-27) Another improvement in documentation of ...
8d5c70d73a Improve documentation of profiler
0ffef0b46b Document 'ispell-program-name'
7be610f911 Fix documentation of 'face-extend-p'

# Conflicts:
# doc/lispref/debugging.texi