1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-04-28 01:00:52 -07:00
Commit graph

176192 commits

Author SHA1 Message Date
Juri Linkov
3d375ced1f ; * src/term.c (term_mouse_position): Fix 'fp' pointer. 2025-01-11 20:40:11 +02:00
Juri Linkov
db4bf410f2 Improve treesit list navigation support for #if/#endif (bug#73404)
* lisp/treesit.el (treesit--forward-list-with-default): Improve to
better support the case when point is inside an opening/closing node
with a name longer than 1 character such as "#if" and "#endif".
(treesit-navigate-thing): No need to check for thing 'list'
since list commands now use other functions.

* lisp/progmodes/c-ts-mode.el (c-ts-mode--thing-settings): Add
more preproc nodes such as #if/#endif and #ifdef/#endif and their
variants to the 'list' thing.
2025-01-11 20:28:43 +02:00
Juri Linkov
fafcc8458e * lisp/progmodes/typescript-ts-mode.el: Fix syntax of tsx tags.
(tsx-ts--s-p-query): Bind 'jsx_opening_element' and
'jsx_closing_element' to @jsx to be able to use the < and > syntax
for angle brackets in 'tsx-ts--syntax-propertize-captures' (bug#73978).
2025-01-11 19:39:56 +02:00
Martin Rudalics
b7dc4ba213 Fix handling of 'minibuffer' frame parameter for tty frames
* src/frame.c (make_terminal_frame): Fix handling of
'minibuffer' frame parameter for tty child frames.  Support
'minibuffer-only' child frames.
2025-01-11 18:07:21 +01:00
Eli Zaretskii
9123102858 ; * src/term.c (tty_frame_at, term_mouse_position): Fix last change. 2025-01-11 18:39:19 +02:00
Eli Zaretskii
1dfde9f70d ; * etc/NEWS: Fix last change. 2025-01-11 15:05:41 +02:00
Daniel Mendler
266e1c34d8 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)
2025-01-11 15:04:15 +02:00
Eli Zaretskii
3d960c16c6 Merge from origin/emacs-30
d66b8d4bec Fix checkbox's child creation
26c5fadf47 Document that 'package-vc' doesn't support built-in packages
ee61b9a050 ; Fix documentation of completion commands
ce43d13593 ; Simplify admin/run-codespell
fa1470d069 ; Remove duplicated word in files.el Commentary
dabaea9746 Improve checkdoc-common-verbs-wrong-voice docstring
6de2ee5663 Document string-as-{unibyte,multibyte} as obsolete in manual
7f76f872eb Fix go-ts-mode var spec indentation (Bug#75362)
01464fc882 Add "text" as a thing in tsx-ts-mode
59c5733792 Improve doc string of 'package-delete'
313a191d04 ; * admin/MAINTAINERS: Remove Kelvin White.
002960ceab Clarify that 'mac' line ending convention is not used on ...
4210e06564 Add language server for Odin
ee1034422b ; Improve documentation of function-type display
1c49edc408 Modernize "Commentary" section of files.el
505c1123e1 * INSTALL: Add advice how to invoke 'make install'.  (Bug...
82e16cae9c Improve the documentation of 'key-valid-p'

# Conflicts:
#	etc/NEWS
#	lisp/progmodes/typescript-ts-mode.el
2025-01-11 07:44:23 -05:00
David Ponce
5060bf6ed6 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)
2025-01-11 14:04:39 +02:00
Mauro Aranda
d66b8d4bec 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)
2025-01-11 13:54:15 +02:00
Eli Zaretskii
26c5fadf47 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)
2025-01-11 12:58:03 +02:00
Jared Finder
d018a26f9c 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.
2025-01-11 12:47:46 +02:00
Eli Zaretskii
ee61b9a050 ; Fix documentation of completion commands
* src/minibuf.c (Fcompleting_read): Move part of doc string of
'read-from-minibuffer' to doc string of this function.  Suggested
by Eshel Yaron <me@eshelyaron.com>.
2025-01-11 12:40:59 +02:00
Stefan Kangas
ce43d13593 ; Simplify admin/run-codespell
* admin/run-codespell (emacs_run_codespell): Simplify.  Use env in
shebang to use more recent bash on macOS.
2025-01-11 07:14:35 +01:00
Roland Winkler
2f63dab3ee 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).
2025-01-10 22:34:16 -06:00
Stefan Kangas
fa1470d069 ; Remove duplicated word in files.el Commentary 2025-01-11 05:18:51 +01:00
Stefan Kangas
dabaea9746 Improve checkdoc-common-verbs-wrong-voice docstring
* lisp/emacs-lisp/checkdoc.el (checkdoc-common-verbs-wrong-voice):
Improve docstring.
2025-01-11 05:18:14 +01:00
Stefan Kangas
6de2ee5663 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.
2025-01-11 05:18:14 +01:00
Roland Winkler
f51129b4fc 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.
2025-01-10 21:48:54 -06:00
john muhl
e024bd1d1f ; Fix typo (Bug#75480) 2025-01-11 01:42:24 +01:00
Robert Pluim
8e9ad92a14 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).
2025-01-10 16:09:34 +01:00
Pranshu Sharma
d1e6379d6a Add new file window-x.el
* lisp/window-x.el: New file.
* etc/NEWS: Mention new commands to modify window layout.
2025-01-10 16:07:30 +01:00
Eli Zaretskii
4a8c885dfa ; 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.
2025-01-10 17:03:16 +02:00
Eli Zaretskii
c2dbe02910 ; * doc/lispref/windows.texi (Resurrecting Windows): Fix typo. 2025-01-10 16:51:27 +02:00
Martin Rudalics
7f286e7d83 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'.
2025-01-10 09:24:20 +01:00
Juri Linkov
c0a52efed3 * 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).
2025-01-10 09:56:08 +02:00
Juri Linkov
42a5ac3b51 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'.
2025-01-10 09:33:49 +02:00
Randy Taylor
7f76f872eb
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.
2025-01-09 19:07:24 -08:00
Juri Linkov
351b6ac16d * 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).
2025-01-09 20:33:47 +02:00
David Ponce
6d02539dd4 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)
2025-01-09 16:33:59 +02:00
Eshel Yaron
81cf42c8af
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.
2025-01-09 13:45:18 +01:00
Martin Rudalics
0edafe0fb6 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.
2025-01-09 09:37:13 +01:00
Kohei Tsuruta
01464fc882 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
2025-01-09 09:50:21 +02:00
Nikolaos Chatzikonstantinou
59c5733792 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)
2025-01-09 09:27:44 +02:00
Stefan Kangas
b099777b52 ; * lib-src/make-fingerprint.c: Fix copyright year.
This file is new with the portable dumper.
2025-01-09 06:22:21 +01:00
Stefan Kangas
b6bec47c4a ; Fix indentation in itree.c 2025-01-09 05:13:28 +01:00
Gabriel Santos
493bb2eaf1
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.
2025-01-08 20:11:46 -08:00
Stefan Kangas
313a191d04 ; * admin/MAINTAINERS: Remove Kelvin White. 2025-01-09 03:08:29 +01:00
Stefan Kangas
40fbed939a Improve 'gethash' docstring
* src/fns.c (Fgethash): Improve docstring.  Avoid exposing the C
identifier 'dflt' to Lisp by providing a "usage:" string.
2025-01-09 02:56:11 +01:00
Kierin Bell
bdccd4ea9e 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.
2025-01-09 02:27:50 +01:00
Arash Esbati
b71225ed90 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.
2025-01-08 20:47:43 +01:00
Stephen Gildea
ab3cb717a0 ; "time stamp" also can be spelled "timestamp"
* lisp/time-stamp.el (time-stamp):
* doc/emacs/files.texi (Time Stamps): Be findable as "timestamps".
2025-01-08 10:34:04 -08:00
Arash Esbati
5c3deffd9f 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.
2025-01-08 19:12:49 +01:00
Arsen Arsenović
6df0e18fed 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.
2025-01-08 14:07:36 +00:00
Eli Zaretskii
5eca08bb23 ; * src/lisp.h (struct Lisp_Subr): Fix comment (again). 2025-01-08 16:06:19 +02:00
Eli Zaretskii
191a0bcf63 Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs 2025-01-08 15:44:11 +02:00
Eli Zaretskii
a427927123 ; * src/lisp.h (struct Lisp_Subr): Fix comment. 2025-01-08 15:43:40 +02:00
Richard Stallman
67be8db518 subr.el doc clarifications.
* subr.el (when-let, when-let*, and-let*): Doc clarifications.
Make `when-let* doc string self-contained.
2025-01-08 08:40:32 -05:00
Richard Stallman
2a3385ab50 Add autoload cookie and doc fix
cond-star.el (cond*): Add autoload cookie.
Doc fix.
2025-01-08 08:26:40 -05:00
Pip Cet
ac52993b99 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.
2025-01-08 12:41:56 +00:00