1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00
Commit graph

178794 commits

Author SHA1 Message Date
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
Dmitry Gutov
f48c283e88 project--read-project-buffer: Re-apply category 'buffer' to completion
* lisp/progmodes/project.el
(project--completion-table-with-category): New function.
(project--file-completion-table): Extract from here.
(project--read-project-buffer): Use it (bug#78931).
2025-07-02 05:46:24 +03:00
Dmitry Gutov
76877a6b08 uniquify-get-unique-names: Return a list with propertized strings
* lisp/uniquify.el (uniquify-get-unique-names): Return a list of
strings, and add text property 'uniquify-orig-buffer' to each,
pointing at the corresponding buffers (bug#77312).

* lisp/progmodes/project.el (project--read-project-buffer):
Look up that property's values here and build the alist.
2025-07-02 05:46:24 +03:00
Jim Porter
fa77689b1e Ensure <style> and <template> HTML tags are never "readable" in EWW
This helps fix EWW readable mode on some web pages that use these tags,
like the FSF blog.

* lisp/net/eww.el (eww--walk-readability): Check for <style> and
<template> tags.
2025-07-01 18:34:56 -07:00
Stefan Monnier
f732a44af8 cus-edit.el: Don't quote lambdas and improve macro declaration
* lisp/cus-edit.el (custom-reset-extended-menu): Don't quote lambdas.
(custom-dirlocals-with-buffer): Add indent and debug info.
2025-07-01 17:37:02 -04:00
Stefan Monnier
b3b83b3603 (load-path-filter): Loading can happen in the middle of completion
* lisp/startup.el (load-path-filter-cache-directory-files):
Don't get confused by the context's `completion-regexp-list`.
2025-07-01 16:55:14 -04:00
Philip Kaludercic
7f35bf9706
Expand DIR arg on `package-vc-install-from-checkout'
Expand the directory name passed to the
'package-vc-install-from-checkout' function so that paths like
"/path/to/pkg/./" are converted to "/path/to/pkg/".  This
ensures that the package name defaults to "pkg" instead of ".".
* lisp/emacs-lisp/package-vc.el
(package-vc-install-from-checkout): Expand the provided
directory name.  (Bug#78855)

Co-developed-by: Roi Martin <jroi.martin@gmail.com>
2025-07-01 22:04:45 +02:00
Jonas Bernoulli
d8cdbc9f61
Update to Transient v0.9.3-8-gecd64f17 2025-07-01 18:23:32 +02:00
Jonas Bernoulli
d4615d026b
; * lisp/transient.el: Fix section outline levels.
In [1: 77a4c63fda] "all" code sections were needlessly nested
below the ";;; Code:" section, which I do not like but can live
with.  However, a few sections were missed; nest them here too.
Also put the "frontmatter" code, which in my libraries usually
is the only code located in the ";;; Code:" section, into a new
";;;; Frontmatter" sub-section.  That way it is possible again
to cycle to the "show all headings but no code" state.

1: 2025-06-04 77a4c63fda
   (outline--hidden-headings-paths): Fix slow saves (bug#78665)
2025-07-01 18:11:20 +02:00
Jonas Bernoulli
5125395db4
; * lisp/transient.el: Remove extra semicolon added to eof comment. 2025-07-01 17:55:24 +02:00
Sean Whitton
3dfc988587 VC-Hg: Use generic log-incoming & log-outgoing
* lisp/vc/vc-hg.el (vc-hg-print-log): Implement string LIMIT for
this backend.  Use a DAG range when 'vc-log-view-type' is
'log-outgoing'.  Document differences between -rN:M and -rN::M.
(vc-hg-log-view-mode): Treat 'log-incoming' and 'log-outgoing'
values for 'vc-log-view-type' as short logs too.
(vc-hg-log-incoming, vc-hg-log-outgoing): Delete.
2025-07-01 15:44:12 +01:00
Sean Whitton
106048b062 vc-hg-mergebase: Try a pull if first attempt fails
* lisp/vc/vc-hg.el (vc-hg-mergebase): If the first attempt
fails, execute a pull, then try again.
(vc-hg-incoming-revision): Use 'hg identify' not 'hg incoming'.
2025-07-01 15:39:39 +01:00