1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-20 05:41:29 -07:00
Commit graph

176152 commits

Author SHA1 Message Date
Martin Rudalics
0edafe0fb6 In xt_action_hook don't act on deleted window's scroll bar (Bug#75120)
* src/xterm.c (xt_action_hook): Make sure window_being_scrolled
is live (Bug#75120).
* src/pdumper.c (dump_subr): Update pertinent hash of
HASH_Lisp_Subr.
2025-01-09 09:37:13 +01:00
Stefan Kangas
b099777b52 ; * lib-src/make-fingerprint.c: Fix copyright year.
This file is new with the portable dumper.
2025-01-09 06:22:21 +01:00
Stefan Kangas
b6bec47c4a ; Fix indentation in itree.c 2025-01-09 05:13:28 +01:00
Gabriel Santos
493bb2eaf1
Add button navigation to treesit-explorer (bug#75141)
* lisp/treesit.el (treesit--explorer-tree-mode-map): Define it
as a child of special-mode-map, adding keys for button
navigation.
2025-01-08 20:11:46 -08:00
Stefan Kangas
40fbed939a Improve 'gethash' docstring
* src/fns.c (Fgethash): Improve docstring.  Avoid exposing the C
identifier 'dflt' to Lisp by providing a "usage:" string.
2025-01-09 02:56:11 +01:00
Kierin Bell
bdccd4ea9e Fix documentation of Iroquoian input methods
* lisp/leim/quail/iroquoian.el: Fix typos in Oneida endonym and in the
docstring of `haudenosaunee-postfix' about keys for inputting Onondaga
nasals.  (Bug#75448)

* etc/NEWS: Fix typo in Oneida endonym.
2025-01-09 02:27:50 +01:00
Arash Esbati
b71225ed90 Remove support for supertabular from RefTeX
* doc/misc/reftex.texi (Builtin Label Environments):
* lisp/textmodes/reftex-vars.el (reftex-label-alist-builtin)
(reftex-default-label-alist-entries): Delete entries for the
supertabular environment.  supertabular is an extension of the
normal tabular environment, and therefore doesn't contain a
caption and label.  Hence, supporting supertabular in RefTeX is
useless.
2025-01-08 20:47:43 +01:00
Stephen Gildea
ab3cb717a0 ; "time stamp" also can be spelled "timestamp"
* lisp/time-stamp.el (time-stamp):
* doc/emacs/files.texi (Time Stamps): Be findable as "timestamps".
2025-01-08 10:34:04 -08:00
Arash Esbati
5c3deffd9f Replace obsolete subfigure package with subfig
* doc/misc/reftex.texi (Builtin Label Environments): Mention the
subfig LaTeX package instead of the obsolete subfigure.

* lisp/textmodes/reftex-vars.el (reftex-label-alist-builtin):
Replace obsolete subfigure entry with subfig.  Adjust the macro
names accordingly and the regexp for matching the context.
Unify the descriptions of all entries.
(reftex-default-label-alist-entries): Use subfig as well.
2025-01-08 19:12:49 +01:00
Arsen Arsenović
6df0e18fed Add keywords var and final to Java Mode
* lisp/progmodes/cc-langs.el (c-type-modifier-prefix-kwds): Add
java entry for final.
(c-no-type-kwds): Add java entry for var.
2025-01-08 14:07:36 +00:00
Eli Zaretskii
5eca08bb23 ; * src/lisp.h (struct Lisp_Subr): Fix comment (again). 2025-01-08 16:06:19 +02:00
Eli Zaretskii
191a0bcf63 Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs 2025-01-08 15:44:11 +02:00
Eli Zaretskii
a427927123 ; * src/lisp.h (struct Lisp_Subr): Fix comment. 2025-01-08 15:43:40 +02:00
Richard Stallman
67be8db518 subr.el doc clarifications.
* subr.el (when-let, when-let*, and-let*): Doc clarifications.
Make `when-let* doc string self-contained.
2025-01-08 08:40:32 -05:00
Richard Stallman
2a3385ab50 Add autoload cookie and doc fix
cond-star.el (cond*): Add autoload cookie.
Doc fix.
2025-01-08 08:26:40 -05:00
Pip Cet
ac52993b99 Fix store_function_docstring for native subrs (Bug#74966)
Since native subrs can have either etc/DOC indexes or vector indexes,
we use the sign bit of the 'doc' field to distinguish the two cases.

* src/comp.c (native_function_doc, make_subr): Use one's complement of
doc index for native subrs.
* src/doc.c (store_function_docstring): Add assertion.
* src/lisp.h (struct Lisp_Subr): Document 'doc' sign bit.
2025-01-08 12:41:56 +00:00
Stefan Kangas
631f43d2bb ; Fix indentation in src/nsterm.h
Reduce the diff between master and scratch/igc.
2025-01-08 07:29:33 +01:00
Stefan Kangas
2ec7396d5d Move define_error declaration and docstring
* src/lisp.h (define_error): Move declaration to its proper place, make
external, and move its docstring...
* src/eval.c (define_error): ...to its function definition.
2025-01-08 06:51:20 +01:00
Stefan Kangas
9811f80d25 ; Fix indentation 2025-01-08 06:51:08 +01:00
F. Jason Park
601a1f1f27 ; Mark ERC keep-place-indicator test as :unstable
* test/lisp/erc/erc-scenarios-keep-place-indicator.el
(erc-scenarios-keep-place-indicator--follow): Don't run on EMBA pending
investigation of test timing out.
2025-01-07 17:34:42 -08:00
F. Jason Park
f9ecde75bb Improve use of Flyspell's API in erc-spelling
* etc/ERC-NEWS: Announce deprecation of `erc-spelling-flyspell-verify'
and `erc-spelling-unhighlight-word'.  A slight behavioral change not
worth mentioning is that, previously, ERC arranged for Flyspell to
ignore any word immediately following a forward slash anywhere in the
prompt input, even those for which the slash served as mere
punctuation (a "stroke"), as in "something/misspelt."  As of this
change, Flyspell only unconditionally exempts an initial slash-prepended
word, like "tableflip" in "ERC> /tableflip", and checks all others that
follow against known slash commands.
* lisp/erc/erc-spelling.el: Change top-level assignment of `erc-mode'
symbol-property `flyspell-mode-predicate' from
`erc-spelling-flyspell-verify' to `erc-spelling--flyspell-input-p'.
(erc-spelling-mode, erc-spelling-disable): Remove local member from
`flyspell-incorrect-hook'.
(erc-spelling-init): Add `erc-spelling--flyspell-check' to
`flyspell-incorrect-hook' locally.  Don't bother explicitly setting
`flyspell-generic-check-word-predicate' because Flyspell already does
that for clients using the `flyspell-mode-predicte' interface.
(erc-spelling-flyspell-verify, erc-spelling-unhighlight-word): Mark
obsolete.
(erc-spelling--flyspell-check, erc-spelling--flyspell-input-p): New
functions, essentially the two halves of a reworked and bifurcated
`erc-spelling-flyspell-verify'.  Though used as a predicate, the first
is not named as such because it performs side effects.
* test/lisp/erc/erc-scenarios-spelling.el: New file.
* test/lisp/erc/resources/spelling/auto-correct.eld: New file.
(Bug#75327)
2025-01-07 17:31:18 -08:00
F. Jason Park
c266c22b41 Fix regression in erc-nicks involving color pools
* lisp/erc/erc-nicks.el (erc-nicks-colors): Tweak doc.
(erc-nicks--create-pool-function): On graphic displays, set value to
`erc-nicks--create-culled-pool', the original default.  This fixes a bug
in which ERC mapped all pool members to a primary color, thus excluding
the bulk of them.  Thanks to Trevor Arjeski for discovering it.
(erc-nicks--create-coerced-pool): Mention the text-terminal-only
requirement in doc.
(erc-nicks-refresh): Improve doc.
* test/lisp/erc/erc-nicks-tests.el (erc-nicks-tests--track-faces):
Enable `erc-track-mode' prior to running body.
2025-01-07 17:27:44 -08:00
Arash Esbati
8d687695c5 Update RefTeX manual
* doc/misc/reftex.texi: (Builtin Label Environments): Mention
supported LaTeX packages ctable, minted and listings.
(Reference Styles): Update the supported reference styles and the
corresponding macros.
(Citation Styles): Mention support for biblatex package.
(Language Support): Describe usage of non-ASCII characters in the
LaTeX \label definition.
(Style Files): Mention biblatex.el as well.
(Options - Defining Label Environments): Add entry for
`reftex-label-regexps' option.
Other minor improvements.
2025-01-07 22:07:41 +01:00
Roland Winkler
1ef7deb2f7 bibtex-braced-string-syntax-table: fix bug #68477
* lisp/textmodes/bibtex.el (bibtex-braced-string-syntax-table):
Give all parentheses the syntax punctuation so that we do not
choke because of unbalanced parentheses other than braces (bug
2025-01-07 13:40:07 -06:00
Juri Linkov
4bf0f66551 Prefer %s format over %S for buffers
This restores the `%s` format` for buffers
after fba3c7ff3f.

* lisp/gnus/nnimap.el (nnimap-make-process-buffer):
* lisp/gnus/nntp.el (nntp-make-process-buffer):
* lisp/simple.el (next-error-internal):
Prefer more user-readable `%s` format over `%S` for buffers.
2025-01-07 20:44:09 +02:00
Juri Linkov
d5c3173366 Move calendar-month metadata to calendar-read-date (bug#68214)
* lisp/minibuffer.el (completion-category-defaults): Move the
'calendar-month' default value to the metadata in calendar-read-date.

* lisp/calendar/calendar.el (calendar-read-date): Add
display-sort-function moved from completion-category-defaults.
2025-01-07 20:22:14 +02:00
Stefan Kangas
e41a7d8127 Improve docstring of image-dired-show-all-from-dir
* lisp/image/image-dired.el (image-dired-show-all-from-dir):
Improve docstring.
2025-01-07 08:18:02 +01:00
Sacha Chua
d4503ccc27 image-dired-show-all-from-dir: Reuse dired's default-directory
* lisp/image/image-dired.el (image-dired-show-all-from-dir): Delegate
figuring out default-directory to dired.  This handles the case where
image-dired is called with a cons cell that has a directory in the car
and a list of files in the cdr, which dired can handle, and therefore
allows image-dired-show-all-from-dir to show an arbitrary list of
images.  It also means that image-dired-show-all-from-dir can handle
wildcards.
Ref: https://lists.gnu.org/r/emacs-devel/2025-01/msg00048.html
2025-01-07 08:04:44 +01:00
Stefan Kangas
d98516a27b ; Silence byte-compiler 2025-01-06 20:06:49 +01:00
Stefan Kangas
15d940ad1f New test for finding C header files
The assumption here is that if there is a C compiler, there is also a
math.h header somewhere.  The test should fail if we can't find that
file, and hopefully that will provoke users to create bug reports.

Let's see how far we can take this idea; we might have to give up and
disable the test in some configurations.  But doing that now seems
premature, even if we had a list of affected systems (which we don't).

* lisp/man.el (man--find-header-file): Factor out new function...
(Man-view-header-file): ...from here.
* test/lisp/man-tests.el (man-tests-find-header-file): New test.
2025-01-06 20:04:20 +01:00
Stefan Kangas
3dc3dbc2e3 Fix finding C headers with clang
This fixes following "#include" references in 'M-x man' buffers, and
using ffap, both on macOS machines, and on systems where for some reason
clang is available but gcc is not.

* lisp/subr.el (internal--c-header-file-path): Fix finding C
headers with clang.
(internal--gcc-is-clang-p): New function factored out from...
* lisp/emacs-lisp/ert-x.el (ert-gcc-is-clang-p): ...here.
* lisp/man.el (Man-header-file-path): Bump :version tag.

* test/lisp/subr-tests.el
(subr-tests-internal--c-header-file-path/clang-mocked): New test.
2025-01-06 20:04:20 +01:00
Stefan Kangas
888ff3755d New function internal--c-header-file-path
It is not clear to me where this function properly belongs, so let's put
it in subr.el for now.  This avoids code duplication without introducing
a dependency between man and ffap.  It can always be moved later.

* lisp/subr.el (internal--c-header-file-path): New function.
* lisp/man.el (Man-header-file-path):
* lisp/ffap.el (ffap-c-path): Use above new function.

* test/lisp/subr-tests.el (ert-x): Require.
(subr-tests-internal--c-header-file-path)
(subr-tests-internal--c-header-file-path/gcc-mocked): New tests.
2025-01-06 20:04:20 +01:00
Stephen Gildea
3de5fcd0a6 time-stamp: lower- and title-case weekday and month names
* lisp/time-stamp.el (time-stamp-string-preprocess): new formats for
lowercase weekday name, lowercase month name, and system name
* test/lisp/time-stamp.el: new tests
(formatz-generate-tests): Better doc strings for generated test fns.
2025-01-06 11:02:21 -08:00
Juri Linkov
997b9b8d38 * lisp/treesit.el: Use forward-list-default-function for C-M-n
(treesit--forward-list-with-default): New internal function
with body from 'treesit-forward-sexp-list' (bug#73404).
(treesit-forward-sexp-list, treesit-forward-list):
Replace body with a call to the shared implementation
'treesit--forward-list-with-default' using the
corresponding default function as an argument.
2025-01-06 20:02:18 +02:00
João Távora
c3ec174a6c Eglot: new eglot--format to fix quote substitution woes (bug#73472)
* lisp/progmodes/eglot.el (eglot--guess-contact): Use eglot--format.
(eglot--format): New helper.
(eglot--error, eglot--message, eglot--warn)
(eglot--apply-text-edits, eglot-rename): Use eglot--format.
2025-01-06 10:47:13 +00:00
Stefan Kangas
da5df90fad Improve integer file mode options docstrings
* lisp/eshell/esh-util.el (eshell-private-file-modes)
(eshell-private-directory-modes):
* lisp/gnus/mail-source.el (mail-source-default-file-modes):
* lisp/printing.el (pr-file-modes):
* lisp/gnus/mm-decode.el (mm-attachment-file-modes):
* lisp/gnus/nnmail.el (nnmail-default-file-modes):
* lisp/recentf.el (recentf-save-file-modes):
* lisp/vc/ediff-init.el (ediff-temp-file-mode):
* lisp/vc/emerge.el (emerge-temp-file-mode): Better document the fact
that these are integer and not octal values.

* lisp/epg.el (epg--start):
* lisp/emacs-lisp/package.el (package-import-keyring): Use octal values
to make the code more self-documenting.
2025-01-06 11:10:10 +01:00
Peter Oliver
6a389d5be4 Try harder to stabilize dired-test-bug27243-02
* test/lisp/dired-tests.el (dired-test-bug27243-02): Don't rely on the
expected point, since columns will move if the size of the parent directory
changes order of magnitude.  (Bug#72120)
2025-01-06 10:17:35 +01:00
Stefan Kangas
f652566af5 ; Silence byte-compiler
* test/lisp/net/browse-url-tests.el
(browse-url-tests-delete-temp-file): Suppress warning.
2025-01-06 10:15:25 +01:00
Stefan Kangas
1096d9afaa Improve Commentary in man.el
* lisp/man.el (Commentary): Move "Features" above "Credits and History".
The former is more likely to be relevant.
2025-01-06 07:13:03 +01:00
Stefan Kangas
fe6a28acac ; Quote function symbols in man.el
* lisp/man.el (Man-init-defvars, Man-translate-references)
(Man-highlight-references, Man-page-from-arguments)
(Man-follow-manual-reference): Quote function symbols.
2025-01-06 07:12:35 +01:00
João Távora
04a8faef09 Eglot: fix signature precedence based on provenance (bug#74914)
* lisp/progmodes/eglot.el (eglot--sig-info): Reverse order of
activeParameter and sig-active.
2025-01-05 20:39:51 +00:00
Stefan Monnier
127fc98308 (hack-one-local-variable): Fix bug#74964
* lisp/files.el (hack-local-variables--inhibit): New var.
(hack-one-local-variable): Use it to avoid infinite recursion in a more
targeted manner.
2025-01-05 10:03:40 -05:00
Michael Albinus
672a5f2b82 * lisp/net/tramp-sh.el (tramp-get-remote-pipe-buf): Make it more robust. 2025-01-05 15:24:21 +01:00
viliaapro
bc1a544b52 Fix bug in 'rng-valid' that unnecessarily marks buffer as modified
* lisp/nxml/rng-valid.el (rng-do-some-validation-1): Use
'with-silent-modifications'.  (Bug#75224)

Copyright-paperwork-exempt: yes
2025-01-05 15:39:50 +02:00
Eli Zaretskii
c6d0c2eec3 ; * admin/authors.el (authors-aliases): Add William O'Brien. 2025-01-05 14:41:43 +02:00
w08r
ac3b678607 Enable extra flags in 'go-ts-mode' test commands
* lisp/progmodes/go-ts-mode.el (go-ts-mode-test-flags):
(go-ts-mode--get-test-flags): New custom variable and function
for controlling test behaviour.
(go-ts-mode--compile-test): Updated to use new test flags
variable for passing extra information to the go test command
line.
(go-ts-mode-test-this-package): Updated to use new test flags
variable for passing extra information to the go test command
line.  Removed incorrect use of -run flag.

* etc/NEWS: Announce the new user option.  (Bug#74786)
2025-01-05 14:37:55 +02:00
Eli Zaretskii
dc41ddb4d6 Allow to remap 'header-line' face
* src/xfaces.c (realize_basic_faces): Bind 'face-remapping-alist'
to nil while realizing basic faces.
(lookup_basic_face): Force realizing a face whose 'inherit'
attribute is non-nil.  (Bug#73862)
2025-01-05 12:40:39 +02:00
Eli Zaretskii
7eb8596ff5 ; Fix warnings in a tty-only build on MS-Windows
* lisp/org/org.el (dnd-open-local-file):
* lisp/dired.el (tool-bar--image-expression):
* lisp/term/android-win.el (x-handle-args): Declare.
* lisp/w32-fns.el (w32-system-shells):
(w32-allow-system-shell):
* lisp/net/shr.el (image-scaling-factor):
* lisp/net/eww.el (image-scaling-factor):
* lisp/image.el (image-scaling-factor): Defvar.
(image-recompute-map-p): Move to before the first use.
Reported by Angelo Graziosi <angelo.g0@libero.it>.
2025-01-05 11:03:07 +02:00
Juri Linkov
47ff8ab307 * lisp/treesit.el: Fix treesit-show-paren-data (bug#75198)
(treesit-show-paren-data--categorize): Use 'treesit-thing-defined-p'
to check if the thing exists for the language at POS before calling
'treesit-parent-until' that raises an error for an undefined thing.
(treesit-thing-defined-p): Add the alias signature to the docstring.
2025-01-05 09:43:22 +02:00
Eli Zaretskii
cc5cd4de93 Fix setup of coding-systems on MS-Windows
* src/emacs.c (main) [HAVE_PDUMPER] [WINDOWSNT]: Call
'w32_init_file_name_codepage' again after loading the pdumper
file.
* src/w32.c (w32_init_file_name_codepage) [HAVE_PDUMPER]:
Reinitialize additional variables.  (Bug#75207)
2025-01-05 07:56:27 +02:00