1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-16 08:10:43 -08:00
Commit graph

178777 commits

Author SHA1 Message Date
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
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
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
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
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
Stefan Monnier
549232e2e4 Revert "admin/gitmerge.el (gitmerge-resolve): Use replace-region-contents"
This reverts commit 17d976e22e
because the change is not worth the risk.
2025-07-01 09:24:19 -04:00
Thomas Fitzsimmons
ab568bce0c EUDC: Fix checkdoc errors
* lisp/net/eudc.el (eudc--plist-member)
(eudc-format-inline-expansion-result): Fix checkdoc errors.
2025-06-30 23:17:04 -04:00
Stefan Monnier
9a7917f886 expand.el: Simplify by always using a list in expand-list
The old code set `expand-list` to a vector of "marks" but also
supported it being set by third party code to a list.
The code to build and use the vector was a internally using
a list, so we cut the middle man and just always use a list so
it doesn't matter whether we set it or a third party code did.

* lisp/expand.el (expand-add-abbrevs): Use `mapc` instead of recursion.
(expand-add-abbrev): Add dummy `rest` arg so we can `apply` it blindly
in `expand-add-abbrevs`.
(expand-abbrev-hook): `expand-list` is never set to a vector any more.
(expand-do-expansion): Set `expand-list` to a list rather than a vector.
(expand-abbrev-from-expand): Use `abbrev-symbol`.
(expand-build-list, expand-build-marks): Delete functions, not used
any more.
2025-06-30 19:57:04 -04:00
Roi Martin
0ac21120cf Update `fill-region-as-paragraph-semlf' to follow fill.el protocols
Update the `fill-region-as-paragraph-semlf' function to follow the
`fill-region-as-paragraph-function' protocol.  This allows us to
reimplement the `fill-paragraph-semlf' function using `fill-paragraph'
and `fill-region-as-paragraph-function'.
* lisp/textmodes/fill.el (fill-region-as-paragraph-semlf): Make this
function compatible with `fill-region-as-paragraph-function'.  Avoid
narrowing.
(fill-paragraph-semlf): Reimplement using `fill-paragraph' and
`fill-region-as-paragraph-function'.
* test/lisp/textmodes/fill-tests.el (fill-test-semlf-fill-region): Add
test.
(fill-test-fill-paragraph-semlf-fill-paragraph-function): Remove test.
(fill-test-fill-paragraph-semlf, fill-test-semlf)
(fill-test-fill-paragraph-semlf-justify, fill-test-semlf-justify)
(fill-test-fill-paragraph-semlf-sentence-end-double-space)
(fill-test-semlf-sentence-end-double-space)
(fill-test-fill-paragraph-semlf-fill-column, fill-test-semlf-fill-column)
(fill-test-fill-paragraph-semlf-punctuation-marks)
(fill-test-semlf-punctuation-marks, fill-test-fill-paragraph-semlf-twice)
(fill-test-semlf-twice, fill-test-fill-paragraph-semlf-fill-prefix)
(fill-test-semlf-fill-prefix)
(fill-test-fill-paragraph-semlf-indented-block)
(fill-test-semlf-indented-block, fill-test-fill-paragraph-semlf-revert)
(fill-test-semlf-revert, fill-test-fill-paragraph-semlf-emacs-lisp-mode)
(fill-test-semlf-emacs-lisp-mode, fill-test-fill-paragraph-semlf-c-mode)
(fill-test-semlf-c-mode, fill-test-fill-paragraph-semlf-org-mode)
(fill-test-semlf-org-mode, fill-test-fill-paragraph-semlf-markdown-mode)
(fill-test-semlf-markdown-mode): User shorter function names consistent
with erts file names.
* test/lisp/textmodes/fill-resources/semlf-fill-region.erts: Add test
data.
* test/lisp/textmodes/fill-resources/semlf-fill-paragraph-function.erts:
Delete file.
* test/lisp/textmodes/fill-resources/semlf-emacs-lisp-mode.erts: Remove
newlines around indented block.
* doc/lispref/text.texi (Filling): Highlight that
`fill-region-as-paragraph-function' changes the behavior of
`fill-paragraph'.
2025-06-30 17:33:43 -04:00
Stefan Monnier
3efdb553e4 lisp/autoinsert.el (auto-insert-alist): Don't quote lambda 2025-06-30 11:28:34 -04:00
Stefan Monnier
17d976e22e admin/gitmerge.el (gitmerge-resolve): Use replace-region-contents 2025-06-30 00:37:15 -04:00
Juri Linkov
b13c583bc7 Better fix for ignoring 'tab-bar-lines' in daemon's initial frame
* lisp/tab-bar.el (tab-bar--update-tab-bar-lines):
Revert '(not (daemonp))' to update 'default-frame-alist'
even in daemon mode (bug#78896).

* lisp/frame.el (frame-notice-user-settings): For daemon's
initial frame don't modify the frame parameter 'tab-bar-lines'.
2025-06-29 20:06:06 +03:00
Juri Linkov
7fd846f61e Display SVG images inline in Gnus
* lisp/gnus/mm-decode.el (mm-inline-media-tests): Add "image/svg+xml".
2025-06-29 19:39:29 +03:00
Sean Whitton
7bf2a61623 ; * lisp/vc/vc-git.el (vc-git-print-log): Improve wording. 2025-06-29 16:30:13 +01:00
Sean Whitton
d23b605f75 VC: Fix several START-REVISION versus LIMIT issues
* lisp/vc/vc-git.el (vc-git-print-log): When LIMIT and
START-REVISION are both supplied, use START-REVISION as the
newest commit, and LIMIT as a base (problem was introduced in
the commit adding 'vc-diff-mergebase' and 'vc-log-mergebase').
* lisp/vc/vc.el (vc-default-log-incoming)
(vc-default-log-outgoing): Fix order of START-REVISION and LIMIT
arguments passed to 'print-log' backend function.
(vc-log-mergebase): Fix order of START-REVISION and LIMIT
arguments passed to 'vc-print-log-internal'.
2025-06-29 14:53:37 +01:00
Paul Eggert
30bfb03adf Update from Gnulib by running admin/merge-gnulib 2025-06-29 06:07:52 -07:00
Michael Albinus
bd04818e53 Adapt Tramp versions
* doc/misc/trampver.texi:
* lisp/net/trampver.el (tramp-version): Adapt Tramp versions.
2025-06-29 11:03:05 +02:00
Eli Zaretskii
036c95bbf6 ; * test/lisp/textmodes/fill-tests.el (markdown-mode): Declare. 2025-06-29 07:38:55 +03:00