]> git.eshelyaron.com Git - emacs.git/log
emacs.git
6 weeks agoCease accepting the :reverse-video face attribute (bug#73552)
Mattias Engdegård [Sun, 29 Sep 2024 14:24:42 +0000 (16:24 +0200)]
Cease accepting the :reverse-video face attribute (bug#73552)

It was an old alias for :inverse-video that hasn't worked very well for
many years.

* src/xfaces.c (merge_face_ref, Finternal_set_lisp_face_attribute)
(Finternal_set_lisp_face_attribute_from_resource)
(Finternal_get_lisp_face_attribute)
(Finternal_lisp_face_attribute_values, syms_of_xfaces):
Stop recognising :reverse-video.
* etc/NEWS: Announce.

(cherry picked from commit 0c28a1b0fab26dd726ea54927661d0402f8047dc)

6 weeks ago* lisp/custom.el (custom-fix-face-spec): Fix :reverse-video case
Mattias Engdegård [Sun, 29 Sep 2024 14:57:07 +0000 (16:57 +0200)]
* lisp/custom.el (custom-fix-face-spec): Fix :reverse-video case

The :reverse-video keyword is no longer used but we might just as well
fix the code that is supposed to migrate away from it (bug#73552).

(cherry picked from commit 8e3205a0c80a39f8e64209fd5905c541c92e46a6)

6 weeks agoStop using :reverse-video in make-mode
Mattias Engdegård [Sun, 29 Sep 2024 14:59:20 +0000 (16:59 +0200)]
Stop using :reverse-video in make-mode

* lisp/progmodes/make-mode.el (makefile-space, makefile-makepp-perl):
Stop using a long obsolete attribute keyword.

(cherry picked from commit a0957595fe8ee298ab066a4ca553aa44de5fa059)

6 weeks agoWarn about :reverse-video in defface
Mattias Engdegård [Sat, 28 Sep 2024 20:04:19 +0000 (22:04 +0200)]
Warn about :reverse-video in defface

This attribute keyword has been non-working in defface for 14 years,
thus warning about it is both safe and decent.

* lisp/emacs-lisp/bytecomp.el (bytecomp--check-cus-face-spec):
Warn and suggest :inverse-video to be used instead.
* test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-test-defface-spec):
Add a test case.
* etc/NEWS: Notify the user.

(cherry picked from commit 8d0c8076c3f2c27bd8ff0dbc72d046c64e1dde44)

6 weeks agoUse directory-name-p in vc-git--file-list-is-rootdir
Dmitry Gutov [Sun, 29 Sep 2024 01:11:52 +0000 (04:11 +0300)]
Use directory-name-p in vc-git--file-list-is-rootdir

* lisp/vc/vc-git.el (vc-git--file-list-is-rootdir):
Use directory-name-p.

(cherry picked from commit dfdeee839ac5475a7788707228dcbc998426ad7f)

6 weeks agoproject--vc-list-files: Use '--sparse' with 'git ls-files'
Sean Allred [Sun, 29 Sep 2024 01:00:32 +0000 (04:00 +0300)]
project--vc-list-files: Use '--sparse' with 'git ls-files'

When dealing with exceptionally large Git repositories, the
performance of `project-find-file` can suffer dramatically as
the list of files is collected for completion.  This adds insult
to injury when you consider cases where the developer has
configured the repository to use a sparse checkout where the
vast majority of these files are not even present on disk and
are not valid candidates for completion.

* lisp/progmodes/project.el (project--vc-list-files):
Pass 'sparse' to 'git ls-files' when Git is recent enough.
Filter out file names that end with '/' (bug#73320).

(cherry picked from commit 8d9a4647fbc6c57e82045ecd2b3f157ece399e9e)

6 weeks ago; Fix last changes in php-ts-mode.el
Eli Zaretskii [Sat, 28 Sep 2024 12:06:44 +0000 (15:06 +0300)]
; Fix last changes in php-ts-mode.el

* lisp/progmodes/php-ts-mode.el
(php-ts-mode--test-namespace-name-as-prefix-p)
(php-ts-mode--test-namespace-aliasing-clause-p)
(php-ts-mode--test-namespace-use-group-clause-p): Doc fixes.
(treesit-query-compile): Declare.

(cherry picked from commit e2b01d164cddcfda053334f735e099aef86547da)

6 weeks agoRequire ert-x for use by 'ert-font-lock-deftest-file'
Morgan Willcock [Tue, 24 Sep 2024 19:19:08 +0000 (20:19 +0100)]
Require ert-x for use by 'ert-font-lock-deftest-file'

This fixes a void-function error when 'ert-font-lock-deftest-file'
is called when ert-x has not already been loaded.
* lisp/emacs-lisp/ert-font-lock.el (ert): Require ert-x so that
'ert-resource-file' is available for use within
'ert-font-lock-deftest-file'.  (Bug#73254)

(cherry picked from commit e8830015b0714173a1eca75ea606d88bce1af48b)

6 weeks ago; * admin/authors.el (authors-aliases): Don't ignore "one.last.kiss".
Eli Zaretskii [Sat, 28 Sep 2024 09:28:24 +0000 (12:28 +0300)]
; * admin/authors.el (authors-aliases): Don't ignore "one.last.kiss".

(cherry picked from commit a1841b4d8e72e58d907847887cc0d51cb56b33c3)

6 weeks agoFix php-ts-mode font-lock for latest PHP grammar (bug#73516)
Vincenzo Pupillo [Fri, 27 Sep 2024 11:07:06 +0000 (13:07 +0200)]
Fix php-ts-mode font-lock for latest PHP grammar (bug#73516)

Version 0.23 of the PHP grammar introduced some changes that
affect the font lock.

* lisp/progmodes/php-ts-mode.el
(php-ts-mode--language-source-alist): Update php, html, js and css
grammars version.
(php-ts-mode--parent-html-heuristic): Fix docstring
(php-ts-mode--test-namespace-name-as-prefix-p): New function.
(php-ts-mode--test-namespace-aliasing-clause-p): New function.
(php-ts-mode--test-namespace-use-group-clause-p): New function.
(php-ts-mode--font-lock-settings): Use the new functions.

(cherry picked from commit 69d8f9d1b709de36f45c0ce1dd04b8b30f0fa019)

6 weeks agoeieio.texi: Fix bug#73505
Stefan Monnier [Fri, 27 Sep 2024 14:35:18 +0000 (10:35 -0400)]
eieio.texi: Fix bug#73505

* doc/misc/eieio.texi (Introduction): Remove "missing features" which
aren't missing any more.
(Generics, Methods): Delete sections.
(Inheritance): Adjust reference accordingly.
(Static Methods): Merge into the parent node.
(Writing Methods): Refer to the ELisp manual for `cl-defmethod/defgeneric`.

(cherry picked from commit 68f53e43488648a7508444736d16f90fed248ef5)

6 weeks ago; cperl-mode.el: Fix an invalid face specification
Harald Jörg [Thu, 26 Sep 2024 13:20:01 +0000 (15:20 +0200)]
; cperl-mode.el: Fix an invalid face specification

* lisp/progmodes/cperl-mode.el (cperl-method-call): Avoid doubly
quoting the parent face.  This made htmlize-buffer fail.

(cherry picked from commit 53c887fdf6ddd907a411d063fee69bfdc2a5757a)

6 weeks ago; Skip commit 65e589698e64908d5a6a418594b3078342a7e6fd
Eshel Yaron [Mon, 30 Sep 2024 19:40:14 +0000 (21:40 +0200)]
; Skip commit 65e589698e64908d5a6a418594b3078342a7e6fd

6 weeks agoDelete duplicated line in Viper refcard
Andrés Ramírez [Wed, 25 Sep 2024 23:50:52 +0000 (01:50 +0200)]
Delete duplicated line in Viper refcard

* etc/refcards/viperCard.tex: Delete duplicated line.  (Bug#73480)

Copyright-paperwork-exempt: yes
(cherry picked from commit 1f243a978061919900eba3ef1127aae80c66b6c7)

6 weeks agoFix Tramp shortdoc integration
Michael Albinus [Wed, 25 Sep 2024 17:43:07 +0000 (19:43 +0200)]
Fix Tramp shortdoc integration

* lisp/net/tramp-integration.el (tramp-syntax): Declare.
(shortdoc): Check, that Tramp has `default' syntax.

(cherry picked from commit d63bff4d88f32c31fa16f313f11ad2ab7485d4f9)

6 weeks ago; Skip commit 759b18a33c0a18550b0c5ec341dc76f1f0bc16c7
Eshel Yaron [Mon, 30 Sep 2024 19:39:45 +0000 (21:39 +0200)]
; Skip commit 759b18a33c0a18550b0c5ec341dc76f1f0bc16c7

6 weeks agoremember-data-file: Don't unconditionally call set-visited-file-name
Sean Whitton [Wed, 25 Sep 2024 15:02:53 +0000 (16:02 +0100)]
remember-data-file: Don't unconditionally call set-visited-file-name

* lisp/textmodes/remember.el (remember-data-file): Don't
unconditionally call set-visited-file-name.

(cherry picked from commit 794bb2a2e31f3027e1db9e027af28151f11a32ed)

6 weeks agoAlign columns in which-key with wide characters properly
Thomas Voss [Wed, 25 Sep 2024 00:17:49 +0000 (02:17 +0200)]
Align columns in which-key with wide characters properly

In the case that a character takes up multple columns (such as
`…' when used as a truncation character), make sure that the
columns are still aligned properly.
* lisp/which-key.el (which-key--pad-column): Use `string-width'
instead of `length'.  (Bug#73463)

Copyright-paperwork-exempt: yes
(cherry picked from commit 7766ba8419955104fb675a6f4134a8a34ea73e43)

6 weeks agobibtex-mode: fix patch bibtex validation for non-file buffers
Roland Winkler [Wed, 25 Sep 2024 04:14:27 +0000 (23:14 -0500)]
bibtex-mode: fix patch bibtex validation for non-file buffers

(cherry picked from commit bd25a98b4e70dbdcb6db92b0b39122a6c7386044)

6 weeks agoDocument 'buttonize-region' in manual
Robert Pluim [Tue, 24 Sep 2024 15:03:49 +0000 (17:03 +0200)]
Document 'buttonize-region' in manual

It was added in emacs-29, but never added to the lisp reference
manual.

* doc/lispref/display.texi (Making Buttons): Document
'buttonize-region'.

(cherry picked from commit 4729065ee78c260538974c2d8010246dce0ebf0c)

6 weeks ago; * lisp/yank-media.el (yank-media-handler): Fix docstring typo.
Robert Pluim [Tue, 24 Sep 2024 15:02:21 +0000 (17:02 +0200)]
; * lisp/yank-media.el (yank-media-handler): Fix docstring typo.

(cherry picked from commit f189457e5aa98b6a073713da74884f363098411f)

6 weeks agoUse black-on-white by default for doc-view-svg-face.
Tassilo Horn [Mon, 23 Sep 2024 16:50:29 +0000 (18:50 +0200)]
Use black-on-white by default for doc-view-svg-face.

* lisp/doc-view.el (doc-view-svg-face): Define black on white as
default value instead of using the current theme's values.
* etc/NEWS: Adjust entry for doc-view-svg-face.

(cherry picked from commit 2b53e11a087be54f9ba7cd39334f7c14e89946ca)

6 weeks agoetags-regen-file-extensions: Enable for more extensions
Dmitry Gutov [Mon, 23 Sep 2024 18:35:00 +0000 (21:35 +0300)]
etags-regen-file-extensions: Enable for more extensions

* lisp/progmodes/etags-regen.el (etags-regen-file-extensions):
Add more extensions, but remove "a".  From the ones recognized by
etags, also omit "t", "ml", "l", "def" and "inc", see
https://lists.gnu.org/archive/html/emacs-devel/2024-09/msg00735.html.
(etags-regen--all-files): Use 'string-match-p' for performance.
Bind 'case-fold-search' to t to match extensions in any case.

(cherry picked from commit 32d0c8f6af52cd8db363456d817c3d214eea4c00)

6 weeks ago; Fix last change
Eli Zaretskii [Mon, 23 Sep 2024 14:13:31 +0000 (17:13 +0300)]
; Fix last change

* doc/lispref/lists.texi (Building Lists):
* src/fns.c (Fappend): Fix last change (bug#73427).  Suggested by
Mattias Engdegård <mattias.engdegard@gmail.com>.

(cherry picked from commit 8f265b49e3d3b4403ab0cdd4a5b94d2e335297cb)

6 weeks ago; Improve documentation of 'append'
Eli Zaretskii [Mon, 23 Sep 2024 11:41:34 +0000 (14:41 +0300)]
; Improve documentation of 'append'

* doc/lispref/lists.texi (Building Lists):
* src/fns.c (Fappend): Improve documentation of 'append'.  (Bug#73427)

(cherry picked from commit c8ed48b9901790fdabcf91ef15a6ba47c96b48c8)

6 weeks ago; Skip commit c1f2501f55d7454222389244512f732ac5e778b4
Eshel Yaron [Mon, 30 Sep 2024 19:37:39 +0000 (21:37 +0200)]
; Skip commit c1f2501f55d7454222389244512f732ac5e778b4

6 weeks agoInsert correct commit data into VC package descriptions
Philip Kaludercic [Thu, 19 Sep 2024 20:27:26 +0000 (22:27 +0200)]
Insert correct commit data into VC package descriptions

* lisp/emacs-lisp/package-vc.el (package-vc-commit): Rename
argument from PKG to PKG-DESC.
(package-vc--generate-description-file): Update the "extras"
section of the package description with the revision string at
generation time.

(cherry picked from commit 4f5fc519f0921f3ad2f78210e9fb765705fc4cad)

6 weeks agoDocument reporting security issues in user manual
Stefan Kangas [Sat, 21 Sep 2024 11:25:00 +0000 (13:25 +0200)]
Document reporting security issues in user manual

* doc/emacs/trouble.texi (Bugs): Document how to report important
security issues.

(cherry picked from commit 98177d4b3d15e5b7a9c14d1588c13a928ed62da1)

6 weeks ago* BUGS: Minor copy edit.
Stefan Kangas [Sat, 21 Sep 2024 11:23:35 +0000 (13:23 +0200)]
* BUGS: Minor copy edit.

(cherry picked from commit b986e2018a489893ceae26d47aeccefd24bca69f)

6 weeks ago* etc/images/kitchen-sink.xpm: New file.
Manuel Giraud [Fri, 20 Sep 2024 15:52:59 +0000 (17:52 +0200)]
* etc/images/kitchen-sink.xpm: New file.

(cherry picked from commit daba97699ba04256e782dfa4b88805e5f053a90b)

6 weeks agoEnable 'sh-mode' for files created by Bash 'fc' command
shynur [Fri, 20 Sep 2024 12:15:06 +0000 (12:15 +0000)]
Enable 'sh-mode' for files created by Bash 'fc' command

* lisp/files.el (auto-mode-alist): Recognize bash-fc.XXXX files.
(Bug#73380)

(cherry picked from commit c12cb25199ebbb665548a1c3f7ec57a4536b76ad)

6 weeks ago; Skip commit 9c994537cfabd327ada70a3aa4204bc5aae6a9a2
Eshel Yaron [Sat, 28 Sep 2024 10:44:54 +0000 (12:44 +0200)]
; Skip commit 9c994537cfabd327ada70a3aa4204bc5aae6a9a2

6 weeks ago; Skip commit fb3aa693562dd61540d5f1d6f46bcfbd8668853a
Eshel Yaron [Sat, 28 Sep 2024 10:44:46 +0000 (12:44 +0200)]
; Skip commit fb3aa693562dd61540d5f1d6f46bcfbd8668853a

6 weeks agoWarn about bad face specs in `defface` at compile time
Mattias Engdegård [Fri, 27 Sep 2024 09:48:14 +0000 (11:48 +0200)]
Warn about bad face specs in `defface` at compile time

* lisp/emacs-lisp/bytecomp.el (byte-compile--custom-declare-face):
Byte-compile `defface` forms, or the byte-compile handler won't
be called.
(bytecomp--check-cus-face-spec): New.
(bytecomp--custom-declare): Call it.
* test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-test-defface-spec):
New tests.

(cherry picked from commit bba14a27678317eee68e87a343e7314b3949f6c7)

6 weeks ago* lisp/custom.el (defface): Add missing attributes to doc string.
Mattias Engdegård [Fri, 27 Sep 2024 10:58:32 +0000 (12:58 +0200)]
* lisp/custom.el (defface): Add missing attributes to doc string.

(cherry picked from commit 09d63ba32bbd0ddbd8c9deb4fcfe8e4356ea0e8d)

6 weeks agoCC Mode: Parse C++ lambda functions more correctly
Alan Mackenzie [Fri, 27 Sep 2024 13:42:40 +0000 (13:42 +0000)]
CC Mode: Parse C++ lambda functions more correctly

This fixes bug#72695.

* lisp/progmodes/cc-align.el (c-lineup-topmost-intro-cont): Do
not indent further a line following a closing brace of a
requires clause.

* lisp/progmodes/cc-engine.el (c-forward-keyword-clause):
Separate the handling of "any-paren-kwds" into
"type-paren-kwds" and "nontype-paren-kwds", simplifying the
handling of the latter.
(c-forward-primary-expression): Recognize (...) followed by {
as a primary expression.
(c-looking-at-or-maybe-in-bracelist): No longer recognize an
enum list as a brace list.  Remove the handling of enum lists.
(c-looking-at-c++-lambda-expression)
(c-backward-over-lambda-expression): New functions.
(c-c++-vsemi-p): Don't recognize the end of requires clauses as
virtual semicolons.
(c-guess-basic-syntax): CASE 5U - new cond arm to recognize
being after a requires clause.  These lines now get syntax
topmost-intro-cont rather than topmost-intro, and their anchor
positions are now on the topmost-intro line rather than the
previous topmost-intro-cont.
Throughout the file: simplify handling of
c-fun-name-substitute-key, where there is no need to check for
a following _ character, and introduce c-requires-clause-key
for greater accuracy in parsing, even though both of these are
just "requires".

* lisp/progmodes/cc-fonts.el (c-get-fontification-context):
Tidy up the handling of c-fun-name-substitue-key, as in
cc-engine.el.

* lisp/progmodes/cc-langs.el (c-lambda-spec-kwds)
(c-lambda-spec-key): New lang vars.
(c-fun-name-substitute-key): Now an adorned expression.
(c-requires-clause-kwds, c-requires-clause-key): New lang vars.

(cherry picked from commit 0a1628bf69086f85f9b983e2e62660fc90b6d568)

6 weeks ago; Fix bug#73506
Eshel Yaron [Fri, 27 Sep 2024 10:32:37 +0000 (12:32 +0200)]
; Fix bug#73506

6 weeks ago* lisp/mail/emacsbug.el (submit-emacs-patch): Insert empty X-Debbugs-Cc
Michael Albinus [Fri, 27 Sep 2024 07:33:51 +0000 (09:33 +0200)]
* lisp/mail/emacsbug.el (submit-emacs-patch): Insert empty X-Debbugs-Cc

(Bug##57877)

(cherry picked from commit d98a2b70d730308d91e7cdd1940ee4a1ac273a54)

6 weeks ago; * src/cm.c (cmgoto): Fix last change.
Eli Zaretskii [Fri, 27 Sep 2024 06:19:19 +0000 (09:19 +0300)]
; * src/cm.c (cmgoto): Fix last change.

(cherry picked from commit 57c552b8b9071b137451299534bd870616b952e9)

6 weeks ago; * src/cm.c (cmgoto): Add function documentation (bug#73487).
Jeremy Bryant [Wed, 25 Sep 2024 21:28:04 +0000 (22:28 +0100)]
; * src/cm.c (cmgoto): Add function documentation (bug#73487).

(cherry picked from commit bfbed2f3ee40ac6dba46e80d1665a820d64ba091)

6 weeks ago; * lisp/emacs-lisp/easy-mmode.el (easy-mmode--prev): Doc fix.
Eli Zaretskii [Fri, 27 Sep 2024 05:49:46 +0000 (08:49 +0300)]
; * lisp/emacs-lisp/easy-mmode.el (easy-mmode--prev): Doc fix.

(cherry picked from commit ff4082284a06de319a3c4e5ed1144f15f5226eca)

6 weeks ago; * etc/NEWS: Fix recently added entry.
Eli Zaretskii [Fri, 27 Sep 2024 05:47:13 +0000 (08:47 +0300)]
; * etc/NEWS: Fix recently added entry.

(cherry picked from commit 8e08e37166fbd3f99c895a9d2cea24939d75ac9b)

6 weeks ago; * lisp/progmodes/python.el (python-interpreter): Fix :version.
Eli Zaretskii [Fri, 27 Sep 2024 05:44:35 +0000 (08:44 +0300)]
; * lisp/progmodes/python.el (python-interpreter): Fix :version.

(cherry picked from commit 42eb2265e64c4615f4a6111afc80ee25c782ef1e)

6 weeks agoBind "J" to bookmark-jump in bookmark-bmenu-mode
Stefan Kangas [Fri, 27 Sep 2024 05:11:22 +0000 (07:11 +0200)]
Bind "J" to bookmark-jump in bookmark-bmenu-mode

* lisp/bookmark.el (bookmark-bmenu-mode-map): Bind "J" to bookmark-jump.

(cherry picked from commit bdfeb45bfcf1bf29a820d3086f007d07147b0598)

6 weeks agoPrefer python3 for python-interpreter
Stefan Kangas [Thu, 26 Sep 2024 15:11:56 +0000 (17:11 +0200)]
Prefer python3 for python-interpreter

* lisp/progmodes/python.el (python-interpreter): Prefer "python3" when
it exists, to be consistent with python-shell-interpreter.

(cherry picked from commit 7f0a252f2160dd4d168bc77e2f6e6c9901b67465)

6 weeks agoMove to start of current header in diff-{file,hunk}-prev
Spencer Baugh [Tue, 10 Sep 2024 18:18:39 +0000 (14:18 -0400)]
Move to start of current header in diff-{file,hunk}-prev

If point was after a file or hunk header, the diff-file-prev and
diff-hunk-prev commands would move to the start of that header.
But if point was *within* the header, they would not move, and
would report "No previous file" or "No previous hunk".  This
differs from the behavior of most other movement commands,
e.g. backward-sexp or backward-sentence.

This commit fixes diff-file-prev and diff-hunk-prev, as well as
other easy-mmode-define-navigation BASE-prev commands.  Now
these commands move to the start of the containing "thing" just
like other movement commands.

* lisp/emacs-lisp/easy-mmode.el (easy-mmode--prev):
Move to start of current match first. (bug#73172)
* etc/NEWS: Document the behavior change.

(cherry picked from commit e776903b31cf2b2d21d91cbc7d6b7dbc1e9d442f)

6 weeks agoMove easy-mmode-define-navigation logic to helper functions
Spencer Baugh [Tue, 10 Sep 2024 17:46:18 +0000 (13:46 -0400)]
Move easy-mmode-define-navigation logic to helper functions

The functions defined by easy-mmode-define-navigation are useful
even if the easy-mmode-define-navigation macro is not used.
Let's take a step towards exposing them by moving them out as
helpers.

This also makes the macro much easier to modify and work on.

* lisp/emacs-lisp/easy-mmode.el (easy-mmode--prev)
(easy-mmode--next): Add (bug#73172).
(easy-mmode-define-navigation): Use easy-mmode--prev and
easy-mmode--next.

(cherry picked from commit da1416fc6998718d1e36e32961b4415045949632)

6 weeks ago(pcase-tests-quote-optimization): Fix warning
Stefan Monnier [Thu, 26 Sep 2024 21:03:28 +0000 (17:03 -0400)]
(pcase-tests-quote-optimization): Fix warning

* test/lisp/emacs-lisp/pcase-tests.el (pcase-tests-quote-optimization):
Fix confusing code.

(cherry picked from commit c95620ffbf8c2caebdb6a7aba7dbe9cd223fa2f4)

6 weeks ago* lisp/emacs-lisp/pcase.el (pcase--expand-\`): Improve warning message
Stefan Monnier [Thu, 26 Sep 2024 20:40:54 +0000 (16:40 -0400)]
* lisp/emacs-lisp/pcase.el (pcase--expand-\`): Improve warning message

And also move the warning "out of the way" so it doesn't
confuse optimizations.

(cherry picked from commit 4591d93a8e5e79e7fea8a67c84c6adf0ea8add28)

6 weeks ago; * etc/NEWS: Don't say that C-c M-r can undo whole commits.
Sean Whitton [Thu, 26 Sep 2024 19:02:05 +0000 (20:02 +0100)]
; * etc/NEWS: Don't say that C-c M-r can undo whole commits.

(cherry picked from commit 37bed70f4c0a2e33de238eab90d7470d34366f13)

6 weeks ago; Fix build error with last change in python.el
Gerd Möllmann [Thu, 26 Sep 2024 15:35:38 +0000 (17:35 +0200)]
; Fix build error with last change in python.el

(cherry picked from commit b9d103c16e9299f2bd8f1f8a5b5cc75a1295c29f)

6 weeks agoAdd Python "*.pth" files to auto-mode-alist
Stefan Kangas [Thu, 26 Sep 2024 15:04:31 +0000 (17:04 +0200)]
Add Python "*.pth" files to auto-mode-alist

* lisp/progmodes/python.el (python--auto-mode-alist-regexp): New
variable.
(auto-mode-alist, python-ts-mode): Use above new variable.

(cherry picked from commit 2f485e68ff96cc66a17df2c0a58e272bbfc24765)

6 weeks ago* Clean-up unused condition-case
Andrea Corallo [Thu, 26 Sep 2024 14:15:04 +0000 (16:15 +0200)]
* Clean-up unused condition-case

* lisp/emacs-lisp/comp.el (comp--native-compile): Remove unused
condition-case.

(cherry picked from commit 4c567892e044ada0e09889ec520fefa07f52b20b)

6 weeks ago; Fix documentation of last change
Eli Zaretskii [Thu, 26 Sep 2024 11:24:18 +0000 (14:24 +0300)]
; Fix documentation of last change

* lisp/vc/diff-mode.el (diff-ask-before-revert-and-kill-hunk): Add
':version' tag.
(diff-revert-and-kill-hunk, diff-apply-buffer): Doc fixes.

* etc/NEWS:
* doc/emacs/files.texi (Diff Mode): Fix last change; add indexing.

(cherry picked from commit c86e7a29e78e75b487ea36f0711f327f66f93c10)

6 weeks agoNew command diff-revert-and-kill-hunk
Sean Whitton [Tue, 24 Sep 2024 08:38:43 +0000 (09:38 +0100)]
New command diff-revert-and-kill-hunk

* lisp/vc/diff-mode.el (diff-revert-and-kill-hunk): New
command (bug#73407).
(diff-ask-before-revert-and-kill-hunk): New user option.
(diff-apply-buffer): New optional BEG, END and REVERSE
arguments.  Return nil if buffers were saved, or the number of
failed applications.
(diff-mode-map): Bind the new command to C-c M-r.
(diff-mode-menu): New entry for the new command.
* doc/emacs/files.texi (Diff Mode):
* etc/NEWS: Document the change.

(cherry picked from commit f2e3e563d4909ff503bb2d3aeb6d2de9804e3047)

6 weeks agoRevert "; Recommend GNU Find for 'find-dired'"
Eli Zaretskii [Thu, 26 Sep 2024 07:30:15 +0000 (10:30 +0300)]
Revert "; Recommend GNU Find for 'find-dired'"

This reverts commit 5f8c2d5bf9638c38fdba7eb840d3bc7b252bb687.
It was committed by mistake on this branch.

(cherry picked from commit 8ffb680d09bc6b18d36941765e0f4ca881b565c9)

6 weeks ago; Recommend GNU Find for 'find-dired'
Eli Zaretskii [Thu, 26 Sep 2024 07:28:20 +0000 (10:28 +0300)]
; Recommend GNU Find for 'find-dired'

* lisp/find-dired.el (find-dired): Doc fix (bug#73455).

(cherry picked from commit 5f8c2d5bf9638c38fdba7eb840d3bc7b252bb687)

6 weeks agoDeprecate 'Homepage' header in favor of 'URL'
Stefan Kangas [Thu, 26 Sep 2024 00:04:03 +0000 (02:04 +0200)]
Deprecate 'Homepage' header in favor of 'URL'

* doc/lispref/tips.texi (Library Headers): Document the 'Homepage'
header as deprecated in favor of 'URL'.

(cherry picked from commit 89abbb843a01f799c320ad776d139835e80ecf61)

6 weeks ago; * src/cm.c (calccost): Fix typo. (Bug#73485)
Jeremy Bryant [Wed, 25 Sep 2024 21:04:23 +0000 (22:04 +0100)]
; * src/cm.c (calccost): Fix typo. (Bug#73485)

(cherry picked from commit 0c861b820b79d9bd8b3ed2c445c79ca806b1cb67)

6 weeks ago* etc/NEWS: Describe the change to enum handling in CC Mode
Alan Mackenzie [Wed, 25 Sep 2024 21:06:07 +0000 (21:06 +0000)]
* etc/NEWS: Describe the change to enum handling in CC Mode

(cherry picked from commit 3a0db55b5094686423b73b74ebdf9eba62d384f2)

6 weeks ago; Improve use of ngettext
Eli Zaretskii [Wed, 25 Sep 2024 19:33:30 +0000 (20:33 +0100)]
; Improve use of ngettext

(cherry picked from commit f28793822d86b9c4135c70498b4588629f0c6ea7)

6 weeks ago; Really disable 'button-mode' in 'emacs-news-mode'
Robert Pluim [Tue, 24 Sep 2024 08:52:35 +0000 (10:52 +0200)]
; Really disable 'button-mode' in 'emacs-news-mode'

* lisp/textmodes/emacs-news-mode.el (emacs-news-mode): Call
'button-mode' with -1 arg.

(cherry picked from commit a06a7209028363a1bb2f727ffaecdf4d02296b2e)

6 weeks agoTest 'network-lookup-address-info' argument type checking
Robert Pluim [Thu, 19 Sep 2024 08:06:20 +0000 (10:06 +0200)]
Test 'network-lookup-address-info' argument type checking

* test/src/process-tests.el (lookup-hints-values): Pass in
non-string values, which should result in type errors.

(cherry picked from commit 1b1b922992946f0d17f6a2a2d3515b36a955244e)

6 weeks ago; Tramp cosmetic change
Michael Albinus [Wed, 25 Sep 2024 09:36:28 +0000 (11:36 +0200)]
; Tramp cosmetic change

* lisp/net/tramp.el (tramp-file-name-handler):
Adapt `tramp-verbose' when completing host names.

(cherry picked from commit 29c610a83243c82aeb1bfefea26adad0b34ff011)

6 weeks ago; * Clean-up compilation warning in cc-vars.el
Andrea Corallo [Wed, 25 Sep 2024 08:19:12 +0000 (10:19 +0200)]
; * Clean-up compilation warning in cc-vars.el

* lisp/progmodes/cc-vars.el (c-offsets-alist): Move definition to
clean-up byte-compiler warning.

(cherry picked from commit 4b76af49281e5522dcabbf2fc6be8f1b8bc535ac)

6 weeks ago* lisp/hi-lock.el (hi-lock-revert-buffer-rehighlight): Fix lighter.
Juri Linkov [Wed, 25 Sep 2024 06:57:16 +0000 (09:57 +0300)]
* lisp/hi-lock.el (hi-lock-revert-buffer-rehighlight): Fix lighter.

Add '(car pattern)' as the LIGHTER argument of 'highlight-regexp'.
This fixes the case when in a file buffer with fundamental-mode:
`C-s M-s ' the M-s h r RET`, revert the buffer with 'C-x x g',
get the prompt for unhighlight with 'M-s h u'.  This showed
a raw regexp instead of the human-readable lighter (bug#57534).

(cherry picked from commit 0f424b16c37fce82a586014f32f8513f86786e4e)

6 weeks agoCC Mode: Separate indentation of enums from that of brace lists
Alan Mackenzie [Tue, 24 Sep 2024 20:45:29 +0000 (20:45 +0000)]
CC Mode: Separate indentation of enums from that of brace lists

This will allow enums to be indented as in the GNU coding
standards without affecting brace lists.

* lisp/progmodes/cc-align.el
(c-lineup-arglist-intro-after-paren)
(c-lineup-arglist-close-under-paren)
(c-lineup-whitesmith-in-block)
(c-lineup-after-whitesmith-blocks): Amend doc strings to
indicate they can be used for enum-* syntactic symbols too.

* lisp/progmodes/cc-engine.el (c-looking-at-decl-block)
(c-backward-typed-enum-colon, c-backward-over-enum-header):
Rename c-after-brace-list-key to c-after-enum-list-key and
c-brace-list-key to c-enum-list-key.
(c-at-enum-brace): New function.
(c-inside-bracelist-p): Don't check for enums any more.
(c-add-stmt-syntax): New cond arm for enums.
(c-guess-continued-construct CASE B.6) New code for enum-open.
(c-guess-basic-syntax CASE 5A.3, CASE 7B, CASE 9, CASE 9B)
(CASE 9C, CASE 9D): Use the new function c-at-enum-brace, and
use enum-* syntactic symbols rather than brace-list-* ones
where appropriate.
(c-used-syntactic-symbols): New dynamic variable.
(c-evaluate-offset): Add handling for a different syntactic
symbol as the cdr of a c-offsets-alist element.

* lisp/progmodes/cc-fonts.el (c-get-fontification-context):
Add a call to c-at-enum-brace since c-inside-bracelist-p no
longer handles enums.
(c-font-lock-enum-body, c-font-lock-enum-tail): Condense calls
to c-backward-over-enum-header to c-at-enum-brace.
(c-basic-matchers-after): Replace a c-brace-list-decl-kwds with
c-enum-list-kwds.

* lisp/progmodes/cc-langs.el (c-enum-list-kwds)
(c-enum-list-key): New names for c-brace-list-decl-kwds and
c-brace-list-key.
(c-after-enum-list-kwds, c-after-enum-list-key): New names for
c-after-brace-list-decl-kwds and c-after-brace-list-key.
(c-enum-list-key, c-after-enum-list-key): Add code to
use a value of an old name, should a derived mode still use
that.
(c-defun-type-name-decl-kwds, c-typedef-decl-kwds)
(c-typeless-decl-kwds, c-prefix-spec-kwds)
(c-brace-id-list-kwds, c-enum-clause-introduction-re): Use
c-enum-list-kwds rather than c-brace-list-decl-kwds.

* lisp/progmodes/cc-styles.el (c-read-offset): Add "a
syntactic symbol" into an error message text.

* lisp/progmodes/cc-vars.el (c-valid-offset): Allow for a
syntactic symbol as the parameter.
(c-offsets-alist): Add new syntactic symbols enum-open,
enum-close, enum-intro, and enum-entry.

* doc/misc/cc-mode.texi (Syntactic Symbols): Add a note that
anchor points are briefly documented in cc-vars.el.  Correct
the suffix "-block-intro" to "-intro".  Remove "an enum or"
from the descriptions of the brace-list-* syntactic symbols.
Add in new descriptions for the enum-* syntactic symbols.
(Brace List Symbols): Remove references to enums.  Add a note
that enums are no longer brace-lists.
(Enum Symbols): A new subsection documenting the new enum-*
syntactic symbols.
(c-offsets-alist): Document the new possibility, syntactic
symbol, for the cdr of an alist entry.
(Brace/Paren Line-Up, List Line-Up): Note that the new enum
syntactic symbols can be handled by these lineup functions.

(cherry picked from commit c2d6f191d489de8349847b5c18acec8462b66247)

6 weeks agoDeclare nested backquotes unsupported in Pcase patterns (bug#72328)
Stefan Monnier [Tue, 24 Sep 2024 18:01:26 +0000 (14:01 -0400)]
Declare nested backquotes unsupported in Pcase patterns (bug#72328)

The current behavior is inconsistent with that of the normal backquote
macro, so to avoid surprises, warn about the use of nested backquotes.

* lisp/emacs-lisp/pcase.el (pcase--expand-\`): Warn about nested backquotes.

* lisp/emacs-lisp/testcover.el (testcover-analyze-coverage)
(testcover-analyze-coverage-wrapped-form): Avoid nested backquotes

(cherry picked from commit e8f5df5175170d36f526e46b63b3d428bb9a8950)

6 weeks agodiff-apply-buffer: Improve failure message
Sean Whitton [Tue, 24 Sep 2024 15:17:17 +0000 (16:17 +0100)]
diff-apply-buffer: Improve failure message

* lisp/vc/diff-mode.el (diff-apply-buffer): Say "hunk", not
"hunks", when there was only one failed hunk.

(cherry picked from commit ce601de1cafa65d6e6f5ba52e9c794873d164fbd)

6 weeks ago; Fix shr-tests when Emacs was built without libxml2
Eli Zaretskii [Mon, 23 Sep 2024 15:30:00 +0000 (18:30 +0300)]
; Fix shr-tests when Emacs was built without libxml2

* test/lisp/net/shr-tests.el (shr-test/zoom-image): Skip if
libxml2 is not available.  (Bug#73440)

(cherry picked from commit e7260d4eb3ed1bebcaa9e2b934f162d4bb42e413)

6 weeks agoExtend tramp-otp-password-prompt-regexp
Michael Albinus [Mon, 23 Sep 2024 14:52:01 +0000 (16:52 +0200)]
Extend tramp-otp-password-prompt-regexp

* lisp/net/tramp.el (tramp-otp-password-prompt-regexp): Add TACC
HPC prompt.

(cherry picked from commit 40e0257b1084b0243b5fcc972068fbce41fd9629)

6 weeks agoWarn about unreachable code
Eshel Yaron [Fri, 27 Sep 2024 10:18:21 +0000 (12:18 +0200)]
Warn about unreachable code

7 weeks agoWarn about unreachable code
Eshel Yaron [Thu, 26 Sep 2024 12:03:42 +0000 (14:03 +0200)]
Warn about unreachable code

* lisp/emacs-lisp/byte-opt.el (byte-opt--every)
(byte-opt--return-p): New functions.
(byte-optimize-body): Emit warning for unreachable code.

7 weeks ago; Drop 'elisp--local-variables-completion-table'
Eshel Yaron [Thu, 26 Sep 2024 12:02:53 +0000 (14:02 +0200)]
; Drop 'elisp--local-variables-completion-table'

7 weeks ago; Move variable definition above its first use
Eshel Yaron [Thu, 26 Sep 2024 12:02:27 +0000 (14:02 +0200)]
; Move variable definition above its first use

7 weeks ago* doc/misc/tramp.texi (Frequently Asked Questions): Improve indices.
Michael Albinus [Mon, 23 Sep 2024 07:53:17 +0000 (09:53 +0200)]
* doc/misc/tramp.texi (Frequently Asked Questions): Improve indices.

(cherry picked from commit dda7abb177b8eec537b18abb978fcbcb61dd8af1)

7 weeks ago; Fix dnd-tests on MS-Windows
Eli Zaretskii [Sun, 22 Sep 2024 09:57:08 +0000 (12:57 +0300)]
; Fix dnd-tests on MS-Windows

* test/lisp/dnd-tests.el (dnd-tests-get-local-file-uri): Fix test
on MS-Windows.

(cherry picked from commit 3fb966dc6392e1908304a1b6fe481da9f670cfbb)

7 weeks agoFix multi-file drag-and-drop on MS-Windows
Cecilio Pardo [Sat, 21 Sep 2024 13:30:27 +0000 (15:30 +0200)]
Fix multi-file drag-and-drop on MS-Windows

Pass all dropped files to 'dnd-handle-multiple-urls' in
one call instead on doing multiple calls (Bug#73258).
* lisp/term/w32-win.el (w32-dropped-file-to-url): New function to
convert file name to a url for dnd.
(w32-handle-dropped-file): Changed to use 'w32-dropped-file-to-url'.
(w32-drag-n-drop): Changed to pass all files to
'dnd-handle-multiple-urls'/

(cherry picked from commit e8f0baf354b117837fd686e2bf6ca8df15bd1cd4)

7 weeks ago; Add test for deleting multiple pairs at once
Joseph Turner [Sat, 21 Sep 2024 17:23:07 +0000 (10:23 -0700)]
; Add test for deleting multiple pairs at once

* test/lisp/electric-tests.el (electric-pair-backspace-2):
New test.  (Bug#72437)

(cherry picked from commit 0f4c09d26782835a7e31bf29c92d72a6a27a3ff1)

7 weeks agoTeach Electric Pair mode about prefix arguments
Eshel Yaron [Sat, 21 Sep 2024 10:15:16 +0000 (12:15 +0200)]
Teach Electric Pair mode about prefix arguments

* lisp/elec-pair.el (electric-pair--insert): New arg TIMES.
(electric-pair-inhibit-if-helps-balance)
(electric-pair-post-self-insert-function)
(electric-pair-open-newline-between-pairs-psif)
(electric-pair-skip-if-helps-balance): Respect prefix arg.
(electric-pair-delete-pair): Delete ARG chars, not just 1.
* test/lisp/electric-tests.el (autowrapping-multi-1)
(autowrapping-multi-2): New tests.
* doc/emacs/programs.texi (Matching): Mention prefix arg
support in Electric Pair mode documentation.
* etc/NEWS: Announce it.  (Bug#72437)

(cherry picked from commit a7192fd7b7355f13ff3002dba14c6acdabad5b5e)

7 weeks ago; * lisp/midnight.el (midnight-mode): forward-declare midnight-delay
Mattias Engdegård [Sat, 21 Sep 2024 17:33:20 +0000 (19:33 +0200)]
; * lisp/midnight.el (midnight-mode): forward-declare midnight-delay

(cherry picked from commit f5bf007df122d3524b23725c5ddc2dd97d3577f8)

7 weeks agoCC Mode: fix minor errors in the fontification of enums.
Alan Mackenzie [Sat, 21 Sep 2024 16:46:32 +0000 (16:46 +0000)]
CC Mode: fix minor errors in the fontification of enums.

1: Fix the typing of a space on the { line in an enum
specification which is the first item in a buffer.  This
defontified the enum's identifiers.
2: Fix the typing of a space on the line of the enum's last
identifier.  This defontified that identifier for
jit-lock-context-time.

* lisp/progmodes/cc-engine.el (c-forward-declarator): Cease
rejecting the identifier if there are no further tokens before
LIMIT.

* lisp/progmodes/cc-mode.el (c-fl-decl-start): Accept a
backward search as succeeding if it hits point-min.

(cherry picked from commit 086cb1b590251ca353fec5a841ea882cdf9cbcb2)

7 weeks agoDon't activate midnight-mode when loading 'midnight'
Manuel Giraud [Sat, 21 Sep 2024 12:51:21 +0000 (14:51 +0200)]
Don't activate midnight-mode when loading 'midnight'

* lisp/midnight.el (midnight-mode): Call 'midnight-delay-set' again
when the mode is activated.
(midnight-delay-set): Only start the timer if the mode is turned
on.  (Bug#73291)
* etc/NEWS: Document the change in behaviour.

(cherry picked from commit 4745bafa6a1d6aeda5ad08e09541d076ee223382)

7 weeks agoDelete redundant declarations of 'electric' variables
Stefan Kangas [Sat, 21 Sep 2024 12:44:06 +0000 (14:44 +0200)]
Delete redundant declarations of 'electric' variables

* lisp/progmodes/js.el (electric-layout-rules):
* lisp/progmodes/octave.el (electric-layout-rules):
* lisp/progmodes/python.el (electric-indent-inhibit):
* lisp/textmodes/rst.el (electric-indent-inhibit): Delete redundant
declarations; 'electric' is preloaded since Emacs 24.4.

(cherry picked from commit dac1a48240a14c41e2d2792443eac62ea50e1f66)

7 weeks agoAdd Python keywords "aiter" and "anext"
Stefan Kangas [Sat, 21 Sep 2024 12:29:40 +0000 (14:29 +0200)]
Add Python keywords "aiter" and "anext"

* lisp/progmodes/python.el (python-font-lock-keywords-level-2)
(python--treesit-builtins): Add "aiter" and "anext" keywords,
introduced in Python 3.10.

(cherry picked from commit 3cad879c9dd1a7e97dbf28045761f3dfae851136)

7 weeks agoAdd all exceptions up to Python 3.13 as keywords
Stefan Kangas [Sat, 21 Sep 2024 12:13:47 +0000 (14:13 +0200)]
Add all exceptions up to Python 3.13 as keywords

* lisp/progmodes/python.el
(python-font-lock-keywords-maximum-decoration)
(python--treesit-exceptions): Add all built-in exceptions in Python 3.13
as keywords.  Missing from the list was "BaseExceptionGroup",
"EncodingWarning", "ModuleNotFoundError", and "PythonFinalizationError".

(cherry picked from commit 7aa5876cdf3df3ac0fa67a1dd06b49077dd0b8cf)

7 weeks agoAdd subword-mode toggle to python-mode menu
Stefan Kangas [Sat, 21 Sep 2024 12:07:29 +0000 (14:07 +0200)]
Add subword-mode toggle to python-mode menu

* lisp/progmodes/python.el (python-mode-map): Add subword-mode
toggle to menu.

(cherry picked from commit 29a760711731ce49965079e72d76b26ef3b7bcb4)

7 weeks agoSupport electric-layout-mode in python-base-mode
Stefan Kangas [Sat, 21 Sep 2024 02:41:46 +0000 (04:41 +0200)]
Support electric-layout-mode in python-base-mode

* lisp/progmodes/python.el (python-base-mode): Add support for
'electric-layout-mode'.

(cherry picked from commit dfecd6037d5ebe5778c40ff7b38bfcbaa3ef779e)

7 weeks ago; Skip commit 7a404e6d510830323381e5febbe61273f341dc20
Eshel Yaron [Sat, 21 Sep 2024 18:55:18 +0000 (20:55 +0200)]
; Skip commit 7a404e6d510830323381e5febbe61273f341dc20

7 weeks ago; Always set 'emoji--insert-buffer'
Scott Bell [Fri, 20 Sep 2024 21:16:52 +0000 (14:16 -0700)]
; Always set 'emoji--insert-buffer'

* lisp/international/emoji.el (emoji-list): Always set insert buffer.
(Bug#73390)

Copyright-paperwork-exempt: yes
(cherry picked from commit ecfebb5abb864d568a90ff4a1420c973781bbef9)

7 weeks agoFix font-lock of last character before EOB under 'whitespace-mode'
Stefan Monnier [Thu, 19 Sep 2024 15:50:26 +0000 (11:50 -0400)]
Fix font-lock of last character before EOB under 'whitespace-mode'

* lisp/whitespace.el (whitespace-color-on): Don't use OVERRIDE in
font-lock-keywords; instead, use 'prepend' in the call to
'font-lock-add-keywords'.  (Bug#73332)

(cherry picked from commit 35e356f958af69baad8a1a824c59993915fb6abe)

7 weeks agoFix 'whitespace-mode' with 'missing-newline-at-eof'
Eli Zaretskii [Sat, 21 Sep 2024 10:41:21 +0000 (13:41 +0300)]
Fix 'whitespace-mode' with 'missing-newline-at-eof'

* lisp/whitespace.el (whitespace-post-command-hook): Refontify
when point moves if 'missing-newline-at-eof' is in
'whitespace-active-style'.  (Bug#73332)

(cherry picked from commit 01ebe6de8954b2381bfba31038a0bd0669e33910)

7 weeks ago; * lisp/emacs-lisp/lisp.el (delete-pair-push-mark): Add :version.
Eli Zaretskii [Sat, 21 Sep 2024 10:23:50 +0000 (13:23 +0300)]
; * lisp/emacs-lisp/lisp.el (delete-pair-push-mark): Add :version.

(cherry picked from commit 4c5ab949fb15f89596705704bfb90a2ee1e0aa82)

7 weeks agoAdd option for delete-pair to mark end of region
Paul Nelson [Sun, 15 Sep 2024 20:29:46 +0000 (22:29 +0200)]
Add option for delete-pair to mark end of region

* lisp/emacs-lisp/lisp.el (delete-pair-push-mark): New user option.
(delete-pair): Use it.  (Bug#73284)

* etc/NEWS: Announce the new user option.

(cherry picked from commit a48672c6bbf8cf0adae33b13634f3945c24c61dd)

7 weeks ago; * etc/NEWS: Fix last change.
Eli Zaretskii [Sat, 21 Sep 2024 09:42:43 +0000 (12:42 +0300)]
; * etc/NEWS: Fix last change.

(cherry picked from commit 39d2cc36b2ffeb9a0d0053fa3b800334e98ef49e)

7 weeks agoAdd user option to enable Doxygen syntax highlighting (bug#72814)
Vincenzo Pupillo [Mon, 9 Sep 2024 07:20:42 +0000 (09:20 +0200)]
Add user option to enable Doxygen syntax highlighting (bug#72814)

Both 'c-ts-mode' and 'java-ts-mode' have a new user option,
'c-ts-mode-enable-doxygen' and 'java-ts-mode-enable-doxygen'
(defaults to nil) which allow to enable syntax highlighting
of comment blocks based on the Doxygen grammar.

* lisp/progmodes/c-ts-mode.el: Add the 'c-ts-mode-enable-doxygen'
user option variable to disable doxygen grammar.
Notifies the user if doxygen grammar is not available.
* lisp/progmodes/c-ts-mode.el (c-ts-mode, c++-ts-mode): Use the
new 'c-ts-mode-enable-doxygen' option.
* lisp/progmodes/java-ts-mode.el: Add the
'java-ts-mode-enable-doxygen' user option variable to disable
doxygen grammar.  Notifies the user if doxygen grammar is not
available.
* lisp/progmodes/java-ts-mode.el (java-ts-mode): Use the new
'java-ts-mode-enable-doxygen' option.

* etc/NEWS: Document the change.

(cherry picked from commit b0523dffabbec8acd9c5c92711af849a11867884)

7 weeks agoFix 'regexp-replace' in WDired
Eli Zaretskii [Sat, 21 Sep 2024 09:30:49 +0000 (12:30 +0300)]
Fix 'regexp-replace' in WDired

* src/search.c (Freplace_match): Remove the test that
search_regs.num_regs != num_regs.  It is deemed unnecessary now,
and could produce false positives.  (Bug#73018)

(cherry picked from commit a513f2a4dd5a7f52abf48f06cf32fcfab765c373)

7 weeks ago; Skip commit eced1351200616eed626b56976d8ec98d12ebe61
Eshel Yaron [Sat, 21 Sep 2024 18:54:38 +0000 (20:54 +0200)]
; Skip commit eced1351200616eed626b56976d8ec98d12ebe61

7 weeks agoDisable xwidgets with recent webkitgtk versions (Bug#66068)
Peter Oliver [Wed, 4 Sep 2024 11:12:50 +0000 (12:12 +0100)]
Disable xwidgets with recent webkitgtk versions (Bug#66068)

* configure.ac: Accept only webkit2gtk-4.* versions less than 2.41.92.

(cherry picked from commit b7f6cde419f862dbbf25a8192f5f31ac557b60b5)

7 weeks ago* test/infra/gitlab-ci.yml (.tree-sitter-template): Add treesit.el.
Michael Albinus [Sat, 21 Sep 2024 08:22:41 +0000 (10:22 +0200)]
* test/infra/gitlab-ci.yml (.tree-sitter-template): Add treesit.el.

(cherry picked from commit 39ac8ddafd0482c0f3e1a0fd122168c90c962403)