]> git.eshelyaron.com Git - emacs.git/log
emacs.git
3 years agoAnother fix for 'ibuffer-shrink-to-fit' (Bug#7218, Bug#51029)
Martin Rudalics [Mon, 11 Oct 2021 16:58:10 +0000 (18:58 +0200)]
Another fix for 'ibuffer-shrink-to-fit' (Bug#7218, Bug#51029)

* lisp/ibuffer.el (ibuffer-shrink-to-fit): Fit window only if its
buffer is in 'ibuffer-mode' (Bug#7218, Bug#51029).

3 years agoBackport: * doc/misc/tramp.texi (Bug Reports): Describe, how to activate ELPA Tramp.
Michael Albinus [Mon, 11 Oct 2021 08:16:06 +0000 (10:16 +0200)]
Backport: * doc/misc/tramp.texi (Bug Reports): Describe, how to activate ELPA Tramp.

(cherry picked from commit 978e5339e0d4ef98575096bcf3ec2061ad530f27)

3 years agoWork around GCC bug 102671
Paul Eggert [Mon, 11 Oct 2021 16:23:47 +0000 (09:23 -0700)]
Work around GCC bug 102671

This is for --enable-gcc-warnings on GCC 11.2.1.
* src/window.c, src/timefns.c: Disable -Wanalyzer-null-dereference.

3 years agoRelease ERC 5.4
Amin Bandali [Mon, 11 Oct 2021 14:29:35 +0000 (10:29 -0400)]
Release ERC 5.4

* lisp/erc/erc.el (Version, erc-version): Bump to 5.4.
(customize-package-emacs-version-alist): Add entry for 5.4.

3 years ago* etc/ERC-NEWS: Announce ERC's addition to GNU ELPA.
Amin Bandali [Mon, 11 Oct 2021 14:25:08 +0000 (10:25 -0400)]
* etc/ERC-NEWS: Announce ERC's addition to GNU ELPA.

3 years ago* etc/ERC-NEWS: Fix outline level for the recent additions.
Amin Bandali [Mon, 11 Oct 2021 14:13:56 +0000 (10:13 -0400)]
* etc/ERC-NEWS: Fix outline level for the recent additions.

3 years agoAdd ERC entries for 'customize-package-emacs-version-alist'
Amin Bandali [Mon, 11 Oct 2021 14:04:44 +0000 (10:04 -0400)]
Add ERC entries for 'customize-package-emacs-version-alist'

* lisp/erc/erc.el (customize-package-emacs-version-alist): Add entries
for existing ERC versions.

3 years agoExpand the full file name
Dmitry Gutov [Mon, 11 Oct 2021 13:37:55 +0000 (16:37 +0300)]
Expand the full file name

* lisp/vc/vc-git.el (vc-git--literal-pathspec):
Expand the full file name, not just the local part (bug#51112).

3 years agoObsolete XEmacs compat convention in 'erc-button-press-button'
Stefan Kangas [Mon, 11 Oct 2021 13:39:17 +0000 (09:39 -0400)]
Obsolete XEmacs compat convention in 'erc-button-press-button'

* lisp/erc/erc-button.el (erc-button-press-button): Advertise new
calling convention without XEmacs compatibility.

3 years agoBackport: Add ERC version to protocol log
F. Jason Park [Sat, 9 Oct 2021 12:59:43 +0000 (14:59 +0200)]
Backport: Add ERC version to protocol log

* lisp/erc/erc.el (erc-toggle-debug-irc-protocol): Include the erc
version in the debug logs (bug#51107).

(cherry picked from commit 13411346202f86e950bee076a5d528e98695fbb4)

3 years agoAdapt the recent 'num_processors' change to MS-Windows
Eli Zaretskii [Mon, 11 Oct 2021 12:56:31 +0000 (15:56 +0300)]
Adapt the recent 'num_processors' change to MS-Windows

* nt/gnulib-cfg.mk (OMIT_GNULIB_MODULE_nproc): Omit nproc.

* src/w32.c (num_processors): New function.
* src/w32proc.c (Fw32_get_nproc): Remove.

3 years agoMinor fix to clarify a sentence in emacs-lisp-intro
Stefan Kangas [Mon, 11 Oct 2021 12:43:11 +0000 (14:43 +0200)]
Minor fix to clarify a sentence in emacs-lisp-intro

* doc/lispintro/emacs-lisp-intro.texi (Simple Extension): Add the word
"that" for clarity.  (Bug#43965)

3 years ago; Pacify recent shorthand unused lexarg warnings.
Basil L. Contovounesios [Mon, 11 Oct 2021 10:55:40 +0000 (11:55 +0100)]
; Pacify recent shorthand unused lexarg warnings.

3 years agoMake tty-run-terminal-initialization load the .elc file (if any)
Lars Ingebrigtsen [Mon, 11 Oct 2021 09:22:05 +0000 (11:22 +0200)]
Make tty-run-terminal-initialization load the .elc file (if any)

* lisp/faces.el (tty-run-terminal-initialization):
`locate-library' may have found the .el.gz file (bug#51116).

3 years agoFix ert errors when there's a test that binds `debug-on-error'
Lars Ingebrigtsen [Mon, 11 Oct 2021 09:14:26 +0000 (11:14 +0200)]
Fix ert errors when there's a test that binds `debug-on-error'

* lisp/emacs-lisp/ert.el (ert--run-test-internal): Don't infloop
on errors when signalling errors (bug#51131).

3 years agoNew function num-processors
Paul Eggert [Sun, 10 Oct 2021 20:59:16 +0000 (13:59 -0700)]
New function num-processors

This addresses a FIXME comment in lisp/emacs-lisp/comp.el,
relating to the number of subsidiary processes used by
comp-run-async-workers in native compilation.
* admin/merge-gnulib (GNULIB_MODULES): Add nproc.
* doc/lispref/processes.texi (Process Information), etc/NEWS:
Document num-processors.
* lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
* lib/nproc.c, lib/nproc.h, m4/nproc.m4:
New files, copied from Gnulib by admin/merge-gnulib.
* lisp/emacs-lisp/comp.el (w32-get-nproc): Remove decl.
(comp-effective-async-max-jobs): Use num-processors.
* src/process.c: Include nproc.h.
(Fnum_processors): New function.
(syms_of_process): Define ‘all’, ‘current’, ‘num-processors’.
* src/w32proc.c (Fw32_get_nproc): Add FIXME comment.
* test/src/process-tests.el (process-num-processors): New test.

3 years agoAdd symbol property 'save-some-buffers-function' (bug#46374)
Juri Linkov [Sun, 10 Oct 2021 17:38:12 +0000 (20:38 +0300)]
Add symbol property 'save-some-buffers-function' (bug#46374)

* lisp/files.el (save-some-buffers-root): Put non-nil
symbol property 'save-some-buffers-function'.
(save-some-buffers): Check pred for the
symbol property 'save-some-buffers-function'.
(save-some-buffers-default-predicate): Mention
symbol property 'save-some-buffers-function'.

3 years agoKeep reading when typed RET in read-char-from-minibuffer and y-or-n-p
Juri Linkov [Sun, 10 Oct 2021 17:31:15 +0000 (20:31 +0300)]
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)

3 years ago* lisp/userlock.el (ask-user-about-supersession-threat): Accept 'y' strictly.
David M. Koppelman [Sun, 10 Oct 2021 17:27:29 +0000 (20:27 +0300)]
* lisp/userlock.el (ask-user-about-supersession-threat): Accept 'y' strictly.

(Bug#51101)

3 years agoFix point positioning on mouse clicks with non-zero line-height
Eli Zaretskii [Sun, 10 Oct 2021 14:14:55 +0000 (17:14 +0300)]
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)

3 years agoComplete shorthands to longhands for symbol-completing tables
João Távora [Wed, 6 Oct 2021 10:30:29 +0000 (11:30 +0100)]
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.

3 years agoAdd new failing test for bug#51089
João Távora [Sun, 10 Oct 2021 11:03:15 +0000 (12:03 +0100)]
Add new failing test for bug#51089

* test/lisp/progmodes/elisp-mode-tests.el
(elisp-dont-shadow-punctuation-only-symbols): Add new failing test.

3 years ago; * lisp/emacs-lisp/shortdoc.el: Fix typo.
Stefan Kangas [Sun, 10 Oct 2021 11:52:24 +0000 (13:52 +0200)]
; * lisp/emacs-lisp/shortdoc.el: Fix typo.

3 years agoAvoid mapping file names through 'substring'
Dmitry Gutov [Sun, 10 Oct 2021 01:14:35 +0000 (04:14 +0300)]
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.

3 years agoUpdate to Org 9.5-46-gb71474
Kyle Meyer [Sat, 9 Oct 2021 20:34:12 +0000 (16:34 -0400)]
Update to Org 9.5-46-gb71474

3 years agoExpanded testing of MH-E with multiple MH variants
Stephen Gildea [Sat, 9 Oct 2021 18:36:03 +0000 (11:36 -0700)]
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.

3 years agoFix Seccomp filter for newer GNU/Linux systems (Bug#51073).
Philipp Stephani [Sat, 9 Oct 2021 17:39:31 +0000 (19:39 +0200)]
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, ...).

3 years agoTramp code cleanup
Michael Albinus [Sat, 9 Oct 2021 16:42:11 +0000 (18:42 +0200)]
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'.

3 years ago; Fix indentation in etc/NEWS
Michael Albinus [Sat, 9 Oct 2021 14:42:00 +0000 (16:42 +0200)]
; Fix indentation in etc/NEWS

3 years agoFix thinko in ls-lisp--insert-directory
Michael Albinus [Sat, 9 Oct 2021 14:18:53 +0000 (16:18 +0200)]
Fix thinko in ls-lisp--insert-directory

* lisp/ls-lisp.el (ls-lisp--insert-directory): Ensure that
SWITCHES is a string.

3 years agoMention that RET means "yes" in y-or-n-p
Lars Ingebrigtsen [Sat, 9 Oct 2021 13:04:11 +0000 (15:04 +0200)]
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).

3 years ago; * src/dispextern.h (struct glyph_string): Comment on NCHARS. (Bug#51105)
Eli Zaretskii [Sat, 9 Oct 2021 11:38:06 +0000 (14:38 +0300)]
; * src/dispextern.h (struct glyph_string): Comment on NCHARS.  (Bug#51105)

3 years agoRewrite Antinews for Emacs 28
Eli Zaretskii [Sat, 9 Oct 2021 11:32:28 +0000 (14:32 +0300)]
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.

3 years ago; * etc/NEWS: Rearrange the "incompatible changes" sections.
Eli Zaretskii [Sat, 9 Oct 2021 11:30:31 +0000 (14:30 +0300)]
; * etc/NEWS: Rearrange the "incompatible changes" sections.

3 years ago; * etc/NEWS: Fix a typo.
Eli Zaretskii [Sat, 9 Oct 2021 09:49:38 +0000 (12:49 +0300)]
; * etc/NEWS: Fix a typo.

3 years ago; * src/Makefile.in (../native-lisp): Add comment.
Eli Zaretskii [Sat, 9 Oct 2021 08:23:44 +0000 (11:23 +0300)]
; * src/Makefile.in (../native-lisp): Add comment.

3 years ago* lisp/bindings.el (mode-line-position): Improve tooltip.
Stefan Kangas [Sat, 9 Oct 2021 06:32:25 +0000 (08:32 +0200)]
* lisp/bindings.el (mode-line-position): Improve tooltip.

3 years ago* lisp/progmodes/xref.el: Bump the version.
Dmitry Gutov [Sat, 9 Oct 2021 01:38:11 +0000 (04:38 +0300)]
* lisp/progmodes/xref.el: Bump the version.

3 years agoSlight simplificaiton
Dmitry Gutov [Sat, 9 Oct 2021 00:33:57 +0000 (03:33 +0300)]
Slight simplificaiton

* lisp/progmodes/xref.el (xref--insert-xrefs):
Compute log only once.  Use 'dolist'.

3 years agoFix doc strings of 2 categories
Eli Zaretskii [Fri, 8 Oct 2021 19:20:19 +0000 (22:20 +0300)]
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.

3 years ago(xref--collect-matches-1): Remove some intermediate allocations
Dmitry Gutov [Fri, 8 Oct 2021 15:25:55 +0000 (18:25 +0300)]
(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.

3 years ago; Fix two typos where em dash was written as en dash
Stefan Kangas [Fri, 8 Oct 2021 14:50:32 +0000 (16:50 +0200)]
; Fix two typos where em dash was written as en dash

3 years ago; Fix spacing in previous commit
Tassilo Horn [Fri, 8 Oct 2021 11:03:45 +0000 (13:03 +0200)]
; Fix spacing in previous commit

3 years agoUse the correct label in the warning
Arash Esbati [Fri, 8 Oct 2021 09:12:30 +0000 (11:12 +0200)]
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).

3 years ago; * admin/make-tarball.txt: Should configure --with-native-compilation.
Eli Zaretskii [Fri, 8 Oct 2021 07:31:17 +0000 (10:31 +0300)]
; * admin/make-tarball.txt: Should configure --with-native-compilation.

3 years ago; * etc/TODO (display): Add entry about Default_Ignorables.
Eli Zaretskii [Fri, 8 Oct 2021 07:27:03 +0000 (10:27 +0300)]
; * etc/TODO (display): Add entry about Default_Ignorables.

3 years ago; Fix 'restore-buffer-modified-p' doc string typo
Stephen Gildea [Fri, 8 Oct 2021 03:10:09 +0000 (20:10 -0700)]
; 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".

3 years agoAdd Emacs 27 compatibility hack
Dmitry Gutov [Fri, 8 Oct 2021 02:23:19 +0000 (05:23 +0300)]
Add Emacs 27 compatibility hack

* lisp/progmodes/xref.el: Add Emacs 27 compatibility hack, for the
standalone version of this package.

3 years agoPacify GCC 10.3 -Wmaybe-uninitialized
Paul Eggert [Thu, 7 Oct 2021 20:09:19 +0000 (13:09 -0700)]
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.

3 years ago* lisp/tab-bar.el (tab-detach, tab-window-detach): New aliases.
Juri Linkov [Thu, 7 Oct 2021 18:01:04 +0000 (21:01 +0300)]
* 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.

3 years ago; * src/composite.h (LGSTRING_FONT): Add comment about its role.
Eli Zaretskii [Thu, 7 Oct 2021 16:27:49 +0000 (19:27 +0300)]
; * src/composite.h (LGSTRING_FONT): Add comment about its role.

3 years agoInclude the refcards in the release tarball
Eli Zaretskii [Thu, 7 Oct 2021 15:53:25 +0000 (18:53 +0300)]
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.

3 years ago; * src/Makefile.in (../native-lisp): Make the long recipe silent.
Eli Zaretskii [Thu, 7 Oct 2021 15:48:09 +0000 (18:48 +0300)]
; * src/Makefile.in (../native-lisp): Make the long recipe silent.

3 years ago; * src/keyboard.c (make_lispy_position): Avoid GCC warning. (Bug#51076)
Eli Zaretskii [Thu, 7 Oct 2021 13:09:37 +0000 (16:09 +0300)]
; * src/keyboard.c (make_lispy_position): Avoid GCC warning.  (Bug#51076)

3 years agoBackport: * lisp/net/tramp-archive.el (tramp-archive-autoload-file-name-handler)...
Stefan Monnier [Wed, 6 Oct 2021 16:15:26 +0000 (12:15 -0400)]
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)

3 years agoImprove documentation and customization of 'blink-matching-paren'
Eli Zaretskii [Thu, 7 Oct 2021 09:33:29 +0000 (12:33 +0300)]
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)

3 years ago* lisp/erc/erc.el: Don't error if 'erc-loaddefs' does not exist.
Amin Bandali [Sat, 18 Sep 2021 16:53:59 +0000 (12:53 -0400)]
* 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).

3 years agoAdd 'erc-bug' command for reporting ERC bugs
Amin Bandali [Thu, 7 Oct 2021 02:49:59 +0000 (22:49 -0400)]
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.

3 years agoAdd 'erc-version' and use it to display ERC version consistently
Amin Bandali [Thu, 7 Oct 2021 01:50:56 +0000 (21:50 -0400)]
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.

3 years agoSmall tweaks and improvements to etc/ERC-NEWS
Amin Bandali [Thu, 7 Oct 2021 01:35:43 +0000 (21:35 -0400)]
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.

3 years agoAdd NEWS items for changes to ERC since 5.3 to etc/ERC-NEWS
Amin Bandali [Thu, 7 Oct 2021 01:17:33 +0000 (21:17 -0400)]
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.

3 years agoClone the frame window configuration in 'clone-frame'
Juri Linkov [Wed, 6 Oct 2021 16:38:09 +0000 (19:38 +0300)]
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

3 years ago* lisp/tool-bar.el (tool-bar-position): Doc fix.
Eli Zaretskii [Wed, 6 Oct 2021 16:18:51 +0000 (19:18 +0300)]
* lisp/tool-bar.el (tool-bar-position): Doc fix.

3 years ago; Fix typo in etc/NEWS
Michael Albinus [Wed, 6 Oct 2021 08:57:02 +0000 (10:57 +0200)]
; Fix typo in etc/NEWS

3 years ago* NEWS: Mention rcirc connects to #emacs by default
Philip Kaludercic [Wed, 6 Oct 2021 07:16:14 +0000 (09:16 +0200)]
* NEWS: Mention rcirc connects to #emacs by default

3 years agoRefactor mh-utils-tests macro 'with-mh-test-env'
Stephen Gildea [Wed, 6 Oct 2021 03:32:59 +0000 (20:32 -0700)]
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.

3 years agoAvoid using variable before it has been initialized
Stefan Kangas [Tue, 5 Oct 2021 21:22:16 +0000 (23:22 +0200)]
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)

3 years agoClarify docstring of blink-matching-paren
Stefan Kangas [Tue, 5 Oct 2021 21:11:31 +0000 (23:11 +0200)]
Clarify docstring of blink-matching-paren

* lisp/simple.el (blink-matching-paren): Clarify
docstring.  (Bug#51032)

3 years ago; Very minor touch-up to a recent change
Stefan Kangas [Tue, 5 Oct 2021 19:35:09 +0000 (21:35 +0200)]
; Very minor touch-up to a recent change

* doc/lispintro/emacs-lisp-intro.texi (Design @value{COUNT-WORDS}):
Remove an unnecessary and potentially confusing "now".

3 years ago; * doc/emacs/trouble.texi (After a Crash): Fix typo.
Stefan Kangas [Tue, 5 Oct 2021 19:11:19 +0000 (21:11 +0200)]
; * doc/emacs/trouble.texi (After a Crash): Fix typo.

3 years ago* doc/misc/gnus.texi (Loose Threads): Use regexp-opt in example.
Stefan Kangas [Tue, 5 Oct 2021 17:31:52 +0000 (19:31 +0200)]
* doc/misc/gnus.texi (Loose Threads): Use regexp-opt in example.

3 years agoBump project.el version
Dmitry Gutov [Tue, 5 Oct 2021 16:58:26 +0000 (19:58 +0300)]
Bump project.el version

* lisp/progmodes/project.el: Bump the version.

3 years agoRetain compatibility with older project.el projects
Dmitry Gutov [Tue, 5 Oct 2021 02:45:09 +0000 (05:45 +0300)]
Retain compatibility with older project.el projects

* lisp/progmodes/xref.el (xref--analyze):
Retain compatibility with older project.el and its compatible
project definitions (for standalone Xref from ELPA).

3 years agonative-comp-available-p is the definitive test
Stephen Gildea [Tue, 5 Oct 2021 16:15:57 +0000 (09:15 -0700)]
native-comp-available-p is the definitive test

* doc/lispref/compile.texi (Native Compilation): Document
native-comp-available-p as the way to test for native compilation.
* lisp/emacs-lisp/package.el (package--native-compile-async):
* test/lisp/mh-e/mh-utils-tests.el (mh-ensure-native-trampolines):
Test for native compilation with native-comp-available-p.

Thank you to Andrea Corallo for reviewing this patch.

3 years agoMinor fix of a recently installed documentation change
Eli Zaretskii [Tue, 5 Oct 2021 16:20:51 +0000 (19:20 +0300)]
Minor fix of a recently installed documentation change

* doc/emacs/search.texi (Lax Search): Don't use ".." inside @samp,
it looks confusing, especially in print.  (Bug#51020)

3 years agoFix md5 issue in recent Gnulib merge
Paul Eggert [Tue, 5 Oct 2021 16:08:02 +0000 (09:08 -0700)]
Fix md5 issue in recent Gnulib merge

When configured --with-native-compilation, Emacs needs md5_stream.
Problem reported by Andy Moreton (Bug#50985#23).
* admin/merge-gnulib (GNULIB_MODULES): Add crypto/md5,
needed for --with-native-compilation.
(AVOIDED_MODULES): Avoid crypto/af_alg, since Emacs doesn’t
need to bother with kernel-supported cryptography algorithms.
* lib/gnulib.mk.in, m4/gnulib-comp.m4:
Regenerate by running admin/merge-gnulib.
* lib/md5-stream.c: New file, copied from Gnulib.

3 years agoTweak recent 'configure' fix
Paul Eggert [Tue, 5 Oct 2021 16:03:47 +0000 (09:03 -0700)]
Tweak recent 'configure' fix

* configure.ac (gt_TYPE_WINT_T): Omit obsolete and
now-overridden definition.

3 years agoDocument minibuffer-default-prompt-format in manual
Stefan Kangas [Tue, 5 Oct 2021 14:34:07 +0000 (16:34 +0200)]
Document minibuffer-default-prompt-format in manual

* doc/emacs/mini.texi (Basic Minibuffer): Mention
minibuffer-default-prompt-format.  (Bug#50935)

3 years agoBackward compatibility option for 'nobreak-char-display'
Eli Zaretskii [Tue, 5 Oct 2021 14:12:49 +0000 (17:12 +0300)]
Backward compatibility option for 'nobreak-char-display'

* src/xdisp.c (syms_of_xdisp) <nobreak-char-ascii-display>: New
variable.
(get_next_display_element): If 'nobreak-char-ascii-display' is
non-nil, display non-ASCII space and hyphen characters as their
ASCII equivalents.  (Bug#50983)

* etc/NEWS:
* etc/PROBLEMS: Mention 'nobreak-char-ascii-display'.

3 years ago; * lisp/dired.el: Fix typo.
Stefan Kangas [Tue, 5 Oct 2021 13:20:28 +0000 (15:20 +0200)]
; * lisp/dired.el: Fix typo.

3 years agoUnbreak the build after Gnulib update
Eli Zaretskii [Tue, 5 Oct 2021 12:55:18 +0000 (15:55 +0300)]
Unbreak the build after Gnulib update

* lib/gnulib.mk.in (GNULIBHEADERS_OVERRIDE_WINT_T): Rename from
GNULIB_OVERRIDES_WINT_T.
* configure.ac (GNULIBHEADERS_OVERRIDE_WINT_T): Define.
(Bug#50985)

3 years agoCheck, whether an FUSE mount has been broken in Tramp
Michael Albinus [Tue, 5 Oct 2021 09:27:48 +0000 (11:27 +0200)]
Check, whether an FUSE mount has been broken in Tramp

* lisp/net/tramp-fuse.el (tramp-fuse-mount-timeout): New defconst.
(tramp-fuse-mounted-p): Use it.  Check for a file property instead
of a connection property.
(tramp-fuse-unmount): Dito.

* lisp/net/tramp-sshfs.el (tramp-sshfs-maybe-open-connection):
Do not trust existence of a process, whether the volume is mounted.

3 years agoDisable 'nobreak-char-display' in Eldoc buffers
Augusto Stoffel [Tue, 5 Oct 2021 09:12:05 +0000 (11:12 +0200)]
Disable 'nobreak-char-display' in Eldoc buffers

* lisp/emacs-lisp/eldoc.el (eldoc--format-doc-buffer): Set
'nobreak-char-display' to nil in Eldoc buffers (bug#50989).

3 years agoFix small error in comint-send-input
Miha Rihtaršič [Tue, 5 Oct 2021 07:42:28 +0000 (09:42 +0200)]
Fix small error in comint-send-input

* lisp/comint.el (comint-send-input): Run
comint-output-filter-functions with comint-last-output-start set
correctly (bug#51009).

3 years agoUpdate documentation of search-whitespace-regexp
Daniel Martín [Tue, 5 Oct 2021 07:37:56 +0000 (09:37 +0200)]
Update documentation of search-whitespace-regexp

* doc/emacs/search.texi (Lax Search): Update the documentation about
the default value of search-whitespace-regexp, as it is now
independent of the major mode's syntax table (bug#51020).

3 years agoFix cc-compat.el syntax error
Po Lu via [Tue, 5 Oct 2021 07:22:57 +0000 (09:22 +0200)]
Fix cc-compat.el syntax error

* lisp/obsolete/cc-compat.el (offsets): Fix syntax error in BOCM
style setup.

3 years agoMention `seq-uniq' in `delete-dups' documentation
Tak Kunihiro [Tue, 5 Oct 2021 07:11:33 +0000 (09:11 +0200)]
Mention `seq-uniq' in `delete-dups' documentation

* doc/lispref/lists.texi (Sets And Lists): Mention `seq-uniq'
(bug#50928).

* lisp/subr.el (delete-dups): Link to `seq-uniq' in doc string.

3 years ago; Minor stylistic fixes found by checkdoc
Stefan Kangas [Mon, 27 Sep 2021 21:56:55 +0000 (23:56 +0200)]
; Minor stylistic fixes found by checkdoc

3 years ago; * etc/NEWS: Fix typo.
Stefan Kangas [Tue, 5 Oct 2021 00:01:27 +0000 (02:01 +0200)]
; * etc/NEWS: Fix typo.

3 years agoPort recent Gnulib changes to MS-Windows
Paul Eggert [Mon, 4 Oct 2021 19:11:39 +0000 (12:11 -0700)]
Port recent Gnulib changes to MS-Windows

* nt/gnulib-cfg.mk (OMIT_GNULIB_MODULE_free-posix)
(OMIT_GNULIB_MODULE_malloc-posix)
(OMIT_GNULIB_MODULE_realloc-gnu)
(OMIT_GNULIB_MODULE_realloc-posix):
New macros, since we don’t want these modules on MS-Windows.
* src/w32heap.c (heap_alloc, heap_realloc): New functions.
(malloc_after_dump, realloc_after_dump, realloc_before_dump):
Use them.

3 years agoUpdate from Gnulib
Paul Eggert [Mon, 4 Oct 2021 19:11:39 +0000 (12:11 -0700)]
Update from Gnulib

Make the following changes by hand, and run 'admin/merge-gnulib'.
* .gitignore: Add lib/malloc/*.gl.h.
* admin/merge-gnulib: Copy lib/af_alg.h and lib/save-cwd.h
directly from Gnulib, without worrying about Gnulib modules,
as these files are special cases.
(AVOIDED_MODULES): Remove malloc-posix.
* lib/malloc.c, lib/realloc.c, m4/malloc.m4, m4/realloc.m4:
* m4/year2038.m4: New files, copied from Gnulib.
* lib/malloca.c, lib/malloca.h:
* m4/close-stream.m4, m4/glibc21.m4, m4/malloca.m4:
Remove.  These are either no longer present in Gnulib, or are no
longer needed by modules that Emacs uses.
* oldXMenu/AddPane.c, oldXmenu/Addsel.c: Include XmenuInt.h first;
needed for new Gnulib.
* src/xmenu.c: Call emacs_abort, not abort.

3 years ago* Fix mh tests for native comp builds (bug#50975)
Andrea Corallo [Mon, 4 Oct 2021 20:47:30 +0000 (22:47 +0200)]
* Fix mh tests for native comp builds (bug#50975)

* test/lisp/mh-e/mh-utils-tests.el (mh-ensure-native-trampolines):
New function.
(mh-test-utils-setup-with-mocks)
(mh-test-utils-setup-with-variant): Use it.

3 years ago* Fix `batch-native-compile' not to spawn a subprocess
Andrea Corallo [Mon, 4 Oct 2021 19:15:02 +0000 (21:15 +0200)]
* Fix `batch-native-compile' not to spawn a subprocess

* lisp/emacs-lisp/comp.el (comp-running-batch-compilation): New var.
(comp-final): Use it.
(batch-native-compile): Bind `comp-running-batch-compilation' it.

3 years agoFix native-compilation build from tarball on Cygwin
Ken Brown [Mon, 4 Oct 2021 18:47:57 +0000 (14:47 -0400)]
Fix native-compilation build from tarball on Cygwin

* src/Makefile.in (../native-lisp) [CYGWIN]: Rebase the *.eln
files after they are all created, to avoid fork problems later in
the build.  (Bug#50666)

3 years agoRemove U+FE0F from script-representative-chars
Robert Pluim [Mon, 4 Oct 2021 17:11:15 +0000 (19:11 +0200)]
Remove U+FE0F from script-representative-chars

* lisp/international/fontset.el (script-representative-chars): Remove
U+FE0F / VS-16 from the 'emoji' entry.  It could cause us to skip
fonts that don't have a glyph for it, even though we don't actually
need one.

3 years agoFix problem with 'vertical-motion' and emoji
Robert Pluim [Mon, 4 Oct 2021 16:47:04 +0000 (18:47 +0200)]
Fix problem with 'vertical-motion' and emoji

* src/font.c (font_range): Pass correct position to
font_for_char (Bug#51012).

3 years ago; Describe PROBLEMS with Unicode display on some TTYs
Eli Zaretskii [Mon, 4 Oct 2021 16:29:34 +0000 (19:29 +0300)]
; Describe PROBLEMS with Unicode display on some TTYs

* etc/TODO: Describe problems with Unicode display on some
text terminals.  (Bug#50865)  (Bug#50983)

3 years ago* test/README: Mention :nativecomp tag.
Michael Albinus [Mon, 4 Oct 2021 16:01:06 +0000 (18:01 +0200)]
* test/README: Mention :nativecomp tag.

3 years agoAvoid exiting when outputting error messages during loadup
Gregory Heytings [Mon, 4 Oct 2021 14:13:46 +0000 (14:13 +0000)]
Avoid exiting when outputting error messages during loadup

* src/print.c (print_error_message): Don't call
'substitute-command-keys' when it isn't fboundp.

3 years ago; * src/Makefile.in (../native-lisp): More tweaks of the recipe.
Eli Zaretskii [Mon, 4 Oct 2021 13:54:37 +0000 (16:54 +0300)]
; * src/Makefile.in (../native-lisp): More tweaks of the recipe.