Stefan Monnier [Thu, 25 Jul 2024 12:39:38 +0000 (08:39 -0400)]
lisp/minibuffer.el (completion--sifn-requote): Fix bug#72176
Stefan Kangas [Thu, 25 Jul 2024 10:06:21 +0000 (12:06 +0200)]
* admin/notes/spelling: Update note.
Konstantin Kharlamov [Tue, 25 Jun 2024 09:26:12 +0000 (12:26 +0300)]
Don't produce invalid XML with multi-line commenting style
Both XML and HTML forbid double hyphens inside comments. However,
nxml-mode was using a `!--' as a comment padding if `comment-style'
was set to any of the styles that supposed to add padding. This infix
was auto-derived due to `comment-continue' being nil. To fix that set
`comment-continue' explicitly. It's unclear what padding should be
used, but from looking at other editors it seems they don't typically
add padding in XML, so let's be simple for now and just set
`comment-continue' to empty string.
* lisp/nxml/nxml-mode.el (nxml-mode): Make 'comment-continue' a
buffer-local variable set to the empty string. (Bug#71772)
Eli Zaretskii [Thu, 25 Jul 2024 07:41:18 +0000 (10:41 +0300)]
; * etc/NEWS: Entry for 'gnus-summary-limit-to-age' (bug#72204).
Stefan Kangas [Thu, 25 Jul 2024 01:35:04 +0000 (03:35 +0200)]
Standardize possessive apostrophe usage in manuals, docs, and comments
See the note in admin/notes/documentation.
Ref: https://lists.gnu.org/r/emacs-devel/2012-02/msg00649.html
Stefan Kangas [Wed, 24 Jul 2024 21:46:02 +0000 (23:46 +0200)]
Don't refer to obsolete finder group "wp"
* lisp/textmodes/rst.el: Don't refer to obsolete finder group "wp".
Andrea Corallo [Wed, 24 Jul 2024 13:17:19 +0000 (15:17 +0200)]
Fix some function type declaration
* lisp/window.el (get-lru-window, get-largest-window): Fix
function type declaration.
* lisp/subr.el (error): Likewise.
Po Lu [Wed, 24 Jul 2024 12:06:15 +0000 (20:06 +0800)]
* src/image.c (gui_put_x_image): Avoid memory leak.
Eli Zaretskii [Wed, 24 Jul 2024 11:01:01 +0000 (14:01 +0300)]
; * doc/misc/use-package.texi (Getting Started): Fix wording.
Po Lu [Wed, 24 Jul 2024 03:59:53 +0000 (11:59 +0800)]
Adapt last change to non-NS systems
* src/image.c (xpm_load_image): Also check whether mask_img is
NULL.
Po Lu [Wed, 24 Jul 2024 03:57:28 +0000 (11:57 +0800)]
Fix NULL pointer dereferences in xpm_load_image
* src/image.c (x_destroy_x_image): Correct test condition.
(xpm_load_image): Do not release image data if it is still to be
created.
Po Lu [Wed, 24 Jul 2024 03:38:54 +0000 (11:38 +0800)]
Fix bug#72255
* src/image.c (struct image_type): Minor grammatical
corrections.
(image_destroy_x_image): [HAVE_NS]: Do not release
Emacs_Pix_Containers, which are identical to Emacs_Pixmaps and
consequently always released with the `struct image'.
(bug#72255)
Stefan Kangas [Tue, 23 Jul 2024 21:32:56 +0000 (23:32 +0200)]
Delete redundant "a.k.a." in use-package.texi
* doc/misc/use-package.texi (Getting Started): Delete redundant
acronym "a.k.a.". (Bug#66350)
Stefan Kangas [Tue, 23 Jul 2024 13:12:01 +0000 (15:12 +0200)]
Document (use-package 'emacs) declarations
* doc/misc/use-package.texi (The @code{emacs} package): New
node. (Bug#66350)
Robert Pluim [Tue, 23 Jul 2024 09:33:44 +0000 (11:33 +0200)]
Improve 'emacs-news-view-mode' menus and bindings
* lisp/textmodes/emacs-news-mode.el (emacs-news-mode-map): Move
non-editing commands from here...
(emacs-news-common-map): ... to here.
(emacs-news-view-mode): Remove hard-coded 'special-mode' bindings.
(emacs-news-view-mode-map): Inherit from 'special-mode-map' and
'emacs-news-common-map' here instead.
(emacs-news-mode--menu-common-1): New defconst for menu items common to
'news-mode' and 'news-view-mode'.
(emacs-news-mode--menu-common-2): Second new defconst for common items.
(emacs-news-mode-menu): Use them.
(emacs-news-view-mode-menu): New menu, which omits the buffer editing
commands.
This builds on the fix for Bug#72080.
Eli Zaretskii [Tue, 23 Jul 2024 11:07:30 +0000 (14:07 +0300)]
; * src/xdisp.c (Fformat_mode_line): Doc fix.
Gerd Möllmann [Tue, 23 Jul 2024 06:15:09 +0000 (08:15 +0200)]
Fix disappearing bar cursor on Hebrew text (bug#72230)
* src/nsterm.m (ns_draw_window_cursor): Compute the correct bar cursor
rectangle for R2L before setting the clipping.
Manuel Giraud [Mon, 22 Jul 2024 18:44:46 +0000 (20:44 +0200)]
Fix DocView with DVI files
* lisp/doc-view.el (doc-view-pdf/ps->png): Use
`doc-view-pdf->png-converter-function' for DVI files, too, since they
are converted to PDF earlier.
Stefan Kangas [Mon, 22 Jul 2024 16:04:30 +0000 (18:04 +0200)]
; Fix typo in use-package.texi
* doc/misc/use-package.texi (Getting Started): Fix typo.
Problem reported by GitHub user Paul Jensen (psnj) in:
https://github.com/jwiegley/use-package/pull/1070/
Alan Mackenzie [Mon, 22 Jul 2024 12:24:43 +0000 (12:24 +0000)]
FIx spurious fontification of variable in Java Mode
This fixes bug#72126.
* lisp/progmodes/cc-engine.el (c-forward-<>-arglist): Remove
tentative type identifier from c-record-type-identifiers should
it turn out not to be a type.
Stefan Kangas [Mon, 22 Jul 2024 08:14:25 +0000 (10:14 +0200)]
Correctly typeset nil and t in texinfo
* doc/emacs/package.texi (Fetching Package Sources):
* doc/lispref/display.texi (Image Descriptors):
* doc/lispref/windows.texi (Buffer Display Action Alists):
* doc/misc/gnus-faq.texi (FAQ 5-4): Correctly typeset nil and t.
Michael Albinus [Mon, 22 Jul 2024 07:56:52 +0000 (09:56 +0200)]
Fix Tramp IPv6 handling in tests
* lisp/net/tramp-gvfs.el (tramp-gvfs-maybe-open-connection):
* lisp/net/tramp-sh.el (tramp-maybe-open-connection): Improve message.
* lisp/net/tramp-integration.el (shortdoc): Add further examples of
`file-remote-p'.
* lisp/net/tramp.el (tramp-handle-file-remote-p): Extend docstring.
* test/lisp/net/tramp-tests.el (tramp-test02-file-name-dissect)
(tramp-test02-file-name-dissect-simplified)
(tramp-test02-file-name-dissect-separate): Extend tests.
(tramp-test06-directory-file-name)
(tramp-test26-file-name-completion)
(tramp-test26-interactive-file-name-completion): Better handling
of IPv6 hosts.
Kyle Meyer [Mon, 22 Jul 2024 03:01:45 +0000 (23:01 -0400)]
Update to Org 9.7.8-5-gfdf0e0
Yuan Fu [Mon, 22 Jul 2024 00:15:44 +0000 (17:15 -0700)]
Fix Ftreesit_parser_create
* src/treesit.c (Ftreesit_parser_create): Use the buffer given by the
caller rather than the current buffer.
Yuan Fu [Sun, 21 Jul 2024 23:50:59 +0000 (16:50 -0700)]
Fix segfault when deleting tree-sitter query (bug#72238)
* src/treesit.c (treesit_delete_query): Only delete query and cursor
when they are non-NULL.
Stefan Kangas [Sun, 21 Jul 2024 20:20:33 +0000 (22:20 +0200)]
Improve treesit-node-child-by-field-name docstring
* src/treesit.c (Ftreesit_node_child_by_field_name): Improve docstring.
Stefan Kangas [Sun, 21 Jul 2024 19:13:20 +0000 (21:13 +0200)]
Minor copyedits in tree-sitter starting guide
* admin/notes/tree-sitter/starter-guide: Minor copyedits.
Reflow some paragraphs.
Stefan Kangas [Sun, 21 Jul 2024 19:07:19 +0000 (21:07 +0200)]
Update tag for prebuilt tree-sitter grammars
* admin/notes/tree-sitter/starter-guide: Update tag for prebuilt
tree-sitter grammars to point to 2.4.
Stefan Kangas [Sun, 21 Jul 2024 15:46:12 +0000 (17:46 +0200)]
Fix punctuation and doc style in treesit.c
* src/treesit.c (Ftreesit_parser_included_ranges)
(Ftreesit_query_capture, treesit_traverse_sibling_helper)
(treesit_traverse_match_predicate): Fix punctiation and documentation
style in comments and docstrings.
Stefan Kangas [Sun, 21 Jul 2024 14:33:08 +0000 (16:33 +0200)]
; Fix punctuation in docs
Manuel Giraud [Fri, 19 Jul 2024 12:30:54 +0000 (14:30 +0200)]
Fix DocView with PostScript files
* lisp/doc-view.el (doc-view-set-up-single-converter): Produce PNG
from PS in a file with ".png" extension. (Bug#72193)
Liu Hui [Fri, 5 Jul 2024 09:50:08 +0000 (17:50 +0800)]
Fix bibtex validation for non-file buffers
* lisp/textmodes/bibtex.el (bibtex-validate): Use buffer name
to show errors in non-file buffers. (Bug#71946)
Eli Zaretskii [Sat, 20 Jul 2024 09:33:23 +0000 (12:33 +0300)]
Fix Imenu in 'emacs-news-view-mode'
* lisp/textmodes/emacs-news-mode.el (emacs-news-view-mode): Make
it derived from emacs-news-mode. Add useful key bindings.
(Bug#72080)
James Thomas [Tue, 16 Jul 2024 01:34:23 +0000 (07:04 +0530)]
; * doc/misc/gnus.texi (Agent Caveats): Fix doc
* doc/misc/gnus.texi (Agent Caveats): Change doc due to commit
2020-10-16 "Add a new variable to control Gnus Agent caching"
(
41d220dc6085, bug#43356). (Bug#72134)
Eli Zaretskii [Sat, 20 Jul 2024 07:27:52 +0000 (10:27 +0300)]
; * src/sqlite.c (Fsqlite_load_extension): Add "vec0" to allowed extensions.
Eli Zaretskii [Sat, 20 Jul 2024 05:58:39 +0000 (08:58 +0300)]
Avoid errors in 'icomplete-vertical-mode'
* lisp/minibuffer.el (completion--hilit-from-re): Avoid signaling
an error if STRING does not match REGEXP. Fix doc string and
indentation. (Bug#72176)
Stefan Kangas [Sat, 20 Jul 2024 05:46:37 +0000 (07:46 +0200)]
Document GNU ELPA copyright in tips.texi
* doc/lispref/tips.texi (Library Headers): Document that GNU ELPA
packages should have their copyright assigned to the FSF.
Stefan Kangas [Sat, 20 Jul 2024 00:37:38 +0000 (02:37 +0200)]
Improve register-use-preview docstring
* lisp/register.el (register-use-preview): Improve docstring.
Stefan Kangas [Sat, 20 Jul 2024 00:22:49 +0000 (02:22 +0200)]
Miscellaneous checkdoc fixes
* lisp/ansi-color.el (ansi-color--ensure-context):
* lisp/doc-view.el (doc-view-svg-face):
* lisp/external-completion.el (external-completion-table):
* lisp/ffap.el (ffap-ro-mode-hook, ffap-gnus-hook):
* lisp/find-file.el:
* lisp/flow-ctrl.el (flow-control-c-s-replacement)
(flow-control-c-q-replacement):
* lisp/forms.el (forms-multi-line):
* lisp/help.el (search-forward-help-for-help):
* lisp/hi-lock.el (hi-lock-use-overlays):
* lisp/image.el (find-image):
* lisp/isearch.el (isearch-forward, isearch-forward-regexp)
(isearch-lazy-count-format):
* lisp/jsonrpc.el (jsonrpc--continue, initialize-instance):
* lisp/mouse-copy.el (mouse-kill-preserving-secondary):
* lisp/pixel-scroll.el (pixel-bob-at-top-p)
(pixel-scroll-down-and-set-window-vscroll):
* lisp/printing.el (pr-gv-command, pr-gs-command)
(pr-gs-switches):
* lisp/register.el (register-use-preview):
* lisp/repeat.el (repeat-check-key):
* lisp/saveplace.el (save-place-abbreviate-file-names):
* lisp/select.el (gui--clipboard-selection-unchanged-p):
* lisp/ses.el (ses-header-row):
* lisp/simple.el (transpose-sexps-default-function)
(normal-erase-is-backspace, normal-erase-is-backspace-mode):
* lisp/sqlite-mode.el (sqlite-mode):
* lisp/tempo.el (tempo-insert-region):
* lisp/term.el (term-mode-map, term-mode, term-char-mode):
Checkdoc fixes.
Stefan Monnier [Fri, 19 Jul 2024 18:18:29 +0000 (14:18 -0400)]
* lisp/progmodes/peg.el (peg-syntax-classes): Typo (bug#72131)
Jonas Bernoulli [Fri, 19 Jul 2024 17:10:30 +0000 (19:10 +0200)]
* lisp/transient.el (static-if): Remove duplicated definition.
(Bug#72182)
This should have been removed when the standalone version was merged
into Emacs.
Michael Albinus [Fri, 19 Jul 2024 16:29:49 +0000 (18:29 +0200)]
Adapt file-remote-p doc
* doc/lispref/files.texi (Magic File Names): Adapt file-remote-p.
* lisp/files.el (file-remote-p): Adapt docstring.
Stefan Kangas [Fri, 19 Jul 2024 08:13:04 +0000 (10:13 +0200)]
; Fix typo in etc/ORG-NEWS (Bug#72186)
Stefan Kangas [Thu, 18 Jul 2024 09:46:56 +0000 (11:46 +0200)]
* etc/TODO: Delete item about merging Magit.
Change requested by Jonas Bernoulli <jonas@bernoul.li>.
Stefan Kangas [Sun, 7 Jul 2024 15:40:31 +0000 (17:40 +0200)]
; Fix typos
Stefan Kangas [Thu, 18 Jul 2024 08:42:59 +0000 (10:42 +0200)]
* doc/man/emacs.1.in: Add "No warranty" notice.
Stefan Kangas [Thu, 18 Jul 2024 08:36:01 +0000 (10:36 +0200)]
; * doc/man/emacs.1.in: Improve wording.
Stefan Kangas [Thu, 18 Jul 2024 07:54:44 +0000 (09:54 +0200)]
Improve emacs man page description of --user flag
* doc/man/emacs.1.in: Improve --user flag description.
(Bug#72169)
Stefan Kangas [Thu, 18 Jul 2024 07:48:53 +0000 (09:48 +0200)]
Checkdoc fixes in allout-widgets.el
* lisp/allout-widgets.el (allout-widgets-setup)
(allout-widgets-tally-string, allout-widgets-mode-inhibit):
(allout-widgets-hook-error-handler): Checkdoc fixes.
Stefan Kangas [Thu, 18 Jul 2024 07:47:19 +0000 (09:47 +0200)]
Checkdoc fixes in subr.el
* lisp/subr.el (ctl-x-4-map, ctl-x-map)
(touch-screen-events-received): Checkdoc fixes.
Stefan Kangas [Thu, 18 Jul 2024 07:44:28 +0000 (09:44 +0200)]
Checkdoc fixes in touch-screen.el
* lisp/touch-screen.el (touch-screen-handle-touch): Checkdoc fixes.
Stefan Kangas [Thu, 18 Jul 2024 07:43:55 +0000 (09:43 +0200)]
Checkdoc fixes in treesit.el
* lisp/treesit.el (treesit-add-font-lock-rules)
(treesit--font-lock-mark-ranges-to-fontify): Checkdoc fixes.
Stefan Kangas [Thu, 18 Jul 2024 07:34:22 +0000 (09:34 +0200)]
Avoid overflow in pgtk_is_numeric_char
* src/pgtkfns.c (parse_resource_key): Avoid overflow by making array
larger, if a key is RESOURCE_KEY_MAX_LEN long. Do not merge to master,
since it's fixed in a different way there.
Po Lu [Thu, 18 Jul 2024 05:35:47 +0000 (13:35 +0800)]
; * src/emacs.c (syms_of_emacs) <Vsystem_type>: Fix doc string indentation.
Po Lu [Tue, 16 Jul 2024 02:14:30 +0000 (10:14 +0800)]
Port better to Android 3.0
* java/org/gnu/emacs/EmacsNoninteractive.java (main): Use the
old getPackageInfo calling convention if it exists rather than
on Android 2.3.3 and earlier.
john muhl [Wed, 17 Jul 2024 20:48:37 +0000 (15:48 -0500)]
; * doc/emacs/anti.texi (Antinews): Fix typos (bug#72167).
john muhl [Mon, 15 Jul 2024 20:08:41 +0000 (15:08 -0500)]
; Fix typos (bug#72167)
* lisp/minibuffer.el (completion-auto-deselect): Correct
spelling of "minibuffer".
* lisp/progmodes/peg.el (peg--actions): Correct spelling
of "post-processing".
* lisp/progmodes/php-ts-mode.el: Correct spelling of
"taken".
Michael Albinus [Wed, 17 Jul 2024 16:05:02 +0000 (18:05 +0200)]
New Tramp tests
* test/lisp/net/tramp-tests.el
(tramp-test41-special-characters-direct-async)
(tramp-test42-utf8-direct-async): New tests.
Michael Albinus [Wed, 17 Jul 2024 15:57:20 +0000 (17:57 +0200)]
Update Tramp manual
* doc/misc/tramp.texi (Remote processes): Add another reason why a
direct asynchronous process could fail.
Eli Zaretskii [Wed, 17 Jul 2024 11:10:50 +0000 (14:10 +0300)]
; Fix last change
* doc/lispref/windows.texi (Dedicated Windows):
* doc/emacs/windows.texi (Displaying Buffers): Mention keybinding.
Robert Pluim [Wed, 17 Jul 2024 07:38:43 +0000 (09:38 +0200)]
Fix 'toggle-window-dedicated' documentation
* doc/emacs/windows.texi (Displaying Buffers): Fix the cross reference
to the elisp manual. Add missing 'toggle-window-dedicated'.
* doc/lispref/windows.texi (Dedicated Windows): Mention
'toggle-window-dedicated'.
Eli Zaretskii [Tue, 16 Jul 2024 14:35:42 +0000 (17:35 +0300)]
; * doc/lispref/help.texi (Keys in Documentation): Add cross-reference.
Stefan Kangas [Tue, 16 Jul 2024 01:35:59 +0000 (03:35 +0200)]
Checkdoc fixes in transient.el
* lisp/transient.el (transient-format-description): Checkdoc fixes.
Peter Oliver [Mon, 15 Jul 2024 11:03:47 +0000 (12:03 +0100)]
Fix intermittent failure of dired-test-bug27243-02
* test/lisp/dired-tests.el (dired-test-bug27243-02): Exclude free disk
space from dired listing in this test, in case it changes while it's
running and confuses the result. (Bug#72120)
Stefan Kangas [Mon, 15 Jul 2024 20:59:50 +0000 (22:59 +0200)]
* etc/TODO: Refer to Bug#72127 for Magit assignments.
Michael Albinus [Mon, 15 Jul 2024 17:25:42 +0000 (19:25 +0200)]
Rename treesitter test
* test/lisp/align-tests.el (align-ts-lua): Rename test in order to
fit to treesitter tests on EMBA.
Michael Albinus [Mon, 15 Jul 2024 17:24:56 +0000 (19:24 +0200)]
Adapt tressitter tests on EMBA
* test/infra/Makefile.in (TREE-SITTER-FILES): Simplify.
* test/infra/test-jobs.yml: Regenerate.
Jim Porter [Sun, 14 Jul 2024 22:07:28 +0000 (15:07 -0700)]
Support passing signals like 'SIGCODE' to 'tramp-signal-process'
POSIX specifies that "kill" should take signal names without the "SIG"
prefix.
* lisp/net/tramp.el (tramp-signal-process): Strip the "SIG" prefix when
present.
Michael Albinus [Mon, 15 Jul 2024 16:20:59 +0000 (18:20 +0200)]
Merge branch 'emacs-30' of git.sv.gnu.org:/srv/git/emacs into emacs-30
Steven Allen [Mon, 15 Jul 2024 16:20:24 +0000 (18:20 +0200)]
; Replace quotes with @code{...} in texinfo files
* doc/misc/cc-mode.texi:
* doc/misc/cl.texi: Replace quotes with @code{...}
Steven Allen [Mon, 15 Jul 2024 16:16:41 +0000 (18:16 +0200)]
; Replace (non-)nil with (non-)@code{nil} in texinfo files
* doc/lispref/functions.texi:
* doc/lispref/keymaps.texi:
* doc/lispref/strings.texi:
* doc/misc/cl.texi:
* doc/misc/dbus.texi:
* doc/misc/eshell.texi:
* doc/misc/message.texi:
* doc/misc/ses.texi:
* doc/misc/vtable.texi: Replace (non-)nil with (non-)@code{nil}.
Jim Porter [Sat, 13 Jul 2024 18:43:42 +0000 (11:43 -0700)]
Don't save to history from 'eshell-command' when aborting
* lisp/eshell/eshell.el (eshell-add-input-to-history)
(eshell--save-history): Declare.
(eshell-command-mode-exit): New function...
(eshell-command-mode): ... use it.
* lisp/eshell/em-hist.el (eshell-hist-initialize): Don't handle
minibuffer logic here. Always read history file (this ensures that
'eshell-command' can see the history, too).
(eshell-add-command-to-history): Remove.
Kyle Meyer [Sun, 14 Jul 2024 16:30:50 +0000 (12:30 -0400)]
Update to Org 9.7.7-2-gf308d3
Eli Zaretskii [Sun, 14 Jul 2024 06:06:55 +0000 (09:06 +0300)]
Fix decoding 'display' properties with SVG images in Enriched mode
* lisp/textmodes/enriched.el (enriched-next-annotation): Reject
matches of 'enriched-annotation-regexp' inside strings. Reported
by Christopher Howard <christopher@librehacker.com> in
https://lists.gnu.org/archive/html/help-gnu-emacs/2024-06/msg00178.html.
Pip Cet [Sun, 14 Jul 2024 05:41:17 +0000 (05:41 +0000)]
* configure.ac (D8): Fix typo.
Po Lu [Sun, 14 Jul 2024 04:51:48 +0000 (12:51 +0800)]
; * src/android.c (setEmacsParams): Delete unused variable.
Po Lu [Sun, 14 Jul 2024 04:46:23 +0000 (12:46 +0800)]
Do not set LD_LIBRARY_PATH during Android initialization
* doc/emacs/android.texi (Android Environment): Adjust
documentation to match.
* java/org/gnu/emacs/EmacsNoninteractive.java (main1): New
function. Remove initialization of EmacsNative hither.
(main): Acquire an ApplicationInfo or LoadedApk, as the case may
be on the host system, derive a ClassLoader from the result, and
load and call `main1' from within this class loader.
* src/android-emacs.c (main):
* src/android.c (setEmacsParams): Do not override
LD_LIBRARY_PATH or set EMACS_LD_LIBRARY_PATH. This enables
Emacs to execute subprocesses in certain "fortified" Android
systems, amongst other things.
Jonas Bernoulli [Sat, 13 Jul 2024 19:59:20 +0000 (21:59 +0200)]
; Set Transient's version
john muhl [Wed, 10 Jul 2024 22:13:58 +0000 (17:13 -0500)]
; Fix typos in 'which-key-mode' (bug#72093)
* lisp/which-key.el (which-key-preserve-window-configuration):
Correct spelling of "taken".
(which-key--create-pages): Correct spelling of "widths".
(which-key--start-paging-timer): Correct spelling of
"secondary".
Raffael Stocker [Sat, 13 Jul 2024 11:26:23 +0000 (13:26 +0200)]
; * src/w32fns.c (Fw32_notification_close): Fix typo (bug#72091).
Eli Zaretskii [Sat, 13 Jul 2024 12:06:43 +0000 (15:06 +0300)]
* test/lisp/wdired-tests.el (wdired-test-bug34915): Fix for MS-Windows.
Peter Oliver [Fri, 12 Jul 2024 09:52:23 +0000 (10:52 +0100)]
Fix 'wdired-test-unfinished-edit-01'
* test/lisp/wdired-tests.el (wdired-test-unfinished-edit-01):
Don't modify the random directory name if, by chance, it happens
to contain the substring "foo" anywhere but immediately after the
slash. (Bug#72073)
Eli Zaretskii [Sat, 13 Jul 2024 10:22:01 +0000 (13:22 +0300)]
; * src/search.c (Fre_search_forward): Clarify doc string (bug#71879).
Vincenzo Pupillo [Mon, 1 Jul 2024 09:52:18 +0000 (11:52 +0200)]
Fontify destructor in c++-ts-mode
* lisp/progmodes/c-ts-mode.el (c-ts-mode--font-lock-settings):
Add a rule for destructors. (Bug#71872)
F. Jason Park [Fri, 12 Jul 2024 21:41:54 +0000 (14:41 -0700)]
Fix invalid defcustom type for erc-buffers option
* lisp/erc/erc.el (erc-ensure-target-buffer-on-privmsg): Change
invalid inner `choice' to a `const' for the third-state `status'
variant, which is new in ERC 5.6 and Emacs 30. Thanks to Mattias
Engdegård for catching this.
Eshel Yaron [Sat, 6 Jul 2024 18:53:06 +0000 (20:53 +0200)]
; Fix 'ibuffer-do-isearch{-regexp}'
* lisp/ibuf-ext.el (ibuffer-do-isearch)
(ibuffer-do-isearch-regexp): Use 'defun' instead of
'define-ibuffer-op'. (Bug#71927)
Eli Zaretskii [Fri, 12 Jul 2024 06:58:53 +0000 (09:58 +0300)]
Fix infloop in 'shell-resync-dirs'
* lisp/shell.el (shell-eval-command): Fix detection of newline
after last output line. (Bug#71896)
(shell-resync-dirs): Make sure the inner loop never infloops.
Suggested by Troy Hinckley <troyhinckley@dabrev.com>.
Eli Zaretskii [Fri, 12 Jul 2024 06:39:39 +0000 (09:39 +0300)]
; * src/image.c (free_image_cache): Add assertion. (Bug#71929)
Po Lu [Fri, 12 Jul 2024 06:31:33 +0000 (14:31 +0800)]
Render more Android functions safe to execute in a batch session
* src/androidfns.c (Fx_display_mm_width, Fx_display_mm_height)
(Fandroid_display_monitor_attributes_list)
(Fandroid_external_storage_available_p)
(Fandroid_request_storage_access): Verify that a display
connection or service object is available.
* src/androidselect.c (Fandroid_get_clipboard)
(Fandroid_browse_url_internal, Fandroid_get_clipboard_targets)
(Fandroid_get_clipboard_data, Fandroid_notifications_notify):
Moderate tone of error messages.
Po Lu [Fri, 12 Jul 2024 03:59:09 +0000 (11:59 +0800)]
Document means of executing Emacs from unrelated Android applications
* doc/emacs/android.texi (Android Environment): Document
significance, effect and purpose of EMACS_CLASS_PATH and
EMACS_LD_LIBRARY_PATH, and the utility of `pm path
org.gnu.emacs'.
Jim Porter [Tue, 9 Jul 2024 17:45:35 +0000 (10:45 -0700)]
Don't emit a prompt in Eshell when a background command is killed
* lisp/eshell/esh-cmd.el (eshell-resume-command): Check for
background-ness before resetting the prompt.
* test/lisp/eshell/esh-cmd-tests.el
(esh-cmd-test/background/simple-command): Make the regexp a bit
stricter.
(esh-cmd-test/background/kill): New test.
Daniel Martín [Wed, 10 Jul 2024 23:22:04 +0000 (01:22 +0200)]
Fix reference from buffer-stale-function docstring
* lisp/files.el (buffer-stale-function): Fix reference to a
non-existent Info node in doc string. (Bug#72049)
Po Lu [Thu, 11 Jul 2024 03:38:41 +0000 (11:38 +0800)]
Take precautions against ill-formed content URIs
* java/org/gnu/emacs/EmacsService.java (openContentUri)
(checkContentUri): Verify that URIs derived from user-provided
file names can be parsed before attempting to open them.
Dmitry Gutov [Thu, 11 Jul 2024 00:49:06 +0000 (03:49 +0300)]
etags-regen-mode: Handle TAGS buffer being killed
* lisp/progmodes/etags-regen.el (etags-regen--visit-table):
Use kill-buffer-hook to ensure a refresh if the TAGS buffer is
killed manually (bug#71727).
(etags-regen--tags-cleanup):
Bind the hook var to nil to avoid an infloop.
F. Jason Park [Wed, 10 Jul 2024 22:36:38 +0000 (15:36 -0700)]
; Tag ERC multiline blanks test as :expensive
* test/lisp/erc/erc-tests.el
(erc--check-prompt-input-for-multiline-blanks): Move message-capturing
business outside of primary fixture. Extend subprocess sleep duration
to 5m. Delete some unreachable code. (Bug#72004)
Robert Pluim [Tue, 9 Jul 2024 15:14:45 +0000 (17:14 +0200)]
Improve 'put-image' documentation
* doc/lispref/display.texi (Showing Images): Mention that it returns the
created overlay.
* lisp/image.el (put-image): And here.
Robert Pluim [Fri, 19 Apr 2024 13:16:34 +0000 (15:16 +0200)]
Improve 'set-fontset-font' documentation
* doc/emacs/mule.texi (Modifying Fontsets): Add an 'emoji' example.
Michael Albinus [Wed, 10 Jul 2024 09:58:22 +0000 (11:58 +0200)]
Adapt Tramp's "run0" method
* doc/misc/tramp.texi (Inline methods):
* etc/NEWS: Adapt "run0" entry.
* lisp/net/tramp-sh.el (tramp-enable-run0-method): Adapt "run0"
arguments.
Andrea Corallo [Tue, 9 Jul 2024 19:17:48 +0000 (21:17 +0200)]
* test/src/sqlite-tests.el (sqlite-execute-batch): Declare to wave warning.
Stefan Kangas [Tue, 9 Jul 2024 22:26:22 +0000 (00:26 +0200)]
Capitalize "Dired" and "Lisp" in docstrings
* lisp/desktop.el (desktop-no-desktop-file-hook):
* lisp/dired-x.el (dired-mark-sexp):
* lisp/dired.el (dired-make-directory-clickable)
(dired-map-over-marks, dired-file-name-at-point)
(dired-save-positions, dired-buffers-for-dir)
(dired-buffers-for-dir-or-subdir, dired-fun-in-all-buffers)
(dired-remove-entry, dired-delete-entry, dired-jump):
* lisp/files.el (save-buffer):
* lisp/find-dired.el (find-ls-option):
* lisp/hilit-chg.el:
* lisp/locate.el (locate-mode):
* lisp/msb.el (msb-dired-item-handler, msb-sort-by-directory):
* lisp/printing.el (pr-ps-printer-alist, pr-ps-utility-alist):
* lisp/uniquify.el (uniquify-trailing-separator-p):
* lisp/wdired.el (wdired, wdired-change-to-dired-mode, wdired-exit):
* lisp/woman.el (woman-dired-define-keys, woman-dired-find-file):
Capitalize "Dired" and "Lisp" in docstrings. Found with checkdoc.