]> git.eshelyaron.com Git - emacs.git/log
emacs.git
7 weeks agoAdd treesit-admin--last-compatible-grammar-for-modes
Yuan Fu [Sun, 29 Dec 2024 07:06:52 +0000 (23:06 -0800)]
Add treesit-admin--last-compatible-grammar-for-modes

This function computes the latest compatible grammar version for
each major mode.

* admin/treesit-admin.el (treesit-admin-file-name): Move.
(treesit-admin--compat-template-file-name): New variable.
(treesit-admin--mode-languages): New function.
(treesit-admin--find-latest-compatible-revision): Return a plist
instead.
(treesit-admin--last-compatible-grammar-for-modes): New function.

(cherry picked from commit c9624c21117f7bece4d5a8271888155de5d086a2)

7 weeks agoAdd treesit-admin--find-latest-compatible-revision
Yuan Fu [Sun, 29 Dec 2024 02:36:59 +0000 (18:36 -0800)]
Add treesit-admin--find-latest-compatible-revision

This function can find the last grammar revision that is
compatible with a major mode.

* admin/treesit-admin.el (treesit-admin-file-name): New
variable.
(treesit-admin--validate-mode-lang):
(treesit-admin--find-latest-compatible-revision): New functions.

(cherry picked from commit d5ad51f25fba84ac9fad7baf8781a761d1cead24)

7 weeks agoRefactor treesit-admin--verify-major-mode-queries
Yuan Fu [Sat, 28 Dec 2024 22:54:17 +0000 (14:54 -0800)]
Refactor treesit-admin--verify-major-mode-queries

Make treesit-admin--verify-major-mode-queries use
treesit--install-language-grammar-1, rathre than the interactive
command treesit-install-language-grammar.

* admin/treesit-admin.el:
(treesit-admin--verify-major-mode-queries): Add parameter
SOURCE-ALIST.  Use treesit--install-language-grammar-1.
(treesit-admin-verify-major-mode-queries): Pass
treesit-admin--builtin-language-sources to
treesit-admin--verify-major-mode-queries.

* lisp/treesit.el (treesit-install-language-grammar): Don't
return revision of the git repo.

(cherry picked from commit 9e1e9fdff44f047489d45ba4a73776cb0298574f)

7 weeks agoRefactor treesit--install-language-grammar-1
Yuan Fu [Sat, 28 Dec 2024 22:41:55 +0000 (14:41 -0800)]
Refactor treesit--install-language-grammar-1

Separate treesit--install-language-grammar-1 into two functions,
one clones the repository, the other builds and installs the
grammar.

* lisp/treesit.el (treesit--install-language-grammar-1):
Refactor out treesit--build-grammar.
(treesit--build-grammar): New function.
(treesit--language-git-revision): Now takes REPO-DIR as an
argument.

(cherry picked from commit e2f791715299d97f401a38c75fa11bb51fdb8292)

7 weeks agoSupport COMMIT in treesit-language-source-alist
Yuan Fu [Sat, 28 Dec 2024 21:57:50 +0000 (13:57 -0800)]
Support COMMIT in treesit-language-source-alist

* lisp/treesit.el (treesit-language-source-alist): Add COMMIT
field.
(treesit--install-language-grammar-1): Support COMMIT.

(cherry picked from commit a22730f4d788d6476d5f3c6717ba8a3d4046e819)

7 weeks ago* lisp/treesit.el (treesit-show-paren-data--categorize): Improve.
Juri Linkov [Mon, 30 Dec 2024 07:23:05 +0000 (09:23 +0200)]
* lisp/treesit.el (treesit-show-paren-data--categorize): Improve.

Instead of using only the immediate parent, try to search more levels
using 'treesit-parent-until' (bug#75122).

(cherry picked from commit dc653bf0636d481303f558e2034550648ee58947)

7 weeks ago; * etc/NEWS: Improve recently added entries for tree-sitter.
Eli Zaretskii [Sun, 29 Dec 2024 19:54:59 +0000 (21:54 +0200)]
; * etc/NEWS: Improve recently added entries for tree-sitter.

(cherry picked from commit ce74534ef8cc46fd9fbdc9363da5994b1ae1cf58)

7 weeks ago; * etc/NEWS: Improve last change.
Eli Zaretskii [Sun, 29 Dec 2024 19:44:58 +0000 (21:44 +0200)]
; * etc/NEWS: Improve last change.

(cherry picked from commit 2e8f875067bc7068f79cb3e249de9da68c54d210)

7 weeks ago; * etc/NEWS: Remove implementation details of 'treesit-show-paren-data'
Juri Linkov [Sun, 29 Dec 2024 19:15:07 +0000 (21:15 +0200)]
; * etc/NEWS: Remove implementation details of 'treesit-show-paren-data'

(cherry picked from commit d2c05c219ed1abbbda34f68489d21a0b2cd513e1)

7 weeks agoTreesit support for show-paren-mode (bug#75122)
Juri Linkov [Sun, 29 Dec 2024 18:08:11 +0000 (20:08 +0200)]
Treesit support for show-paren-mode (bug#75122)

* lisp/treesit.el (treesit-show-paren-data--categorize):
New internal function.
(treesit-show-paren-data): New function.
(treesit-major-mode-setup): Set 'show-paren-data-function' to
'treesit-show-paren-data'.

(cherry picked from commit 1addae07be1982a6cafc0e0b3955b59bd1fb481c)

7 weeks agoAdd new variable 'up-list-function' for 'treesit-up-list'
Juri Linkov [Sun, 29 Dec 2024 17:57:28 +0000 (19:57 +0200)]
Add new variable 'up-list-function' for 'treesit-up-list'

* lisp/emacs-lisp/lisp.el (up-list-function): New variable (bug#73404).
(up-list-default-function): New function.
(up-list): Split part to 'up-list-default-function'.

* lisp/treesit.el (treesit-up-list): New function.
(treesit-major-mode-setup): Set 'up-list-function' to
'treesit-up-list'.

(cherry picked from commit ec8dd27f008bca810209354a189d241479fe4d32)

7 weeks agoAdd new variable 'down-list-function' for 'treesit-down-list'
Juri Linkov [Sun, 29 Dec 2024 17:51:18 +0000 (19:51 +0200)]
Add new variable 'down-list-function' for 'treesit-down-list'

* lisp/emacs-lisp/lisp.el (down-list-default-function): New function.
(down-list-function): New variable (bug#73404).
(down-list): Move meat to 'down-list-default-function',
and call 'down-list-function' when non-nil.  Don't raise an error
in strings or comments when 'down-list-function' is non-nil.

* lisp/treesit.el (treesit--scan-error): New internal function.
(treesit-forward-sexp, treesit-forward-list): Use 'treesit--scan-error'.
(treesit-down-list): New function.
(treesit-major-mode-setup): Set 'down-list-function' to
'treesit-down-list'.

(cherry picked from commit 3c50edb2b500c6ac18696e99c3f8df597dea54d4)

7 weeks agoAdd new variable 'forward-list-function' for 'treesit-forward-list'
Juri Linkov [Sun, 29 Dec 2024 17:42:40 +0000 (19:42 +0200)]
Add new variable 'forward-list-function' for 'treesit-forward-list'

* lisp/emacs-lisp/lisp.el (forward-list-default-function): New function.
(forward-list-function): New variable (bug#73404).
(forward-list): Move meat to 'forward-list-default-function',
and call 'forward-list-function' when non-nil.

* lisp/treesit.el (treesit-forward-list): Rewrite to not rely on
'treesit-forward-sexp'.
(treesit-major-mode-setup): Set 'forward-list-function' to
'treesit-forward-list'.

(cherry picked from commit 3db984c72b8609c84f06a0fd62e59b4823ea0876)

7 weeks ago(font-lock-set-defaults): Try and fix bug#74281
Stefan Monnier [Sun, 29 Dec 2024 15:18:37 +0000 (10:18 -0500)]
(font-lock-set-defaults): Try and fix bug#74281

* lisp/font-lock.el (font-lock-set-defaults): Set
`font-lock--syntax-table-affects-ppss` more carefully, and
include ' among the "safe" syntaxes.

(cherry picked from commit c85d2e3519bf93837cead012a8281ee9bb4be9a8)

7 weeks ago; Add missing parameters in keymap doc
Kohei Tsuruta [Fri, 27 Dec 2024 23:27:34 +0000 (15:27 -0800)]
; Add missing parameters in keymap doc

* doc/lispref/keymaps.texi (Controlling Active Maps): Add missing
parameters.  (Bug#75174)

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

7 weeks agoSome minor Tramp changes
Michael Albinus [Sun, 29 Dec 2024 11:26:05 +0000 (12:26 +0100)]
Some minor Tramp changes

* lisp/net/tramp-sh.el (tramp-sh-handle-process-file): Do proper quoting.

* lisp/net/tramp.el (tramp-string-empty-or-nil-p):
Declare `tramp-suppress-trace' property.
(tramp-skeleton-make-symbolic-link): Drop volume letter when flushing.

* test/lisp/net/tramp-tests.el (tramp-test39-make-lock-file-name):
Adapt test.
(tramp-test42-utf8): Do not run expensive tests on MS Windows.

(cherry picked from commit 680906c136adfefda3a5d8be2b3ab7527521a449)

7 weeks ago; * doc/misc/calc.texi: Fix makeinfo warnings (bug#75166).
Eli Zaretskii [Sat, 28 Dec 2024 20:38:17 +0000 (22:38 +0200)]
; * doc/misc/calc.texi: Fix makeinfo warnings (bug#75166).

(cherry picked from commit 07e9f27c3e029a52669ddcf68d4ecddba0f7903e)

7 weeks agoMake browser windows pop up when browsing URLs on Wayland
Daniel Colascione [Mon, 23 Dec 2024 18:34:11 +0000 (13:34 -0500)]
Make browser windows pop up when browsing URLs on Wayland

When a user invokes browse-url, the browser window viewing the URL
should be raised in the user's desktop environment.  On X11, running
xdg-open as a subprocess does the job.  However, on Wayland, this
approach doesn't work: xdg-open makes the web browser browse a URL all
right, but doesn't raise the browser window in the GUI.  Therefore, if
the browser window is behind Emacs, browse-url appears to do nothing.
Repeated invocations of browse-url cause the browser to load multiple
tabs in the background, surprising the user when he gives up in
frustration and manually switches to the browser window.

There's no subprocess we can run to make the right thing happen.
Wayland requires that we pass along event activation information to the
browser using the xdg_activation_v1 protocol.

This change adds x-gtk-launch-uri to invoke GTK-native URL-dispatch
machinery.  This machinery DTRT on both X11 and Wayland.  We fall back
to the default browser machinery if we're not on a GTK frame.

The logic is more complicated than it has to be because the GTK URI
launch mechanism requires that we launch with respect to a specific GTK
window, and in some environments (e.g., running emacs -nw in a PGTK
Emacs) we don't have a GTK window.  We also want to preserve the effect
of customizing browse-url-browser-function, so adding an entry to
browse-url-default-handlers that preempts URI open when we happen to be
on a GTK frame is the wrong thing to do.

* lisp/net/browse-url.el (browse-url--browser-defcustom-type):
(browse-url--inhibit-pgtk): avoid infinite recursion
(browse-url-default-browser): use pgtk launch
(x-gtk-launch-uri): new function
(browse-url-default-gtk-browser): ues it

* src/pgtkfns.c (unwind_gerror_ptr): new function
(Fx_gtk_launch_uri): new function
(syms_of_pgtkfns): register it

* etc/NEWS: mention the new feature

(cherry picked from commit 72eb5f8bedbe441f6a3952557b9aa3ef6fd6235d)

7 weeks agoCC Mode: Minor corrections and tidy ups for cache invalidation
Alan Mackenzie [Sat, 28 Dec 2024 17:16:04 +0000 (17:16 +0000)]
CC Mode: Minor corrections and tidy ups for cache invalidation

These cache variables are c-lit-pos-cache-limit,
c-semi-near-cache-limit, c-full-near-cache-limit, and
c-state-cache-invalid-pos.

* lisp/progmodes/cc-awk.el
(c-awk-set-string-regexp-syntax-table-properties): Invalidate
the caches after changing the 'syntax-table property.

* lisp/progmodes/cc-defs.el (c-put-string-fence-trim-caches):
New macro.
(c-unmark-<-or->-as-paren): New name for c-unmark-<->-as-paren.
(Also renamed throughout CC Mode)

* lisp/progmodes/cc-engine.el (c-propertize-ml-string-opener):
Add missing cache invalidation.

* lisp/progmodes/cc-mode.el (c-neutralize-CPP-line): Remove
syntax-table properties from < and > as needed.
(c-put-syn-tab): Add missing cache invalidation.

(cherry picked from commit 0334b0743f83a3e69d1d3a426efbba1d2a5f2cc6)

7 weeks agoAlways match underscore variables for elixir-ts-mode
Wilhelm Kirschbaum [Sun, 15 Sep 2024 07:46:07 +0000 (09:46 +0200)]
Always match underscore variables for elixir-ts-mode

The code comment is invalid, as it is common to treat any _variable as a
comment.

* lisp/progmodes/elixir-ts-mode.el (elixir-ts-font-lock-settings):
Add ":override t" to comment identifier match.  (Bug#75156)

(cherry picked from commit 43a8f0de5ecbe8430917968af703f4a630567461)

7 weeks agoAdd tramp-archive-local-file-name
Michael Albinus [Sat, 28 Dec 2024 14:53:08 +0000 (15:53 +0100)]
Add tramp-archive-local-file-name

* lisp/net/tramp-archive.el (tramp-archive-file-name-p):
Add ;;;###tramp-autoload cookie.
(tramp-archive-local-file-name): New defun.

(cherry picked from commit e32484547d0813665334bfd34b741492dde0d374)

7 weeks ago; Fix last change
Eli Zaretskii [Sat, 28 Dec 2024 12:38:55 +0000 (14:38 +0200)]
; Fix last change

* lisp/vc/ediff-util.el (ediff--delete-temp-files-on-kill-emacs):
Add commentary explaining the precautions.  (Bug#74881)

(cherry picked from commit c9be6f731de12b1c9eda0c51e188953e56ba0767)

7 weeks agoMake image cache aware of image-scaling-factor (bug#74725)
Alan Third [Fri, 27 Dec 2024 11:46:45 +0000 (11:46 +0000)]
Make image cache aware of image-scaling-factor (bug#74725)

* src/dispextern.h (struct image): Add scale so it can be compared in
search_image_cache.
* src/image.c (search_image_cache): Calculate the scale factor and
compare with the cached value.
(image_compute_scale): Compute the image's scale factor and optionally
store it in the image struct.
(compute_image_size): Move scale calculation code into
image_compute_scale and use it.

(cherry picked from commit 691c161a81221905f7e2690ee747ba9163b1b645)

7 weeks ago* lisp/vc/ediff-util.el: Remove temp Ediff files on kill-emacs
Lin Sun [Sun, 15 Dec 2024 06:52:17 +0000 (06:52 +0000)]
* lisp/vc/ediff-util.el: Remove temp Ediff files on kill-emacs

(ediff--delete-temp-files-on-kill-emacs): New function.
(ediff-setup): Install it in 'kill-emacs-hook'.  (Bug#74881)

(cherry picked from commit 2ba49f8a12ea378cc38cd1f0eacd88b6ef7e74e4)

7 weeks ago; Fix inaccuracy in ELisp Reference manual
Eli Zaretskii [Sat, 28 Dec 2024 12:04:26 +0000 (14:04 +0200)]
; Fix inaccuracy in ELisp Reference manual

* doc/lispref/objects.texi (Basic Char Syntax): Fix inaccurate
wording.  (Bug#75113)

(cherry picked from commit 2ba6387d1d63072c5faaa7798c8ef7b00ca883c3)

7 weeks ago; * etc/PROBLEMS: Mention problems with XPM support in GDK (bug#75018).
Eli Zaretskii [Sat, 28 Dec 2024 11:54:45 +0000 (13:54 +0200)]
; * etc/PROBLEMS: Mention problems with XPM support in GDK (bug#75018).

(cherry picked from commit 8ac6a178804c36e92de7271a5eeb2c66909acb05)

7 weeks agoAdd missing fontification matches for elixir-ts-mode
Wilhelm Kirschbaum [Sun, 15 Sep 2024 07:46:35 +0000 (09:46 +0200)]
Add missing fontification matches for elixir-ts-mode

* lisp/progmodes/elixir-ts-mode.el (elixir-ts--font-lock-settings): Add
matches for missing tokens and fix atom type face.  (Bug#75156)

(cherry picked from commit 624322d5f6a8e92c641a5ce6087e3f6d91a44997)

7 weeks ago; Fix copyright year
Stefan Kangas [Sat, 28 Dec 2024 01:24:07 +0000 (02:24 +0100)]
; Fix copyright year

(cherry picked from commit 5bafb11b4002b0bfd94c67d2983ca217255f1013)

7 weeks agoAdd command to clear erc-track's mode-line indicator
Alex Bochannek [Sat, 21 Dec 2024 19:39:08 +0000 (11:39 -0800)]
Add command to clear erc-track's mode-line indicator

* etc/ERC-NEWS: Mention new command `erc-track-clear'.
* lisp/erc/erc-track.el (erc-track-clear): New command to reset buffer
activity indicator in ERC's mode-line construct.  (Bug#75014)

(cherry picked from commit 63cc335a524ab5b6fb8e9bc93041382baf1321db)

7 weeks agoReuse process in erc-server-delayed-check-reconnect
F. Jason Park [Tue, 24 Dec 2024 06:21:34 +0000 (22:21 -0800)]
Reuse process in erc-server-delayed-check-reconnect

* doc/misc/erc.texi (Integrations): Set `erc-server-reconnect-function'
to `erc-server-delayed-check-reconnect' in SOCKS example, and add
definition for `erc-open-socks-tls-stream'.  Mention possible
inaccuracies related to error detection with certain reconnect
strategies.
* lisp/erc/erc-backend.el (erc-server--reconnect-opened): New function.
(erc-server-delayed-check-reconnect): Attempt to reuse process if server
sends a complete PONG, and attempt to accommodate connectors that set
:nowait to nil.
(erc--server-delayed-check-connectors): Remove variable.
(erc-server-prefer-check-reconnect): Inline what was the internal
variable `erc--server-delayed-check-connectors' because it's no longer
used in unit tests.  Add `erc-open-socks-tls-stream' to the set of
connector functions thought to be compatible with the "check" reconnect
strategy.
* test/lisp/erc/erc-scenarios-base-auto-recon.el
(erc-scenarios-base-auto-recon-no-proto): Adapt to expect "reuse" behavior.
* test/lisp/erc/resources/base/reconnect/ping-pong.eld: Delete unused file.
* test/lisp/erc/resources/base/reconnect/unexpected-disconnect.eld:
Capture PING cookie to send back to client.
* test/lisp/erc/resources/erc-d/resources/proxy-solo.eld: Delete unused
file.  (Bug#62044)

(cherry picked from commit f5ebe47ba7723919f09adf8f28d896cfa8757842)

7 weeks ago(package--download-and-read-archives): Fix bug#75065
Stefan Monnier [Fri, 27 Dec 2024 16:58:30 +0000 (11:58 -0500)]
(package--download-and-read-archives): Fix bug#75065

* lisp/emacs-lisp/package.el (package--download-and-read-archives):
Include the error info in the error message.
Suggested by Konstantin Kharlamov <Hi-Angel@yandex.ru>.
(package-refresh-contents, package-menu--perform-transaction):
Use `error-message-string`.

(cherry picked from commit a99e1cc745047977b0b7cbd25fe9df66e9c86a39)

7 weeks agoDon't start docstrings with "This function" or similar
Stefan Kangas [Thu, 26 Dec 2024 20:02:45 +0000 (21:02 +0100)]
Don't start docstrings with "This function" or similar

* lisp/calculator.el (calculator-add-operators):
* lisp/erc/erc-backend.el (erc-server-ping-handler):
* lisp/erc/erc-log.el (erc-generate-log-file-name-with-date):
(erc-generate-log-file-name-short):
* lisp/erc/erc-track.el (erc-track-shorten-function):
* lisp/eshell/em-smart.el (eshell-where-to-jump):
* lisp/eshell/esh-mode.el (eshell-begin-on-new-line):
* lisp/gnus/gnus-art.el (gnus-prompt-before-saving):
* lisp/mail/supercite.el (sc-cite-region-limit):
* lisp/net/nsm.el (network-security-protocol-checks):
* lisp/org/org-element.el
(org-element--cache-avoid-synchronous-headline-re-parsing):
* lisp/progmodes/hideif.el (hif-merge-ifdef-region):
* lisp/progmodes/modula2.el (m2-indent):
* lisp/progmodes/xscheme.el (xscheme-running-p):
(xscheme-control-g-disabled-p):
* lisp/tab-bar.el (tab-bar--event-to-item):
* lisp/which-key.el (which-key--hide-popup): Don't start docstrings with
"This function" or "This variable".

(cherry picked from commit 186ea407326166ee4669ce6fe84871c1e16c657c)

7 weeks agoEnable indent-tabs-mode in obj-c-mode
Stefan Kangas [Thu, 26 Dec 2024 15:07:08 +0000 (16:07 +0100)]
Enable indent-tabs-mode in obj-c-mode

* .dir-locals.el (obj-c-mode): Enable indent-tabs-mode.

(cherry picked from commit cb8ce2e68bb68844971695e139ae93bd320bc0d8)

7 weeks agoFix comment indent in 'lua-ts-mode' and old grammar
john muhl [Thu, 26 Dec 2024 00:03:50 +0000 (18:03 -0600)]
Fix comment indent in 'lua-ts-mode' and old grammar

* lisp/progmodes/lua-ts-mode.el (lua-ts--simple-indent-rules):
Improve multi-line comment indention for pre-0.0.19 grammars that
used a different structure for comment start/end markers.
(Bug#75107)

(cherry picked from commit 54f35137096c8120df13653f287a92755d5036b6)

7 weeks ago* admin/nt/dist-build/build-dep-zips.py: (deps src) handle zst
Corwin Brust [Wed, 25 Dec 2024 05:55:21 +0000 (23:55 -0600)]
* admin/nt/dist-build/build-dep-zips.py: (deps src) handle zst

This patch fixes various problems preventing this script from
working. The job of this script is to collect Emacs' dependanicies and
the (MSYS2/MinGW64) source archives for dependancies (including 2nd
etc. order dependancies) into zip archives.  GPL requires distributing such
archives (along with Emacs' own sources) when distributing GPL binaries.

Most principle of the changes is support for MSYS2 "w64" source archives
in zst format; previously this script assumed all sources were available
as tar.gz files.   Additionaly several DLLs are added to list of
required, including sqllite3 and tree-sitter.

In general this is a maintaince fix to ensure others have access to the
code used to create pretest (and, presumably release) version of Emacs
30.  Additional changes are required to progmatically identify changes
in Emacs' dependancies (e.g. after building a new Emacs binary for
distribution).  There is commented out code to this effect in the
changes I've installed which did work, for a brief period in time; I
suspect some changes in MSYS2 made it more difficult (or impossible?) to
invoke the MSYS2 shell (under which this python script must run) from
the MINGW64 (under which Emacs is built).  I may resort to a powershell
script as a way to orchistrate/invoke both MSYS2 and MING64 but I'm
currently still messing with a Makefile based approach (which would run
under MINGW64), in any event I believe we're all agreed this script
must interigate Emacs to create the "starting list" of dependancies to
include as a way to resolve this issue (missing/incorrect deps are
frequent source of broken binary releases).  (bug#65206)

(cherry picked from commit 8b95549e9087fc54be3d849470652d38ec64cbff)

7 weeks ago; Skip commit 8064b2a67988e815c52e289fe2a235ce1008776f
Eshel Yaron [Sat, 4 Jan 2025 20:17:35 +0000 (21:17 +0100)]
; Skip commit 8064b2a67988e815c52e289fe2a235ce1008776f

7 weeks ago; etc/w32-feature.el (harfbuzz): improve test
Corwin Brust [Sun, 4 Feb 2024 02:54:29 +0000 (20:54 -0600)]
; etc/w32-feature.el (harfbuzz): improve test

This enable the tests to be used with batch (Bug#68919), e.g.

emacs.exe -l etc/w32-feature.el --batch -eval \
  '(ert-run-tests-batch-and-exit)'

(cherry picked from commit c29b798537eb9573b8f34fa2e91c0e136a095fb4)

7 weeks ago* admin/nt/dist-build/emacs.nsi: (Uninstall) delete only one Emacs
Corwin Brust [Mon, 23 Dec 2024 05:08:08 +0000 (23:08 -0600)]
* admin/nt/dist-build/emacs.nsi: (Uninstall) delete only one Emacs

Previously, the uninstaller would recursively, unconditionally, remove
the parent folder in which Emacs was installed (the folder selected by
when running the installer), into which the installer places a folder
named for the given release (e.g. emacs-30.1).  This was a problem
during uinstalation when the selected folder contained other versions of
Emacs the user did not wish to remove.  Additionally, deleting Start Menu
short-cuts did not work (bug#68756).

Some installer language now better reflects that users are not
required to "Accept" the GNU Public License in order to use (etc.)
Emacs (bug#67667).

Users selections related to where to create (or not create) Start Menu
shortcuts are no longer ignored. (bug#75013)

Emacs (as installed by the installer) can now be uninstalled via
Windows' Add/Remove Progrms Control Panel.

The uninstaller will now remove (empty) parent folders, both under
Program Files and (when creation of shortcuts is enabled) under the
select Start Menu location.

(cherry picked from commit 0e43e35f96e5c3c10a200ebe8fe77c60e0db7c4a)

7 weeks ago; * etc/tutorials/TUTORIAL.ko: Fix the beginning.
Eli Zaretskii [Sun, 22 Dec 2024 12:02:25 +0000 (14:02 +0200)]
; * etc/tutorials/TUTORIAL.ko: Fix the beginning.

(cherry picked from commit b83cd8a8fb0e24057d6ab66afa53b25699e34bf1)

7 weeks ago; * etc/publicsuffix.txt: Update from upstream.
Eli Zaretskii [Sun, 22 Dec 2024 11:50:41 +0000 (13:50 +0200)]
; * etc/publicsuffix.txt: Update from upstream.

(cherry picked from commit 41caccc488b6fa23220e8dc41e0818fea705ae04)

7 weeks ago; Fix refcards
Eli Zaretskii [Sun, 22 Dec 2024 11:43:07 +0000 (13:43 +0200)]
; Fix refcards

* etc/refcards/sk-survival.tex (section{Značky (tags)}):
* etc/refcards/sk-refcard.tex (section{Tagy}):
* etc/refcards/ru-refcard.tex (section{Теги}):
* etc/refcards/pt-br-refcard.tex (section{Tags}):
* etc/refcards/pl-refcard.tex (section{Tags}):
* etc/refcards/fr-survival.tex (section{Marqueurs}):
* etc/refcards/fr-refcard.tex (section{Tags}):
* etc/refcards/de-refcard.tex (section{Tags}):
* etc/refcards/cs-survival.tex (section{Značky (tags)}):
* etc/refcards/cs-refcard.tex (section{Tagy}):
* etc/refcards/survival.tex (section{Tags}):
* etc/refcards/refcard.tex (section{Tags}): Fix 'M-,' and 'M-*'.

(cherry picked from commit e6fb18406ee732cae7ba354fde40f6c88645e66e)

7 weeks ago; Update acknowledgments for Emacs 30
Eli Zaretskii [Sun, 22 Dec 2024 10:55:46 +0000 (12:55 +0200)]
; Update acknowledgments for Emacs 30

* admin/release-process: Suggest a command to compare source
trees.

* doc/emacs/emacs.texi (Acknowledgments):
* doc/emacs/ack.texi (Acknowledgments): Add authors of new stuff
in Emacs 30.

(cherry picked from commit 14e791f9ba2c67a4613800aad2e9938207ac10ca)

7 weeks ago; Fix node name in emacs-lisp-intro.texi
Eli Zaretskii [Sun, 22 Dec 2024 10:11:46 +0000 (12:11 +0200)]
; Fix node name in emacs-lisp-intro.texi

* doc/lispintro/emacs-lisp-intro.texi
(Lexical vs Dynamic Binding Example): Renamed from "... vs. ...",
to avoid using period in node names.

(cherry picked from commit 861b7864fc4b8319a8f8756f02e9a4cfcc25bbfe)

7 weeks ago; Update version tags of defcustoms
Eli Zaretskii [Sun, 22 Dec 2024 10:06:38 +0000 (12:06 +0200)]
; Update version tags of defcustoms

* admin/release-process: Expand on 'cusver-check'.

* lisp/editorconfig.el (editorconfig-indentation-alist)
(editorconfig-trim-whitespaces-mode):
* lisp/eshell/em-cmpl.el (eshell-cmpl-remote-file-ignore):
* lisp/eshell/esh-ext.el (eshell-explicit-remote-commands):
* lisp/gnus/nnfeed.el (nnfeed-date-format):
* lisp/net/newst-ticker.el (newsticker-ticker-period):
* lisp/progmodes/cc-vars.el (c-warn-ids-with-dollar):
* lisp/progmodes/cperl-mode.el (cperl-fontify-trailer):
* lisp/progmodes/eglot.el (customize-package-emacs-version-alist)
(eglot-events-buffer-config, eglot-confirm-server-edits)
(eglot-prefer-plaintext):
* lisp/progmodes/flymake.el (customize-package-emacs-version-alist):
* lisp/progmodes/ruby-mode.el (ruby-rubocop-use-bundler):
* lisp/progmodes/verilog-mode.el
(verilog-indent-ignore-multiline-defines)
(verilog-indent-ignore-regexp, verilog-indent-class-inside-pkg)
(verilog-align-decl-expr-comments)
(verilog-align-comment-distance, verilog-align-assign-expr)
(verilog-align-typedef-regexp, verilog-align-typedef-words)
(verilog-fontify-variables):
* lisp/register.el (register-preview-display-buffer-alist):
* lisp/vc/vc-annotate.el (vc-annotate-use-short-revision): Add
missing :version tags and additions to
'customize-package-emacs-version-alist' as appropriate.

(cherry picked from commit 77243ba5be8c8e5319c4b07fabed6fee66e6ac7f)

7 weeks ago;* doc/misc/efaq.texi (New in Emacs 30): Mention 'trusted-contents'.
Eli Zaretskii [Sun, 22 Dec 2024 08:43:57 +0000 (10:43 +0200)]
;* doc/misc/efaq.texi (New in Emacs 30): Mention 'trusted-contents'.

(cherry picked from commit fe2ac33bae817d1ae48dde81233b41a7ff6bcf53)

7 weeks ago; Skip commit 8fb884f0dc0d33cc6515f4d5c19c733c51df8441
Eshel Yaron [Sat, 4 Jan 2025 18:07:09 +0000 (19:07 +0100)]
; Skip commit 8fb884f0dc0d33cc6515f4d5c19c733c51df8441

7 weeks agoImprove D-Bus and Tramp manual
Michael Albinus [Sun, 22 Dec 2024 08:30:47 +0000 (09:30 +0100)]
Improve D-Bus and Tramp manual

* doc/misc/dbus.texi (Overview):
* doc/misc/tramp.texi (GVFS-based methods): Describe, how the
feature can be checked at runtime.  (Bug#75004)

(cherry picked from commit e281355a5e88771b66afe35f425ce09064ef5147)

7 weeks agoUse 'alist-set' in a few more places
Eshel Yaron [Sat, 4 Jan 2025 17:05:38 +0000 (18:05 +0100)]
Use 'alist-set' in a few more places

8 weeks agoFix typo
Eshel Yaron [Sun, 29 Dec 2024 09:22:52 +0000 (10:22 +0100)]
Fix typo

8 weeks agoDon’t include stdlib.h from conf_post.h
Paul Eggert [Thu, 26 Dec 2024 23:44:34 +0000 (15:44 -0800)]
Don’t include stdlib.h from conf_post.h

This is brittle, as evinced by the recent problem with lib/stdlib.c.
* src/conf_post.h: Move potential inclusion of stdlib.h and
redefinitions of malloc, free, realloc, aligned_alloc, and calloc
from here ...
* src/lisp.h: ... to here.  Do not redefine the symbols
if UNEXMACOS_C is defined.
* src/unexmacosx.c: Do not undef malloc, realloc, free.
(UNEXMACOS_C): New symbol, to prevent lisp.h from defining them.

(cherry picked from commit 577714e3fe722625236ce060f53b5d76f7933454)

8 weeks agoAdd scheme-mode indentation rules for SRFI 227 and 253
Antero Mejr [Thu, 26 Dec 2024 20:58:24 +0000 (15:58 -0500)]
Add scheme-mode indentation rules for SRFI 227 and 253

* lisp/progmodes/scheme.el: Add properties for SRFI 227 and SRFI 253
identifiers.  (Bug#75126)

(cherry picked from commit 099e439ea99d794502f403b6de53b8589d7b6d6e)

8 weeks agoImprove cherry.el
Eshel Yaron [Fri, 27 Dec 2024 15:44:12 +0000 (16:44 +0100)]
Improve cherry.el

8 weeks agomakeinfo-run-command: Use texi2any when makeinfo doesn't exist
Stefan Kangas [Thu, 26 Dec 2024 20:06:29 +0000 (21:06 +0100)]
makeinfo-run-command: Use texi2any when makeinfo doesn't exist

* lisp/textmodes/makeinfo.el (makeinfo-run-command): Use texi2any when
makeinfo does't exist.  (Bug#75123)

(cherry picked from commit 76170ea5a0dff45d3feedf523c4c6809f1a56a59)

8 weeks agoPrefer defvar-keymap in two-column.el
Stefan Kangas [Fri, 27 Dec 2024 04:21:36 +0000 (05:21 +0100)]
Prefer defvar-keymap in two-column.el

* lisp/textmodes/two-column.el (2C-mode-map, 2C-minor-mode-map):
Convert to defvar-keymap.

(cherry picked from commit 43b81b7ecaf465eef268dd2cd94f00a0c4da87ea)

8 weeks agoUse with-environment-variables in more places
Stefan Kangas [Fri, 27 Dec 2024 04:02:55 +0000 (05:02 +0100)]
Use with-environment-variables in more places

* lisp/gnus/gnus-search.el (gnus-search-run-search):
* lisp/man.el (Man-completion-table):
* lisp/progmodes/cperl-mode.el (cperl-pod-to-manpage):
* test/src/fileio-tests.el (fileio-tests--relative-HOME):
Prefer 'with-environment-variables'.

(cherry picked from commit 4f942b4994df82b9ba7ee10a75008b2338e38fc3)

8 weeks agoLet Gnulib deal with MB_CUR_MAX
Paul Eggert [Mon, 23 Dec 2024 22:03:06 +0000 (14:03 -0800)]
Let Gnulib deal with MB_CUR_MAX

Recent Gnulib should work around the Android NDK 16
MB_CUR_MAX bug, so Emacs no longer needs to worry about it.
* configure.ac (gl_STDLIB_H):
Remove, to stop overriding Gnulib.
* configure.ac (__ctype_get_mb_cur_max)
(emacs_cv_broken_mb_cur_max, REPLACEMENT_MB_CUR_MAX):
* src/conf_post.h (MB_CUR_MAX):
Remove, as Gnulib does this now.

(cherry picked from commit a51642ba5fad891239552fe7e746fa160e3f88ea)

8 weeks agoUpdate from Gnulib by running admin/merge-gnulib
Paul Eggert [Mon, 23 Dec 2024 21:55:59 +0000 (13:55 -0800)]
Update from Gnulib by running admin/merge-gnulib

(cherry picked from commit cf5e58a14dedabd65dee297ee2a2abb05cd4449d)

8 weeks agoDrop support form gnome-moz-remote from browse-url
Stefan Kangas [Thu, 26 Dec 2024 22:24:50 +0000 (23:24 +0100)]
Drop support form gnome-moz-remote from browse-url

* lisp/net/browse-url.el (browse-url-gnome-moz-program)
(browse-url-gnome-moz-arguments, browse-url-gnome-moz): Delete
functions and variables obsolete since Emacs 25.1.

(cherry picked from commit 85ca91ff912da7c3a672e4bfe6ce103a23ddec73)

8 weeks agoImprove flag variable names in uniquify
Stefan Kangas [Thu, 26 Dec 2024 20:17:28 +0000 (21:17 +0100)]
Improve flag variable names in uniquify

* lisp/uniquify.el (uniquify-after-kill-buffer-flag)
(uniquify-trailing-separator-flag): Rename from
'uniquify-after-kill-buffer-p' and 'uniquify-trailing-separator-p', to
better adhere to our conventions.  Update all users and leave old names
as obsolete variable aliases.

(cherry picked from commit 85f5be491e001d30b80e853ee028b80812577071)

8 weeks agoFix format specifier warnings in nsterm.m
Charalampos Mitrodimas [Thu, 19 Dec 2024 13:28:05 +0000 (13:28 +0000)]
Fix format specifier warnings in nsterm.m

Resolve warnings caused by mismatched format specifiers in `NSLog` and
`fprintf` calls.

This was observed when compiled with Clang version
19.1.6 (arm64-apple-darwin).

Warnings fixed:
- "format specifies type 'unsigned int' but the argument has type
  'IOReturn' (aka 'int')"

* src/nsterm.m: Cast `IOReturn` (aka `int`) to `unsigned int` for `%x`
format specifiers in `NSLog`.  (Bug#74971)

(cherry picked from commit ab3888515694f89a24f64e94292c578af86eeaee)

8 weeks agoEnsure Dired window is selected when reverting buffer
Visuwesh [Thu, 26 Dec 2024 11:49:41 +0000 (17:19 +0530)]
Ensure Dired window is selected when reverting buffer

* lisp/dired.el (dired--make-directory-clickable): Ensure the
Dired window is selected.  This prevents erroneously reverting a
non-Dired buffer.  (Bug#74700)

(cherry picked from commit bdc21b246cdb6fe3d977222ab7566cfdf889a38c)

8 weeks agoSet marker insertion type for Imenu markers
Morgan Willcock [Wed, 25 Dec 2024 09:47:42 +0000 (09:47 +0000)]
Set marker insertion type for Imenu markers

* lisp/imenu.el (imenu-default-create-index-function)
(imenu--generic-function): Configure Imenu markers to advance
their position when characters are inserted at the marker
position.  (Bug#75072)

(cherry picked from commit dc4b8d198bab5363e139853f656ff553dcdeeeb5)

8 weeks ago; Skip commit 6412a5503c404bbe177879d113c2299288c76ccd
Eshel Yaron [Fri, 27 Dec 2024 15:35:45 +0000 (16:35 +0100)]
; Skip commit 6412a5503c404bbe177879d113c2299288c76ccd

8 weeks agoShow the keybinding next to command in calc's x
Visuwesh [Thu, 12 Dec 2024 13:28:37 +0000 (18:58 +0530)]
Show the keybinding next to command in calc's x

* lisp/calc/calc-ext.el (calc-execute-extended-command): Use
M-x's ':affixation-function' to show the keybinding of the calc
command next to its name.  (Bug#74829)

(cherry picked from commit aaacd5806c75019b052a69764ef4d193d243573c)

8 weeks agoruby-ts--s-p-query: Put '_' syntax on ?! method definitions
Dmitry Gutov [Thu, 26 Dec 2024 04:17:40 +0000 (06:17 +0200)]
ruby-ts--s-p-query: Put '_' syntax on ?! method definitions

* lisp/progmodes/ruby-ts-mode.el (ruby-ts--s-p-query):
Put 'symbol' syntax on method definitions ending with [?!].
Reported in https://github.com/dgutov/robe/issues/149.

(cherry picked from commit b561f896b5e52d3e4571901fd5d545354ba29bac)

8 weeks agoruby-ts-mode: Refine the forward-sexp improvement
Dmitry Gutov [Thu, 26 Dec 2024 00:53:05 +0000 (02:53 +0200)]
ruby-ts-mode: Refine the forward-sexp improvement

* lisp/progmodes/ruby-ts-mode.el (ruby-ts--sexp-list-p):
New function (bug#73404).
(ruby-ts-mode): Use it in sexp-list thing definition.

(cherry picked from commit 704aa2b6ebaa0e19f72dcc2e8c0f1a02aa6eadbb)

8 weeks ago; Fix documentation of recent additions to treesit.el
Eli Zaretskii [Wed, 25 Dec 2024 18:52:45 +0000 (20:52 +0200)]
; Fix documentation of recent additions to treesit.el

* lisp/treesit.el (treesit-language-display-name-alist)
(treesit-language-display-name): Doc fixes.

* etc/NEWS: Fix wording of entry announcing the above.

(cherry picked from commit e96727f0ea0986bffe7ff235e5abc5354e63a64d)

8 weeks ago; * doc/lispref/modes.texi (Imenu): Fix wording and markup.
Eli Zaretskii [Wed, 25 Dec 2024 18:46:14 +0000 (20:46 +0200)]
; * doc/lispref/modes.texi (Imenu): Fix wording and markup.

(cherry picked from commit d70ef80868996b9119f032cd13911c600436e29f)

8 weeks ago* lisp/treesit.el: Improvements for treesit-explore-mode (bug#75079)
Juri Linkov [Wed, 25 Dec 2024 17:52:10 +0000 (19:52 +0200)]
* lisp/treesit.el: Improvements for treesit-explore-mode (bug#75079)

(treesit-explorer-switch-parser): Don't use completing-read
on the single parser.
(treesit-explore-mode): Don't save treesit-explore-mode to the desktop.

(cherry picked from commit c09e056c43e344c5adda08ef819252824cff0ef0)

8 weeks agoImprove dictionary-switch-tooltip-mode docstring
Stefan Kangas [Wed, 25 Dec 2024 03:35:50 +0000 (04:35 +0100)]
Improve dictionary-switch-tooltip-mode docstring

* lisp/net/dictionary.el (dictionary-switch-tooltip-mode): Fix
docstring and argument name.

(cherry picked from commit 1e40be0ab830852ff5e2330c50f8b047d9ebe338)

8 weeks agoFix checkdoc warnings in dictionary.el
Nicholas Vollmer [Tue, 23 Jan 2024 14:39:02 +0000 (09:39 -0500)]
Fix checkdoc warnings in dictionary.el

* lisp/net/dictionary.el (dictionary-tool-bar-map): Add missing period.
(dictionary-process-popup-replies)
(dictionary-read-definition)
(dictionary-display-tooltip): Rename ignored parameters.
(dictionary-tooltip-track-mouse): Describe what function does, not just
when.
(dictionary-switch-tooltip-mode): Reword docstring in terms of ON
parameter.  (Bug#68684)

(cherry picked from commit 7cda5e7f0272d766bd2090a274faeb7776303f46)

8 weeks ago; * etc/NEWS: Update tree-sitter NEWS.
Yuan Fu [Tue, 24 Dec 2024 21:52:03 +0000 (13:52 -0800)]
; * etc/NEWS: Update tree-sitter NEWS.

(cherry picked from commit 8c7db480ead8ef623a382fcd990dd91486616dca)

8 weeks agoAdd treesit-aggregated-simple-imenu-settings
Yuan Fu [Tue, 24 Dec 2024 21:17:51 +0000 (13:17 -0800)]
Add treesit-aggregated-simple-imenu-settings

Now we support setting up Imenu for multiple languages

* doc/lispref/modes.texi: Update manual.
* lisp/treesit.el:
(treesit-aggregated-simple-imenu-settings): New variable.
(treesit--imenu-merge-entries): New function.
(treesit--generate-simple-imenu): This was previously
treesit-simple-imenu.
(treesit-simple-imenu): Support
treesit-aggregated-simple-imenu-settings.
(treesit-major-mode-setup): Recognize
treesit-aggregated-simple-imenu-settings.
* test/src/treesit-tests.el (treesit-imenu): New test.

(cherry picked from commit e2a9af431191d5c71e2ca7a4347ce9e435e8cca0)

8 weeks ago; Add some shortdoc examples for treesit entry
Yuan Fu [Tue, 24 Dec 2024 05:20:18 +0000 (21:20 -0800)]
; Add some shortdoc examples for treesit entry

* lisp/treesit.el: Add some shortdoc examples.

(cherry picked from commit 833494d4b00a837be8ceaa09b37f54ce17d0a062)

8 weeks agoAdd treesit-language-display-name
Yuan Fu [Tue, 24 Dec 2024 05:19:32 +0000 (21:19 -0800)]
Add treesit-language-display-name

* lisp/treesit.el:
(treesit-language-display-name-alist): New variable.
(treesit-language-display-name): New function.
* doc/lispref/parsing.texi (Language Grammar): Add to manual.
* etc/NEWS: Add to NEWS.

(cherry picked from commit 251b4c8c39535fee9f6da89420483304274ac03e)

8 weeks agoAdd treesit thing 'sexp-list' to c++-ts-mode (bug#73404)
Juri Linkov [Tue, 24 Dec 2024 17:39:30 +0000 (19:39 +0200)]
Add treesit thing 'sexp-list' to c++-ts-mode (bug#73404)

* lisp/progmodes/c-ts-mode.el (c-ts-mode--thing-settings):
Add C++ 'sexp-list' nodes for 'treesit-thing-settings'.

(cherry picked from commit 563e5868f6dbab59937ad247b45b488f5523ad3c)

8 weeks agoAdd treesit thing 'sexp-list' to tsx-ts-mode (bug#73404, bug#73978)
Juri Linkov [Tue, 24 Dec 2024 17:24:11 +0000 (19:24 +0200)]
Add treesit thing 'sexp-list' to tsx-ts-mode (bug#73404, bug#73978)

* lisp/progmodes/typescript-ts-mode.el (tsx-ts-mode):
Add 'sexp-list' to 'treesit-thing-settings' with "jsx" things.
(typescript-ts-mode--sexp-list-nodes): Remove "jsx" things.

(cherry picked from commit b061c01607aa43b8ffa1b5c4a90c3602497cf823)

8 weeks ago* lisp/progmodes/typescript-ts-mode.el: Fix regexp-opt of treesit-thing.
Juri Linkov [Tue, 24 Dec 2024 07:40:21 +0000 (09:40 +0200)]
* lisp/progmodes/typescript-ts-mode.el: Fix regexp-opt of treesit-thing.

(typescript-ts-base-mode): Add arg 'symbols' to regexp-opt of 'sexp',
'sexp-list', 'sentence', 'text' (bug#73404, bug#74366, bug#74963).
(tsx-ts-mode): Add arg 'symbols' to regexp-opt of 'sexp', 'sentence'.
This avoids such mismatches as "string_fragment" by "string".

(cherry picked from commit f0afebb99158be3db1d9623758321622a1026c8d)

8 weeks ago; Update c-ts-mode and c++-ts-mode's verified revision
Yuan Fu [Tue, 24 Dec 2024 02:51:51 +0000 (18:51 -0800)]
; Update c-ts-mode and c++-ts-mode's verified revision

* lisp/progmodes/c-ts-mode.el: Update revision.

(cherry picked from commit 7ac7ebef6cde9942905c45126cc6ef2bab01dc10)

8 weeks agoInclude lightweight tags in treesit-admin--verify-major-mode-queries
Yuan Fu [Tue, 24 Dec 2024 02:50:08 +0000 (18:50 -0800)]
Include lightweight tags in treesit-admin--verify-major-mode-queries

* lisp/treesit.el (treesit--language-git-revision): Include
lightweight tags as well.

(cherry picked from commit 32ad7342893833058ca2f7f8eca667bd32d42ea0)

8 weeks agoFix cmake-ts-mode font-lock queries
Yuan Fu [Tue, 24 Dec 2024 02:43:11 +0000 (18:43 -0800)]
Fix cmake-ts-mode font-lock queries

This commit in tree-sitter-cmake removed angle brackets:

https://github.com/uyha/tree-sitter-cmake/commit/a414a4c83d54388f596269639c175a5b84bfa929

* lisp/progmodes/cmake-ts-mode.el
(cmake-ts-mode--font-lock-settings): Remove angle brackets.

(cherry picked from commit 4def541bbfe67b1a492e8a3b6041a1d8f76d680b)

8 weeks agoCreate a blobless clone in treesit-admin--verify-major-mode-queries
Yuan Fu [Tue, 24 Dec 2024 01:12:39 +0000 (17:12 -0800)]
Create a blobless clone in treesit-admin--verify-major-mode-queries

* admin/treesit-admin.el (treesit-admin--verify-major-mode-queries):
Create a blobless clone.
* lisp/treesit.el (treesit--install-language-grammar-blobless):
New variable.
(treesit--git-clone-repo): Support blobless clone.

(cherry picked from commit 93755ea1a6113e115ac3349b67e58e2f3fd03894)

8 weeks ago; Minor comment improvement in c-ts-common--adaptive-fill-prefix
Yuan Fu [Sat, 21 Dec 2024 06:46:31 +0000 (22:46 -0800)]
; Minor comment improvement in c-ts-common--adaptive-fill-prefix

* lisp/progmodes/c-ts-common.el (c-ts-common--adaptive-fill-prefix):
Improve comment.

(cherry picked from commit 8d7cba7bbf8fe83bbf9a9d8cae963983f3bca8cf)

8 weeks ago; * .mailmap: Fix UTF-8 issue.
Stefan Kangas [Mon, 23 Dec 2024 23:04:51 +0000 (00:04 +0100)]
; * .mailmap: Fix UTF-8 issue.

(cherry picked from commit 6ac38396898e6324d4c6dddb2ad05d1ad0dc5e7c)

8 weeks agoAvoid U+FFFD in commit messages
Paul Eggert [Mon, 23 Dec 2024 21:38:51 +0000 (13:38 -0800)]
Avoid U+FFFD in commit messages

* build-aux/git-hooks/commit-msg:
Also check against U+FFFD REPLACEMENT CHARACTER in commit messages.

(cherry picked from commit 28c420afab6a0944a192c30ff2d5d9e40c88f14f)

8 weeks agoNew commands 'elisp-next/prev-occurrence'
Eshel Yaron [Fri, 27 Dec 2024 15:26:40 +0000 (16:26 +0100)]
New commands 'elisp-next/prev-occurrence'

2 months agoTrust nothing by default
Eshel Yaron [Tue, 24 Dec 2024 17:14:12 +0000 (18:14 +0100)]
Trust nothing by default

2 months agoscope.el: Minor cleanup
Eshel Yaron [Tue, 24 Dec 2024 17:14:00 +0000 (18:14 +0100)]
scope.el: Minor cleanup

2 months agoNew hook 'read-shell-command-minibuffer-setup-hook'
Eshel Yaron [Tue, 24 Dec 2024 17:13:01 +0000 (18:13 +0100)]
New hook 'read-shell-command-minibuffer-setup-hook'

2 months agoscope.el: Disregard symbol shorthands
Eshel Yaron [Mon, 23 Dec 2024 20:50:17 +0000 (21:50 +0100)]
scope.el: Disregard symbol shorthands

2 months ago* configure.ac (dbus): Default to ifavailable. (Bug#75004)
Michael Albinus [Mon, 23 Dec 2024 11:46:23 +0000 (12:46 +0100)]
* configure.ac (dbus): Default to ifavailable.  (Bug#75004)

(cherry picked from commit b1de495eeae9afc8abccd908e5c53c463afdb7dc)

2 months agoMake 'fit-frame-to-buffer' work around size hints (Bug#74866)
Martin Rudalics [Mon, 23 Dec 2024 09:59:11 +0000 (10:59 +0100)]
Make 'fit-frame-to-buffer' work around size hints (Bug#74866)

* lisp/window.el (fit-frame-to-buffer-1): When
'frame-resize-pixelwise' is nil, round up requested sizes to avoid
that lines get wrapped (Bug#74866).
* doc/lispref/windows.texi (Resizing Windows): Mention that with
size hints one may have to set 'frame-resize-pixelwise' to make
'fit-frame-to-buffer' fit the buffer exactly.

(cherry picked from commit 6017c6a986fd958732facb1bb6ea2c040981b023)

2 months agoJava Mode: introduce the keyword `assert'.
Arsen Arsenovi� [Sun, 22 Dec 2024 19:33:29 +0000 (19:33 +0000)]
Java Mode: introduce the keyword `assert'.

* lisp/progmodes/cc-langs.el (c-simple-stmt-kwds): Put `assert'
into the java value.

(cherry picked from commit 39380e1bd3bfc26e355445590e243fcfa940fc9f)

2 months agoAdd treesit thing 'sexp-list' to typescript-ts-mode (bug#73404)
Juri Linkov [Sun, 22 Dec 2024 19:15:18 +0000 (21:15 +0200)]
Add treesit thing 'sexp-list' to typescript-ts-mode (bug#73404)

* lisp/progmodes/typescript-ts-mode.el (typescript-ts-base-mode):
Add 'sexp-list' to 'treesit-thing-settings'.
(typescript-ts-mode--sexp-list-nodes): New variable.

(cherry picked from commit 423e1ee7d6d6f34c0bc249a8dfb14a4a25eae08a)

2 months agoHandle ':noquery' in 'open-gnutls-stream'
Augusto Stoffel [Tue, 5 Nov 2024 14:07:27 +0000 (15:07 +0100)]
Handle ':noquery' in 'open-gnutls-stream'

* lisp/net/gnutls.el (open-gnutls-stream): Extract and use
':noquery' keyword.  (Bug#74193).

(cherry picked from commit ec39f669f902143a68a99fb42dd05716a27736be)

2 months ago* test/lisp/files-tests.el (sh-shell): Move down declaration.
Michael Albinus [Sun, 22 Dec 2024 09:20:15 +0000 (10:20 +0100)]
* test/lisp/files-tests.el (sh-shell): Move down declaration.

(cherry picked from commit fb7bf20a9c129a97ceeabad00523ecafaa58697c)

2 months agoAllow viewing .dcm images via image-convert
Antero Mejr [Mon, 15 May 2023 23:15:33 +0000 (23:15 +0000)]
Allow viewing .dcm images via image-convert

* lisp/files.el (auto-mode-alist): Support the DICOM .dcm image
format.  (Bug#63531)

(cherry picked from commit 78eb102bc3d25aafb9a2d6756b956f7a2321a715)

2 months agoAllow viewing .six images via image-convert
Antero Mejr [Mon, 15 May 2023 21:21:12 +0000 (21:21 +0000)]
Allow viewing .six images via image-convert

* lisp/files.el (auto-mode-alist): Support the Sixel .six image
format.  (Bug#63531)
* lisp/image.el (imagemagick-enabled-types): Add SIX.

(cherry picked from commit 7d41a23ad3b4c03ea1dea91eb70474f074dc05a4)

2 months ago* lisp/vc/smerge-mode.el (smerge-extend): New command (bug#74509)
Stefan Monnier [Sun, 22 Dec 2024 02:45:41 +0000 (21:45 -0500)]
* lisp/vc/smerge-mode.el (smerge-extend): New command (bug#74509)

(cherry picked from commit 961cff855a9eccb9c2de31edc7d90ce697ebb65d)

2 months agoMatch more gdbinit files in auto-mode-alist
Stefan Kangas [Sun, 22 Dec 2024 01:57:45 +0000 (02:57 +0100)]
Match more gdbinit files in auto-mode-alist

* lisp/files.el (auto-mode-alist): Match more gdbinit files,
including XDG, and MS-Windows.  Avoid false positives.
(set-auto-mode--find-matching-alist-entry): Break out function...
(set-auto-mode--apply-alist): ...from here.  (Bug#74946)
* test/lisp/files-tests.el (files-tests--check-mode): New function.
(files-tests-auto-mode-alist): New test.

(cherry picked from commit 86a8b24bdea52a7aab45abcc51db2dd47308c11f)