1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-14 07:20:35 -08:00
Commit graph

174358 commits

Author SHA1 Message Date
Yuan Fu
74bb1e5897
Fix filling in c-ts-mode (bug#72116)
The previous fix introduced a regression in the case when there's only a
single line in the block comment.  In that case we don't want to add a
start at the second line:

/* foo foo foo */ should => /* foo foo
                               foo */

rather than   /* foo foo
               * foo */

This commit fixes that.

* lisp/progmodes/c-ts-common.el:
(c-ts-common--fill-block-comment): Don't mask the /*.
(c-ts-common--adaptive-fill-prefix): New function.
(c-ts-common-comment-setup): Don't set adaptive-regexp, change
adaptive-fill-first-line-regexp to work with the new
adaptive-fill-function.
* test/lisp/progmodes/c-ts-mode-resources/filling.erts: New tests
2024-07-30 17:09:58 -07:00
Yuan Fu
e4cd26defc
"Separate" tree-sitter parser list for indirect buffers
When create a parser for the indirect buffer, set the buffer field of
the parser to the indirect buffer, but add the parser to the base
buffer's parser list.  This way, all the parsers still get buffer
updates, but indirect buffer's parsers can have different narrowing than
the parsers of the base buffer.

When returning the parser list of a buffer, do filtering and only return
the parser for that buffer.

From user's POV, indirect buffers appear to have their own parser list.

* doc/lispref/parsing.texi (Using Parser): Remove the text describing
indirect buffer's special case.
* src/treesit.c (Ftreesit_parser_create): When create a parser for the
indirect buffer, set the buffer field of the parser to the indirect
buffer, but add the parser to the base buffer's parser list.
(Ftreesit_parser_list): Filter parser list, only return parsers for this
buffer.

xx
2024-07-30 17:09:57 -07:00
Richard Stallman
a2c439db68 Define custom var rmail-summary-starting-message.
* lisp/mail/rmailsum.el (rmail-summary-starting-message):
New custom variable.
(rmail-new-summary-1): Use it.
2024-07-30 17:42:52 -04:00
Mattias Engdegård
b6c18817a2 vhdl-mode: don't use timer accessors in XEmacs
* lisp/progmodes/vhdl-mode.el (vhdl-run-when-idle):
No need to activate a newly created idle timer; keep it as
compatibility (or voodoo) code for XEmacs which probably doesn't have
the timer accessors anyway.
2024-07-30 22:44:21 +02:00
Harald Jörg
a8ac8650ab ; Add Harald Jörg as maintainer of cperl-mode
* admin/MAINTAINERS: Add Harald Jörg as maintainer of cperl-mode
2024-07-30 13:55:19 +02:00
Harald Jörg
cfadd047a2 ; cperl-mode.el: Make it checkdoc clean
This commit does only docstrings, no functional changes at all.

* lisp/progmodes/cperl-mode.el: Docstrings are added where missing.
All parameters are documented.  The first line is a complete sentence.
All docstring lines are 80 characters or less.
2024-07-29 21:30:55 +02:00
Juri Linkov
63e609f6aa * lisp/tab-bar.el (tab-bar-show-inactive-group-tabs): New defcustom.
(tab-bar-format-tabs-groups): Use it (bug#71939).
Suggested by Ship Mints <shipmints@gmail.com>.
2024-07-29 21:27:30 +03:00
Po Lu
9bf0331d02 Merge from savannah/emacs-30
5cf64d8377 Fix sporadic crashes and `select' failures in dumped images
a475360af9 Correct display of Doc View documents after tab switching
2024-07-29 20:59:29 +08:00
Po Lu
5cf64d8377 Fix sporadic crashes and `select' failures in dumped images
* src/process.c (init_process_emacs) [HAVE_UNEXEC]: Clear
dumped values of child_signal_read_fd and child_signal_write_fd.
2024-07-29 10:37:16 +08:00
Po Lu
a475360af9 Correct display of Doc View documents after tab switching
* lisp/doc-view.el (doc-view-new-window-function): Prevent
creation of duplicate overlays for the same window after a
window configuration change occasions a call to i-m-r-winprops.
2024-07-29 09:19:48 +08:00
Jim Porter
e4d22abcab ; Merge from origin/emacs-30
The following commit was skipped:

469bc7c968 Use 'kill-process' as a fallback when a pipe gets broken ...
2024-07-28 09:18:02 -07:00
Jim Porter
1bfd89f6ce Merge from origin/emacs-30
367c0490a8 ; * admin/MAINTAINERS: Note what I maintain
2024-07-28 09:18:02 -07:00
Philip Kaludercic
d50c82f3e9
Simplify 'help-enable-variable-value-editing' using 'string-edit'
* lisp/help-fns.el (help-fns--edit-variable): Remove variable
declaration, as 'string-edit' makes manually storing the
variable name unnecessary.
(help-fns-edit-variable): Use 'read-string-from-buffer' instead
of custom major mode.
(help-fns--edit-value-mode-map, help-fns--edit-value-mode)
(help-fns-edit-mode-done, help-fns-edit-mode-cancel):  Remove
functionality provided by 'string-edit'.
2024-07-28 13:59:38 +02:00
Visuwesh
99704a7b41 Add new optional argument NO-HIGHLIGHT to query-replace-read-args
* lisp/replace.el (query-replace-read-args): Add new optional
argument to disable regexp highlighting.

* lisp/dired-aux.el (dired-do-query-replace-regexp)
(dired-do-replace-regexp-as-diff)
(dired-do-find-regexp-and-replace): Revert last change, and use
the new argument instead.  (bug#72147)
2024-07-28 09:52:51 +03:00
Juri Linkov
0b565d9706 * lisp/language/misc-lang.el ("Tifinagh"): Fix `language-info-alist'. 2024-07-28 09:44:44 +03:00
Jim Porter
50339b38fd Use 'unwind-protect' to ensure that Eshell always closes I/O handles
See bug#72220.

* lisp/eshell/esh-cmd.el (eshell-with-handles): New macro...
(eshell-commands): ... use it.
(eshell-with-copied-handles): Remove STEAL-P and allow multiple body
forms (this is an incompatible change, but the macro is currently
internal despite the name).
(eshell-parse-command, eshell-do-pipelines)
(eshell-do-pipelines-synchronously, eshell--invoke-command-directly-p):
Remove handle stealing.
(eshell-structure-basic-command, eshell-do-command)
(eshell-lisp-command): Remove 'eshell-close-handles'.
(eshell-protect): Make obsolete.
(eshell-rewrite-for-command, eshell-rewrite-while-command)
(eshell-rewrite-if-command, (eshell-parse-pipeline): Remove
'eshell-protect'.

* lisp/eshell/esh-io.el (eshell-duplicate-handles): Make STEAL-P
obsolete.

* lisp/eshell/esh-proc.el (eshell-gather-process-output): Call
'eshell-protect-handles' one more time.  Remove 'eshell-close-handles'.

* lisp/eshell/esh-var.el (eshell-parse-variable-ref): Reimplement
$<COMMAND> form using 'eshell-with-handles'.

* test/lisp/eshell/esh-cmd-tests.el
(esh-cmd-test/command-not-found/pipeline): New test.

* test/lisp/eshell/em-tramp-tests.el
(em-tramp-test/should-replace-command): Adjust check for
'eshell-with-copied-handles'.
2024-07-27 13:57:17 -07:00
Jim Porter
8bfdee8689 ; Improve correctness of 'eshell-do-eval' in some edge cases
* lisp/eshell/esh-cmd.el (eshell-do-eval): Make sure that replacing 'if'
forms returns the correct result, and evaluate to 'nil' for 'progn'
forms with no body.
2024-07-27 12:15:14 -07:00
Jim Porter
469bc7c968 Use 'kill-process' as a fallback when a pipe gets broken in Eshell
This is better than 'delete-process' since it will ensure that any
stderr pipe-processes get stopped as well (bug#72117).

* lisp/eshell/esh-proc.el (eshell-insertion-filter): Use 'kill-process'
instead of 'delete-process'.
2024-07-27 12:10:33 -07:00
Vincent Belaïche
e8f38d1364 Make sure SES always writes non abbreviated expressions to data area.
Corrupted data area would occur when print-length or print-level are non nil.
2024-07-27 18:37:31 +02:00
Mattias Engdegård
7753a597fb Reduce type checks in arithcompare
* src/data.c (coerce_marker, not_number_or_marker): New.
(arithcompare): Don't use NUMBERP to check types up-front since we
are going to branch on types anyway.
2024-07-27 14:58:59 +02:00
Mattias Engdegård
e5a9449117 * src/data.c (arithcompare): Simplify fixnum/bignum comparisons.
Noticed by Pip Cet.
2024-07-27 14:58:59 +02:00
Michael Albinus
829ebbd1d1 Revert "* test/lisp/net/tramp-tests.el (tramp-test42-utf8): Don't test "Tifinagh"."
This reverts commit b9f2ef2a33.
2024-07-27 12:49:12 +02:00
Michael Albinus
10b91328d9 * lisp/language/misc-lang.el ("Tifinagh"): Fix `sample-text'. 2024-07-27 12:48:47 +02:00
Mattias Engdegård
2fd38e5c49 Simplify and speed up numeric comparisons
This makes comparison functions (=, /=, <, <=, >, >=, min, max) quite
a bit faster (10-20 %).  Bytecode ops on fixnums are not affected,
nor is `value<`.

* src/data.c (arithcompare): Simplify the code to reduce the number of
branches.  Remove the comparison code argument; instead, return the
relation encoded as bits, which can be tested cheaply.  All callers
adapted.
* src/lisp.h (enum Arith_Comparison): Remove.
(Cmp_Bit_*, cmp_bits_t): New.
2024-07-27 12:04:09 +02:00
Eli Zaretskii
156a3ba4f9 ; Auto-commit of loaddefs files. 2024-07-27 05:11:20 -04:00
Philip Kaludercic
367c0490a8
; * admin/MAINTAINERS: Note what I maintain 2024-07-27 11:01:36 +02:00
Eli Zaretskii
c3c27a919c Merge from origin/emacs-30
88e1ec22f2 Update to Org 9.7.9
1ae2f00447 Fix edge-case with 'which-key-dont-use-unicode' setter
68a5f1f7d1 NS: prevent makeKeyWindow warnings (bug#69525)
59a895ec49 ; * .gitignore: Add lisp/eshell/esh-groups.el.
5c08cd4e7c ; * doc/emacs/cmdargs.texi (Initial Options): Fix last ch...
309d0a7186 Add PROBLEMS entry for bug#72303
87389f9ff9 ; Improve documentation of 'line-prefix' and 'wrap-prefix'.
268a2d10fc Improve documentation of '--init-directory' command-line ...
c27055a938 ; cperl-mode.el: Fix fontification of flip-flop (Bug#72296)
fcd4e4c895 ; * admin/MAINTAINERS: Add myself for maintaining some ar...
fdc133e97f Fix bug in server.el introduced by 0d7d835902
af527051cd ; * admin/MAINTAINERS: Remove Nicolas Petton.
7170282a59 lisp/minibuffer.el (completion--sifn-requote): Fix bug#72176
68906f184c * admin/notes/spelling: Update note.
9eea6be5ab Don't produce invalid XML with multi-line commenting style
b97786d9f6 ; * etc/NEWS: Entry for 'gnus-summary-limit-to-age' (bug#...
a799661566 Standardize possessive apostrophe usage in manuals, docs,...
67faaead75 Don't refer to obsolete finder group "wp"

# Conflicts:
#	etc/NEWS
2024-07-27 04:27:53 -04:00
Michael Albinus
b9f2ef2a33 * test/lisp/net/tramp-tests.el (tramp-test42-utf8): Don't test "Tifinagh". 2024-07-27 10:26:14 +02:00
Michael Albinus
29d4ba5625 Improve Tramp startup time
* lisp/net/tramp-cmds.el (tramp-repository-branch)
(tramp-repository-version):
* lisp/net/tramp-message.el (tramp-repository-branch)
(tramp-repository-version): Declare.

* lisp/net/trampver.el (tramp-repository-branch)
(tramp-repository-version): Remove ;;;###tramp-autoload cookie.
2024-07-27 10:25:52 +02:00
Liu Hui
c1436ac64d Use buffer-local value of 'comint-input-ring-size'
When 'comint-read-input-ring' was reading history to the ring,
the global value of 'comint-input-ring-size' was used regardless
of the local value, due to the use of a temporary buffer.
This change fixes the problem.
* lisp/comint.el (comint-read-input-ring): Use buffer-local
value of the ring size.  (Bug#72138)
2024-07-27 10:10:07 +03:00
Kyle Meyer
88e1ec22f2 Update to Org 9.7.9 2024-07-26 23:58:01 -04:00
Stefan Kangas
9e9121ed63 * lisp/net/nsm.el (nsm-verify-connection): Improve docstring. 2024-07-27 03:28:49 +02:00
Stefan Kangas
33c6b4df40 ; Fix punctuation in etc/* 2024-07-27 01:51:47 +02:00
Philip Kaludercic
1ae2f00447
Fix edge-case with 'which-key-dont-use-unicode' setter
* lisp/which-key.el (which-key-dont-use-unicode): Check if the
user options have a 'standard-value' before proceeding to
reevaluate.  This avoids accidentally setting the symbol value
to nil, before the user option has been declared, overriding the
actual non-nil, default values.  (Bug#72077)
2024-07-26 23:26:14 +02:00
Michael Albinus
d7665595f7 Tramp: Handle hops with "%" in their names
* lisp/net/tramp.el (tramp-dissect-file-name, tramp-compute-multi-hops):
Handle hops with "%" in their names, like USER%DOMAIN or POD%NAMESPACE.
2024-07-26 22:10:36 +02:00
Gerd Möllmann
68a5f1f7d1 NS: prevent makeKeyWindow warnings (bug#69525)
* src/nsterm.m (ns_raise_frame): Don't makeKeyWindow if frame has
no_accept_focus set.
2024-07-26 20:59:25 +02:00
Eli Zaretskii
59a895ec49 ; * .gitignore: Add lisp/eshell/esh-groups.el. 2024-07-26 16:55:10 +03:00
Eli Zaretskii
4e250154ec Add support for Tifinagh script
* lisp/leim/quail/tifinagh.el: New file.  Contributed by Adam Oudad
<adam.oudad@gmail.com>.
* lisp/language/misc-lang.el ("Tifinagh"): New language environment.

* etc/HELLO: Add a greeting in Tifinagh.
* etc/NEWS: Announce the addition of Tifinagh.
2024-07-26 16:49:11 +03:00
Eli Zaretskii
5c08cd4e7c ; * doc/emacs/cmdargs.texi (Initial Options): Fix last change. 2024-07-26 16:11:16 +03:00
Po Lu
309d0a7186 Add PROBLEMS entry for bug#72303
* etc/PROBLEMS (Runtime problems specific to PGTK build):
Document that text mode sessions cannot be started without
`-nw'.  (bug#72303)
2024-07-26 20:14:47 +08:00
Eli Zaretskii
87389f9ff9 ; Improve documentation of 'line-prefix' and 'wrap-prefix'.
* doc/lispref/text.texi (Special Properties): Spell out more
accurately how 'line-prefix' and 'wrap-prefix' properties should
be set.
2024-07-26 14:56:14 +03:00
Eli Zaretskii
52cae67e1e ; Don't use non-ASCII in ELisp manual sources unless necessary
* doc/lispref/strings.texi:
* doc/lispref/parsing.texi:
* doc/lispref/nonascii.texi:
* doc/lispref/keymaps.texi:
* doc/lispref/intro.texi:
* doc/lispref/help.texi:
* doc/lispref/functions.texi:
* doc/lispref/display.texi:
* doc/lispref/control.texi: ASCIIfy.
2024-07-26 14:11:17 +03:00
Eli Zaretskii
4a743729d7 ; Don't use non-ASCII in Emacs manual sources unless necessary
* doc/emacs/mini.texi:
* doc/emacs/emacs.texi:
* doc/emacs/custom.texi:
* doc/emacs/calendar.texi:
* doc/emacs/cal-xtra.texi:
* doc/emacs/ack.texi: ASCIIfy.
2024-07-26 09:52:54 +03:00
Eli Zaretskii
268a2d10fc Improve documentation of '--init-directory' command-line option.
* doc/emacs/custom.texi (Find Init):
* doc/emacs/cmdargs.texi (Initial Options): More accurate and
detailed description of what '--init-directory' does and how it
affects the Emacs session.  Add index entries and cross-references
as needed.  (Bug#72294)
2024-07-26 09:14:43 +03:00
Harald Jörg
c27055a938 ; cperl-mode.el: Fix fontification of flip-flop (Bug#72296)
* lisp/progmodes/cperl-mode.el (cperl-find-pods-heres): Prevent a
movement of point from bleeding into a following clause.
* test/lisp/progmodes/cperl-mode-tests.el (cperl-test-bug-72296):
Add a test for the flip-flop operator with code from the report.
2024-07-25 22:00:10 +02:00
Juri Linkov
fcd4e4c895 ; * admin/MAINTAINERS: Add myself for maintaining some areas. 2024-07-25 21:29:22 +03:00
Eli Zaretskii
c22b4198b2 Fix display of 'display' strings in RTL paragraphs at window-start
* src/xdisp.c (handle_single_display_spec)
(get_overlay_strings_1, push_prefix_prop): Initialize bidi
paragraph direction if not yet done.  (Bug#72287)
2024-07-25 21:26:08 +03:00
Andrea Corallo
fdc133e97f Fix bug in server.el introduced by 0d7d835902
0d7d835902 renamed 'server--process-filter' into
'server--process-filter-1' but updated the corresponding
'cl-return-from' tag to 'server--process-filter'.

* lisp/server.el (server--process-filter-1): Fix 'cl-return-from' tag.
2024-07-25 17:44:02 +02:00
Stefan Kangas
af527051cd ; * admin/MAINTAINERS: Remove Nicolas Petton.
Change agreed with Nicolas Petton <nico@petton.fr>.
2024-07-25 16:15:52 +02:00
Mattias Engdegård
e56e4b345a Use timer accessors instead of aref/aset
* lisp/emacs-lisp/timer-list.el (list-timers):
* lisp/gnus/mail-source.el (mail-source-start-idle-timer):
* lisp/play/gamegrid.el (gamegrid-set-timer):
* lisp/progmodes/vhdl-mode.el (vhdl-run-when-idle):
* lisp/simple.el (analyze-text-conversion):
* lisp/time.el (display-time-event-handler):
Use timer accessors.
2024-07-25 14:40:35 +02:00