Eli Zaretskii
62014576dc
Fix 'save-some-buffers' when file name has embedded '%'
...
* lisp/emacs-lisp/map-ynp.el (map-y-or-n-p): Don't assume the
prompt will never include the '%' character. (Bug#78715)
2025-06-07 16:35:42 +03:00
Sean Whitton
b195ccfe89
vc-git: Properly track unstaged deletions
...
* lisp/vc/vc-git.el (vc-git--git-status-to-vc-state)
(vc-git-after-dir-status-stage): Return/set 'missing' VC state,
not 'removed' state, for unstaged deletions.
(vc-git-dir-status-goto-stage): Add 'ls-files-missing' stage.
2025-06-07 13:27:00 +01:00
Sean Whitton
29990aadda
; * lisp/vc/vc-git.el (vc-git-after-dir-status-stage): Comments.
2025-06-07 13:27:00 +01:00
Sean Whitton
82109aa726
Inline sole call to vc-git--state-code
...
* lisp/vc/vc-git.el (vc-git--state-code): Delete.
(vc-git-after-dir-status-stage): Inline it here.
2025-06-07 13:27:00 +01:00
Eli Zaretskii
58797a6735
Merge from origin/emacs-30
...
e4ba279b01 ; * doc/emacs/misc.texi (Network Security): Fix typo.
8fdb2d19b4 ; * lisp/treesit.el (treesit-beginning-of-defun): Doc fix...
2025-06-07 06:59:30 -04:00
Eli Zaretskii
bd4674f93d
; Merge from origin/emacs-30
...
The following commit was skipped:
41f8dc18df Make xoauth2 auth fail when a smtp server replies 334 (Bu...
2025-06-07 06:59:29 -04:00
Eli Zaretskii
c5e54fef67
Merge from origin/emacs-30
...
cd57a05542 ; * etc/PROBLEMS: Improve the item about 'C-S-u' in PGTK ...
2025-06-07 06:59:29 -04:00
Eli Zaretskii
bed490f0f2
; Fix last change (bug#78396)
...
* lisp/paren.el (show-paren-not-in-comments-or-strings):
* etc/NEWS:
* doc/emacs/programs.texi (Matching): Fix wording and punctuation
in doc string, defcustom tags, manual, and NEWS.
2025-06-07 13:32:41 +03:00
Elías Gabriel Pérez
12397e3eb0
Add option for not highlight parens inside comments or strings
...
* lisp/paren.el (show-paren-not-in-comments-or-strings):
New user option. (Bug#78396)
(show-paren-function): Enclose code in 'catch' function.
* etc/NEWS: Announce changes.
* doc/emacs/programs.texi (Matching): Document new option.
2025-06-07 13:23:31 +03:00
JD Smith
9b30934756
Fix vertical-motion when an image is at EOL under word-wrap
...
* src/xdisp.c (move_it_in_display_line_to): Fix return value under
word-wrap when a screen line ends with an image that "just fits".
(Bug#67604)
2025-06-07 12:57:52 +03:00
Eli Zaretskii
0bc2a5a2c1
; Fix last change (bug#77945)
...
* lisp/faces.el (face-all-attributes):
* etc/NEWS: Reformat and fix wording in documentation.
2025-06-07 12:43:39 +03:00
shipmints
13fa74b73c
Add optional inherit argument to 'face-all-attributes' (bug#77945)
...
* lisp/faces.el (face-all-attributes): Add 'inherit' argument
and pass to 'face-attribute'.
2025-06-07 12:39:49 +03:00
Eli Zaretskii
fc96cc1feb
Avoid whitespace-mode breaking standard-display-unicode-special-glyphs
...
* lisp/whitespace.el (whitespace-display-char-on): Copy from
'standard-display-table' if 'buffer-display-table' is nil. This
avoids overwriting display-table customizations by features that
modify 'standard-display-table' for global effects. (Bug#78522)
2025-06-07 12:21:38 +03:00
Eli Zaretskii
9629ade0b0
Teach checkdoc about (:this that) in cl-defun
...
* lisp/emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine):
Support more complex keyword args. (Bug#78543)
2025-06-07 12:15:33 +03:00
Eli Zaretskii
e1fcb25fc3
Fix semantic-utest-ia tests
...
* test/lisp/cedet/semantic-utest-ia.el (semantic-ia-utest): Clean
up better, to avoid affecting the next test.
2025-06-07 11:01:35 +03:00
Lin Sun
d8993eff11
* lisp/cedet/semantic.el: Turn off semantic-mode in all buffers (bug#76815),
2025-06-07 10:36:00 +03:00
Robert Pluim
e4ba279b01
; * doc/emacs/misc.texi (Network Security): Fix typo.
2025-06-06 17:19:45 +02:00
Sean Whitton
757f6cb0ac
New revert-files VC backend function for faster mass reverts
...
* lisp/vc/vc-git.el (vc-git-revert-files):
* lisp/vc/vc-hg.el (vc-hg-revert-files):
* lisp/vc/vc.el (vc-revert-files): New functions.
(vc-revert-files): Incorporate vc-revert's calls to message here
so that the messages are displayed more consistently.
(vc-next-action, vc-default-checkin-patch, vc-revert): Use
vc-revert-files instead of vc-revert-file.
2025-06-06 11:52:32 +01:00
Sean Whitton
8f85cf2ae9
Fix apparent thinko in vc-next-action
...
* lisp/vc/vc.el (vc-next-action): Pass an argument to
buffer-modified-p because the loop does not set the current
buffer before calling that function.
2025-06-06 11:47:10 +01:00
Sean Whitton
ac4869c712
VC: Deprecate log-incoming and log-outgoing backend functions
...
* lisp/vc/vc-git.el (vc-git-incoming-revision):
Inline vc-git--fetch-incoming.
(vc-git--fetch-incoming, vc-git-log-incoming)
(vc-git-log-outgoing): Delete.
* lisp/vc/vc-hg.el (vc-hg-mergebase):
* lisp/vc/vc.el (vc-default-log-incoming)
(vc-default-log-outgoing): New functions.
* lisp/vc/vc.el:
* etc/NEWS: Document the deprecation.
2025-06-06 09:53:32 +01:00
Sean Whitton
b3f4486b04
* lisp/vc/vc.el: Update specification of print-log backend function.
2025-06-06 09:49:37 +01:00
Sean Whitton
4456ca3d3b
; vc--with-backend-in-rootdir: Fix Edebug declaration.
2025-06-06 09:48:01 +01:00
Mattias Engdegård
1110696f02
; * lisp/register.el (cl-find-class): declare to silence warning
2025-06-06 10:00:22 +02:00
Eli Zaretskii
8fdb2d19b4
; * lisp/treesit.el (treesit-beginning-of-defun): Doc fix (bug#78703).
2025-06-06 10:00:20 +03:00
Dmitry Gutov
1c465fc087
project-switch-to-buffer: Don't disambiguate too much
...
* lisp/progmodes/project.el (project--read-project-buffer):
Use the new function from 'uniquify' to generate buffer names that
are just unique to the current project, not globally (bug#77312).
2025-06-06 05:41:26 +03:00
Spencer Baugh
79cd1cc30e
Add uniquify-get-unique-names (bug#77312)
...
This new function provides an interface to uniquify.el which doesn't
change the actual names of the buffers. This is useful for any commands
which deal with a subset of all buffers; for example, project.el.
* lisp/uniquify.el (uniquify-rationalize--generic): Add.
(uniquify-rationalize, uniquify-rationalize-a-list)
(uniquify-rationalize-conflicting-sublist): Explicitly pass
RENAME-BUFFER-FN and GET-BUFFER-FN.
(uniquify--stateless-curname, uniquify-get-unique-names): Add.
2025-06-06 05:41:26 +03:00
Mattias Engdegård
8b0f5b0597
Fix function arity check for noncompiled callees (bug#78685)
...
This is a regression from Emacs 29.
* lisp/emacs-lisp/bytecomp.el (byte-compile-fdefinition):
Make it work for functions that aren't compiled.
* test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-tests--f):
(bytecomp-tests--warn-arity-noncompiled-callee): Add test.
2025-06-05 18:18:05 +02:00
Michael Albinus
7393d7419e
Fix Tramp connection property
...
* lisp/net/tramp-gvfs.el (tramp-gvfs-maybe-open-connection):
* lisp/net/tramp-rclone.el (tramp-rclone-maybe-open-connection):
Set "connected" property in time.
2025-06-05 16:29:18 +02:00
Kazuhiro Ito
b15743d713
* lisp/subr.el (play-sound): Update docstring (bug#78694).
2025-06-05 17:17:38 +03:00
Eli Zaretskii
5bf6585de2
; Improve documentation of treesit nodes
...
* doc/lispref/parsing.texi (Retrieving Nodes): Fix and describe the
printed representation of treesit nodes.
2025-06-05 14:25:06 +03:00
Sean Whitton
7d0a605a70
Delay running vc-checkin-hook for an async checkin
...
* lisp/vc/vc-git.el (vc-git-checkin):
* lisp/vc/vc-hg.el (vc-hg-checkin, vc-hg-checkin-patch): Run
vc-checkin-hook using vc-run-delayed.
* lisp/vc/vc.el (vc-checkin): Don't pass vc-checkin-hook to
vc-start-logentry when doing an async checkin. That runs the
hook too early.
2025-06-05 11:57:28 +01:00
Eli Zaretskii
6d0a71af9a
; * etc/NEWS: Call out incompatible change in 'date-to-time'.
2025-06-05 11:09:36 +03:00
Eli Zaretskii
bcf005fa77
Improve documentation of treesit "thing"
...
* src/treesit.c (syms_of_treesit):
* lisp/treesit.el (treesit-cycle-sexp-type):
(treesit-thing-at, treesit-thing-at-point): Doc fixes.
* doc/lispref/parsing.texi (User-defined Things): Improve
documentation of treesit "thing" and related functions; add
cross-references and indexing.
2025-06-05 10:30:44 +03:00
Stefan Monnier
1903b0062b
(cl-deftype): Silence spurious warnings in xcb-types.el
...
* lisp/emacs-lisp/cl-macs.el (cl-deftype): Don't warn if the predicate
doesn't use its argument, e.g. when the type is equivalent to `t`.
2025-06-04 19:27:08 -04:00
Stefan Monnier
77a4c63fda
(outline--hidden-headings-paths): Fix slow saves (bug#78665)
...
* lisp/outline.el: Prefer #' to quote function names.
(outline--end-of-previous): New function, extracted from
`outline-end-of-subtree`.
(outline-end-of-subtree): Use it.
(outline--hidden-headings-paths): Distinguish headings where just the
entry is hidden from those where a whole subtree is hidden (bug#78673).
(outline--hidden-headings-restore-paths): Adjust accordingly and don't
delegate to functions like `outline-hide-subtree` so as to avoid
an O(N²) behavior.
2025-06-04 16:37:17 -04:00
Juri Linkov
6f24725323
* lisp/tab-line.el: Use 'tab-line-event-start' in remaining functions.
...
(tab-line-switch-to-prev-tab, tab-line-switch-to-next-tab):
Use 'tab-line-event-start' instead of 'event-start'
like in all other functions.
2025-06-04 20:23:25 +03:00
Eli Zaretskii
8c4ff60cf4
; * src/nsterm.m (ns_draw_stretch_glyph_string): Fix a thinko (bug#78654).
2025-06-04 19:56:58 +03:00
Jonas Bernoulli
680fa61b59
Update to Transient v0.9.1-7-gd7d2c1c2
2025-06-04 15:17:51 +02:00
Sean Whitton
69b245cf4f
Factor out vc--with-backend-in-rootdir
...
* lisp/vc/vc.el (vc--with-backend-in-rootdir): New macro.
(vc-root-version-diff, vc-diff-mergebase, vc-root-diff)
(vc-print-root-log, vc-log-mergebase): Use it.
(vc-log-incoming, vc-log-outgoing): Use it here too in order to
prompt for a directory if current buffer is not VCS-controlled.
2025-06-04 13:26:06 +01:00
Sean Whitton
0ca6667c00
; * lisp/vc/vc.el (vc-print-log-internal): Fix some indentation.
2025-06-04 13:25:52 +01:00
Sean Whitton
e3472e8ec5
; vc-bzr-incoming-revision: Rewrite to match buffer text directly.
2025-06-04 08:36:23 +00:00
Jostein Kjønigsen
61d7116520
Better command subst fontification in bash-ts-mode (bug#78567)
...
* lisp/progmodes/sh-script.el (sh-mode--treesit-settings):
fontify command-substition command only. Don't include
enclosing brackets.
2025-06-04 00:11:01 -07:00
Juri Linkov
47837adf8c
* lisp/tab-line.el: Remove unnecessary checks for nil event.
...
(tab-line-hscroll-right, tab-line-hscroll-left)
(tab-line-switch-to-prev-tab, tab-line-switch-to-next-tab)
(tab-line-close-tab, tab-line-close-other-tabs):
Remove '(consp event)' to use the window returned by
'(posn-window (tab-line-event-start event))' even in case
when 'event' is nil.
2025-06-04 09:49:01 +03:00
Yuan Fu
d1fa511512
; Fix recent changes in typescript-ts-mode.el
...
* lisp/progmodes/typescript-ts-mode.el:
(typescript-ts--standalone-parent-p): Add a limit to the
looking-back call.
2025-06-03 22:44:13 -07:00
Stefan Monnier
a4a66d9628
lisp/progmodes/sh-script.el (sh-popup-occur-buffer): Remove unused var
2025-06-03 17:13:51 -04:00
Thierry Volpiatto
eb788fd8fd
(lisp-imenu-generic-expression): Add oclosure-define
...
* lisp/emacs-lisp/lisp-mode.el (lisp-imenu-generic-expression):
Add `oclosure-define` alongside the other type definition forms.
2025-06-03 16:03:27 -04:00
Eli Zaretskii
9fcea4a263
; Fix recent changes in typescript-ts-mode.el
...
* lisp/progmodes/typescript-ts-mode.el
(typescript-ts--standalone-parent-p): Fix warning and punctuation
in a comment.
2025-06-03 19:32:29 +03:00
Juri Linkov
332f733d88
* lisp/tab-line.el: Use 'consp' on mouse events instead of 'listp'.
...
(tab-line-hscroll-right, tab-line-hscroll-left, tab-line-new-tab)
(tab-line-switch-to-prev-tab, tab-line-switch-to-next-tab)
(tab-line-close-tab, tab-line-close-other-tabs):
Replace '(listp event)' with '(consp event)' that allows
calling the functions non-interactively with nil event arguments.
2025-06-03 18:49:31 +03:00
Juri Linkov
6b668c2213
Restore c-ts-common-comment-setup in js-ts-mode and typescript-ts-mode.
...
* lisp/progmodes/js.el (js-ts-mode):
* lisp/progmodes/typescript-ts-mode.el (typescript-ts-base-mode):
Add 'c-ts-common-comment-setup' back removed in 8bccccedb6
since it does more than setting comment variables (bug#78680).
2025-06-03 18:41:01 +03:00
Michael Albinus
f60ad8d1e0
Add ansible password prompts to `comint-password-prompt-regexp'
...
* lisp/comint.el (comint-password-prompt-regexp):
* test/lisp/comint-tests.el (comint-testsuite-password-strings):
Add ansible password prompts. (Bug#78442)
2025-06-03 16:56:52 +02:00