Commit graph

183260 commits

Author SHA1 Message Date
Boris Buliga 67efab7637 Always build the Emacs, Elisp and Intro manuals (bug#81332)
The manuals in doc/emacs, doc/lispintro and doc/lispref have no
translations, so filtering the per-directory language list by DOCLANGS
left those directories with nothing to build when DOCLANGS does not
include 'default'.  These three manuals must be built and installed
regardless of DOCLANGS: the Emacs and Emacs Lisp manuals are
referenced from doc strings, and the Introduction to Emacs Lisp
Programming is an important enough part of Emacs to be available
whatever the language preferences of the user who builds the manuals.

* Makefile.in (MANDATORY_DOC_DIRS): New variable.
(FILTER_DOCLANGS): Use it to always build the default language for
those directories.
(INFO_NONMISC, srcdir_doc_info_dir_inputs): Say why these are not
gated by DOCLANGS.
* doc/translations/README: Document that those three manuals are
always built in the default language.
2026-08-29 12:43:41 +03:00
Harald Jörg f4f249a224 ;cperl-mode.el: Adjust comments towards a :core package
Comments and docstrings only, no functional change.

* lisp/progmodes/cperl-mode.el: Push version for ELPA publishing.
Point URL header to https://elpa.gnu.org/packages/cperl-mode.html.
Add information about :core package status.
Start the commentary with the supported version of Perl syntax.
Move advertising 'cperl-hairy' from the commentary section to the
docstring for 'cperl-tips'.
Drop recommending 'cperl-speed', no longer relevant.
Drop incomplete (and inaccurate) list of faces.
2026-08-28 18:24:41 +02:00
岩下泰幸 5919ac3fac markdown-ts--fontify-bare-uri: Don't give bare URLs a mailto: prefix
* lisp/textmodes/markdown-ts-mode.el
(markdown-ts--fontify-bare-uri): Don't give bare URLs a mailto:
prefix (bug#81703).

Copyright-paperwork-exempt: yes
2026-08-28 14:08:26 +01:00
Sean Whitton 0281922783 separator-line, make-separator-line: Fall back to underline
* lisp/simple.el (separator-line): Check for support for
strike-through and fall back to underlining.
(make-separator-line): Update test to accept terminals that
support underline.
2026-08-28 12:21:46 +01:00
Dmitry Gutov 22bf7a9821 Improve vc-dir-headers separator line
* lisp/vc/vc-dir.el (vc-dir-headers): Remove the extra nelines
around the separator line.

* lisp/simple.el (separator-line): Use strike-through in terminal,
to better match the original intent.
(make-separator-line): Change the capability check here to
strike-through as well, it seems about as common as underline.
2026-08-28 05:51:15 +03:00
Eli Zaretskii 46e3d4b260 Fix 'window-text-pixel-size' at EOL when FROM == TO
* src/xdisp.c (window_text_pixel_size): Reset starting X
coordinate when pretending we begin after the newline, to be
consistent with the iterator's X coordinate.  (Bug#81722)
2026-08-27 19:10:58 +03:00
Eli Zaretskii b28750b822 ; * etc/NEWS: Announce addition of 'uuid' library. 2026-08-26 15:38:49 +03:00
Sam James a746f6d7e7 uuid: fix test override of 'float-time'
The mock 'float-time' was defined to take no arguments, unlike the
real 'float-time', which manifested as a test failure in
'uuid-v7-generator-known-rnd-and-ts'.

* test/lisp/emacs-lisp/uuid-tests.el (uuid-v7-generator-known-rnd-and-ts):
Fix mock 'float-time' definition.  (Bug#81701)
2026-08-26 15:32:12 +03:00
Roi Martin e156410d30 Add button to diff failed erts-file test output in ERT
* doc/misc/ert.texi (Running Tests Interactively): Mention diff button.
* etc/NEWS: Add entry.
* lisp/emacs-lisp/ert.el (ert--erts-file-test-execution-observer): Add
docstring.
(ert--erts-file-test-description, ert--erts-file-test-mismatch): New
structures.
(ert--erts-file-test-diff-button): New button type.
(ert--erts-file-test-diff-button-action): New function.
(ert-results-pop-to-erts-file-tests-for-test-at-point): Mention diff
button in docstring.
(ert-test--erts-test): Use `ert--erts-file-test-description' and
`ert--erts-file-test-mismatch' structures.
* test/lisp/emacs-lisp/ert-resources/erts-fail-point.erts (Name): New
test file.
* test/lisp/emacs-lisp/ert-tests.el (ert-test-list-of-erts-file-tests):
Use `ert--erts-file-test-description' structure.
(ert-test-erts-file-test-output-mismatch): New test.  (Bug#81685)
2026-08-26 14:17:41 +02:00
Daniel Mendler 2b02641953 setq-local: Define on top of set-local
This leads to more compact bytecode.

* lisp/subr.el (setq-local): Expand to `set-local' instead of `setq' and
`make-local-variable'.
2026-08-25 13:56:12 -04:00
Stefan Monnier 5e6f1bb75f cc-mode.el: Set 'editorconfig-indent-size-vars'
* lisp/progmodes/cc-mode.el (c-basic-common-init):
Set 'editorconfig-indent-size-vars'.

* lisp/editorconfig.el (editorconfig-indentation-alist):
Remove settings for CC-modes since they are now redundant.
2026-08-25 12:20:17 -04:00
Juri Linkov 60d0df24d3 * lisp/dired.el (dired-jump-map): Remove key 'j' bound to 'dired-jump'.
It caused a usability conflict with 'j' bound to 'dired-goto-file'
(bug#81672).
2026-08-25 18:24:44 +03:00
Harald Jörg ca03a4c385 ;cperl-mode.el: Adhere to elisp coding conventions
Matthew Persico reported on GitHub that cperl-mode.el gives
several warnings when checked with package-lint.  This commit
fixes them. (https://github.com/HaraldJoerg/cperl-mode/pull/29)

* lisp/progmodes/cperl-mode.el: Add a "Version" header,
remove nonstandard "Perl" keyword. Add an URL header.
(cperl--field-declaration-rx):
(cperl-electric-rparen):
(cperl-find-sub-attrs):
(cperl-highlight-charclass):
(cperl-process-here-doc):
(cperl-init-faces):
Don't wrap closing parens onto new lines
2026-08-25 16:46:38 +02:00
Vincenzo Pupillo 747fa2fd66 Do not indent if <?php is preceded by a shebang or a comment
* lisp/progmodes/php-ts-mode.el
(php-ts-mode--parent-html-heuristic): Do not indent if <?php is
preceded by a shebang or a comment (bug#81663).
2026-08-25 13:23:14 +01:00
Eli Zaretskii 9c7768b264 Fix alignment of string constants in 'c-ts-mode'
* lisp/progmodes/c-ts-mode.el (c-ts-mode--simple-indent-rules):
Align strings that will concatenate.  Patch by Tomas Nordin
<tomasn@posteo.net>.  (Bug#81588)
2026-08-25 13:59:33 +03:00
Harald Jörg 558709f2c7 ; cperl-mode.el: use ps-print instead of cperl-ps-print
There is no value in having an opinionated cperl customization for
PostScript printing (who does that anyway in 2026?) which clobbers
ps-print customization with 'eval-after-load'.

* lisp/progmodes/cperl-mode.el
(cperl-menu): Delete "CPerl pretty print (experimental)".
(cperl-ps-print-face-properties):
Obsolete this cperl-ism variable in favor of ps-print customizing.
(cperl-windowed-init): No longer used, deleted.
(cperl-init-faces): Remove call to 'cperl-ps-print-init'.
(cperl-ps-print-init): Obsolete this function, point to 'ps-print'
customization in the docstring.
(cperl-ps-print): Obsolete this functoin in favor of
`'s-print-buffer'. The function body uses that function.
2026-08-24 22:30:27 +02:00
Harald Jörg 63166a13cc WIP github items 2026-08-24 22:30:27 +02:00
Alan Mackenzie 20fb9c960c objc-mode: Fontify methods containing commas in macro calls
Also correctly handle imenu in a buffer with no classes
declared.

* lisp/progmodes/cc-menus.el
(cc-imenu-objc-generic-expression): Recognize commas in the
part of the regexp dealing with methods.
(cc-imenu-objc-function): When no classes are declared in the
buffer, don't add the spurious element ((nil)) to TOPLIST, as
this causes an error to be thrown.  Also, don't try to setcdr a
list onto TOPLIST when the latter is nil.
2026-08-24 20:17:30 +00:00
Alan Mackenzie eadb99e7b6 objc-mode: Fix context fontification within a multi-line method
At buffer changes in objc-mode, context fontification was
undoing correct fontification due to not taking being inside a
method into account.  Now fixed.

* lisp/progmodes/cc-engine.el
(c-beginning-of-objc-method-header): New function.

* lisp/progmodes/cc-mode.el (c-fl-decl-start): In objc-mode,
call the new function to test for being within a method.
2026-08-24 17:10:31 +00:00
Rahul Martim Juliato 49f3888c5d Add new options to 'query-replace-show-preview' (bug#81583)
* lisp/replace.el (query-replace-show-preview): Accept 'both'
and a function of two arguments as values.  Doc fix.
(query-replace-preview-match): New face.
(replace-preview--propertize, replace-preview--format): New
functions.
(replace-preview-update): Use 'replace-preview--format'.
* etc/NEWS: Update the entry.
2026-08-24 18:35:11 +03:00
Yuuki Harano b2b5bbfc50 Fix PGTK make-frame-invisible loop takes some time (bug#81014)
* src/pgtkterm.c (pgtk_make_frame_invisible):
If already invisible, do nothing.
2026-08-24 22:57:50 +09:00
Dmitry Gutov 7d07be05a2 Improve the process of waiting until a timeout occurs (bug#81014)
* src/pgtkterm.c (pgtk_make_frame_visible_wait_for_event_cb):
Rename from pgtk_make_frame_visible_wait_for_map_event_cb.
(pgtk_make_frame_visible_wait_for_event_timeout):
Rename from pgtk_make_frame_visible_wait_for_map_event_timeout.
(pgtk_wait_for_event): Rename from pgtk_wait_for_map_event.
It waits for not only one "map-event" but also one "unmap-event".
(pgtk_make_frame_visible): Call pgtk_wait_for_event instead
to wait for a "map-event".
(pgtk_make_frame_invisible): Call pgtk_wait_for_event instead
to wait for an "unmap-event".
2026-08-24 22:57:16 +09:00
Eli Zaretskii 8081cffc15 ; * src/xfaces.c (Finternal_lisp_face_equal_p): Fix a thinko (bug#81690). 2026-08-24 16:27:34 +03:00
Sean Whitton 3b2dbae103 Merge from origin/emacs-31
bcfc4e7e19 tab-bar-tests-quit-restore-window: Mark unstable
2026-08-24 13:42:13 +01:00
Sean Whitton aa603c8241 ; Merge from origin/emacs-31
The following commit was skipped:

a001a45a50 Revert "Delete test that hangs"
2026-08-24 13:42:13 +01:00
Sean Whitton 78df4833e6 Merge from origin/emacs-31
6800426743 admin/make-manuals: Include type hierarchy auxiliary files
a013cdd3e8 ; * admin/make-tarball.txt: Various improvements.
82ba6298ae Merge branch 'emacs-31' of git.savannah.gnu.org:/srv/git/...
091398b045 ; * src/treesit.c: Fix wording and typos in commentary.
83ef59ef5e ; Update tree-sitter docstrings
c51104de28 ; * ChangeLog.5: Fix position of one entry.
2026-08-24 13:42:13 +01:00
Sean Whitton 55441ac6d6 ; Merge from origin/emacs-31
The following commit was skipped:

cd83b6e815 Bump Emacs version to 31.1.50
2026-08-24 13:42:13 +01:00
Sean Whitton bcfc4e7e19 tab-bar-tests-quit-restore-window: Mark unstable
* test/lisp/tab-bar-tests.el
(tab-bar-tests-quit-restore-window): Mark unstable.
2026-08-24 13:41:29 +01:00
Sean Whitton a001a45a50 Revert "Delete test that hangs"
This reverts commit 76846eede3.

Do not merge to master.
2026-08-24 13:40:41 +01:00
Sean Whitton 6800426743 admin/make-manuals: Include type hierarchy auxiliary files
* admin/admin.el (make-manuals, make-manuals-dist--1): Install
elisp_type_hierarchy.txt and elisp_type_hierarchy.jpg.
2026-08-24 13:23:24 +01:00
Sean Whitton a013cdd3e8 ; * admin/make-tarball.txt: Various improvements. 2026-08-24 13:23:22 +01:00
Eli Zaretskii 82ba6298ae Merge branch 'emacs-31' of git.savannah.gnu.org:/srv/git/emacs into emacs-31 2026-08-24 14:19:02 +03:00
Eli Zaretskii 091398b045 ; * src/treesit.c: Fix wording and typos in commentary. 2026-08-24 14:18:20 +03:00
Yuan Fu 83ef59ef5e ; Update tree-sitter docstrings
* src/treesit.c: (Ftreesit_parser_create):
(Ftreesit_parser_list): Remove mention of indirect buffer
special case.  (Bug#81637)
2026-08-24 14:11:57 +03:00
Sean Whitton c51104de28 ; * ChangeLog.5: Fix position of one entry. 2026-08-24 12:10:17 +01:00
Sean Whitton cd83b6e815 Bump Emacs version to 31.1.50
* README:
* configure.ac:
* exec/configure.ac:
* java/AndroidManifest.xml.in (Version-code):
* nt/README.W32:
* msdos/sed2v2.inp: Bump Emacs version to 31.1.50.

* etc/NEWS: Add headers for Emacs 31.2.
2026-08-24 11:46:20 +01:00
Sean Whitton f392a3ffc1 Merge from origin/emacs-31
a360712c9d ; Update exported ChangeLog files and etc/AUTHORS
2026-08-24 11:29:00 +01:00
Sean Whitton aae4e319e0 ; Merge from origin/emacs-31
The following commit was skipped:

76846eede3 Delete test that hangs
2026-08-24 11:29:00 +01:00
Sean Whitton 6a8c1253dd Merge from origin/emacs-31
249e293f7a em-script-tests: don't load the site file
442674babb emacsclient-tests: don't load the site file
b4612c6f29 Fix navigating vertical completions with annotations (bug...
f60d4243e6 Fix 'describe-package' for the Emacs pseudo package
d3229f9f37 Avoid errors in text-only client frames of PGTK build
2026-08-24 11:29:00 +01:00
Sean Whitton a360712c9d ; Update exported ChangeLog files and etc/AUTHORS
* ChangeLog.5:
* etc/AUTHORS: Update.
2026-08-24 10:35:47 +01:00
Sean Whitton 76846eede3 Delete test that hangs
* test/lisp/tab-bar-tests.el
(tab-bar-tests-quit-restore-window): Delete test that hangs, for
the Emacs 31.1 release.  Do not merge to master.
2026-08-24 10:05:22 +01:00
Ulrich Müller 249e293f7a em-script-tests: don't load the site file
* test/lisp/eshell/em-script-tests.el (em-script-test/batch-file)
(em-script-test/batch-file/shebang): Invoke Emacs with -Q to
suppress site file loading.  (Bug#81679)
2026-08-23 21:00:56 +02:00
Ulrich Müller 442674babb emacsclient-tests: don't load the site file
* test/lib-src/emacsclient-tests.el
(emacsclient-test-alternate-editor-allows-arguments)
(emacsclient-test-alternate-editor-allows-quotes): Invoke the
alternate editor with -Q to suppress site file loading.  (Bug#81676)
2026-08-23 21:00:56 +02:00
Kai Ma 80383d8e57 Fix Emoji composition rules for TTY frames
* (admin/unidata/emoji-zwj.awk): Add all TTY-eligible Emoji codepoints
to composition rules, but exclude keycap sequence initials.
2026-08-23 17:28:33 +03:00
Stephen Berman b4612c6f29 Fix navigating vertical completions with annotations (bug#81645)
* lisp/simple.el (last-completion): When finding the last column
in the completions list, account for annotations on the candidate.
2026-08-23 15:59:21 +02:00
Philip Kaludercic f60d4243e6
Fix 'describe-package' for the Emacs pseudo package
* lisp/emacs-lisp/package.el (describe-package-1): Manually
construct a package-desc object if the package being described
in 'emacs', otherwise fall back to 'package-get-descriptor'.
This is necessary since 'package-get-descriptor' doesn't handle
pseudo packages.  (Bug#81671)
2026-08-23 13:16:54 +02:00
Eli Zaretskii d3229f9f37 Avoid errors in text-only client frames of PGTK build
* lisp/net/browse-url.el (browse-url): Don't call
pgtk-backend-display-class on TTY frame, as it will signal an
error.  (Bug#81666)
2026-08-23 14:05:33 +03:00
Eli Zaretskii b33d4088a6 ; * etc/NEWS: Fix wording and punctuation of last change. 2026-08-23 11:48:50 +03:00
Kai Ma 23b0f4bdb9 ; * etc/NEWS: Document improved Emoji support on text terminals. 2026-08-23 11:47:28 +03:00
Kai Ma 7eb84c0571 Use the gstring width as the width of an automatic composition
* src/composite.c (composition_update_it): Set the width of an
automatic composition using 'composition_gstring_width'.
2026-08-23 11:46:39 +03:00