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

178558 commits

Author SHA1 Message Date
Phil Sainty
ee11917627 Doc clarification 2025-06-29 18:23:30 +12:00
Phil Sainty
e4c8ae9a3b fixup! Subsume string-try-completion' into string-common-prefix' 2025-06-29 18:18:52 +12:00
Phil Sainty
b726c41e44 Revised commit message
Add function `string-common-prefix'

* lisp/subr.el: (string-common-prefix): New function.

* etc/NEWS:
* doc/lispref/strings.texi:
* doc/lispref/minibuf.texi:
* lisp/emacs-lisp/shortdoc.el:
Documentation.
2025-06-29 15:24:43 +12:00
Phil Sainty
c6ecba08dd fixup! Subsume string-try-completion' into string-common-prefix' 2025-06-29 15:18:38 +12:00
Phil Sainty
1e1eef5fb0 Subsume string-try-completion' into string-common-prefix' 2025-06-29 00:07:18 +12:00
Phil Sainty
7123c9497e fixup! Add functions string-common-prefix' and string-try-completion' 2025-06-09 00:00:24 +12:00
Phil Sainty
accfe19887 Add functions string-common-prefix' and string-try-completion'
* lisp/subr.el: (string-common-prefix, string-try-completion):
New functions.

* lisp/emacs-lisp/shortdoc.el:
* doc/lispref/strings.texi:
* doc/lispref/minibuf.texi:
* etc/NEWS:
Documentation.
2025-06-08 23:20:20 +12:00
Sean Whitton
988110fb6d vc-next-action: On mixed state sets, treat missing files as removed
* lisp/vc/vc.el (vc-only-files-state-and-model, vc-next-action):
Add the 'missing' state to the set of compatible states for
mixed state actions.  This means you can commit removals of
files without first moving them to the 'removed' state.
2025-06-08 11:25:17 +01:00
Sean Whitton
9b4fec7a97 vc-next-action: Offer to delete missing files
* lisp/vc/vc.el (vc-next-action): Call vc-delete-file on a set
of missing files, to move them to the 'removed' state, instead
of just erroring out.
2025-06-08 11:22:28 +01:00
Eli Zaretskii
ff8c0648fb Fix 'ffap-string-at-point' under 'ffap-file-name-with-spaces'
* lisp/ffap.el (ffap-file-name-with-spaces): Doc fix.
(ffap-string-at-point): Don't reject '~foo/' and 'd:/bar' file
names when 'ffap-file-name-with-spaces' is non-nil.

* test/lisp/ffap-tests.el (ffap-test-with-spaces): Add tests, and
fix expected results to not strip Windows drive letters.
2025-06-08 11:21:05 +03:00
Eshel Yaron
b7560fb63d
; Use completion category 'recentf' in 'recentf-open'
* lisp/recentf.el (recentf-open): Specify a completion
category, 'recentf', when prompting for a recent file name.
This allows users the customize the behavior of recent file
name completion via 'completion-category-overrides'.
(Bug#78596)
2025-06-07 21:41:47 +02:00
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