1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-25 05:52:42 -08:00
Commit graph

149304 commits

Author SHA1 Message Date
Glenn Morris
6a0db9a2db ; Auto-commit of loaddefs files. 2021-07-01 06:28:40 -07:00
Glenn Morris
d70dc6946a ; Auto-commit of loaddefs files. 2021-07-01 06:11:38 -07:00
Mattias Engdegård
dc0ce5ff11 Update describe-prefix-binding manual text
* doc/emacs/help.texi (Misc Help): `ESC ?` isn't unbound any more.
2021-07-01 14:29:25 +02:00
Michael Albinus
527bab054f 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.
2021-07-01 13:43:44 +02:00
Peter Oliver
1a7c8f846e Fix copy/paste error in emacsclient.desktop
* etc/emacsclient.desktop: new-instance should read new-window.
2021-07-01 12:46:10 +02:00
Eli Zaretskii
d898d3c73a ; * doc/emacs/back.texi: Fix a typo. 2021-07-01 11:31:05 +03:00
Eli Zaretskii
de52dbd4ad Update doc/emacs/ for a new printing of the Emacs Manual book
* doc/emacs/book-spine.texi: New file: the printed book spine.
* doc/emacs/back.texi: New file: the backcover text for the
printed book.
* doc/emacs/emacs.texi: Update ISBN.
2021-07-01 11:28:05 +03:00
Michael Albinus
fc3c00413a 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.
2021-07-01 10:19:48 +02:00
Jonas Bernoulli
8ebd8e1fea 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.
2021-06-30 22:17:01 +02:00
Jonas Bernoulli
ecec94dcf0 * lisp/comint.el: Prefix headings with enough semicolons.
Outline headings must begin with three or more semicolons.
2021-06-30 22:16:17 +02:00
Jonas Bernoulli
1a00bf16a7 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.
2021-06-30 21:43:02 +02:00
Jonas Bernoulli
1b1c4ef3cb 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.
2021-06-30 21:40:14 +02:00
Jonas Bernoulli
4a3fc7179b ; Mention the previous change in NEWS 2021-06-30 21:40:07 +02:00
Jonas Bernoulli
3cfc553202 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.
2021-06-30 19:53:48 +02:00
Jonas Bernoulli
0e3668b233 * 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.
2021-06-30 19:50:54 +02:00
João Távora
1439e9bfad Adjust docstring of lisp-mode (bug#49278)
* lisp/emacs-lisp/lisp-mode.el (lisp-mode): Mention that this mode is
primarily for Common Lisp.
2021-06-30 17:00:20 +01:00
Lars Ingebrigtsen
bb56f6c768 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).
2021-06-30 15:55:50 +02:00
Lars Ingebrigtsen
46a66c6248 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).
2021-06-30 15:31:26 +02:00
Peter Oliver
cbf220bc31 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).
2021-06-30 15:11:21 +02:00
Peter Oliver
f355f32e69 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).
2021-06-30 15:01:46 +02:00
Lars Ingebrigtsen
81622484bc 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).
2021-06-30 14:27:49 +02:00
Colin Woodbury
4f2765f6f1 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.
2021-06-30 14:07:29 +02:00
Alan Third
1dba0ca278 Fix NS port built with gcc
* src/nsterm.m (ns_relocate): The NSArray shorthand notation doesn't
work in GCC.
2021-06-29 22:18:33 +01:00
Juri Linkov
94a2ef436b * lisp/repeat.el (describe-repeat): New command (bug#49265). 2021-06-29 23:36:16 +03:00
Michael Albinus
cd339e85a6 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.
2021-06-29 17:15:55 +02:00
Alex McGrath
e3f456255b Fix SASL joining channels after auth 2021-06-29 17:07:00 +02:00
Alex McGrath
a85d27278e Send CAP END after authentication has been successful 2021-06-29 13:41:28 +02:00
Martin Rudalics
6b4043833c 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).
2021-06-29 09:21:22 +02:00
Alex McGrath
df6efb1c8b Fix SASL on rcirc-update 2021-06-28 21:41:52 +02:00
Glenn Morris
433e157899 Merge from origin/emacs-27
ef5f3d5ee7 (origin/emacs-27) C++ Mode: Handle new keywords static_cas...
2021-06-28 07:50:45 -07:00
Reuben Thomas
7c93009d11 * 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.
2021-06-28 13:39:50 +01:00
Reuben Thomas
881e75873d * 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.
2021-06-28 13:39:50 +01:00
Mattias Engdegård
e9de80f028 ; * Makefile.in: Fix out-of-tree builds on NS 2021-06-28 11:44:07 +02:00
Michael Albinus
de265a0c6e Fix bug#49229 in shell.el
* lisp/shell.el (shell): Ensure, that a remote shell is remote.
(Bug#49229)
2021-06-28 08:14:10 +02:00
Stefan Monnier
9060fbd3b5 * lisp/files.el (hack-one-local-variable): Allow add-function in eval:
Fixes: bug#49163
2021-06-27 18:01:13 -04:00
Stefan Monnier
fe81c04489 * 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.
2021-06-27 15:06:25 -04:00
Alan Mackenzie
ef5f3d5ee7 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.
2021-06-27 12:59:18 +00:00
Stefan Monnier
b8f9e58ef7 * 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.
2021-06-26 12:29:52 -04:00
Stefan Monnier
db3767e8db * lisp/minibuffer.el (minibuffer--completion-prompt-end): Rename 2021-06-26 12:22:22 -04:00
Stefan Monnier
73663d14cf * lisp/emacs-lisp/cl-macs.el: Fix test regression
(cl--alist-to-plist): New function.
(cl-struct-slot-info): Use it.
2021-06-26 12:20:25 -04:00
Michael Albinus
d456120189 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)
2021-06-26 16:26:02 +02:00
Stefan Monnier
1ed811a9ed * 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.
2021-06-26 09:38:21 -04:00
Alan Third
ecf7e8b20e Fix NS self-contained build configuration
* configure.ac: When rebuilding epaths.h for NS check that we're
actually doing an NS build first.
2021-06-26 12:48:15 +01:00
Eli Zaretskii
a0f0609394 ; * src/lread.c (load_path_default): Remove unused variable. 2021-06-26 12:46:39 +03:00
Alan Third
5dd2d50f3d 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.
2021-06-26 10:34:59 +01:00
Eric Abrahamsen
4d63a033a7 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".
2021-06-25 20:42:16 -07:00
Stefan Kangas
f2729dd8ee ; * etc/NEWS: Re-arrange two items. 2021-06-25 22:10:28 +02:00
Mattias Engdegård
52528d6a16 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`.
2021-06-25 19:55:27 +02:00
Stefan Kangas
db491e07a2 ; * etc/NEWS: Fix typo. 2021-06-25 18:31:26 +02:00
Lars Ingebrigtsen
9e8d8e1a03 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.
2021-06-25 17:16:28 +02:00