1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-12 22:40:46 -08:00
Commit graph

178805 commits

Author SHA1 Message Date
Sean Whitton
7a0bfa3ee7 vc-checkin: Check whether the fileset or patches have changed
* lisp/vc/vc-dispatcher.el (vc-finish-logentry): Delay popping
to vc-parent-buffer until after calling the log operation.
That way if the log operation exits early, the current buffer
remains *vc-log*.
(vc-dir-marked-files, dired-get-marked-files): Declare.
(vc-dispatcher--explicit-marks-p): New function.
* lisp/vc/vc.el (vc-checkin): Check the user isn't likely to be
surprised by what is included in the checkin.  Specifically,
check whether the fileset or patches implied by vc-parent-buffer
are unchanged.
* doc/emacs/maintaining.texi (VC With A Merging VCS): Explain
how the fileset or patch string is fixed once *vc-log* pops up.
2025-07-06 14:03:31 +01:00
Sean Whitton
67ddf21576 ; Move text about C-x v v from Diff mode buffers into main list
* doc/emacs/maintaining.texi (VC With A Merging VCS): Move text
about C-x v v from a Diff mode buffer into the bulleted list.
2025-07-06 14:03:31 +01:00
Sean Whitton
08c5f68e0b ; * lisp/vc/log-edit.el (log-edit): Clarify vc-log-fileset. 2025-07-06 14:03:31 +01:00
Michael Albinus
771370dea5 Adapt filenotify-tests.el for Emba
* test/infra/gitlab-ci.yml (.filenotify-gio-template): Enable also
for scheduled jobs.

* test/lisp/filenotify-tests.el (file-notify--test-cleanup):
Fix docstring.
(file-notify--deftest-remote): Use `file-notify--test-cleanup'.
(file-notify-test03-events, file-notify-test05-file-validity)
(file-notify-test06-dir-validity)
(file-notify-test07-many-events)
(file-notify-test09-watched-file-in-watched-dir): Adapt tests.
(file-notify-test03-events-remote)
(file-notify-test04-autorevert-remote)
(file-notify-test07-many-events-remote)
(file-notify-test09-watched-file-in-watched-dir-remote): Do not
tag as :unstable.
2025-07-06 14:41:02 +02:00
Michael Albinus
0550d036b7 ; * etc/NEWS: Fix thinko in last commit. 2025-07-06 09:00:42 +02:00
Stefan Monnier
8786dfedc9 lisp/help-mode.el (help-mode-context-menu): Don't quote lambda 2025-07-05 19:32:50 -04:00
Michael Albinus
aa8afabd49 Add file notification handler for Tramp's "smb" method.
* etc/NEWS: Mention new file notification handler for Tramp "smb".

* lisp/filenotify.el (file-notify--expand-file-name): Fix the
remote case.
(file-notify-callback): Extend for "smb-notify".
(file-notify--call-handler): Fix debug message.

* lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-notify-add-watch):
* lisp/net/tramp-sh.el (tramp-sh-gio-monitor-process-filter):
Use connection property "file-monitor".

* lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist):
Use `tramp-smb-handle-file-notify-add-watch'.
(tramp-smb-handle-delete-directory): Do not error if there is a
pending deletion of a directory under file-watch.
(tramp-smb-handle-file-notify-add-watch)
(tramp-smb-notify-process-filter): New defuns.
(tramp-smb-send-command): New optional argument NOOUTPUT.
(tramp-smb-wait-for-output): Improve debug message.

* lisp/net/tramp.el (tramp-directory-watched): New defun.
(tramp-accept-process-output, tramp-wait-for-regexp):
Improve debug message.

* test/lisp/filenotify-tests.el (top): Filter also for
"smb-notify".  Set some other Tramp related variables.
(file-notify--test-wait-for-events)
(file-notify--test-with-actions-check)
(file-notify--test-with-actions): Add debug message.
(file-notify--test-cleanup, file-notify--deftest-remote):
Keep Tramp debugs buffer.
(file-notify--test-monitor): Check for "smb-notify".
(file-notify--deftest-remote): Call `file-notify-rm-all-watches'.
(file-notify--test-make-temp-name): Use a better name for parent
directory.
(file-notify--test-event-handler): Use `string-match-p'.
(file-notify--test-with-actions): Check also for the `stopped'
event as limit.
(file-notify-test03-events, file-notify-test04-autorevert)
(file-notify-test05-file-validity)
(file-notify-test07-many-events, file-notify-test08-backup)
(file-notify-test09-watched-file-in-watched-dir): Adapt tests for
"smb-notify".
(file-notify-test12-unmount): Skip for "smb-notify".
2025-07-05 19:21:48 +02:00
Michael Albinus
0a1db9b573 ; * etc/NEWS: Presentational fixes and improvements. 2025-07-05 19:18:18 +02:00
Stefan Monnier
4024a7d541 (eieio--validate-slot-value): Don't break on struct objects
Nowadays `eieio-oset` applies to more than just EIEIO objects.
The old code tended to work OK but only because `eieio--class-slots`
is usually compiled/inlined without checks.

* lisp/emacs-lisp/eieio-core.el (eieio--validate-slot-value):
Don't assume CLASS is an EIEIO class.
2025-07-05 11:18:13 -04:00
Mattias Engdegård
d1677d0a92 Make elint obsolete (bug#78685)
It never was very useful to begin with, produces lots of false positives,
and the byte-compiler has long eclipsed it in warning quality.

* lisp/emacs-lisp/elint.el: Move this file...
* lisp/obsolete/elint.el: ...here, and declare obsolete.
(elint-file, elint-directory, elint-current-buffer, elint-defun):
Declare obsolete.
(elint--file): Split from elint-file to avoid warning.
* lisp/progmodes/elisp-mode.el (emacs-lisp-mode-menu):
Remove elint menu entries.
* etc/NEWS: Announce
2025-07-05 14:38:48 +02:00
Eli Zaretskii
a4712609b7 Revert "New command 'mode-line-invisible-mode'"
This reverts commit 7e56ffd51b.
It caused failure to bootstrap.  (Bug#78881)
2025-07-05 13:29:46 +03:00
Eli Zaretskii
4d14891850 ; * lisp/progmodes/cc-engine.el: Fix trailing whitespace. 2025-07-05 06:03:48 -04:00
Eli Zaretskii
4288dc7751 Merge from origin/emacs-30
3f7787c979 ; * lisp/replace.el (query-replace-help): Fix help text (...
b10596a630 ; * lisp/emacs-lisp/warnings.el (warning-display-at-botto...
060f964906 Handle ts_node_type return NULL (bug#78938)
5bdacbe460 Improve documentation of 'warning-display-at-bottom'
30dae2ad23 Handle the case when ts_node_type returns NULL (bug#78938)
985ad1da76 ; * lisp/emacs-lisp/bytecomp.el (compilation-safety): Doc...
de18407f51 ; * doc/lispref/functions.texi (Mapping Functions): Fix w...
2025-07-05 06:02:36 -04:00
Eli Zaretskii
adc1beb22f ; Merge from origin/emacs-30
The following commit was skipped:

db6cbee742 Populate the ':title' in EWW when defaulting to readable ...
2025-07-05 05:57:37 -04:00
Eli Zaretskii
8855d27d0b Merge from origin/emacs-30
e51ff3ee66 ; * doc/lispref/threads.texi (Condition Variables): Fix w...
2025-07-05 05:57:36 -04:00
Spencer Baugh
49d0342a00 Fix ffap-in-project to check file existence
* lisp/ffap.el (ffap-in-project): Check file existence before
returning non-nil. (bug#78929)
2025-07-05 12:19:51 +03:00
Eli Zaretskii
a30aab8b25 Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs 2025-07-05 12:15:56 +03:00
Roi Martin
8e49ced04c Update NEWS with info about `fill-region-as-paragraph-function'
* etc/NEWS: Add an entry for `fill-region-as-paragraph-function'.
Document that `fill-region-as-paragraph-semlf' is a valid
`fill-region-as-paragraph-function' value.  (Bug#78949)
2025-07-05 12:08:21 +03:00
Sean Whitton
ae55c0fd2d ; * lisp/vc/log-edit.el (log-edit-diff-fileset): Update comment. 2025-07-05 09:53:51 +01:00
Sean Whitton
45d1486803 Don't call vc-buffer-sync-fileset when committing a patch
* lisp/vc/vc-dispatcher.el (vc-finish-logentry): Move call to
vc-buffer-sync-fileset from here ...
* lisp/vc/vc.el (vc-checkin): ... to here, and conditionalize so
as not to call when committing a patch.  Also fix comment.
2025-07-05 09:49:13 +01:00
Eli Zaretskii
cbd4616ae2 Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs 2025-07-05 11:37:10 +03:00
Eli Zaretskii
6b470d9848 ; * etc/NEWS: Fix last added entry. 2025-07-05 11:36:38 +03:00
Elías Gabriel Pérez
7e56ffd51b New command 'mode-line-invisible-mode'
This new command allows hide the mode line in the current
buffer.  (Bug#78881)

* doc/emacs/display.texi (Optional Mode Line): Document feature.
* etc/NEWS: Announce changes.
* lisp/bindings.el (mode-line-invisible--buf-state): New buffer
local variable.
(mode-line-invisible-mode): New minor mode.
2025-07-05 11:33:26 +03:00
Sean Whitton
3480abd67d ; VC: Improve REMOTE-LOCATION docstrings, qualify remark in comment. 2025-07-05 09:32:29 +01:00
Eli Zaretskii
34dad30e49 Fix 'ediff-before-setup-hook'
* lisp/vc/ediff-util.el
(ediff-clone-buffer-for-region-comparison): Wrap body in
'save-window-excursion', to make sure original window
configuration is restored after quitting 'ediff-regions-linewise'.
Suggested by Aaron Zeng <azeng@janestreet.com>.  (Bug#78897)
2025-07-05 11:07:29 +03:00
Eli Zaretskii
97ceb544b3 ; * etc/NEWS: Announce check for Org in 'report-emacs-bug'. 2025-07-05 10:39:47 +03:00
Antero Mejr
c61d2587bb Check for text about Org-mode when submitting emacs bugs
* lisp/mail/emacsbug.el (report-emacs-bug-hook): Add regex check for
references to Org, and warn user if matches are found.  (Bug#78823)
2025-07-05 10:36:16 +03:00
Eli Zaretskii
3f7787c979 ; * lisp/replace.el (query-replace-help): Fix help text (bug#78916). 2025-07-05 09:47:23 +03:00
Eli Zaretskii
b10596a630 ; * lisp/emacs-lisp/warnings.el (warning-display-at-bottom): Doc fix. 2025-07-05 09:17:40 +03:00
Yuan Fu
060f964906
Handle ts_node_type return NULL (bug#78938)
* src/treesit.c (treesit_traverse_match_predicate): Handle the
case when ts_node_type returns NULL.
(Ftreesit_node_type): Add some comment.
2025-07-04 13:22:14 -07:00
Eli Zaretskii
763c3cd081 ; * doc/emacs/maintaining.texi (VC Change Log): Fix wording and markup. 2025-07-04 16:32:00 +03:00
Arash Esbati
22daed7ce0 Consider constant TeX master/main file
* lisp/international/latexenc.el
(latexenc-find-file-coding-system): Search for "Local Variables"
as a comment.
Consider the case where `TeX-master' or `tex-main-file' is
globally set to a string as well.  (AUCTeX bug#78841)
2025-07-04 14:31:27 +02:00
Sean Whitton
215fc3a354 vc-find-revision-no-save: Finish entering read-only-mode
* lisp/vc/vc.el (vc-find-revision-no-save): After setting
buffer-read-only to non-nil, also run read-only-mode-hook,
and if view-read-only is non-nil, call view-mode-enter.
2025-07-04 13:18:16 +01:00
Eli Zaretskii
5bdacbe460 Improve documentation of 'warning-display-at-bottom'
* lisp/emacs-lisp/warnings.el (warning-display-at-bottom):
* doc/lispref/display.texi (Warning Options):
* doc/emacs/windows.texi (Temporary Displays):
* etc/NEWS: Improve documentation of 'warning-display-at-bottom'.
See https://lists.gnu.org/archive/html/emacs-devel/2025-07/msg00024.html
for more details.
2025-07-04 15:02:29 +03:00
Sean Whitton
d16453a20e ; Update ldefs-boot.el. 2025-07-04 12:57:46 +01:00
Sean Whitton
af78b4d333 VC: New incoming & outgoing diff commands (bug#62940)
* lisp/vc/vc-hooks.el (vc-incoming-prefix-map)
(vc-outgoing-prefix-map): New keymaps.
(vc-use-incoming-outgoing-prefixes): New user option.
* lisp/vc/vc.el (vc-root-diff-incoming, vc-root-diff-outgoing):
New commands (bug#62940).
* doc/emacs/maintaining.texi (VC Change Log):
* etc/NEWS: Document the new commands and option.
2025-07-04 12:39:29 +01:00
Sean Whitton
76ae048b3f ; * lisp/vc/vc-hooks.el (vc-call-backend): Improve docstring.
In fact we don't use vc-call all that much.
2025-07-04 12:39:29 +01:00
Sean Whitton
625a9f9bce New history variable for VC remote locations
* lisp/vc/vc.el (vc-remote-location-history): New variable.
(vc--maybe-read-remote-location): Use it.
2025-07-04 12:39:29 +01:00
Sean Whitton
07347f9ce6 ; * lisp/vc/vc-dispatcher.el: Delete obsolete TODO. 2025-07-04 12:39:29 +01:00
Sean Whitton
f7184c6e6f ; * lisp/vc/vc.el (vc-revert-files): Fix superfluous backquotation. 2025-07-04 12:39:28 +01:00
Yuan Fu
30dae2ad23
Handle the case when ts_node_type returns NULL (bug#78938)
* src/treesit.c (Ftreesit_node_type): Handle NULL.
2025-07-03 23:40:59 -07:00
Phil Sainty
1ea68b930c ; * lisp/progmodes/php-ts-mode.el: Docstring fixes
(php-ts-mode-alternative-php-program-name, php-ts-mode--executable):
Improve documentation.
2025-07-04 18:40:23 +12:00
Steven Allen
f10bf71151 Retain the <base> tag when making a page in EWW document readable
The base tag is necessary to correctly resolve relative links.

* lisp/net/eww.el (eww-readable-dom): Retain the base tag in addition to
the title/link tags.  (Bug#78948)
* test/lisp/net/eww-tests.el (eww-test--wordy-page): Add a base tag.
(eww-test/readable/default-readable): Test that the base tag is retained.
2025-07-03 20:41:19 -07:00
Stefan Monnier
2cb7387e6f lisp/dired.el (dired-mode-immediate-menu): Don't quote lambda 2025-07-03 17:35:10 -04:00
Stefan Monnier
5f44515539 lisp/dired-x.el (dired-omit-lines): Don't quote lambda 2025-07-03 17:10:27 -04:00
Sean Whitton
8c6d549f6f Factor out some common code from VC incoming/outgoing functions
* lisp/vc/vc.el (vc--maybe-read-remote-location)
(vc--incoming-revision): New functions, factored out.
(vc-log-incoming, vc-default-log-incoming, vc-log-outgoing)
(vc-default-log-outgoing): Use them.
2025-07-03 20:53:24 +01:00
Sean Whitton
f1fe815b43 ; * lisp/vc/vc-hg.el (vc-hg-command): Improve docstring. 2025-07-03 20:53:24 +01:00
Sean Whitton
37a9a9495e VC: Make incoming-revision backend function responsible for fetching
* lisp/vc/vc-hg.el (vc-hg-incoming-revision): Pull the incoming
revision if we don't have it.
(vc-hg-mergebase): Don't invoke 'hg pull'.
* lisp/vc/vc.el: Document that the incoming-revision backend
function, for distributed VCS, should fetch the incoming
revision into local storage.
2025-07-03 20:53:24 +01:00
Juri Linkov
3b6e8c5e3c Don't ignore mouse release event in display-buffer-override-next-command
* lisp/window.el (display-buffer-override-next-command):
Don't exit on mouse down event, thus waiting for the incoming
mouse up event (bug#78945).
2025-07-03 20:34:16 +03:00
Eli Zaretskii
205d69e7e6 Avoid segfaults due to C-g when a thread does GC
* src/keyboard.c (handle_interrupt): Don't forcibly switch threads
if a non-main thread was in GC when the signal handler was called.
2025-07-03 16:19:09 +03:00