1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 06:20:55 -08:00
Commit graph

91038 commits

Author SHA1 Message Date
Andrea Corallo
95d9e6eb6b * Don't install unnecessary trampolines (bug#69573) (don't merge)
* lisp/emacs-lisp/comp.el (comp-subr-trampoline-install):
Check that subr-name actually matches the target subr.
2024-03-26 08:32:37 +01:00
Eli Zaretskii
ff6cc3d2cf * lisp/ldefs-boot.el: Regenerate. 2024-03-24 09:36:24 -04:00
Ihor Radchenko
7a5d7be52c org--confirm-resource-safe: Fix prompt when prompting in non-file Org buffers
* lisp/org/org.el (org--confirm-resource-safe): When called from
non-file buffer, do not put stray "f" in the prompt.
2024-03-24 08:41:26 -04:00
Ihor Radchenko
2bc865ace0 org-file-contents: Consider all remote files unsafe
* lisp/org/org.el (org-file-contents): When loading files, consider all
remote files (like TRAMP-fetched files) unsafe, in addition to URLs.
2024-03-24 08:41:10 -04:00
Ihor Radchenko
6f9ea396f4 org-latex-preview: Add protection when `untrusted-content' is non-nil
* lisp/org/org.el (org--latex-preview-when-risky): New variable
controlling how to handle LaTeX previews in Org files from untrusted
origin.
(org-latex-preview): Consult `org--latex-preview-when-risky' before
generating previews.

This patch adds a layer of protection when LaTeX preview is requested
for an email attachment, where `untrusted-content' is set to non-nil.
2024-03-24 08:40:48 -04:00
Ihor Radchenko
937b9042ad * lisp/gnus/mm-view.el (mm-display-inline-fontify): Mark contents untrusted. 2024-03-24 08:40:25 -04:00
Ihor Radchenko
ccc188fcf9 * lisp/files.el (untrusted-content): New variable.
The new variable is to be used when buffer contents comes from untrusted
source.
2024-03-24 08:39:27 -04:00
Ihor Radchenko
befa9fcaae org-macro--set-templates: Prevent code evaluation
* lisp/org/org-macro.el (org-macro--set-templates): Get rid of any
risk to evaluate code when `org-macro--set-templates' is called as a
part of major mode initialization.  This way, no code evaluation is
ever triggered when user merely opens the file or when
`mm-display-org-inline' invokes Org major mode to fontify mime part
preview in email messages.
2024-03-24 08:38:48 -04:00
Eli Zaretskii
e95a862226 ; * lisp/keymap.el (key-parse): Fix processing of "[TAB]". (Bug#69893) 2024-03-21 22:12:40 +02:00
Andrea Corallo
51848e4731 * Fix missing `comp-files-queue' update (bug#63415).
* lisp/emacs-lisp/comp.el (native--compile-async): Update
`comp-files-queue' for real.
2024-03-21 12:02:33 +01:00
Basil L. Contovounesios
689f04a2dd Clarify description of format-spec truncation
* doc/lispref/strings.texi (Custom Format Strings): Mention that
precision specifier affects both '<' and '>' truncation (bug#69822).
* lisp/format-spec.el (format-spec, format-spec--do-flags): Use same
terminology as 'format', especially when referring to its behavior.
2024-03-21 10:43:17 +01:00
Juri Linkov
fa79de7c6b ; * lisp/calendar/calendar.el: Remove extra space. 2024-03-21 09:49:34 +02:00
Robert Pluim
5bdc2436c6 ; * lisp/emacs-lisp/cl-macs.el (cl-labels): Fix stray diff marker. 2024-03-20 09:37:09 +01:00
Theodor Thornhill
c890622e1a Tweak regexp for object initializers in csharp-mode (bug#69571)
* lisp/progmodes/csharp-mode.el (csharp-guess-basic-syntax): Add
handling to not consider ended statements as object init openers.
* test/lisp/progmodes/csharp-mode-resources/indent.erts: New test
resources.
* test/lisp/progmodes/csharp-mode-tests.el: Add test for this particular
issue.
2024-03-16 20:43:25 +01:00
Konstantin Kharlamov
f48babb112 `term-mode': mention the keymap to add keybindings to
A user typically expects a keymap for mode `foo' to be called
`foo-mode-map'.  term-mode has `term-mode-map' too, but for
user-defined bindings to have effect they have to be put to
`term-raw-map' instead.  So let's mention that.
* lisp/term.el (term-mode) (term-mode-map) (term-raw-map): Mention
the keymaps to add keybindings to for `term-mode'.  (Bug#69786)
2024-03-16 13:25:47 +02:00
Eli Zaretskii
8cf05d9be1 Fix 'shortdoc-copy-function-as-kill'
* lisp/emacs-lisp/shortdoc.el (shortdoc-copy-function-as-kill):
Fix handling of functions with no arguments.  (Bug#69720)
2024-03-16 13:07:52 +02:00
Eli Zaretskii
d5901f3f05 Improve documentation of 'edebug-print-*' variables
* lisp/emacs-lisp/edebug.el (edebug-print-length)
(edebug-print-level): Fix doc strings and customization labels.
Suggested by Matt Trzcinski <matt@excalamus.com>.  (Bug#69745)
2024-03-16 12:42:16 +02:00
Basil L. Contovounesios
db027a0697 ; Fix bibtex-biblatex-field-alist docstring typo. 2024-03-12 22:47:45 +01:00
F. Jason Park
db5915f30b Fix 'with-sqlite-transaction'
* lisp/sqlite.el (with-sqlite-transaction): Tuck misplaced body
of else form back into feature-test control structure whence it
escaped.  (Bug#67142)

* test/lisp/sqlite-tests.el: New file to accompany
test/src/sqlite-tests.el.
2024-03-11 15:23:55 +02:00
Eli Zaretskii
5ffcca121b ; Improve documentation of image properties
* lisp/image.el (create-image, image-property): Add to do strings
link to description of image properties in ELisp manual.

* doc/lispref/display.texi (Defining Images): Fix example and add
cross-reference to where image properties are described.
(Image Descriptors): Add index entry.
2024-03-07 10:11:44 +02:00
Dan Jacobson
2549eabc97 Fix typos in vnvni.el.
* lisp/leim/quail/vnvni.el ("vietnamese-vni"): Fix typos.  (Bug#69485)

Copyright-paperwork-exempt: yes
2024-03-01 09:33:38 +02:00
Eli Zaretskii
647cecc853 ; * lisp/vc/vc.el (vc-clone): Fix wording of doc string. 2024-02-27 15:11:58 +02:00
Stefan Monnier
b7cef701cb * lisp/files.el (hack-one-local-variable): Use set-auto-mode-0
This fixes bug#69373.
2024-02-25 11:35:44 -05:00
Eli Zaretskii
0530800175 Fix infinite recursion in gdb-mi.el
* lisp/progmodes/gdb-mi.el: (gdb-clear-partial-output)
(gdb-clear-inferior-io):  Set inhibit-read-only, to avoid
signaling errors in process filter.  (Bug#69327)
2024-02-24 15:12:57 +02:00
Eli Zaretskii
01ebc95114 Fix 'help-quick-toggle'
* lisp/help.el (help-quick-sections): Fix "kill-region" command.
Add a doc string.  (Bug#69345)
2024-02-24 11:59:30 +02:00
Michael Albinus
d6131b5902 * lisp/net/tramp.el (tramp-methods): Fix typo in docstring. (Bug#69294) 2024-02-21 09:02:33 +01:00
Eli Zaretskii
2eb85a9de1 ; * lisp/emacs-lisp/pcase.el (pcase-let*, pcase-let): Another doc fix. 2024-02-20 19:15:38 +02:00
Eli Zaretskii
4c6653f23a ; * lisp/emacs-lisp/pcase.el (pcase-let*, pcase-let): Doc fix. 2024-02-20 15:44:13 +02:00
Dmitry Gutov
5a64d2c759 java-ts-mode: Indentation for opening brace on a separate line
* lisp/progmodes/java-ts-mode.el (java-ts-mode--indent-rules):
Support putting the opening brace on a separate line (bug#67556).

* test/lisp/progmodes/java-ts-mode-resources/indent.erts:
Add a test.
2024-02-17 22:35:16 +02:00
Philip Kaludercic
9e56bd5ed8 Removed decommissioned PGP keyservers
* lisp/epa-ks.el (epa-keyserver): Update the user option type of
`epa-keyserver'.

See https://mail.gnu.org/archive/html/emacs-devel/2023-11/msg00857.html.
2024-02-17 19:47:29 +01:00
Ihor Radchenko
e56f0ef51b org: Fix security prompt for downloading remote resource
* lisp/org.el (org--confirm-resource-safe): Do not assume that
resource is safe when user replies "n" (do not download).

Reported-by: Max Nikulin <manikulin@gmail.com>
Link: https://orgmode.org/list/upj6uk$b7o$1@ciao.gmane.io
2024-02-17 19:31:28 +02:00
Eli Zaretskii
65ba327465 Revert "Update to Org 9.6.19"
This reverts commit 07a392f445.
It was installed by mistake.
2024-02-17 18:53:05 +02:00
Kyle Meyer
07a392f445 Update to Org 9.6.19 2024-02-17 10:17:41 -05:00
Joseph Turner
61a1450762 Improve directory prompt used by package-vc-checkout
* lisp/emacs-lisp/package-vc.el (package-vc--read-package-name): Use
read-directory-name instead of read-file-name.  (Bug#66114)
2024-02-14 17:51:59 +01:00
Michael Albinus
0c7c8210cb Minor Tramp doc adaption
* doc/misc/tramp.texi (Frequently Asked Questions): Be more
precise with FIDO2 keys.

* lisp/net/tramp.el: Adapt comments.
2024-02-14 17:27:43 +01:00
Andrea Corallo
614b244a7f * Improve reproducibility of inferred values by native comp
* lisp/emacs-lisp/comp-cstr.el (comp-normalize-valset): Do not try to
reorder conses using 'sxhash-equal' as its behavior is not reproducible
over different sessions.
2024-02-11 11:15:27 +01:00
Loïc Lemaître
9f9da26e0d Handle typescript ts grammar breaking change for function_expression
Starting from version 0.20.4 of the typescript/tsx grammar, "function"
becomes "function_expression". The right expression is used depending
on the grammar version.

* lisp/progmodes/typescript-ts-mode.el
(tsx-ts-mode--font-lock-compatibility-function-expression):
New function (bug#69024).
(typescript-ts-mode--font-lock-settings): Use it.

Copyright-paperwork-exempt: yes
2024-02-11 05:00:38 +02:00
Eli Zaretskii
717d8c4285 Don't quote 't' in doc strings
* lisp/outline.el (outline-minor-mode-use-buttons): Doc fix.
Patch by Arash Esbati <arash@gnu.org>.  (Bug#69012)
2024-02-10 13:00:51 +02:00
Michael Albinus
f1e7b5230a Tramp: Handle PIN requests from security keys (don't merge)
* doc/misc/tramp.texi (Frequently Asked Questions): Clarify FIDO entry.

* lisp/net/tramp-sh.el (tramp-actions-before-shell)
(tramp-actions-copy-out-of-band):
Use `tramp-security-key-pin-regexp'.

* lisp/net/tramp.el (tramp-security-key-pin-regexp): New defcustom.
(tramp-action-otp-password, tramp-read-passwd): Trim password prompt.
(tramp-action-show-and-confirm-message): Expand for PIN requests.
2024-02-09 11:05:14 +01:00
Eli Zaretskii
e268231686 Don't skip links to "." and ".." in Dired when marking files
* lisp/dired.el (dired-mark): Skip "." and "..", but not symlinks
to those two.  (Bug#38729)  (Bug#68814)
2024-02-08 13:51:55 +02:00
Joseph Turner
e25d11314d Pass unquoted filename to user-supplied MUSTMATCH predicate
* lisp/minibuffer.el (read-file-name-default): Pass REQUIRE-MATCH
argument through substitute-in-file-name.
* lisp/minibuffer.el (read-file-name): Update docstring.

Resolves bug#68815.
2024-02-06 16:05:46 -05:00
Eli Zaretskii
b91f0ee2fc ; Fix last change
* lisp/progmodes/js.el
(js--treesit-font-lock-compatibility-definition-feature): Fix
comments.
2024-02-03 11:20:11 +02:00
Vincenzo Pupillo
2f69353e4a Fix incompatibility with tree-sitter-javascript >= 0.20.2
Starting from version 0.20.2 the grammar's primary expression
"function" has been renamed to "function_expression".  A new
function checks if the new primary expression is available,
and if so, it returns the correct rules.
* lisp/progmodes/js.el
(js--treesit-font-lock-compatibility-definition-feature): New
function.
(js--treesit-font-lock-settings): Use it.  (Bug#68879)
2024-02-03 11:14:44 +02:00
Eli Zaretskii
d49124fc14 Avoid signaling errors from 'pixel-fill-region'
* lisp/textmodes/pixel-fill.el (pixel-fill-region): Make sure the
selected window displays the current buffer.  This is important
when this function is called inside 'with-current-buffer' or
similar forms which temporarily change the buffer displayed in the
selected window.  (Bug#67791)
2024-02-03 11:09:36 +02:00
nibon7
a398712761 eglot: Add nushell language server
* lisp/progmodes/eglot.el (eglot-server-programs): Add nushell
language server.  (Bug#68823)
2024-02-02 08:54:25 +01:00
Piotr Kwiecinski
5f56bc1cdf eglot: Add php-ts-mode to eglot-server-programs
* lisp/progmodes/eglot.el (eglot-server-programs): Add
php-ts-mode.  (Bug#68870)

Copyright-paperwork-exempt: yes
2024-02-02 08:51:07 +01:00
dalu
c14c978e3b Support kotlin-ts-mode in Eglot
* lisp/progmodes/eglot.el (eglot-server-programs): Support
kotlin-ts-mode.  (Bug#68865)

Copyright-paperwork-exempt: yes
2024-02-02 08:27:53 +01:00
Michael Albinus
caecbf3e8d Fix stale cache in Tramp (do not merge with master)
* lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band):
Flush file properties when needed.  (Bug#68805)
2024-02-01 17:17:36 +01:00
Stefan Kangas
5ce02c91bc Improve desktop-save-mode docstring
* lisp/desktop.el (desktop-save-mode): Improve docstring.
2024-02-01 09:14:27 +01:00
Eli Zaretskii
2f98b13ed0 ; Fix doc strings of splash-screen data structures
* lisp/startup.el (fancy-startup-text, fancy-about-text): Doc
fixes.  (Bug#68788)
2024-01-29 14:56:40 +02:00