1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-20 19:42:53 -08:00
Commit graph

174348 commits

Author SHA1 Message Date
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
Stefan Monnier
7170282a59 lisp/minibuffer.el (completion--sifn-requote): Fix bug#72176 2024-07-25 08:39:38 -04:00
Michael Albinus
d2cb9f2bf6 Tramp's method "kubernetes" supports now optional namespace
* doc/misc/tramp.texi (Inline methods): Extend Kubernetes host
name syntax by an optional namespace.
(Kubernetes setup): Mention optional namespace part of the host name.

* etc/NEWS: Tramp's method "kubernetes" supports now optional namespace.
Fix typos.

* lisp/net/tramp-container.el (tramp-kubernetes-namespace):
Initialize with nil.  Adapt docstring.
(tramp-kubernetes--name-regexp): New defconst.
(tramp-kubernetes--host-name-regexp): Change in order to cover
also an optional namespace.  (Bug#59797)
(tramp-kubernetes--namespace): New defun.
(tramp-kubernetes--context-namespace): Use it.
(tramp-skeleton-kubernetes-vector): Add sanity check for
superfluous user name or port number.
2024-07-25 13:38:27 +02:00
Stefan Kangas
68906f184c * admin/notes/spelling: Update note. 2024-07-25 12:09:31 +02:00
Konstantin Kharlamov
9eea6be5ab Don't produce invalid XML with multi-line commenting style
Both XML and HTML forbid double hyphens inside comments.  However,
nxml-mode was using a `!--' as a comment padding if `comment-style'
was set to any of the styles that supposed to add padding.  This infix
was auto-derived due to `comment-continue' being nil.  To fix that set
`comment-continue' explicitly.  It's unclear what padding should be
used, but from looking at other editors it seems they don't typically
add padding in XML, so let's be simple for now and just set
`comment-continue' to empty string.

* lisp/nxml/nxml-mode.el (nxml-mode): Make 'comment-continue' a
buffer-local variable set to the empty string.  (Bug#71772)
2024-07-25 10:48:03 +02:00
Eli Zaretskii
b97786d9f6 ; * etc/NEWS: Entry for 'gnus-summary-limit-to-age' (bug#72204). 2024-07-25 10:41:18 +03:00
Eli Zaretskii
ba31c62f81 ; * doc/emacs/misc.texi (Document View): Improve wording (bug#72241). 2024-07-25 10:06:26 +03:00
Tassilo Horn
c6937ef88b Fix jumping to page in DocView's text contents (bug#72275)
* lisp/doc-view.el (doc-view-open-text): Set page-delimiter to the form
feed character in the text contents buffer (bug#72275).
2024-07-25 08:50:07 +02:00
Paul Eggert
42cdfe7f60 Fix process-attributes rss and pmem on GNU/Linux
Problem reported by Rahguzar <https://bugs.gnu.org/72278>.
* src/sysdep.c (system_process_attributes):
[GNU_LINUX || CYGWIN || __ANDROID__]: When computing rss and pmem,
don’t assume pagesize is 4096; it could be greater.
2024-07-24 23:33:43 -07:00
Tassilo Horn
6eb3827f7b Describe that DocView text contents display is in a separate buffer
* doc/emacs/misc.texi (Document View): Adjust the docs to describe the
new behavior (separate buffer for the text contents) from bug#72241.
2024-07-25 08:21:52 +02:00
Manuel Giraud
210b98bc99 bug#72241: 31.0.50; [PATCH] Use a dedicated buffer for `doc-view-open-text'
Here is an updated version of this patch.  WDYT?

From 6e32534012cafeda1d7e67aab23a8206bc887c9f Mon Sep 17 00:00:00 2001
From: Manuel Giraud <manuel@ledu-giraud.fr>
Date: Sun, 21 Jul 2024 18:52:52 +0200
Subject: [PATCH] Use a dedicated buffer for `doc-view-open-text'

* lisp/doc-view.el (doc-view-open-text): Create a new "text
contents" buffer and switch to it.
(doc-view-toggle-display): Switch back to the document buffer
and kill the "text contents" one.
* etc/NEWS: Mention the change.
2024-07-25 08:14:00 +02:00