1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-25 07:28:20 +00:00
Commit Graph

175450 Commits

Author SHA1 Message Date
Eli Zaretskii
1a91d37a21 ; * doc/lispref/control.texi (Conditionals): Fix markup. 2024-10-24 08:42:29 +03:00
Sean Whitton
698d75a335 Merge from origin/emacs-30
eae798486a Update special conditionals documentation
2024-10-24 12:13:20 +08:00
Sean Whitton
ec9eecbe91 ; Merge from origin/emacs-30
The following commit was skipped:

75584a3a96 ; * test/lisp/proced-tests.el (proced--within-buffer): In...
2024-10-24 12:13:20 +08:00
Sean Whitton
95f89c736f Merge from origin/emacs-30
f5451b6a06 ; Improve comment from last change
09e05f7ee4 Document and-let* vs. when-let* usage convention
b7a375f5c4 Fix error when splicing Eshell globs and a glob expands t...
2289e16226 * etc/package-keyring.gpg: Update expiration and add new key
48024096fe Avoid crashes when scrolling images under winner-mode
c35d6ba9f0 ; * doc/lispref/display.texi (Fontsets): Clarify wording.
88a1a32fc5 ; * doc/lispref/display.texi (Fontsets): Fix typo.
6be47058cd ; Add indexing for 'use-default-font-for-symbols'
681f70ea04 * src/lread.c (READ_AND_BUFFER): Reject negative chars (b...
ac4151e002 * test/Makefile.in: Do not show emacs-module-tests.log by...
4e0cb960db Fix 'php-ts-mode': better indentation and font locking
2024-10-24 12:13:20 +08:00
Sean Whitton
eae798486a Update special conditionals documentation
* doc/lispref/control.texi (Conditionals): Document if-let* and
when-let*, not if-let and when-let.  Document and-let*.
2024-10-24 12:10:09 +08:00
Sean Whitton
3bb1b85b78 vc-allow-rewriting-published-history: Use nil->ask->t
* lisp/vc/vc.el (vc-allow-rewriting-published-history): Use
increasingly permissive values nil->ask->t rather than
nil->t->no-ask.  Recommend `ask' or nil.
* lisp/vc/vc-git.el (vc-git--assert-allowed-rewrite): Update
accordingly.
2024-10-24 11:26:27 +08:00
Dmitry Gutov
bc8f416ee9 ; Update the NEWS entry to mention project-prompter correctly 2024-10-23 22:49:13 +03:00
Dmitry Gutov
efaec5f61d project-prompter: Update the docstring for the recent change
* lisp/progmodes/project.el (project-prompter):
Update the docstring too (bug#70833).
2024-10-23 22:43:18 +03:00
Michael Albinus
75584a3a96 ; * test/lisp/proced-tests.el (proced--within-buffer): Instrument macro.
Do not merge with master
2024-10-23 17:01:08 +02:00
Alan Coopersmith
5e5689a2a4 configure.ac: Fix FIONREAD check with gcc-14 on Solaris
Before this fix, it would fail to build with gcc-14 with the error:
conftest.c: In function 'main':
conftest.c:265:11: error: implicit declaration of function 'ioctl'
 [-Wimplicit-function-declaration]
  265 | int foo = ioctl (0, FIONREAD, &foo);
      |           ^~~~~

Solaris documents ioctl() as being defined in <unistd.h>.

* configure.ac: Fix FIONREAD check with gcc-14 on Solaris.
Ref:
https://lists.gnu.org/r/emacs-devel/2024-10/msg00195.html

Copyright-paperwork-exempt: yes
2024-10-23 15:48:17 +02:00
Eli Zaretskii
c037b25397 ; Improve documentation of 'native-compile-directory' (bug#73303)
* lisp/emacs-lisp/comp.el (native-compile-directory): Doc fix.

* doc/lispref/compile.texi (Native-Compilation Functions):
Document 'native-compile-directory'.

* etc/NEWS: Improve wording.
2024-10-23 10:00:45 +03:00
Sean Whitton
e756d4373b ; vc-git-modify-change-comment: Restore ignoring --amend
This was accidentally lost when installing this new feature on
master.
2024-10-23 10:57:40 +08:00
Sean Whitton
f5451b6a06 ; Improve comment from last change 2024-10-23 10:53:02 +08:00
Sean Whitton
c259db1d45 vc-git-modify-change-comment: Check for other autosquashing
* lisp/vc/vc-git.el (vc-git-modify-change-comment): Check that a
rebase with --autosquash won't make any other changes and give
the user a chance to abort.
2024-10-23 10:49:22 +08:00
Sean Whitton
87766c88d5 ; Insert missing quotation in FIXME 2024-10-23 09:36:41 +08:00
Sean Whitton
00149f18ea Support modifying VC change comments for Git
* lisp/vc/vc.el (vc-allow-rewriting-published-history): New option.
* lisp/vc/vc-git.el (vc-git--assert-allowed-rewrite)
(vc-git-modify-change-comment): New functions (bug#64055).

(vc-git--current-branch): Factor out of vc-git-dir--branch-headers.
(vc-git--log-edit-extract-headers): Factor out of vc-git-checkin.

* etc/NEWS: Announce the new support and option.
2024-10-23 09:32:38 +08:00
Sean Whitton
09e05f7ee4 Document and-let* vs. when-let* usage convention
* lisp/subr.el (and-let*): Document and/and-let*
vs. when/when-let* usage convention (some discussion in
bug#73853).
(when-let*): Add cross-reference to and-let*.
2024-10-23 09:08:27 +08:00
Jim Porter
b7a375f5c4 Fix error when splicing Eshell globs and a glob expands to itself
This could happen when 'eshell-extended-glob' determines that a "glob"
is not really a glob.  This mainly happens for remote file names with a
"~" in them, like "/ssh:remote:~/file.txt".

* lisp/eshell/em-glob.el (eshell-extended-glob): Return a list when
'eshell-glob-splice-results' is non-nil.
* test/lisp/eshell/em-glob-tests.el
(em-glob-test/expand/splice-results)
em-glob-test/expand/no-splice-results): Extend tests.
2024-10-22 09:43:00 -07:00
Stefan Monnier
2289e16226 * etc/package-keyring.gpg: Update expiration and add new key 2024-10-22 12:35:18 -04:00
Andrea Corallo
246d68bd2a Add 'native-compile-directory' (bug#73303)
* lisp/emacs-lisp/comp.el (native-compile-directory): New function.
* etc/NEWS (native-compile-directory): Add to NEWS.
2024-10-22 18:21:16 +02:00
Andrea Corallo
202adfcfcc * Rework 'comp-lookup-eln'
* lisp/emacs-lisp/comp.el (comp-lookup-eln): Rework to use
'comp-eln-load-path-eff'.
2024-10-22 18:21:15 +02:00
Jim Porter
f58652a419 ; Fix a recent change to EWW
* lisp/net/eww.el (eww--guess-content-type): Save excursion.
2024-10-22 08:36:23 -07:00
Stefan Monnier
a9cf51d5f0 * lisp/vc/smerge-mode.el (global-map): Mitigate bug#73544 2024-10-22 10:19:09 -04:00
Eli Zaretskii
9fdc03e8f9 ; Improve documentation of 'eww-guess-content-type-functions'
* lisp/net/eww.el (eww-guess-content-type-functions): Doc fix.

* etc/NEWS: Announce 'eww-guess-content-type-functions'.

Bug#73133
2024-10-22 09:38:09 +03:00
Sebastián Monía
9074a9f496 Add customization to let EWW guess content-type if needed
* lisp/net/eww.el (eww-guess-content-type-functions): New user option.
(eww--guess-content-type, eww--html-if-doctype): New functions.
(eww-render): Call 'eww--guess-content-type' (bug#73133).
2024-10-21 21:56:50 -07:00
Stefan Monnier
e7810ab99f Merge branch 'master' of git+ssh://git.sv.gnu.org/srv/git/emacs 2024-10-21 20:21:23 -04:00
Stefan Monnier
8a2fbddf17 * lisp/files.el (require-with-check): Provide more info in the error message
Rather than only show the "new" file to be loaded, show also the
name of the currently loaded file, to clarify the conflict.
2024-10-21 20:21:10 -04:00
Jim Porter
605f26cf70 Fix a race condition when running Eshell startup scripts
Previously, these scripts could run before all the Eshell modules had
fully-initialized.

* lisp/eshell/esh-mode.el (eshell-after-initialize-hook): New hook...
(eshell-mode): ... run it.

* lisp/eshell/em-script.el (eshell-run-startup-scripts): New function...
(eshell-script-initialize): ... add it to
'eshell-after-initialize-hook'.

* etc/NEWS: Announce 'eshell-after-initialize-hook'.
2024-10-21 14:21:50 -07:00
Eli Zaretskii
48024096fe Avoid crashes when scrolling images under winner-mode
* src/window.c (window_scroll_pixel_based): Fix calculation of a
window's vscroll.  (Bug#73933)
2024-10-21 20:42:01 +03:00
Eli Zaretskii
c35d6ba9f0 ; * doc/lispref/display.texi (Fontsets): Clarify wording. 2024-10-21 18:32:07 +03:00
Stephen Berman
1f8fbae8df Let 'tex-view' show PDFs made without a DVI (bug#73854)
* lisp/textmodes/tex-mode.el (tex-print-file): Update doc string
to mention 'tex-compile'.
(tex-compile-commands): Add entries for 'evince' and 'mupdf'.
(tex-compile): Set 'tex-print-file'.
2024-10-21 12:50:53 +02:00
Eli Zaretskii
88a1a32fc5 ; * doc/lispref/display.texi (Fontsets): Fix typo. 2024-10-21 13:04:18 +03:00
Eli Zaretskii
6be47058cd ; Add indexing for 'use-default-font-for-symbols'
* doc/emacs/mule.texi (Modifying Fontsets):
* doc/lispref/display.texi (Fontsets): Index
'use-default-font-for-symbols'.
2024-10-21 13:01:53 +03:00
Eli Zaretskii
b3af195213 Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs 2024-10-21 08:26:20 +03:00
Eli Zaretskii
e289f7dbb4 ; Reapply a fix for recent change in eww.el
* lisp/net/eww.el (eww--list-buffers-display-table)
(eww-buffers-mode): Fix coding conventions.
2024-10-21 08:25:06 +03:00
Eli Zaretskii
88a6a17adb Revert "; Fix last change."
This reverts commit 75fa0cc1ae.
The large part of it was committed by accident.
2024-10-21 08:22:56 +03:00
Jim Porter
b573aaab76 ; Make utility functions for getting the Eshell non-special regexps
* lisp/eshell/esh-arg.el (eshell-inside-quote-regexp)
(eshell-outside-quote-regexp): Rename to...
(eshell--non-special-inside-quote-regexp)
(eshell--non-special-outside-quote-regexp): ... these, and add
defsubsts.
(eshell-arg-initialize): Don't initialize regexp variables.
(eshell-parse-non-special): ... use them.

* lisp/eshell/em-glob.el (eshell-glob-chars-regexp): Use 'rx-to-string'.
2024-10-20 20:15:46 -07:00
Jim Porter
212cf31256 Make all the entries in 'eshell-parse-argument-hook' named functions
* lisp/eshell/esh-arg.el (eshell-parse-number, eshell-parse-non-special)
(eshell-parse-whitespace, eshell-parse-comment): New functions...
(eshell-parse-argument-hook): ... use them.
2024-10-20 20:15:46 -07:00
Sean Whitton
14624ff0fb ; Undo WIP accidentally included in recent commit 2024-10-21 09:44:20 +08:00
Jim Porter
fc6854cbd4 ; * lisp/eshell/esh-var.el (eshell-glob-function): Remove unused defvar. 2024-10-20 18:03:52 -07:00
Jim Porter
183c5efc0f Be more careful about applying spliced arguments
Previously, this could 'nonc' to a list that shouldn't be modified.

* lisp/eshell/esh-cmd.el (eshell-rewrite-named-command): Use 'append'
instead of 'nconc'.

* test/lisp/eshell/esh-var-tests.el (esh-var-test/interp-var-splice):
(esh-var-test/quoted-interp-var-splice): New tests.
2024-10-20 18:03:45 -07:00
Eli Zaretskii
681f70ea04 * src/lread.c (READ_AND_BUFFER): Reject negative chars (bug#73914). 2024-10-20 22:39:53 +03:00
Eli Zaretskii
75fa0cc1ae ; Fix last change.
* lisp/net/eww.el (eww--list-buffers-display-table)
(eww-buffers-mode): Fix coding conventions.
2024-10-20 21:02:07 +03:00
Sebastián Monía
d3975cc925 Use vtable in eww-list-buffers and add function eww-buffer-list
* lisp/net/eww.el (eww-buffer-list): New function.
(eww-list-buffers): Move logic to...
(eww--list-buffers-display-table, eww--list-buffers-get-data):
... these, and use 'vtable'.
(eww-buffer-select, eww-buffer-show, eww-buffer-kill)
(eww-buffers-mode-map): Use 'vtable-current-object'.
(eww-buffers-mode): Set 'revert-buffer-function'
2024-10-20 10:36:16 -07:00
Mattias Engdegård
53e84f8cfa Revert "Preserve source position of macro calls in macro expansions"
This reverts commit 2114a955c2.
No agreement on this (bug#73725).
2024-10-20 17:05:32 +02:00
Alan Mackenzie
2114a955c2 Preserve source position of macro calls in macro expansions
This allows the byte compiler to give correct positions, those
of the invoking forms, when an error or warning is caused by
the innards of the invoked macros.

This fixes bug#73725 and bug#73746.

* lisp/emacs-lisp/macroexp.el (sub-macroexp--posify-form)
(macroexp--posify-form): New functions.
(macroexp-preserve-posification): New macro.
(macroexp-macroexpand): Use the new macro to preserve a calling
form's position.
(macroexpand-all): Add a new parameter `keep-pos' which
instructs the function to preserve an invoking form's position.

* lisp/emacs-lisp/byte-opt.el (byte-optimize-form): Use the new
macro to preserve source positions.

* lisp/emacs-lisp/bytecomp.el (byte-compile-preprocess): Call
macroexpand-all with the new argument `keep-pos' non-nil.
2024-10-20 14:04:26 +00:00
Michael Albinus
ac4151e002 * test/Makefile.in: Do not show emacs-module-tests.log by default. 2024-10-20 11:35:06 +02:00
Sean Whitton
6c928e490d ; * lisp/vc/log-view.el (log-view-modify-change-comment): Add FIXME. 2024-10-20 16:41:09 +08:00
Michael Albinus
0bdaab7655 Minor changes of last commit
* lisp/autorevert.el (auto-revert--last-time): Init with 0 (Epoch).
(auto-revert-notify-handler): Simplify.
2024-10-20 10:38:00 +02:00
Lin Sun
545c54aea1 Enhance the auto-revert to avoid revert a buffer in short time
* lisp/autorevert.el (auto-revert--last-time): New defvar.
(auto-revert-handler, auto-revert-notify-handler): Use it.
* test/lisp/autorevert-tests.el (with-auto-revert-test): Set
`auto-revert--lockout-interval' correctly.
2024-10-20 10:05:19 +02:00