Commit graph

174798 commits

Author SHA1 Message Date
Eli Zaretskii
f8443dffc1 ; * lisp/register.el (register-use-preview): Doc fix (bug#76739). 2025-03-13 10:14:07 +02:00
Jeremy Bryant
f729828bcf ; Add texinfo reference to GNU Coding Standards.
* doc/emacs/trouble.texi (Coding Standards): Add texinfo reference to
GNU Coding Standards manual.  (Bug#76901)
2025-03-13 07:12:26 +01:00
Eli Zaretskii
a6abb88fdc ; * lisp/files.el (executable-find): Doc fix. 2025-03-12 14:53:03 +02:00
Sean Whitton
2029104605 Correct some outdated docs for hack-local-variables
* doc/lispref/variables.texi (File Local Variables):
<hack-local-variables>: Say that it applies directory-local
variables too.  Add a cross-reference.
(Directory Local Variables): Document dir-local-variables-alist.
* lisp/files.el (hack-local-variables): Say that it always puts
into effect directory-local variables.
2025-03-12 10:05:32 +08:00
Sean Whitton
c877acc261 ; Backport ELisp->Elisp fix to etc/NEWS to ease merging
Do not merge to master.
2025-03-12 09:45:47 +08:00
Michael Albinus
894b0e3a2f ; Adapt comment in tramp.el 2025-03-11 09:26:58 +01:00
Michael Albinus
cc87717fa0 Add keyword placeholder to tramp.el
* lisp/net/tramp.el: Add Version, Package-Requires, Package-Type
and URL keywords.
2025-03-10 17:40:51 +01:00
Stefan Kangas
7d0d61d854 Rewrite ERT manual introduction
* doc/misc/ert.texi (Top): Rewrite for clarity.  Don't give such
prominent mention to to TDD or JUnit, references which now seem dated.
2025-03-09 19:38:54 +01:00
Harald Jörg
b2f124f2a8 ; cperl-mode.el: Don't misinterpret exec_fcn as keyword exec
* lisp/progmodes/cperl-mode.el
(cperl-after-block-and-statement-beg): Recognize _ as part of a
Perl symbol.  Fixes Bug#76851

* test/lisp/progmodes/cperl-mode-resources/cperl-indents.erts
Two new test cases around the edges of Bug#76851
2025-03-09 16:26:51 +01:00
Eli Zaretskii
59d1aac49d Document return values of the various read-* functions
* lisp/textmodes/string-edit.el (read-string-from-buffer):
* lisp/simple.el (read-from-kill-ring, read-shell-command)
(read-signal-name):
* lisp/replace.el (read-regexp-case-fold-search):
* lisp/auth-source.el (read-passwd):
* lisp/subr.el (read-key, read-number):
* lisp/minibuffer.el (read-file-name, read-no-blanks-input):
* lisp/international/mule-cmds.el (read-multilingual-string):
* lisp/language/japan-util.el (read-hiragana-string):
* lisp/files-x.el (read-file-local-variable)
(read-file-local-variable-mode, read-file-local-variable-value):
* lisp/faces.el (read-face-font, read-face-name):
* lisp/simple.el (read-extended-command):
* lisp/env.el (read-envvar-name):
* lisp/files.el (read-directory-name):
* lisp/faces.el (read-color):
* lisp/international/mule-diag.el (read-charset):
* lisp/emacs-lisp/map-ynp.el (read-answer):
* src/coding.c (Fread_coding_system)
(Fread_non_nil_coding_system):
* src/minibuf.c (Fread_command, Fread_from_minibuffer):
* src/lread.c (Fread_char, Fread_char_exclusive, Fread_event): Doc
fixes.
2025-03-09 15:02:39 +02:00
Ben Scuron
35c7837c66 Fix TAGS regeneration with Universal Ctags
* lisp/progmodes/etags-regen.el (etags-regen--append-tags): Move
the "-o" option to before the filename, as Ctags doesn't allow
it to follow the file name.  (Bug#76855)

Copyright-paperwork-exempt: yes
2025-03-09 08:19:01 +02:00
Eli Zaretskii
b1a9a4a48e Fix crash in daemon when "C-x C-c" while a client frame shows tooltip
* src/frame.c (delete_frame): Ignore tooltip frames when looking
for other frames on the same terminal.  (Bug#76842)

(cherry picked from commit d2445c8c23)
2025-03-08 11:35:02 +02:00
Stefan Kangas
af8017b23f Explicitly document read-string return value
* src/minibuf.c (Fread_string): Document return value explicitly.
Better document PROMPT argument, and reflow docstring.  (Bug#76797)
2025-03-07 18:13:52 +01:00
kobarity
cf03c2b609 Improve docstrings of python.el import management
Added notes that when adding import statements for a file that
does not belong to a project, it may take some time to find
candidate import statements in the default directory.

* lisp/progmodes/python.el (python-add-import)
(python-fix-imports): Improve docstring.  (Bug#74894)
2025-03-07 16:52:09 +02:00
Eli Zaretskii
01bcc6961a ; Improve doc strings of Speedbar
* lisp/speedbar.el (speedbar-extension-list-to-regex)
(speedbar-query-confirmation-method)
(speedbar-show-unknown-files, speedbar-use-imenu-flag)
(speedbar-track-mouse-flag, speedbar-default-position)
(speedbar-sort-tags, speedbar-directory-button-trim-method)
(speedbar-smart-directory-expand-flag)
(speedbar-hide-button-brackets-flag, speedbar-vc-do-check)
(speedbar-vc-indicator, speedbar-obj-do-check)
(speedbar-frame-mode, speedbar-handle-delete-frame)
(speedbar-show-info-under-mouse, speedbar-item-info)
(speedbar-item-rename, speedbar-item-delete)
(speedbar-initial-keymap, speedbar-insert-files-at-point)
(speedbar-generic-list-positioned-group-p)
(speedbar-generic-list-tag-p, speedbar-check-read-only)
(speedbar-tag-file, speedbar-tag-expand)
(speedbar-find-file-in-frame, speedbar-parse-tex-string)
(speedbar-buffer-click): Doc fixes.
2025-03-07 10:45:50 +02:00
Eli Zaretskii
bd9c76ab17 Avoid warnings about 'image-scaling-factor' in builds --without-x
* lisp/cus-start.el (standard): Exclude 'image-*' options if Emacs
was built without GUI support.  (Bug#76716)
2025-03-06 15:49:27 +02:00
Po Lu
c3c27e50a5 ; * java/AndroidManifest.xml.in (Version-code): Update for Emacs 30.0.50. 2025-03-06 21:41:10 +08:00
Eli Zaretskii
9065423e70 ; Improve documentation of 2 symbol-related functions
* src/data.c (Fremove_pos_from_symbol, Fbare_symbol): Doc fixes.
(Bug#75290)
2025-03-06 12:52:05 +02:00
Eli Zaretskii
41fd823d95 Fix etags tests broken by updating Copyright years
* test/manual/etags/ETAGS.good_1:
* test/manual/etags/ETAGS.good_2:
* test/manual/etags/ETAGS.good_3:
* test/manual/etags/ETAGS.good_4:
* test/manual/etags/ETAGS.good_5:
* test/manual/etags/ETAGS.good_6:
* test/manual/etags/CTAGS.good:
* test/manual/etags/CTAGS.good_crlf:
* test/manual/etags/CTAGS.good_update: Update.  (Bug#76744)
2025-03-06 05:08:00 -05:00
Mauro Aranda
93ac2cb742 Fix some widgets in customize-dirlocals
* lisp/cus-edit.el (custom-dynamic-cons-value-create): Make sure
to eval the keymap property.  (Bug#76756)
2025-03-06 05:45:50 -03:00
Thierry Volpiatto
42a4c847e2
Fix register-use-preview behavior with never value
Allow popping up preview when pressing C-h.

Don't exit the minibuffer when the call to
register-read-with-preview-fancy is triggered by C-h.

* lisp/register.el (register-read-with-preview-fancy): Do it.
2025-03-05 14:34:43 +01:00
Po Lu
121371a706 Move java/incrementing-version-code to AndroidManifest.xml.in
* admin/admin.el (admin-android-version-code-regexp): New
variable.
(set-version): Modify AndroidManifest.xml.in instead.

* java/AndroidManifest.xml.in (Version-code): Define version
code.

* java/incrementing-version-code: Delete file.
2025-03-05 14:59:19 +08:00
Peter Oliver
8099dc6e3a Provide an Android version code derived from the Emacs version
The version code is intended to be an integer that increments
for each Android package release
(https://developer.android.com/studio/publish/versioning#versioningsettings).

If we keep this updated under version control, then F-Droid (a
third-party Android package repository), can watch for that, and
use it to automatically build Emacs packages for Android each
time a new Emacs release is tagged
(https://f-droid.org/en/docs/Build_Metadata_Reference/#UpdateCheckData).

* admin/admin.el (set-version): Update version code in
java/incrementing-version-code
* java/incrementing-version-code: New file containing an Android
version code corresponding to the current Emacs version.
(bug#75809)
2025-03-05 14:58:18 +08:00
Eli Zaretskii
59fcb2aa1b ; * lisp/register.el (register-use-preview): Doc fix (bug#76739). 2025-03-04 17:23:16 +02:00
Eli Zaretskii
0383937a70 ; Improve documentation of 'shortdoc'
* lisp/emacs-lisp/shortdoc.el (shortdoc-display-group): Fix doc
string and wording of prompt.  (Bug#76723)
2025-03-04 16:01:32 +02:00
Vitaliy Chepelev
d6288eeb42 image-dired: Don't croak on file names with regexp characters
* lisp/image/image-dired-dired.el (image-dired-mark-tagged-files):
* lisp/image/image-dired-tags.el (image-dired-get-comment)
(image-dired-write-comments, image-dired-list-tags)
(image-dired-remove-tag, image-dired-write-tags): Quote file name
for search-forward-regexp.  (Bug#73445)

Copyright-paperwork-exempt: yes
(cherry picked from commit 7930fe2f44)
2025-03-04 10:58:41 +01:00
Po Lu
1b80bc67aa ; * doc/emacs/android.texi (Android Software): Minor markup nits. 2025-03-04 14:30:31 +08:00
Po Lu
dcfbf7d186 ; * etc/PROBLEMS: Document the same problem here. 2025-03-04 14:29:37 +08:00
Po Lu
b09bbf22af Document requirements respecting XDG MIME databases on Android
* doc/emacs/android.texi (Android Software): State that librsvg
requires a MIME database to display embedded images, and how to
acquire such a database.
2025-03-04 14:29:37 +08:00
Eshel Yaron
365a91622e
; (completion-preview--try-table): Propagate extra properties.
* lisp/completion-preview.el
(completion-preview--try-table): Let-bind
'completion-extra-properties' to completion properties
that the completion backend (capf) provides, so that these
properties take effect when querying the completion table.
* test/lisp/completion-preview-tests.el
(completion-preview-propagates-properties): Add test.
2025-03-02 08:14:35 +01:00
Pip Cet
828e08a996 Improve instructions for running with -fsanitize=address (bug#76393)
* etc/DEBUG (ASAN_OPTIONS): Add 'detect_stack_use_after_return=0'
requirement.  Remove obsolete unexec commentary.

(cherry picked from commit 1e84a87676)
2025-03-02 09:07:42 +02:00
Stefan Kangas
7dcf9b71e6 ; Don't document package-x.el
* doc/lispref/package.texi (Package Archives): Delete documentation on
package-x.el, since it's obsolete in Emacs 31 and we want to discourage
its use.
2025-03-02 05:09:37 +01:00
Stefan Kangas
a5fd518d52 ; Document spurious warnings on macOS 15
* etc/PROBLEMS: Document spurious warnings on macOS 15.  (Bug#73382)
2025-03-02 05:09:01 +01:00
Dmitry Gutov
625ed68aea Fix the use of xref-window-local-history together with Xref buffer
* lisp/progmodes/xref.el (xref--push-markers): Temporarily
restore the selected window as well, using the value from the
new argument (bug#76565).  Update both callers.
2025-03-02 05:22:56 +02:00
Dmitry Gutov
8091772767 completing-read-multiple: Fix support for ":" as separator
* lisp/emacs-lisp/crm.el (completing-read-multiple):
Do not search for separators inside the prompt (bug#76461).
2025-03-02 05:13:59 +02:00
Stefan Kangas
38cc36a375 ; Improve docstring of cl-check-type
* lisp/emacs-lisp/cl-macs.el (cl-check-type): Improve docstring.
2025-03-02 04:11:55 +01:00
Eli Zaretskii
0460177451 ; * lisp/progmodes/java-ts-mode.el (treesit-node-end): Declare. 2025-03-01 16:42:50 +02:00
Eli Zaretskii
8481170eb2 Fix 'M-q' in 'makefile-mode'
* lisp/progmodes/make-mode.el (makefile-mode-map): Bind 'M-q' to
'fill-paragraph', as 'prog-mode's default binding is not
appropriate for Makefile's syntax.  (Bug#76641)
2025-03-01 16:04:52 +02:00
Eli Zaretskii
44a770b871 ; Improve documentation of 'rmail-movemail-program'
* lisp/mail/rmail.el (rmail-movemail-program):
* doc/emacs/rmail.texi (Movemail): Document how to change the
value of 'rmail-movemail-program' safely.  (Bug#76595)
2025-03-01 15:45:57 +02:00
john muhl
3998dea566 ; Cleanup sexp things in 'lua-ts-mode'
* lisp/progmodes/lua-ts-mode.el (lua-ts-mode): Remove some
nonsensical entries from 'treesit-thing-settings'.
* test/lisp/progmodes/lua-ts-mode-resources/movement.erts:
Add missing tests for 'backward-sexp'.  (Bug#76534)
2025-03-01 14:59:56 +02:00
Randy Taylor
b531bbf73e Fix go-ts-mode const_spec highlighting (Bug#76330)
* lisp/progmodes/go-ts-mode.el (go-ts-mode--font-lock-settings):
Handle multiple const_spec identifiers.
* test/lisp/progmodes/go-ts-mode-resources/font-lock.go:
Add test case.
2025-03-01 14:12:30 +02:00
Eli Zaretskii
bd1d6761f4 ; Document what happens when 'display' and 'invisible' props clash
* doc/lispref/display.texi (Replacing Specs, Overlay Properties)
(Invisible Text): Document that 'invisible' is ignored when
'display' property covers the same text.  (Bug#76658)
2025-03-01 12:59:32 +02:00
Stefan Kangas
526eeedf88 keymaps.texi: Move "Changing Key Bindings" section up
* doc/lispref/keymaps.texi (Changing Key Bindings): Move section
up.  (Bug#52821)
2025-03-01 06:36:43 +01:00
Stefan Kangas
7ec6531c7b keymaps.texi: Move "Key Sequences" section down
* doc/lispref/keymaps.texi (Key Sequences): Move section
down.  (Bug#52821)
2025-03-01 06:36:43 +01:00
Stefan Kangas
8b80401127 Improve process-get/process-put docstrings
* lisp/subr.el (process-get, process-put): Explain the purpose of these
functions in the docstring.
2025-03-01 06:36:43 +01:00
Michael Albinus
73c646b777 Merge branch 'emacs-30' of git.sv.gnu.org:/srv/git/emacs into emacs-30 2025-02-28 18:04:35 +01:00
Michael Albinus
0af5c57499 Fix recent change in diff-no-select
* lisp/vc/diff.el (diff-no-select): Keep initial default directory
in *Diff* buffer.
2025-02-28 18:03:54 +01:00
Po Lu
c8cec840d7 Prevent rare freeze on Android 4.2 through 4.4
* src/android.c (android_run_select_thread, android_init_events)
(android_select): Enable self-pipes on all Android versions <= 21.
The Android C library provides a functioning pselect on these
systems, but it does not apply the signal mask atomically.
(android_run_select_thread): Correct typo.  This never produced
any adverse consequences, as the relevant signals would already
have been blocked by `setupSystemThread'.

Do not merge to master.
2025-02-28 22:40:14 +08:00
Michael Albinus
5247da2e3c * lisp/proced.el (proced-<): Check, that NUM1 and NUM2 are numbers.
(Bug#76549)
2025-02-28 15:32:35 +01:00
Eli Zaretskii
0d89aa6b6c ; * src/keymap.c: Fix last change (bug#75219).
(cherry picked from commit 412c1a4f0e)
2025-02-28 09:54:10 +02:00