]> git.eshelyaron.com Git - emacs.git/log
emacs.git
5 weeks ago; * etc/NEWS: Fix last change.
Eli Zaretskii [Sat, 11 Jan 2025 13:05:41 +0000 (15:05 +0200)]
; * etc/NEWS: Fix last change.

(cherry picked from commit 1dfde9f70d2e4b417fe309ba490b33136e7ae870)

5 weeks agoibuffer: Add the "Recency" column
Daniel Mendler [Sat, 28 Dec 2024 12:21:46 +0000 (13:21 +0100)]
ibuffer: Add the "Recency" column

Define a column which shows how many seconds ago the respective
buffer has been displayed.  The time is formatted with the
`seconds-to-string' function, with the new arguments READABLE=t
and ABBREV=t.
* lisp/ibuffer.el (ibuffer-recency-header-map): New keymap.
(define-ibuffer-column recency): New column.
* etc/NEWS: Mention new `recency' column.  (Bug#73047)

(cherry picked from commit 266e1c34d89e5f0a8ece789e77b24187c8c7d448)

5 weeks agoFix widget buttons when button prefix includes space
David Ponce [Wed, 1 Jan 2025 11:03:07 +0000 (08:03 -0300)]
Fix widget buttons when button prefix includes space

* lisp/wid-edit.el (widget-specify-button): Give the invisible
space the same 'face' property as the rest of the button.
(Bug#73911)

(cherry picked from commit 5060bf6ed64a6e96b4c660e6ad5204a23133b71d)

5 weeks agoFix checkbox's child creation
Mauro Aranda [Wed, 1 Jan 2025 11:22:45 +0000 (08:22 -0300)]
Fix checkbox's child creation

* lisp/wid-edit.el (widget-checklist-add-item): Swap function
calls so that child is actually a widget.  (Bug#72156)

(cherry picked from commit d66b8d4becb6804d3bd912a000dc64ccfdbe6810)

5 weeks agoDocument that 'package-vc' doesn't support built-in packages
Eli Zaretskii [Sat, 11 Jan 2025 10:58:03 +0000 (12:58 +0200)]
Document that 'package-vc' doesn't support built-in packages

* doc/misc/use-package.texi (Install package):
* doc/emacs/package.texi (Fetching Package Sources): Document that
upgrading built-in packages is not yet supported using
'package-vc'.  (Bug#75328)

(cherry picked from commit 26c5fadf474a56d56064899bc3447bba6d3c3037)

5 weeks ago; Skip commit ee61b9a050b4fbc9940d11bc95437e5113865c8b
Eshel Yaron [Sat, 11 Jan 2025 17:08:18 +0000 (18:08 +0100)]
; Skip commit ee61b9a050b4fbc9940d11bc95437e5113865c8b

5 weeks ago; Simplify admin/run-codespell
Stefan Kangas [Sat, 11 Jan 2025 06:09:23 +0000 (07:09 +0100)]
; Simplify admin/run-codespell

* admin/run-codespell (emacs_run_codespell): Simplify.  Use env in
shebang to use more recent bash on macOS.

(cherry picked from commit ce43d13593a44ba36ba6702cf276fef8711ab738)

5 weeks ago; Remove duplicated word in files.el Commentary
Stefan Kangas [Sat, 11 Jan 2025 04:18:51 +0000 (05:18 +0100)]
; Remove duplicated word in files.el Commentary

(cherry picked from commit fa1470d0699172e0913290c78c66da293aa43f89)

5 weeks agoImprove checkdoc-common-verbs-wrong-voice docstring
Stefan Kangas [Sat, 11 Jan 2025 04:05:14 +0000 (05:05 +0100)]
Improve checkdoc-common-verbs-wrong-voice docstring

* lisp/emacs-lisp/checkdoc.el (checkdoc-common-verbs-wrong-voice):
Improve docstring.

(cherry picked from commit dabaea97465163c015890272c3d5001624690e08)

5 weeks agoDocument string-as-{unibyte,multibyte} as obsolete in manual
Stefan Kangas [Sat, 11 Jan 2025 01:28:15 +0000 (02:28 +0100)]
Document string-as-{unibyte,multibyte} as obsolete in manual

* doc/lispref/nonascii.texi (Selecting a Representation): Document
string-as-unibyte and string-as-multibyte as obsolete.

(cherry picked from commit 6de2ee5663d5cc51831dbdafd77bd71e0811c37b)

5 weeks agoFix go-ts-mode var spec indentation (Bug#75362)
Randy Taylor [Sun, 5 Jan 2025 21:48:00 +0000 (16:48 -0500)]
Fix go-ts-mode var spec indentation (Bug#75362)

v0.21.1 and onwards changed how this was indented.

* lisp/progmodes/go-ts-mode.el (go-ts-mode--indent-rules):
Add rule for var_spec_list.

(cherry picked from commit 7f76f872ebfd67fb52974426c47bf3d08724d716)

5 weeks agoAdd "text" as a thing in tsx-ts-mode
Kohei Tsuruta [Tue, 7 Jan 2025 15:36:14 +0000 (07:36 -0800)]
Add "text" as a thing in tsx-ts-mode

* lisp/progmodes/typescript-ts-mode.el (tsx-ts-mode):
Add definition of "text" (bug#75422).

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

5 weeks agoImprove doc string of 'package-delete'
Nikolaos Chatzikonstantinou [Sun, 5 Jan 2025 13:16:06 +0000 (08:16 -0500)]
Improve doc string of 'package-delete'

* lisp/emacs-lisp/package.el (package-delete): Elaborate on the
kind of argument expected by the function.  (Bug#75382)

(cherry picked from commit 59c57337923ed515e923ea65f168e1197d376868)

5 weeks ago; * admin/MAINTAINERS: Remove Kelvin White.
Stefan Kangas [Thu, 9 Jan 2025 02:08:29 +0000 (03:08 +0100)]
; * admin/MAINTAINERS: Remove Kelvin White.

(cherry picked from commit 313a191d047a9d7d24ad0fee55739ce6133d887e)

5 weeks agoClarify that 'mac' line ending convention is not used on macOS
Stefan Kangas [Wed, 8 Jan 2025 03:50:53 +0000 (04:50 +0100)]
Clarify that 'mac' line ending convention is not used on macOS

* doc/emacs/mule.texi (Coding Systems):
* doc/lispref/nonascii.texi (Coding System Basics): Clarify that the
'mac' line ending convention is not used on macOS, and is now rare
outside of legacy software.

(cherry picked from commit 002960ceabfb4f91b1bc73a342a9bd5e719e739b)

5 weeks agoAdd language server for Odin
Ellis Kenyo [Tue, 7 Jan 2025 15:43:58 +0000 (15:43 +0000)]
Add language server for Odin

* lisp/progmodes/eglot.el (eglot-server-programs): Add language server
for the Odin programming language.  (Bug#75421)

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

5 weeks ago; Improve documentation of function-type display
Eli Zaretskii [Tue, 7 Jan 2025 15:20:22 +0000 (17:20 +0200)]
; Improve documentation of function-type display

* etc/NEWS: Document 'help-display-function-type'.

* doc/lispref/functions.texi (Declare Form):
* doc/lispref/objects.texi (Type Specifiers):
* doc/emacs/help.texi (Name Help): Better indexing of function
types.  (Bug#65288)

(cherry picked from commit ee1034422b0c84722a237ab6fdd410ab74674ee6)

5 weeks agoModernize "Commentary" section of files.el
Stefan Kangas [Tue, 7 Jan 2025 05:12:21 +0000 (06:12 +0100)]
Modernize "Commentary" section of files.el

* lisp/files.el: Modernize "Commentary" section.  (Bug#75398)

(cherry picked from commit 1c49edc40802ed4bb5f36c44b00e954efbddd42a)

5 weeks ago* INSTALL: Add advice how to invoke 'make install'. (Bug#74400)
Michael Albinus [Sun, 5 Jan 2025 08:25:37 +0000 (09:25 +0100)]
* INSTALL: Add advice how to invoke 'make install'.  (Bug#74400)

(cherry picked from commit 505c1123e18a8a710fc60e05a4c870497bf580f4)

5 weeks agoImprove the documentation of 'key-valid-p'
Hong Xu [Sat, 4 Jan 2025 20:32:24 +0000 (12:32 -0800)]
Improve the documentation of 'key-valid-p'

* lisp/keymap.el (key-valid-p): Add an function key and mouse
button example.  Mention '<left>' as a cursor control key
instead of a function key.  Briefly explain what an event may
be.  (Bug#75366)

(cherry picked from commit 82e16cae9cc02d6807561861621cf7b5b9ba928f)

5 weeks ago; Touch-ups for new window-x.el
Eshel Yaron [Sat, 11 Jan 2025 12:57:26 +0000 (13:57 +0100)]
; Touch-ups for new window-x.el

* lisp/window-x.el: Autoload commands, provide feature.
(window-tree-normal-sizes): Improve docstring.
(window--window-to-transpose, window--depmap): Remove.
(window--rotate-interactive-arg): New function.
(rotate-window-layout-anticlockwise): Rename to...
(rotate-window-layout-counterclockwise): ...this.
(rotate-window-layout-clockwise)
(flip-window-layout-horizontally)
(flip-window-layout-vertically, transpose-window-layout)
(rotate-windows-back, rotate-windows, window--transpose)
(window--transpose-1): Cosmetics.

6 weeks agoSupport TTY child frames with GPM mouse
Jared Finder [Tue, 7 Jan 2025 04:52:11 +0000 (20:52 -0800)]
Support TTY child frames with GPM mouse

* lisp/frame.el (x-list-fonts): Delete `frame-at', to move to
C implementation.
* lisp/xt-mouse.el (xterm-mouse-event): Call new `tty-frame-at'.
* src/term.c (tty_frame_at, Ftty_frame_at): New C function,
replacing `frame-at' only for TTYs.
(term_mouse_position): Use last_mouse_frame when it is set.
(handle_one_term_event): Call tty_frame_at to get frame under
mouse, store it in last_mouse_frame.  Alter event coordinates
based on mouse frame.
(syms_of_term): Add tty-frame-at, last_mouse_frame.
* src/termhooks.h: Make Gpm_Event parameter const.

(cherry picked from commit d018a26f9cfb29b166199e88ec6ee84d06733851)

6 weeks agoIn bibtex.el, fix widgets for customization types (bug#74409)
Roland Winkler [Sat, 11 Jan 2025 04:34:16 +0000 (22:34 -0600)]
In bibtex.el, fix widgets for customization types (bug#74409)

* lisp/textmodes/bibtex.el (bibtex-field-list, bibtex-entry-alist)
(bibtex-field-alist): Fix widgets for customization types (bug#74409).

(cherry picked from commit 2f63dab3ee566f5794fac4139a8f8b8b9e250a00)

6 weeks agoImprove some docstrings in bibtex.el
Roland Winkler [Sat, 11 Jan 2025 03:48:54 +0000 (21:48 -0600)]
Improve some docstrings in bibtex.el

* lisp/textmodes/bibtex.el: (bibtex-BibTeX-entry-alist)
(bibtex-biblatex-entry-alist, bibtex-BibTeX-field-alist): Improve docstrings.
(bibtex-biblatex-entry-alist): Minor fix.

(cherry picked from commit f51129b4fc3f50a20856d0d9bd1ac5b61daf08da)

6 weeks ago; Fix typo (Bug#75480)
john muhl [Sun, 5 Jan 2025 16:24:02 +0000 (10:24 -0600)]
; Fix typo (Bug#75480)

(cherry picked from commit e024bd1d1f904b271d337e85ef730afcc87e73d2)

6 weeks agoProtect Vframe_list updating from interruptions
Robert Pluim [Mon, 6 Jan 2025 15:38:07 +0000 (16:38 +0100)]
Protect Vframe_list updating from interruptions

* src/frame.c (delete_frame): When deleting the frame from
Vframe_list, block input, since input can arrive whilst we're
running lisp  (Bug#74902).

(cherry picked from commit 8e9ad92a140e89c3e29dd7ab148534289e7769db)

6 weeks agoAdd new file window-x.el
Pranshu Sharma [Fri, 10 Jan 2025 15:07:30 +0000 (16:07 +0100)]
Add new file window-x.el

* lisp/window-x.el: New file.
* etc/NEWS: Mention new commands to modify window layout.

(cherry picked from commit d1e6379d6ab6148b0c93369daf51f7d6b10a3c9a)

6 weeks ago; Fix recently added documentation
Eli Zaretskii [Fri, 10 Jan 2025 15:03:16 +0000 (17:03 +0200)]
; Fix recently added documentation

* doc/lispref/windows.texi (Splitting Windows): Fix punctuation.
(Resurrecting Windows): Fix typo.
* doc/lispref/elisp.texi (Top): Add the new node to @detailmenu.

(cherry picked from commit 4a8c885dfab87e85edd0897725a242a48f88436b)

6 weeks ago; * doc/lispref/windows.texi (Resurrecting Windows): Fix typo.
Eli Zaretskii [Fri, 10 Jan 2025 14:51:27 +0000 (16:51 +0200)]
; * doc/lispref/windows.texi (Resurrecting Windows): Fix typo.

(cherry picked from commit c2dbe029104d75866813c1d0c10c0b2173bb85c7)

6 weeks agoHave 'split-window' optionally resurrect deleted windows
Martin Rudalics [Fri, 10 Jan 2025 08:24:20 +0000 (09:24 +0100)]
Have 'split-window' optionally resurrect deleted windows

* src/window.c (Fwindow_old_buffer): Handle deleted window as
argument.
(make_parent_window): Remove function.
(Fsplit_window_internal): New argument REFER for resurrecting
deleted windows.  Incorporate functionality of defunct
make_parent_window.
(Fdelete_window_internal, delete_all_child_windows): Store any
deleted window's buffer in the window's old_buffer slot.
(window_dead_windows_table): Make it a 'value' type hash table
so the sequence number cannot affect its weakness.
* lisp/window.el (split-window): New argument REFER.
* doc/lispref/windows.texi (Resurrecting Windows): New section.
(Splitting Windows): Explain new argument REFER.
(Window Hooks): Rewrite description of 'window-old-buffer'.
* etc/NEWS: Mention new REFER argument for 'split-window'.

(cherry picked from commit 7f286e7d83665526929dea3f7180f3a5ba8ef14e)

6 weeks ago* lisp/progmodes/typescript-ts-mode.el: Fix syntax of tsx tags.
Juri Linkov [Fri, 10 Jan 2025 07:56:08 +0000 (09:56 +0200)]
* lisp/progmodes/typescript-ts-mode.el: Fix syntax of tsx tags.

(tsx-ts--syntax-propertize-captures): For tag angle brackets
use the same syntax as in 'sgml-make-syntax-table' (bug#73978).

(cherry picked from commit c0a52efed32ddc63b26c9e1d9dd769da55d857e5)

6 weeks agoUse the treesit thing 'list' with symbol property 'treesit-thing-symbol'
Juri Linkov [Fri, 10 Jan 2025 07:33:49 +0000 (09:33 +0200)]
Use the treesit thing 'list' with symbol property 'treesit-thing-symbol'

* doc/lispref/parsing.texi (User-defined Things): Mention new
functions 'treesit-forward-list', 'treesit-down-list',
'treesit-up-list', 'treesit-show-paren-data' that use the thing
'list' with the symbol property 'treesit-thing-symbol' (bug#73404).

* lisp/treesit.el: Put the property 'treesit-thing-symbol'
on the symbol 'list'.
(treesit--forward-list-with-default, treesit-down-list)
(treesit-up-list, treesit-navigate-thing)
(treesit-show-paren-data--categorize, treesit-major-mode-setup):
Replace 'sexp-list' with 'list'.

* lisp/progmodes/c-ts-mode.el (c-ts-mode--thing-settings):
* lisp/progmodes/js.el (js-ts-mode):
* lisp/progmodes/ruby-ts-mode.el (ruby-ts-mode):
* lisp/progmodes/typescript-ts-mode.el (typescript-ts-base-mode)
(tsx-ts-mode):
* lisp/textmodes/html-ts-mode.el (html-ts-mode):
Replace 'sexp-list' with 'list'.

* src/treesit.c (treesit_traverse_validate_predicate)
(treesit_traverse_match_predicate): Check if the 'pred'
symbol has the property 'Qtreesit_thing_symbol'.
(syms_of_treesit): New symbol 'Qtreesit_thing_symbol'.

(cherry picked from commit 42a5ac3b513ff03c64c9609fc7e79c2b7932b2a4)

6 weeks ago* lisp/man.el (Man-fit-to-window): Don't update on tty with MANWIDTH.
Juri Linkov [Thu, 9 Jan 2025 18:33:03 +0000 (20:33 +0200)]
* lisp/man.el (Man-fit-to-window): Don't update on tty with MANWIDTH.

Check if 'Man-columns' is non-nil before trying to reformat
the manpage buffer.  The value of the varible 'Man-columns'
is nil on a non-window system where "MANWIDTH" or "COLUMNS"
is defined.  And the return value of the function 'Man-columns'
is meaningless in this case anyway.  So no need to react
to changes in window width (bug#74924).

(cherry picked from commit 351b6ac16d29459c5800bd980d428e61ee43cb7d)

6 weeks agoImprove UI of customizing icons
David Ponce [Thu, 9 Jan 2025 10:01:40 +0000 (11:01 +0100)]
Improve UI of customizing icons

* lisp/cus-edit.el (custom-icon--images-sub-type)
(custom-icon--emojis-sub-type, custom-icon--symbols-sub-type)
(custom-icon--texts-sub-type, custom-icon--type): New defconst's.
(custom-icon-value-create): Use them.  (Bug#73178)

(cherry picked from commit 6d02539dd48255e1b53f48dbdc8069b50be63767)

6 weeks ago; Skip commit 81cf42c8af75b9ee2f2cee36254e3286b2077cbc
Eshel Yaron [Sat, 11 Jan 2025 11:18:20 +0000 (12:18 +0100)]
; Skip commit 81cf42c8af75b9ee2f2cee36254e3286b2077cbc

6 weeks agoIn xt_action_hook don't act on deleted window's scroll bar (Bug#75120)
Martin Rudalics [Thu, 9 Jan 2025 08:37:13 +0000 (09:37 +0100)]
In xt_action_hook don't act on deleted window's scroll bar (Bug#75120)

* src/xterm.c (xt_action_hook): Make sure window_being_scrolled
is live (Bug#75120).
* src/pdumper.c (dump_subr): Update pertinent hash of
HASH_Lisp_Subr.

(cherry picked from commit 0edafe0fb6bb3df4fed09eb345b690fbce2c01bb)

6 weeks ago; * lib-src/make-fingerprint.c: Fix copyright year.
Stefan Kangas [Thu, 9 Jan 2025 05:22:21 +0000 (06:22 +0100)]
; * lib-src/make-fingerprint.c: Fix copyright year.

This file is new with the portable dumper.

(cherry picked from commit b099777b52da1232e14883f50775a75d4d6aba62)

6 weeks ago; Fix indentation in itree.c
Stefan Kangas [Thu, 9 Jan 2025 04:12:14 +0000 (05:12 +0100)]
; Fix indentation in itree.c

(cherry picked from commit b6bec47c4abe84263cb88eda56d3a9d77f153f71)

6 weeks agoAdd button navigation to treesit-explorer (bug#75141)
Gabriel Santos [Fri, 27 Dec 2024 13:43:20 +0000 (10:43 -0300)]
Add button navigation to treesit-explorer (bug#75141)

* lisp/treesit.el (treesit--explorer-tree-mode-map): Define it
as a child of special-mode-map, adding keys for button
navigation.

(cherry picked from commit 493bb2eaf1610ec950e4a2f7229d6e1f939064b9)

6 weeks agoImprove 'gethash' docstring
Stefan Kangas [Thu, 9 Jan 2025 01:54:08 +0000 (02:54 +0100)]
Improve 'gethash' docstring

* src/fns.c (Fgethash): Improve docstring.  Avoid exposing the C
identifier 'dflt' to Lisp by providing a "usage:" string.

(cherry picked from commit 40fbed939a254566f3bce50c6f16c21e5d2441ad)

6 weeks agoFix documentation of Iroquoian input methods
Kierin Bell [Wed, 8 Jan 2025 23:29:55 +0000 (18:29 -0500)]
Fix documentation of Iroquoian input methods

* lisp/leim/quail/iroquoian.el: Fix typos in Oneida endonym and in the
docstring of `haudenosaunee-postfix' about keys for inputting Onondaga
nasals.  (Bug#75448)

* etc/NEWS: Fix typo in Oneida endonym.

(cherry picked from commit bdccd4ea9e903dcabfa65cdd44d979838cae4d29)

6 weeks agoRemove support for supertabular from RefTeX
Arash Esbati [Wed, 8 Jan 2025 19:47:43 +0000 (20:47 +0100)]
Remove support for supertabular from RefTeX

* doc/misc/reftex.texi (Builtin Label Environments):
* lisp/textmodes/reftex-vars.el (reftex-label-alist-builtin)
(reftex-default-label-alist-entries): Delete entries for the
supertabular environment.  supertabular is an extension of the
normal tabular environment, and therefore doesn't contain a
caption and label.  Hence, supporting supertabular in RefTeX is
useless.

(cherry picked from commit b71225ed90ab28ad88c22f8fcd1b87c5681eb0a7)

6 weeks ago; "time stamp" also can be spelled "timestamp"
Stephen Gildea [Wed, 8 Jan 2025 18:24:55 +0000 (10:24 -0800)]
; "time stamp" also can be spelled "timestamp"

* lisp/time-stamp.el (time-stamp):
* doc/emacs/files.texi (Time Stamps): Be findable as "timestamps".

(cherry picked from commit ab3cb717a08ef8a9939e38652f25a5ef312c76ce)

6 weeks agoReplace obsolete subfigure package with subfig
Arash Esbati [Wed, 8 Jan 2025 18:12:49 +0000 (19:12 +0100)]
Replace obsolete subfigure package with subfig

* doc/misc/reftex.texi (Builtin Label Environments): Mention the
subfig LaTeX package instead of the obsolete subfigure.

* lisp/textmodes/reftex-vars.el (reftex-label-alist-builtin):
Replace obsolete subfigure entry with subfig.  Adjust the macro
names accordingly and the regexp for matching the context.
Unify the descriptions of all entries.
(reftex-default-label-alist-entries): Use subfig as well.

(cherry picked from commit 5c3deffd9f4647e0dff33ffc84a28eb6fedb3012)

6 weeks agoAdd keywords var and final to Java Mode
Arsen Arsenović [Wed, 8 Jan 2025 13:57:33 +0000 (13:57 +0000)]
Add keywords var and final to Java Mode

* lisp/progmodes/cc-langs.el (c-type-modifier-prefix-kwds): Add
java entry for final.
(c-no-type-kwds): Add java entry for var.

(cherry picked from commit 6df0e18fed3f3012d56a72f1d5f6a44f2f039ce2)

6 weeks ago; * src/lisp.h (struct Lisp_Subr): Fix comment (again).
Eli Zaretskii [Wed, 8 Jan 2025 14:06:19 +0000 (16:06 +0200)]
; * src/lisp.h (struct Lisp_Subr): Fix comment (again).

(cherry picked from commit 5eca08bb23415b983bd4a80394554019b339a715)

6 weeks ago; * src/lisp.h (struct Lisp_Subr): Fix comment.
Eli Zaretskii [Wed, 8 Jan 2025 13:43:40 +0000 (15:43 +0200)]
; * src/lisp.h (struct Lisp_Subr): Fix comment.

(cherry picked from commit a427927123cea5ddbf2f2edc1db69ec7d83f2d42)

6 weeks agosubr.el doc clarifications.
Richard Stallman [Wed, 8 Jan 2025 13:40:32 +0000 (08:40 -0500)]
subr.el doc clarifications.

* subr.el (when-let, when-let*, and-let*): Doc clarifications.
Make `when-let* doc string self-contained.

(cherry picked from commit 67be8db518828bbf8fb3efc5bf87d02e4ce6d8d6)

6 weeks agoAdd autoload cookie and doc fix
Richard Stallman [Wed, 8 Jan 2025 13:26:40 +0000 (08:26 -0500)]
Add autoload cookie and doc fix

cond-star.el (cond*): Add autoload cookie.
Doc fix.

(cherry picked from commit 2a3385ab50c2f7281812b8fb582bcdba899f5f47)

6 weeks agoFix store_function_docstring for native subrs (Bug#74966)
Pip Cet [Wed, 8 Jan 2025 12:15:30 +0000 (12:15 +0000)]
Fix store_function_docstring for native subrs (Bug#74966)

Since native subrs can have either etc/DOC indexes or vector indexes,
we use the sign bit of the 'doc' field to distinguish the two cases.

* src/comp.c (native_function_doc, make_subr): Use one's complement of
doc index for native subrs.
* src/doc.c (store_function_docstring): Add assertion.
* src/lisp.h (struct Lisp_Subr): Document 'doc' sign bit.

(cherry picked from commit ac52993b996927031a6913927e1028de47be4312)

6 weeks agoAuto-adapt completion preview background color
Eshel Yaron [Thu, 9 Jan 2025 11:22:03 +0000 (12:22 +0100)]
Auto-adapt completion preview background color

Teach Completion Preview mode to automatically remap its
faces such that the background color of the preview overlay
matches the background color of the buffer text that is
being completed.  Crucially, this resolves an issue where
the preview overlay didn't look nice with hl-line-mode on.

Also see related discussion in bug#71282.

* lisp/completion-preview.el
(completion-preview-adapt-background-color): New option.
(completion-preview--bg-color): New function.
(completion-preview--face-remap-cookie-jar): New variable.
(completion-preview--make-overlay): Use them.

6 weeks agoFix some compilation warnings
Eshel Yaron [Thu, 9 Jan 2025 10:55:00 +0000 (11:55 +0100)]
Fix some compilation warnings

6 weeks ago; Fix indentation in src/nsterm.h
Stefan Kangas [Wed, 8 Jan 2025 06:29:33 +0000 (07:29 +0100)]
; Fix indentation in src/nsterm.h

Reduce the diff between master and scratch/igc.

(cherry picked from commit 631f43d2bbe403e48d63d963281f1d948dee5263)

6 weeks agoMove define_error declaration and docstring
Stefan Kangas [Wed, 8 Jan 2025 05:39:22 +0000 (06:39 +0100)]
Move define_error declaration and docstring

* src/lisp.h (define_error): Move declaration to its proper place, make
external, and move its docstring...
* src/eval.c (define_error): ...to its function definition.

(cherry picked from commit 2ec7396d5d190302c16b8d9bd7da14ac9381a21e)

6 weeks ago; Fix indentation
Stefan Kangas [Wed, 8 Jan 2025 04:57:27 +0000 (05:57 +0100)]
; Fix indentation

(cherry picked from commit 9811f80d252ae14dd655fce031fee5ffa95b689e)

6 weeks ago; Mark ERC keep-place-indicator test as :unstable
F. Jason Park [Wed, 8 Jan 2025 01:17:50 +0000 (17:17 -0800)]
; Mark ERC keep-place-indicator test as :unstable

* test/lisp/erc/erc-scenarios-keep-place-indicator.el
(erc-scenarios-keep-place-indicator--follow): Don't run on EMBA pending
investigation of test timing out.

(cherry picked from commit 601a1f1f2797488ea40292c27945fbfbe1bc3241)

6 weeks agoImprove use of Flyspell's API in erc-spelling
F. Jason Park [Sun, 5 Jan 2025 23:59:46 +0000 (15:59 -0800)]
Improve use of Flyspell's API in erc-spelling

* etc/ERC-NEWS: Announce deprecation of `erc-spelling-flyspell-verify'
and `erc-spelling-unhighlight-word'.  A slight behavioral change not
worth mentioning is that, previously, ERC arranged for Flyspell to
ignore any word immediately following a forward slash anywhere in the
prompt input, even those for which the slash served as mere
punctuation (a "stroke"), as in "something/misspelt."  As of this
change, Flyspell only unconditionally exempts an initial slash-prepended
word, like "tableflip" in "ERC> /tableflip", and checks all others that
follow against known slash commands.
* lisp/erc/erc-spelling.el: Change top-level assignment of `erc-mode'
symbol-property `flyspell-mode-predicate' from
`erc-spelling-flyspell-verify' to `erc-spelling--flyspell-input-p'.
(erc-spelling-mode, erc-spelling-disable): Remove local member from
`flyspell-incorrect-hook'.
(erc-spelling-init): Add `erc-spelling--flyspell-check' to
`flyspell-incorrect-hook' locally.  Don't bother explicitly setting
`flyspell-generic-check-word-predicate' because Flyspell already does
that for clients using the `flyspell-mode-predicte' interface.
(erc-spelling-flyspell-verify, erc-spelling-unhighlight-word): Mark
obsolete.
(erc-spelling--flyspell-check, erc-spelling--flyspell-input-p): New
functions, essentially the two halves of a reworked and bifurcated
`erc-spelling-flyspell-verify'.  Though used as a predicate, the first
is not named as such because it performs side effects.
* test/lisp/erc/erc-scenarios-spelling.el: New file.
* test/lisp/erc/resources/spelling/auto-correct.eld: New file.
(Bug#75327)

(cherry picked from commit f9ecde75bbcd315557481585a1146f976f719504)

6 weeks agoFix regression in erc-nicks involving color pools
F. Jason Park [Mon, 6 Jan 2025 00:58:50 +0000 (16:58 -0800)]
Fix regression in erc-nicks involving color pools

* lisp/erc/erc-nicks.el (erc-nicks-colors): Tweak doc.
(erc-nicks--create-pool-function): On graphic displays, set value to
`erc-nicks--create-culled-pool', the original default.  This fixes a bug
in which ERC mapped all pool members to a primary color, thus excluding
the bulk of them.  Thanks to Trevor Arjeski for discovering it.
(erc-nicks--create-coerced-pool): Mention the text-terminal-only
requirement in doc.
(erc-nicks-refresh): Improve doc.
* test/lisp/erc/erc-nicks-tests.el (erc-nicks-tests--track-faces):
Enable `erc-track-mode' prior to running body.

(cherry picked from commit c266c22b418541714889e85831de93c10a3c3fde)

6 weeks agoUpdate RefTeX manual
Arash Esbati [Tue, 7 Jan 2025 21:02:13 +0000 (22:02 +0100)]
Update RefTeX manual

* doc/misc/reftex.texi: (Builtin Label Environments): Mention
supported LaTeX packages ctable, minted and listings.
(Reference Styles): Update the supported reference styles and the
corresponding macros.
(Citation Styles): Mention support for biblatex package.
(Language Support): Describe usage of non-ASCII characters in the
LaTeX \label definition.
(Style Files): Mention biblatex.el as well.
(Options - Defining Label Environments): Add entry for
`reftex-label-regexps' option.
Other minor improvements.

(cherry picked from commit 8d687695c528e4edb04cca5602470d349e333258)

6 weeks agobibtex-braced-string-syntax-table: fix bug #68477
Roland Winkler [Tue, 7 Jan 2025 17:56:48 +0000 (11:56 -0600)]
bibtex-braced-string-syntax-table: fix bug #68477

* lisp/textmodes/bibtex.el (bibtex-braced-string-syntax-table):
Give all parentheses the syntax punctuation so that we do not
choke because of unbalanced parentheses other than braces (bug

(cherry picked from commit 1ef7deb2f723f9129135e8676366d79eee83e870)

6 weeks agoPrefer `%s` format over `%S` for buffers
Juri Linkov [Tue, 7 Jan 2025 18:44:09 +0000 (20:44 +0200)]
Prefer `%s` format over `%S` for buffers

This restores the `%s` format` for buffers
after fba3c7ff3f68f05d32541440e0a22ec667c0ad66.

* lisp/gnus/nnimap.el (nnimap-make-process-buffer):
* lisp/gnus/nntp.el (nntp-make-process-buffer):
* lisp/simple.el (next-error-internal):
Prefer more user-readable `%s` format over `%S` for buffers.

(cherry picked from commit 4bf0f6655142b9e216325d051943b7b7ca4d2cd7)

6 weeks ago; Skip commit d5c3173366354b94dc9a421caaf8b66015038998
Eshel Yaron [Wed, 8 Jan 2025 08:57:46 +0000 (09:57 +0100)]
; Skip commit d5c3173366354b94dc9a421caaf8b66015038998

6 weeks ago(calendar-read-date): Remove redundant buglet-binding
Eshel Yaron [Wed, 8 Jan 2025 08:57:08 +0000 (09:57 +0100)]
(calendar-read-date): Remove redundant buglet-binding

6 weeks agoImprove docstring of image-dired-show-all-from-dir
Stefan Kangas [Tue, 7 Jan 2025 07:15:41 +0000 (08:15 +0100)]
Improve docstring of image-dired-show-all-from-dir

* lisp/image/image-dired.el (image-dired-show-all-from-dir):
Improve docstring.

(cherry picked from commit e41a7d8127423307018f369e8739319f1de9b3fa)

6 weeks agoimage-dired-show-all-from-dir: Reuse dired's default-directory
Sacha Chua [Thu, 2 Jan 2025 19:52:28 +0000 (14:52 -0500)]
image-dired-show-all-from-dir: Reuse dired's default-directory

* lisp/image/image-dired.el (image-dired-show-all-from-dir): Delegate
figuring out default-directory to dired.  This handles the case where
image-dired is called with a cons cell that has a directory in the car
and a list of files in the cdr, which dired can handle, and therefore
allows image-dired-show-all-from-dir to show an arbitrary list of
images.  It also means that image-dired-show-all-from-dir can handle
wildcards.
Ref: https://lists.gnu.org/r/emacs-devel/2025-01/msg00048.html

(cherry picked from commit d4503ccc2769035184e474542fc6c1df7e908ae0)

6 weeks ago; Silence byte-compiler
Stefan Kangas [Mon, 6 Jan 2025 19:06:49 +0000 (20:06 +0100)]
; Silence byte-compiler

(cherry picked from commit d98516a27b9ff77e1106ae5801c7ca8802eaa656)

6 weeks agoNew test for finding C header files
Stefan Kangas [Mon, 6 Jan 2025 19:03:48 +0000 (20:03 +0100)]
New test for finding C header files

The assumption here is that if there is a C compiler, there is also a
math.h header somewhere.  The test should fail if we can't find that
file, and hopefully that will provoke users to create bug reports.

Let's see how far we can take this idea; we might have to give up and
disable the test in some configurations.  But doing that now seems
premature, even if we had a list of affected systems (which we don't).

* lisp/man.el (man--find-header-file): Factor out new function...
(Man-view-header-file): ...from here.
* test/lisp/man-tests.el (man-tests-find-header-file): New test.

(cherry picked from commit 15d940ad1fc3ca3a72c23d9873a32a1a68d0cb05)

6 weeks agoFix finding C headers with clang
Stefan Kangas [Mon, 6 Jan 2025 11:29:21 +0000 (12:29 +0100)]
Fix finding C headers with clang

This fixes following "#include" references in 'M-x man' buffers, and
using ffap, both on macOS machines, and on systems where for some reason
clang is available but gcc is not.

* lisp/subr.el (internal--c-header-file-path): Fix finding C
headers with clang.
(internal--gcc-is-clang-p): New function factored out from...
* lisp/emacs-lisp/ert-x.el (ert-gcc-is-clang-p): ...here.
* lisp/man.el (Man-header-file-path): Bump :version tag.

* test/lisp/subr-tests.el
(subr-tests-internal--c-header-file-path/clang-mocked): New test.

(cherry picked from commit 3dc3dbc2e38340aba7f818eab21abfd93a132175)

6 weeks agoNew function internal--c-header-file-path
Stefan Kangas [Mon, 6 Jan 2025 09:08:01 +0000 (10:08 +0100)]
New function internal--c-header-file-path

It is not clear to me where this function properly belongs, so let's put
it in subr.el for now.  This avoids code duplication without introducing
a dependency between man and ffap.  It can always be moved later.

* lisp/subr.el (internal--c-header-file-path): New function.
* lisp/man.el (Man-header-file-path):
* lisp/ffap.el (ffap-c-path): Use above new function.

* test/lisp/subr-tests.el (ert-x): Require.
(subr-tests-internal--c-header-file-path)
(subr-tests-internal--c-header-file-path/gcc-mocked): New tests.

(cherry picked from commit 888ff3755d499ca74f9d8cdf9e4d2c7dc0331236)

6 weeks agotime-stamp: lower- and title-case weekday and month names
Stephen Gildea [Mon, 6 Jan 2025 19:00:07 +0000 (11:00 -0800)]
time-stamp: lower- and title-case weekday and month names

* lisp/time-stamp.el (time-stamp-string-preprocess): new formats for
lowercase weekday name, lowercase month name, and system name
* test/lisp/time-stamp.el: new tests
(formatz-generate-tests): Better doc strings for generated test fns.

(cherry picked from commit 3de5fcd0a60b01639276f360561037403f8d7389)

6 weeks ago* lisp/treesit.el: Use forward-list-default-function for C-M-n
Juri Linkov [Mon, 6 Jan 2025 18:02:18 +0000 (20:02 +0200)]
* lisp/treesit.el: Use forward-list-default-function for C-M-n

(treesit--forward-list-with-default): New internal function
with body from 'treesit-forward-sexp-list' (bug#73404).
(treesit-forward-sexp-list, treesit-forward-list):
Replace body with a call to the shared implementation
'treesit--forward-list-with-default' using the
corresponding default function as an argument.

(cherry picked from commit 997b9b8d38fd8a770fb1e0b3c85abae2c0d6cdd3)

6 weeks agoEglot: new eglot--format to fix quote substitution woes (bug#73472)
João Távora [Mon, 6 Jan 2025 10:47:13 +0000 (10:47 +0000)]
Eglot: new eglot--format to fix quote substitution woes (bug#73472)

* lisp/progmodes/eglot.el (eglot--guess-contact): Use eglot--format.
(eglot--format): New helper.
(eglot--error, eglot--message, eglot--warn)
(eglot--apply-text-edits, eglot-rename): Use eglot--format.

(cherry picked from commit c3ec174a6c2d1118e82aecceb203634f7b567e20)

6 weeks agoImprove integer file mode options docstrings
Stefan Kangas [Mon, 6 Jan 2025 10:07:09 +0000 (11:07 +0100)]
Improve integer file mode options docstrings

* lisp/eshell/esh-util.el (eshell-private-file-modes)
(eshell-private-directory-modes):
* lisp/gnus/mail-source.el (mail-source-default-file-modes):
* lisp/printing.el (pr-file-modes):
* lisp/gnus/mm-decode.el (mm-attachment-file-modes):
* lisp/gnus/nnmail.el (nnmail-default-file-modes):
* lisp/recentf.el (recentf-save-file-modes):
* lisp/vc/ediff-init.el (ediff-temp-file-mode):
* lisp/vc/emerge.el (emerge-temp-file-mode): Better document the fact
that these are integer and not octal values.

* lisp/epg.el (epg--start):
* lisp/emacs-lisp/package.el (package-import-keyring): Use octal values
to make the code more self-documenting.

(cherry picked from commit da5df90fadbec9db692ff34abcd28ce5a5b29c2a)

6 weeks agoTry harder to stabilize dired-test-bug27243-02
Peter Oliver [Tue, 16 Jul 2024 23:06:02 +0000 (00:06 +0100)]
Try harder to stabilize dired-test-bug27243-02

* test/lisp/dired-tests.el (dired-test-bug27243-02): Don't rely on the
expected point, since columns will move if the size of the parent directory
changes order of magnitude.  (Bug#72120)

(cherry picked from commit 6a389d5be47d1c143054a69e7302371d3889d658)

6 weeks ago; Silence byte-compiler
Stefan Kangas [Mon, 6 Jan 2025 09:06:17 +0000 (10:06 +0100)]
; Silence byte-compiler

* test/lisp/net/browse-url-tests.el
(browse-url-tests-delete-temp-file): Suppress warning.

(cherry picked from commit f652566af51079428526a3312512214b82ed8728)

6 weeks agoImprove Commentary in man.el
Stefan Kangas [Mon, 6 Jan 2025 05:33:19 +0000 (06:33 +0100)]
Improve Commentary in man.el

* lisp/man.el (Commentary): Move "Features" above "Credits and History".
The former is more likely to be relevant.

(cherry picked from commit 1096d9afaa19799fade32ebada5b16add593511f)

6 weeks ago; Quote function symbols in man.el
Stefan Kangas [Mon, 6 Jan 2025 05:40:12 +0000 (06:40 +0100)]
; Quote function symbols in man.el

* lisp/man.el (Man-init-defvars, Man-translate-references)
(Man-highlight-references, Man-page-from-arguments)
(Man-follow-manual-reference): Quote function symbols.

(cherry picked from commit fe6a28acaca4bc24883dff04aec0f9e6097b7466)

6 weeks agoEglot: fix signature precedence based on provenance (bug#74914)
João Távora [Sun, 5 Jan 2025 20:39:51 +0000 (20:39 +0000)]
Eglot: fix signature precedence based on provenance (bug#74914)

* lisp/progmodes/eglot.el (eglot--sig-info): Reverse order of
activeParameter and sig-active.

(cherry picked from commit 04a8faef0948f46b16172855ee337f59819f22a7)

6 weeks ago(hack-one-local-variable): Fix bug#74964
Stefan Monnier [Sun, 5 Jan 2025 15:03:40 +0000 (10:03 -0500)]
(hack-one-local-variable): Fix bug#74964

* lisp/files.el (hack-local-variables--inhibit): New var.
(hack-one-local-variable): Use it to avoid infinite recursion in a more
targeted manner.

(cherry picked from commit 127fc983080a3b9a607fa693bacfcf02f19ce0b7)

6 weeks ago* lisp/net/tramp-sh.el (tramp-get-remote-pipe-buf): Make it more robust.
Michael Albinus [Sun, 5 Jan 2025 14:24:21 +0000 (15:24 +0100)]
* lisp/net/tramp-sh.el (tramp-get-remote-pipe-buf): Make it more robust.

(cherry picked from commit 672a5f2b82c3c57b753902f2bdf5c970f3fc63a9)

6 weeks agoFix bug in 'rng-valid' that unnecessarily marks buffer as modified
viliaapro [Tue, 31 Dec 2024 12:07:43 +0000 (14:07 +0200)]
Fix bug in 'rng-valid' that unnecessarily marks buffer as modified

* lisp/nxml/rng-valid.el (rng-do-some-validation-1): Use
'with-silent-modifications'.  (Bug#75224)

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

6 weeks ago; * admin/authors.el (authors-aliases): Add William O'Brien.
Eli Zaretskii [Sun, 5 Jan 2025 12:41:43 +0000 (14:41 +0200)]
; * admin/authors.el (authors-aliases): Add William O'Brien.

(cherry picked from commit c6d0c2eec389fb140ba01f4a821315375d3f662f)

6 weeks agoEnable extra flags in 'go-ts-mode' test commands
w08r [Thu, 19 Dec 2024 09:53:02 +0000 (09:53 +0000)]
Enable extra flags in 'go-ts-mode' test commands

* lisp/progmodes/go-ts-mode.el (go-ts-mode-test-flags):
(go-ts-mode--get-test-flags): New custom variable and function
for controlling test behaviour.
(go-ts-mode--compile-test): Updated to use new test flags
variable for passing extra information to the go test command
line.
(go-ts-mode-test-this-package): Updated to use new test flags
variable for passing extra information to the go test command
line.  Removed incorrect use of -run flag.

* etc/NEWS: Announce the new user option.  (Bug#74786)

(cherry picked from commit ac3b67860761f0b80e6fd4071d1ec868a9f6b083)

6 weeks ago; * lisp/tty-tip.el: Remove local variable 'symbol-packages'
Eshel Yaron [Wed, 8 Jan 2025 08:17:58 +0000 (09:17 +0100)]
; * lisp/tty-tip.el: Remove local variable 'symbol-packages'

6 weeks ago; * lisp/transient.el (transient-infix-read): Fix warning.
Eshel Yaron [Tue, 7 Jan 2025 19:22:10 +0000 (20:22 +0100)]
; * lisp/transient.el (transient-infix-read): Fix warning.

6 weeks agoUse 'alist-set' where appropriate
Eshel Yaron [Tue, 7 Jan 2025 19:06:17 +0000 (20:06 +0100)]
Use 'alist-set' where appropriate

6 weeks agoscope.el: improve handling of gv-define-*
Eshel Yaron [Mon, 6 Jan 2025 12:27:01 +0000 (13:27 +0100)]
scope.el: improve handling of gv-define-*

6 weeks agoTurn alist-set into a macro
Eshel Yaron [Sun, 5 Jan 2025 12:17:02 +0000 (13:17 +0100)]
Turn alist-set into a macro

6 weeks agoGo back to remapping 'header-line' face
Eshel Yaron [Sun, 5 Jan 2025 12:16:32 +0000 (13:16 +0100)]
Go back to remapping 'header-line' face

6 weeks agoAllow to remap 'header-line' face
Eli Zaretskii [Sun, 5 Jan 2025 10:40:39 +0000 (12:40 +0200)]
Allow to remap 'header-line' face

* src/xfaces.c (realize_basic_faces): Bind 'face-remapping-alist'
to nil while realizing basic faces.
(lookup_basic_face): Force realizing a face whose 'inherit'
attribute is non-nil.  (Bug#73862)

(cherry picked from commit dc41ddb4d6bd7dc45cb9c37bc89c8c08f256baec)

6 weeks ago; Fix warnings in a tty-only build on MS-Windows
Eli Zaretskii [Sun, 5 Jan 2025 09:03:07 +0000 (11:03 +0200)]
; Fix warnings in a tty-only build on MS-Windows

* lisp/org/org.el (dnd-open-local-file):
* lisp/dired.el (tool-bar--image-expression):
* lisp/term/android-win.el (x-handle-args): Declare.
* lisp/w32-fns.el (w32-system-shells):
(w32-allow-system-shell):
* lisp/net/shr.el (image-scaling-factor):
* lisp/net/eww.el (image-scaling-factor):
* lisp/image.el (image-scaling-factor): Defvar.
(image-recompute-map-p): Move to before the first use.
Reported by Angelo Graziosi <angelo.g0@libero.it>.

(cherry picked from commit 7eb8596ff5f1964f91664a6b7cac3199a5af5ba7)

6 weeks ago* lisp/treesit.el: Fix treesit-show-paren-data (bug#75198)
Juri Linkov [Sun, 5 Jan 2025 07:43:22 +0000 (09:43 +0200)]
* lisp/treesit.el: Fix treesit-show-paren-data (bug#75198)

(treesit-show-paren-data--categorize): Use 'treesit-thing-defined-p'
to check if the thing exists for the language at POS before calling
'treesit-parent-until' that raises an error for an undefined thing.
(treesit-thing-defined-p): Add the alias signature to the docstring.

(cherry picked from commit 47ff8ab307da2a1ccfe3e701db871f47c1d3b380)

6 weeks agoFix setup of coding-systems on MS-Windows
Eli Zaretskii [Sun, 5 Jan 2025 05:56:27 +0000 (07:56 +0200)]
Fix setup of coding-systems on MS-Windows

* src/emacs.c (main) [HAVE_PDUMPER] [WINDOWSNT]: Call
'w32_init_file_name_codepage' again after loading the pdumper
file.
* src/w32.c (w32_init_file_name_codepage) [HAVE_PDUMPER]:
Reinitialize additional variables.  (Bug#75207)

(cherry picked from commit cc5cd4de93d1e5ba205cbf0c370aef4559bc342b)

6 weeks agoDelete duplicate note on ancient platforms
Stefan Kangas [Sun, 5 Jan 2025 04:26:52 +0000 (05:26 +0100)]
Delete duplicate note on ancient platforms

* etc/MACHINES: Delete note on platforms removed in Emacs 23.1 from the
introduction, since it is duplicated again at the end of the file.

(cherry picked from commit 441788e06d87c8cbd5efc9f2e00ba9072a824c55)

6 weeks ago; Update lisp/ldef-boot.el
Eshel Yaron [Sun, 5 Jan 2025 11:49:17 +0000 (12:49 +0100)]
; Update lisp/ldef-boot.el

7 weeks agoFix tsx-ts-mode syntax propertize function (bug#73978)
Yuan Fu [Sat, 4 Jan 2025 19:53:39 +0000 (11:53 -0800)]
Fix tsx-ts-mode syntax propertize function (bug#73978)

* lisp/progmodes/typescript-ts-mode.el:
(tsx-ts--syntax-propertize-captures): Apply punctuation syntax
on balanced pairs, instead of using string syntax.

(cherry picked from commit 87f83f1c1771ad3ca4d84bf2fc7a337e241952be)

7 weeks ago* lisp/treesit.el (treesit-transpose-sexps): Improve (bug#60655).
Juri Linkov [Sat, 4 Jan 2025 18:30:07 +0000 (20:30 +0200)]
* lisp/treesit.el (treesit-transpose-sexps): Improve (bug#60655).

Use 'treesit-thing-next' and 'treesit-thing-prev' with
'treesit-node-named' to transpose named siblings that leaves the right
punctuation in anonymous nodes between named siblings.  Fall back
to 'transpose-sexps-default-function' inside strings and comments.
(treesit-node-named): New helper function.

(cherry picked from commit d9a0e781978725953ab44556f5222b1be32df7a7)

7 weeks agoUpdate doc string of 'insert'
Ulrich Müller [Sat, 4 Jan 2025 09:37:59 +0000 (10:37 +0100)]
Update doc string of 'insert'

* src/editfns.c (Finsert): Mention 'decode-coding-string' instead
of the obsolete 'string-as-multibyte' in doc string.  (Bug#75345)

(cherry picked from commit 6468c3f7a74133b130d15172d770c8b7eebfeac5)

7 weeks agoDon't always enable xterm-mouse-mode (bug#74833)
Jared Finder [Thu, 2 Jan 2025 06:36:25 +0000 (22:36 -0800)]
Don't always enable xterm-mouse-mode (bug#74833)

Many terminals set the environment variable TERM to "xterm" even when they
don't support all functionality in xterm.  This means that enabling
xterm-mouse-mode can break critical editing workflows like copy/paste.  This
adds checks for the specific terminal Emacs is run in and only enables
xterm-mouse-mode on terminals knows to support all critical editing workflows.

* etc/NEWS: Update announcement
* lisp/term/xterm.el (xterm--auto-xt-mouse-allowed-names)
(xterm--auto-xt-mouse-allowed-types): New variables to control
what terminals automatically enable xterm-mouse-mode.
(xterm--report-background-handler, xterm--version-handler): Use
xterm--read-string.
(xterm--read-string, xterm--query-name-and-version): New
function.
(xterm--init): Check what terminal is running and if
xterm-mouse-mode was manually called.
* lisp/xt-mouse.el (xterm-mouse-mode-called): New variable.
(xterm-mouse-mode): Set xterm-mouse-mode-called.  Mention
automatic call by xterm--init.  Delete outdated comment text.

(cherry picked from commit ba6429081a8560979136cf6fa40ff3f3c4859a53)

7 weeks agoUpdate eln-cache when --init-directory is used
Eli Zaretskii [Sat, 4 Jan 2025 12:44:10 +0000 (14:44 +0200)]
Update eln-cache when --init-directory is used

* lisp/startup.el (normal-top-level): Update eln-cache after
'user-emacs-directory' is set by --init-directory.  Patch by
Jordan Isaacs <jordan@snowytrees.dev>.  (Bug#75022)

(cherry picked from commit b63ba892f9b28062a4ece9db7e4abd79a88ceea6)