1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-02-04 20:27:45 +00:00

150725 Commits

Author SHA1 Message Date
Juri Linkov
a3e10af95c Keep reading when typed RET in read-char-from-minibuffer and y-or-n-p
* lisp/subr.el (read-char-from-minibuffer-map):
Remap exit-minibuffer to read-char-from-minibuffer-insert-other.
(y-or-n-p-map): Remap 'exit' to y-or-n-p-insert-other.
(y-or-n-p): Don't mention RET in docstring.  (Bug#51101)
2021-10-10 20:31:15 +03:00
David M. Koppelman
013e3be832 * lisp/userlock.el (ask-user-about-supersession-threat): Accept 'y' strictly.
(Bug#51101)
2021-10-10 20:27:29 +03:00
Eli Zaretskii
ae61d7a57d Fix point positioning on mouse clicks with non-zero line-height
* src/xdisp.c (move_it_to): After passing a newline, reset
it->override_ascent, like 'display_line' does (in
'append_space_for_newline').  (Bug#51111)
2021-10-10 17:14:55 +03:00
João Távora
4c7e74c386 Complete shorthands to longhands for symbol-completing tables
Shorthands aren't symbols, they're text forms that 'read' into
symbols.  As such, shorthands aren't candidates in these tables of
symbols.  But in some situations, if no other candidates match the
pattern, we can e.g. complete "x-foo" to "xavier-foo" if the shorthand

  (("x-" . "xavier-"))

is set up in the buffer of origin.

bug#50959

* lisp/help-fns.el (help--symbol-completion-table): Report
`symbol-help' category.

* lisp/minibuffer.el (completion-styles-alist): New 'shorthand'
style.
(completion-category-defaults): Link 'symbol-help' category with
'shorthand' style.
(minibuffer--original-buffer): New variable.
(completing-read-default): Setup minibuffer--original-buffer.
(completion-shorthand-try-completion)
(completion-shorthand-all-completions): New helpers.
2021-10-10 14:33:23 +01:00
João Távora
c2513c5d0d Add new failing test for bug#51089
* test/lisp/progmodes/elisp-mode-tests.el
(elisp-dont-shadow-punctuation-only-symbols): Add new failing test.
2021-10-10 14:29:37 +01:00
Stefan Kangas
1d1e96377c ; * lisp/emacs-lisp/shortdoc.el: Fix typo. 2021-10-10 13:53:55 +02:00
Dmitry Gutov
6bf29072e9 Avoid mapping file names through 'substring'
* lisp/progmodes/project.el (project--files-in-directory):
Avoid mapping file names through 'substring'.  Reducing the amount
of garbage generated.  Better perf by up to 20%.
Bump the package version.
2021-10-10 04:15:42 +03:00
Kyle Meyer
bcce93f04c Update to Org 9.5-46-gb71474 2021-10-09 16:34:12 -04:00
Stephen Gildea
5d408f1a24 Expanded testing of MH-E with multiple MH variants
* test/lisp/mh-e/mh-utils-tests.el: Environment variable TEST_MH_PATH
controls which installed MH variant to test with.  Moved the commentary
about testing with different MH variants from above 'with-mh-test-env'
definition to "Commentary" section at the top of the file.
* test/lisp/mh-e/test-all-mh-variants.sh: New script to test all
installed MH variants.
2021-10-09 11:36:38 -07:00
Philipp Stephani
b497add971 Fix Seccomp filter for newer GNU/Linux systems (Bug#51073).
On some systems, process startup calls prctl(PR_CAPBSET_READ) via
'cap_get_bound'.  We can just return EINVAL.

* lib-src/seccomp-filter.c (main): Add a rule for
prctl(PR_CAPBSET_READ, ...).
2021-10-09 19:39:31 +02:00
Michael Albinus
75d9fbec88 Tramp code cleanup
* lisp/net/tramp.el (tramp-remote-path): Adapt docstring.
(tramp-action-login, tramp-action-password, tramp-action-yesno)
(tramp-action-yn, tramp-process-actions): Move let-binding of
`enable-recursive-minibuffers' up.
(tramp-handle-make-process, tramp-handle-write-region):
* lisp/net/tramp-adb.el (tramp-adb-handle-write-region)
(tramp-adb-handle-make-process):
* lisp/net/tramp-sh.el (tramp-sh-handle-make-process)
(tramp-sh-handle-write-region):
* lisp/net/tramp-smb.el (tramp-smb-handle-write-region):
* lisp/net/tramp-sshfs.el (tramp-sshfs-handle-write-region):
Use `string-or-null-p'.
2021-10-09 18:42:11 +02:00
Michael Albinus
394209c1a0 ; Fix indentation in etc/NEWS 2021-10-09 16:42:00 +02:00
Michael Albinus
81f20e8b89 Fix thinko in ls-lisp--insert-directory
* lisp/ls-lisp.el (ls-lisp--insert-directory): Ensure that
SWITCHES is a string.
2021-10-09 16:18:53 +02:00
Lars Ingebrigtsen
ec9f25bd35 Mention that RET means "yes" in y-or-n-p
* lisp/subr.el (y-or-n-p): Mention that RET also means yes (bug#51101).
2021-10-09 15:04:18 +02:00
Eli Zaretskii
00eb21c897 ; * src/dispextern.h (struct glyph_string): Comment on NCHARS. (Bug#51105) 2021-10-09 14:38:06 +03:00
Eli Zaretskii
20eb3644ba Rewrite Antinews for Emacs 28
* doc/lispref/anti.texi (Antinews):
* doc/emacs/anti.texi (Antinews): Rewrite for Emacs 28.
* doc/lispref/elisp.texi (Top):
* doc/emacs/emacs.texi (Top): Update menu accordingly.
2021-10-09 14:32:28 +03:00
Eli Zaretskii
3a9b881603 ; * etc/NEWS: Rearrange the "incompatible changes" sections. 2021-10-09 14:30:31 +03:00
Eli Zaretskii
ebb7e26013 ; * etc/NEWS: Fix a typo. 2021-10-09 12:49:38 +03:00
Eli Zaretskii
315fe20086 ; * src/Makefile.in (../native-lisp): Add comment. 2021-10-09 11:23:44 +03:00
Stefan Kangas
47cbd103f5 * lisp/bindings.el (mode-line-position): Improve tooltip. 2021-10-09 08:33:19 +02:00
Dmitry Gutov
35a752863a * lisp/progmodes/xref.el: Bump the version. 2021-10-09 04:38:11 +03:00
Dmitry Gutov
bbcd8cc1a9 Slight simplificaiton
* lisp/progmodes/xref.el (xref--insert-xrefs):
Compute log only once.  Use 'dolist'.
2021-10-09 04:33:02 +03:00
Eli Zaretskii
e139dd1b1e Fix doc strings of 2 categories
* lisp/international/characters.el (?R, ?L): Make the first line
of the categories' doc string shorter, to fit into 15 columns.
2021-10-08 22:20:19 +03:00
Dmitry Gutov
59782839cb (xref--collect-matches-1): Remove some intermediate allocations
* lisp/progmodes/xref.el: (xref--collect-matches-1):
Rewrite to remove some intermediate allocations.
Modest performance improvement.
2021-10-08 18:44:54 +03:00
Stefan Kangas
1c7d056f4d ; Fix two typos where em dash was written as en dash 2021-10-08 16:51:24 +02:00
Tassilo Horn
af01b674ce ; Fix spacing in previous commit 2021-10-08 13:03:45 +02:00
Arash Esbati
915e044d60 Use the correct label in the warning
* lisp/textmodes/reftex-toc.el (reftex-toc-rename-label): Add
missing space in the prompt.  Use the new user defined label in
the warning (bug#36235).
2021-10-08 12:31:40 +02:00
Eli Zaretskii
6e83a4100a ; * admin/make-tarball.txt: Should configure --with-native-compilation. 2021-10-08 10:31:17 +03:00
Eli Zaretskii
525602d682 ; * etc/TODO (display): Add entry about Default_Ignorables. 2021-10-08 10:27:03 +03:00
Stephen Gildea
65de510c16 ; Fix 'restore-buffer-modified-p' doc string typo
* src/buffer.c (restore-buffer-modified-p): Fix typo in doc string:
"and" for "or" regarding lock/unlock.  Note that 'set-buffer-modified-p'
doc string already uses the correct "or".
2021-10-07 20:11:36 -07:00
Dmitry Gutov
9d8202b45e Add Emacs 27 compatibility hack
* lisp/progmodes/xref.el: Add Emacs 27 compatibility hack, for the
standalone version of this package.
2021-10-08 05:23:19 +03:00
Paul Eggert
89d64fca75 Pacify GCC 10.3 -Wmaybe-uninitialized
Problem reported by Basil L. Contovounesios (Bug#51075).
* src/term.c (encode_terminal_code):
Add an UNINIT to pacify GCC 10 bug.
2021-10-07 13:09:47 -07:00
Juri Linkov
bb8ef1aa30 * lisp/tab-bar.el (tab-detach, tab-window-detach): New aliases.
(tab-bar-mouse-context-menu, tab-bar-duplicate-tab):
Use word "clone" in help/doc string.
2021-10-07 21:01:04 +03:00
Eli Zaretskii
7ae70054aa ; * src/composite.h (LGSTRING_FONT): Add comment about its role. 2021-10-07 19:27:49 +03:00
Eli Zaretskii
1af00e67d6 Include the refcards in the release tarball
* make-dist (possibly_non_vc_files): Include *.pdf files, to
include the produced refcards in the tarball.  This was lost when
'make-dist' was rewritten for Emacs 27.
2021-10-07 18:53:25 +03:00
Eli Zaretskii
3c29fb705c ; * src/Makefile.in (../native-lisp): Make the long recipe silent. 2021-10-07 18:48:09 +03:00
Eli Zaretskii
7cb98ba057 ; * src/keyboard.c (make_lispy_position): Avoid GCC warning. (Bug#51076) 2021-10-07 16:09:37 +03:00
Stefan Monnier
b7a10b44ac Backport: * lisp/net/tramp-archive.el (tramp-archive-autoload-file-name-handler): Scope
Fix the scoping of `tramp-archive-enabled`.

(cherry picked from commit 8d53c23f90aab6e527c61137ae43274c7a36eca7)
2021-10-07 13:13:47 +02:00
Eli Zaretskii
160e62a23c Improve documentation and customization of 'blink-matching-paren'
* lisp/simple.el (blink-matching-paren): Fix the wording of the
doc string and the descriptions in the value menu.  (Bug#51032)
2021-10-07 12:33:29 +03:00
Amin Bandali
1100fffcd3
* lisp/erc/erc.el: Don't error if 'erc-loaddefs' does not exist.
That autoload file is created as part of the Emacs compilation
process, however we would like ERC to be usable if used outside
emacs.git (e.g. if installed from GNU ELPA).
2021-10-06 23:14:25 -04:00
Amin Bandali
8865fc02ab
Add 'erc-bug' command for reporting ERC bugs
* etc/ERC-NEWS: Announce the new command, and mention it at the top of
the file along with 'report-emacs-bug'.
* lisp/erc/erc.el (erc-bug): New command for reporting ERC bugs.  It
prompts for a subject, and passes it on to 'report-emacs-bug' along
with the current ERC version, with the ERC mailing list in Cc.
2021-10-06 23:02:09 -04:00
Amin Bandali
5afa07919e
Add 'erc-version' and use it to display ERC version consistently
* lisp/erc/erc.el (erc-version): New constant holding the current ERC
version, now used in the function with the same name to produce a
version string for use across ERC for consistency.  Also, add another
optional argument, 'bold-erc', which when non-nil, marks the "ERC"
portion of the string with the control character for bold display.
(erc-quit/part-reason-default): Use the 'erc-version' function for a
consistent version string.
(erc-cmd-SV): Mention the ERC version number from the 'erc-version'
constant.
(erc-ctcp-query-VERSION): Use the 'erc-version' function for a
consistent version string.
2021-10-06 22:06:01 -04:00
Amin Bandali
bc941846d9
Small tweaks and improvements to etc/ERC-NEWS
* etc/ERC-NEWS: Small tweaks inspired by etc/NEWS, namely to add a
descriptive blurb at the top of the file to explain what it is about
and how to report ERC bugs, add a form feed before the section for
every release, and set the same Local Variables that etc/NEWS does.
2021-10-06 21:35:43 -04:00
Amin Bandali
30b5e0a514
Add NEWS items for changes to ERC since 5.3 to etc/ERC-NEWS
* etc/ERC-NEWS: copy ERC NEWS items from etc/NEWS, etc/NEWS.27,
etc/NEWS.26, etc/NEWS.25, and etc/NEWS.24 to here.  Future ERC NEWS
are also to be added here.  This is in motivated by preparation for
addition of ERC to GNU ELPA, along with the ERC manual and NEWS.
* etc/NEWS: remove ERC-related entries, and refer the reader to
ERC-NEWS instead.
2021-10-06 21:17:33 -04:00
Juri Linkov
f7e6c199bf Clone the frame window configuration in 'clone-frame'
* doc/emacs/frames.texi (Creating Frames): Mention the cloned
window configuration for clone-frame.

* lisp/frame.el (clone-frame): Change second arg to 'no-windows'
and clone window configuration when it's nil.

* lisp/tab-bar.el (tab-bar-mouse-context-menu)
(tab-bar-detach-tab): Replace "Detach" with "Move" in help/doc strings.

https://lists.gnu.org/archive/html/emacs-devel/2021-10/msg00408.html
2021-10-06 19:38:09 +03:00
Eli Zaretskii
5f626488d8 * lisp/tool-bar.el (tool-bar-position): Doc fix. 2021-10-06 19:18:51 +03:00
Michael Albinus
1ccd3eb721 ; Fix typo in etc/NEWS 2021-10-06 10:57:02 +02:00
Philip Kaludercic
0f28ee94ac * NEWS: Mention rcirc connects to #emacs by default 2021-10-06 09:16:17 +02:00
Stephen Gildea
aacafbe267 Refactor mh-utils-tests macro 'with-mh-test-env'
* test/lisp/mh-e/mh-utils-tests.el (with-mh-test-env): Refactor to
reduce the size of the expanded macro.
(mh-test-utils-setup): New helper function.
(mh-ensure-native-trampolines): Absorbed by mh-test-utils-setup.
2021-10-05 20:34:03 -07:00
Stefan Kangas
ead5c5cc51 Avoid using variable before it has been initialized
* lisp/ibuffer.el (ibuffer-shrink-to-fit): Don't try to use
ibuffer-auto-mode variable before ibuf-ext.el has been loaded.
(Bug#51029)
2021-10-05 23:25:03 +02:00