emacs.git
16 months agoSupport minibuffer-visible-completions in completing-read-multiple
Spencer Baugh [Wed, 7 Aug 2024 15:18:02 +0000 (11:18 -0400)]
Support minibuffer-visible-completions in completing-read-multiple

All that's required is to add minibuffer-visible-completions-map on
top of the completing-read-multiple map; this is the same thing that
minibuffer-visible-completions does in completing-read-default.

* lisp/emacs-lisp/crm.el (completing-read-multiple): Add
minibuffer-visible-completions-map (bug#69189)

16 months ago* lisp/imenu.el (imenu-flatten): Fix doc about annotation/group limitations.
Juri Linkov [Wed, 7 Aug 2024 16:44:43 +0000 (19:44 +0300)]
* lisp/imenu.el (imenu-flatten): Fix doc about annotation/group limitations.

16 months agoFix cmake-ts-mode number fontification (Bug#72228)
Randy Taylor [Wed, 7 Aug 2024 00:10:52 +0000 (20:10 -0400)]
Fix cmake-ts-mode number fontification (Bug#72228)

* lisp/progmodes/cmake-ts-mode.el (cmake-ts-mode--constants):
Remove "1" and "0".
(cmake-ts-mode--font-lock-settings): Match negative numbers.

16 months ago; Minor fix in c-ts-common--fill-block-comment
Yuan Fu [Wed, 7 Aug 2024 04:58:04 +0000 (21:58 -0700)]
; Minor fix in c-ts-common--fill-block-comment

* lisp/progmodes/c-ts-common.el:
(c-ts-common--fill-block-comment): Checking for end-mask done is
equivalent to checking end-marker, so the original code doesn't have a
bug.

16 months agoPrevent accesses to /content files without a GUI connection
Po Lu [Wed, 7 Aug 2024 01:17:57 +0000 (09:17 +0800)]
Prevent accesses to /content files without a GUI connection

* src/androidvfs.c (android_content_name): Hide all
subdirectories when `android_init_gui' is not set.

16 months ago* lisp/net/tramp-integration.el (shortdoc): Use `tramp--with-startup'.
Michael Albinus [Tue, 6 Aug 2024 18:25:20 +0000 (20:25 +0200)]
* lisp/net/tramp-integration.el (shortdoc): Use `tramp--with-startup'.

16 months agoMerge branch 'emacs-30' of git.savannah.gnu.org:/srv/git/emacs into emacs-30
Eli Zaretskii [Tue, 6 Aug 2024 18:20:52 +0000 (21:20 +0300)]
Merge branch 'emacs-30' of git.savannah.gnu.org:/srv/git/emacs into emacs-30

16 months agoAvoid crashes in very large buffers with long lines
Eli Zaretskii [Tue, 6 Aug 2024 18:19:49 +0000 (21:19 +0300)]
Avoid crashes in very large buffers with long lines

* src/xdisp.c (get_large_narrowing_begv, get_large_narrowing_zv)
(get_medium_narrowing_begv, get_medium_narrowing_zv): Use
'ptrdiff_t' instead of 'int', to prevent integer overflow in
large buffers.  (Bug#72497)

16 months agoUpdate description of string comparison functions
Ulrich Müller [Tue, 6 Aug 2024 16:04:46 +0000 (18:04 +0200)]
Update description of string comparison functions

* doc/lispref/strings.texi (Text Comparison): Swap descriptions of
'string-equal' (the function) and 'string=' (its alias).  Same for
'string-lessp' and 'string<'.  Document 'string>'.  (Bug#72486)
* doc/lispref/sequences.texi (Sequence Functions): Update cross
reference to 'string-lessp'.

16 months agoAdd sanity check when adding Tramp functions to shortdoc
Michael Albinus [Mon, 5 Aug 2024 18:19:30 +0000 (20:19 +0200)]
Add sanity check when adding Tramp functions to shortdoc

* lisp/net/tramp-integration.el (shortdoc): Check, that Tramp
isn't disabled.

16 months ago; * lisp/erc/erc-fill.el (erc-fill-wrap-mode): Doc fix.
F. Jason Park [Mon, 5 Aug 2024 05:26:11 +0000 (22:26 -0700)]
; * lisp/erc/erc-fill.el (erc-fill-wrap-mode): Doc fix.

16 months agojs-ts-mode: Make jsdoc's "description" block a comment (bug#72461)
Damien Cassou [Sun, 21 Jul 2024 19:32:34 +0000 (21:32 +0200)]
js-ts-mode: Make jsdoc's "description" block a comment (bug#72461)

* lisp/progmodes/js.el (js-ts-mode): Add "description" to
`c-ts-common--comment-regexp'.

16 months agoAlso condition cjk-misc font-spec on Android
Po Lu [Mon, 5 Aug 2024 01:34:11 +0000 (09:34 +0800)]
Also condition cjk-misc font-spec on Android

* lisp/international/fontset.el (setup-default-fontset)
<cjk-misc>: Don't search for matching scripts elsewhere than on
Android.

16 months ago; * etc/PROBLEMS: How to install sources on SUSE Linux (bug#72465).
Björn Bidar [Sun, 4 Aug 2024 13:09:36 +0000 (16:09 +0300)]
; * etc/PROBLEMS: How to install sources on SUSE Linux (bug#72465).

16 months ago; * src/lread.c (Fload): Add comment. (Bug#72433)
Eli Zaretskii [Sun, 4 Aug 2024 08:58:00 +0000 (11:58 +0300)]
; * src/lread.c (Fload): Add comment.  (Bug#72433)

16 months agoFix ':defer nil' in 'use-package'
Eli Zaretskii [Sun, 4 Aug 2024 08:52:12 +0000 (11:52 +0300)]
Fix ':defer nil' in 'use-package'

* lisp/use-package/use-package-core.el
(use-package-normalize-keywords): Use 'plist-get' instead of
'plist-member'.  (Bug#72414)

16 months agoDocument unsupported color Emoji on OpenBSD
Manuel Giraud [Thu, 25 Jul 2024 11:57:59 +0000 (13:57 +0200)]
Document unsupported color Emoji on OpenBSD

Bug#72268

* etc/PROBLEMS (Runtime problems related to font handling):
Document unsupported color Emoji on OpenBSD.

16 months agoFix regressions in Customize caused by 'widget-unselected' face
Stephen Berman [Thu, 1 Aug 2024 17:28:04 +0000 (19:28 +0200)]
Fix regressions in Customize caused by 'widget-unselected' face

* lisp/wid-edit.el (widget-checklist-add-item): Don't call
'widget-specify-selected'.  (Bug#72404)  (Bug#72156)

16 months agoAvoid inserting extra space in SVG data
David Ponce [Fri, 19 Jul 2024 14:10:00 +0000 (16:10 +0200)]
Avoid inserting extra space in SVG data

* lisp/svg.el (svg-print): Remove useless extra space from
the XML representation of child node.  (Bug#72198)

16 months agoFix c-ts-common filling function (bug#71760)
Damien Cassou [Sun, 21 Jul 2024 19:33:59 +0000 (21:33 +0200)]
Fix c-ts-common filling function (bug#71760)

* lisp/progmodes/c-ts-common.el (c-ts-common--fill-block-comment): If
masking hasn't been done, don't unmask.

16 months agoFix missing type checks before specbind
Mattias Engdegård [Sat, 3 Aug 2024 17:08:39 +0000 (19:08 +0200)]
Fix missing type checks before specbind

This fixes bugs that crashed Emacs when the Lisp interpreter was fed
bad code.

* src/eval.c (FletX, Flet, internal_lisp_condition_case)
(funcall_lambda): Hoist symbol-with-pos elimination and type checks to a
dominating position for efficiency.  This also plugs at least two typing
holes. (Mea culpa.)
* test/src/eval-tests.el (eval-bad-specbind): New regression test.

16 months agoRevert "Remove redundant byte-swapping boundary"
Po Lu [Sat, 3 Aug 2024 09:34:18 +0000 (17:34 +0800)]
Revert "Remove redundant byte-swapping boundary"

This reverts commit daefd6771a4879bb8e71ea67f69522700155df01.

* src/sfnt.c (sfnt_read_OS_2_table): Restore realignment after
s_family_class, as it occupies byte 32, not 34.  Reported by Pip
Cet <pipcet@protonmail.com>.

16 months agoFix various typos reported by Pip Cet
Po Lu [Sat, 3 Aug 2024 08:46:47 +0000 (16:46 +0800)]
Fix various typos reported by Pip Cet

* src/ftfont.c (get_adstyle_property):

* src/sfntfont.c (sfntfont_list_1): Correct typos.  Reported by
Pip Cet <pipcet@protonmail.com>.

16 months agoNS: Fix placement of candidate window (bug#72422)
Gerd Möllmann [Sat, 3 Aug 2024 08:29:24 +0000 (10:29 +0200)]
NS: Fix placement of candidate window (bug#72422)

* src/nsterm.m ([EmacsView firstRectForCharacterRange:actualRange:]):
Call method of NSTextInput.

16 months ago; * lisp/touch-screen.el: Correct commentary.
Po Lu [Sat, 3 Aug 2024 00:14:52 +0000 (08:14 +0800)]
; * lisp/touch-screen.el: Correct commentary.

16 months ago; * lisp/treesit.el (treesit-ready-p): Fix typo (bug#72411).
Eli Zaretskii [Thu, 1 Aug 2024 15:25:15 +0000 (18:25 +0300)]
; * lisp/treesit.el (treesit-ready-p): Fix typo (bug#72411).

16 months agoAvoid aborts when buffer is modified during its redisplay
Eli Zaretskii [Thu, 1 Aug 2024 11:01:17 +0000 (14:01 +0300)]
Avoid aborts when buffer is modified during its redisplay

* src/xdisp.c (redisplay_window): Restore point from saved byte
position only if the buffer was not changed meanwhile.
(Bug#72165)

16 months agoFix c++-ts-mode indentation for templace (bug#72263)
Yuan Fu [Thu, 1 Aug 2024 06:45:26 +0000 (23:45 -0700)]
Fix c++-ts-mode indentation for templace (bug#72263)

* lisp/progmodes/c-ts-mode.el:
(c-ts-mode--indent-styles): Add rule for template.
* test/lisp/progmodes/c-ts-mode-resources/indent.erts: Add test.

16 months agoBetter resolve bug#72188
Po Lu [Thu, 1 Aug 2024 00:23:36 +0000 (08:23 +0800)]
Better resolve bug#72188

* lisp/international/fontset.el (setup-default-fontset) <han>:
Don't search for fonts matching the `han' script elsewhere than
on Android, which restores the status quo existing in Emacs 29.
(bug#72188)

16 months agoMacOS: Let EmacsView implement NSTextInputClient
Gerd Möllmann [Tue, 30 Jul 2024 05:47:44 +0000 (07:47 +0200)]
MacOS: Let EmacsView implement NSTextInputClient

* src/nsterm.h (@interface EmacsView): Implement NSTextInputClient protocol.
* src/nsterm.m: Implement required NSTextInputClient methods, forwarding
to existing NSTextInput methods.

16 months agoNS: Set frame position when entering/exiting fullscreen (bug#71912)
Gerd Möllmann [Thu, 25 Jul 2024 07:20:04 +0000 (09:20 +0200)]
NS: Set frame position when entering/exiting fullscreen (bug#71912)

* src/nsterm.h ([EmacsView adjustEmacsRectRect]): Declare.
* src/nsterm.m ([EmacsView windowDidEnterFullScreen]): New method.
([EmacsView windowDidEnterFullScreen]): Call it.
([EmacsView windowDidExitFullScreen]): Call it.

16 months agoMerge branch 'emacs-30' of git.savannah.gnu.org:/srv/git/emacs into emacs-30
Eli Zaretskii [Mon, 29 Jul 2024 18:52:05 +0000 (21:52 +0300)]
Merge branch 'emacs-30' of git.savannah.gnu.org:/srv/git/emacs into emacs-30

16 months ago* lisp/tab-bar.el (tab-bar-move-tab-to-group): Fix for a new group's tab.
Juri Linkov [Mon, 29 Jul 2024 18:16:16 +0000 (21:16 +0300)]
* lisp/tab-bar.el (tab-bar-move-tab-to-group): Fix for a new group's tab.

Move tab with a new group to the end of the tab bar (bug#72352)
Suggested by Ship Mints <shipmints@gmail.com>

16 months agoMerge branch 'emacs-30' of git.savannah.gnu.org:/srv/git/emacs into emacs-30
Eli Zaretskii [Mon, 29 Jul 2024 10:57:01 +0000 (13:57 +0300)]
Merge branch 'emacs-30' of git.savannah.gnu.org:/srv/git/emacs into emacs-30

16 months agoFix sporadic crashes and `select' failures in dumped images
Po Lu [Mon, 29 Jul 2024 02:37:16 +0000 (10:37 +0800)]
Fix sporadic crashes and `select' failures in dumped images

* src/process.c (init_process_emacs) [HAVE_UNEXEC]: Clear
dumped values of child_signal_read_fd and child_signal_write_fd.

16 months agoCorrect display of Doc View documents after tab switching
Po Lu [Mon, 29 Jul 2024 01:19:48 +0000 (09:19 +0800)]
Correct display of Doc View documents after tab switching

* lisp/doc-view.el (doc-view-new-window-function): Prevent
creation of duplicate overlays for the same window after a
window configuration change occasions a call to i-m-r-winprops.

16 months agoMerge branch 'emacs-30' of git.savannah.gnu.org:/srv/git/emacs into emacs-30
Eli Zaretskii [Sun, 28 Jul 2024 04:30:32 +0000 (07:30 +0300)]
Merge branch 'emacs-30' of git.savannah.gnu.org:/srv/git/emacs into emacs-30

16 months agoUse 'kill-process' as a fallback when a pipe gets broken in Eshell
Jim Porter [Sun, 14 Jul 2024 23:51:43 +0000 (16:51 -0700)]
Use 'kill-process' as a fallback when a pipe gets broken in Eshell

This is better than 'delete-process' since it will ensure that any
stderr pipe-processes get stopped as well (bug#72117).

* lisp/eshell/esh-proc.el (eshell-insertion-filter): Use 'kill-process'
instead of 'delete-process'.

16 months ago; * doc/lispref/modes.texi (Mode Line Data): Fix formatting.
Eli Zaretskii [Sat, 27 Jul 2024 12:56:47 +0000 (15:56 +0300)]
; * doc/lispref/modes.texi (Mode Line Data): Fix formatting.

16 months ago; * admin/MAINTAINERS: Note what I maintain
Philip Kaludercic [Sat, 27 Jul 2024 08:30:48 +0000 (10:30 +0200)]
; * admin/MAINTAINERS: Note what I maintain

16 months agoUpdate to Org 9.7.9
Kyle Meyer [Sat, 27 Jul 2024 03:58:01 +0000 (23:58 -0400)]
Update to Org 9.7.9

16 months agoFix edge-case with 'which-key-dont-use-unicode' setter
Philip Kaludercic [Fri, 26 Jul 2024 21:26:14 +0000 (23:26 +0200)]
Fix edge-case with 'which-key-dont-use-unicode' setter

* lisp/which-key.el (which-key-dont-use-unicode): Check if the
user options have a 'standard-value' before proceeding to
reevaluate.  This avoids accidentally setting the symbol value
to nil, before the user option has been declared, overriding the
actual non-nil, default values.  (Bug#72077)

16 months agoNS: prevent makeKeyWindow warnings (bug#69525)
Gerd Möllmann [Fri, 26 Jul 2024 09:48:24 +0000 (11:48 +0200)]
NS: prevent makeKeyWindow warnings (bug#69525)

* src/nsterm.m (ns_raise_frame): Don't makeKeyWindow if frame has
no_accept_focus set.

16 months ago; * .gitignore: Add lisp/eshell/esh-groups.el.
Eli Zaretskii [Fri, 26 Jul 2024 13:55:10 +0000 (16:55 +0300)]
; * .gitignore: Add lisp/eshell/esh-groups.el.

16 months ago; * doc/emacs/cmdargs.texi (Initial Options): Fix last change.
Eli Zaretskii [Fri, 26 Jul 2024 13:11:16 +0000 (16:11 +0300)]
; * doc/emacs/cmdargs.texi (Initial Options): Fix last change.

16 months agoAdd PROBLEMS entry for bug#72303
Po Lu [Fri, 26 Jul 2024 12:14:43 +0000 (20:14 +0800)]
Add PROBLEMS entry for bug#72303

* etc/PROBLEMS (Runtime problems specific to PGTK build):
Document that text mode sessions cannot be started without
`-nw'.  (bug#72303)

16 months ago; Improve documentation of 'line-prefix' and 'wrap-prefix'.
Eli Zaretskii [Fri, 26 Jul 2024 11:56:14 +0000 (14:56 +0300)]
; Improve documentation of 'line-prefix' and 'wrap-prefix'.

* doc/lispref/text.texi (Special Properties): Spell out more
accurately how 'line-prefix' and 'wrap-prefix' properties should
be set.

16 months agoImprove documentation of '--init-directory' command-line option.
Eli Zaretskii [Fri, 26 Jul 2024 06:14:43 +0000 (09:14 +0300)]
Improve documentation of '--init-directory' command-line option.

* doc/emacs/custom.texi (Find Init):
* doc/emacs/cmdargs.texi (Initial Options): More accurate and
detailed description of what '--init-directory' does and how it
affects the Emacs session.  Add index entries and cross-references
as needed.  (Bug#72294)

16 months ago; cperl-mode.el: Fix fontification of flip-flop (Bug#72296)
Harald Jörg [Thu, 25 Jul 2024 20:00:10 +0000 (22:00 +0200)]
; cperl-mode.el: Fix fontification of flip-flop (Bug#72296)

* lisp/progmodes/cperl-mode.el (cperl-find-pods-heres): Prevent a
movement of point from bleeding into a following clause.
* test/lisp/progmodes/cperl-mode-tests.el (cperl-test-bug-72296):
Add a test for the flip-flop operator with code from the report.

16 months ago; * admin/MAINTAINERS: Add myself for maintaining some areas.
Juri Linkov [Thu, 25 Jul 2024 18:29:22 +0000 (21:29 +0300)]
; * admin/MAINTAINERS: Add myself for maintaining some areas.

16 months agoFix bug in server.el introduced by 0d7d835902df
Andrea Corallo [Thu, 25 Jul 2024 15:30:25 +0000 (17:30 +0200)]
Fix bug in server.el introduced by 0d7d835902df

0d7d835902df renamed 'server--process-filter' into
'server--process-filter-1' but updated the corresponding
'cl-return-from' tag to 'server--process-filter'.

* lisp/server.el (server--process-filter-1): Fix 'cl-return-from' tag.

16 months ago; * admin/MAINTAINERS: Remove Nicolas Petton.
Stefan Kangas [Thu, 25 Jul 2024 14:15:52 +0000 (16:15 +0200)]
; * admin/MAINTAINERS: Remove Nicolas Petton.

Change agreed with Nicolas Petton <nico@petton.fr>.

16 months agolisp/minibuffer.el (completion--sifn-requote): Fix bug#72176
Stefan Monnier [Thu, 25 Jul 2024 12:39:38 +0000 (08:39 -0400)]
lisp/minibuffer.el (completion--sifn-requote): Fix bug#72176

16 months ago* admin/notes/spelling: Update note.
Stefan Kangas [Thu, 25 Jul 2024 10:06:21 +0000 (12:06 +0200)]
* admin/notes/spelling: Update note.

16 months agoDon't produce invalid XML with multi-line commenting style
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)

16 months ago; * etc/NEWS: Entry for 'gnus-summary-limit-to-age' (bug#72204).
Eli Zaretskii [Thu, 25 Jul 2024 07:41:18 +0000 (10:41 +0300)]
; * etc/NEWS: Entry for 'gnus-summary-limit-to-age' (bug#72204).

16 months agoStandardize possessive apostrophe usage in manuals, docs, and comments
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

16 months agoDon't refer to obsolete finder group "wp"
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".

16 months agoFix some function type declaration
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.

16 months ago* src/image.c (gui_put_x_image): Avoid memory leak.
Po Lu [Wed, 24 Jul 2024 12:06:15 +0000 (20:06 +0800)]
* src/image.c (gui_put_x_image): Avoid memory leak.

16 months ago; * doc/misc/use-package.texi (Getting Started): Fix wording.
Eli Zaretskii [Wed, 24 Jul 2024 11:01:01 +0000 (14:01 +0300)]
; * doc/misc/use-package.texi (Getting Started): Fix wording.

16 months agoAdapt last change to non-NS systems
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.

16 months agoFix NULL pointer dereferences in xpm_load_image
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.

16 months agoFix bug#72255
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)

16 months agoDelete redundant "a.k.a." in use-package.texi
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)

16 months agoDocument (use-package 'emacs) declarations
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)

16 months agoImprove 'emacs-news-view-mode' menus and bindings
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.

16 months ago; * src/xdisp.c (Fformat_mode_line): Doc fix.
Eli Zaretskii [Tue, 23 Jul 2024 11:07:30 +0000 (14:07 +0300)]
; * src/xdisp.c (Fformat_mode_line): Doc fix.

16 months agoFix disappearing bar cursor on Hebrew text (bug#72230)
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.

16 months agoFix DocView with DVI files
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.

16 months ago; Fix typo in use-package.texi
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/

16 months agoFIx spurious fontification of variable in Java Mode
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.

16 months agoCorrectly typeset nil and t in texinfo
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.

16 months agoFix Tramp IPv6 handling in tests
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.

16 months agoUpdate to Org 9.7.8-5-gfdf0e0
Kyle Meyer [Mon, 22 Jul 2024 03:01:45 +0000 (23:01 -0400)]
Update to Org 9.7.8-5-gfdf0e0

16 months agoFix Ftreesit_parser_create
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.

16 months agoFix segfault when deleting tree-sitter query (bug#72238)
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.

16 months agoImprove treesit-node-child-by-field-name docstring
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.

16 months agoMinor copyedits in tree-sitter starting guide
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.

16 months agoUpdate tag for prebuilt tree-sitter grammars
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.

16 months agoFix punctuation and doc style in treesit.c
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.

16 months ago; Fix punctuation in docs
Stefan Kangas [Sun, 21 Jul 2024 14:33:08 +0000 (16:33 +0200)]
; Fix punctuation in docs

16 months agoFix DocView with PostScript files
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)

16 months agoFix bibtex validation for non-file buffers
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)

16 months agoFix Imenu in 'emacs-news-view-mode'
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)

16 months ago; * doc/misc/gnus.texi (Agent Caveats): Fix doc
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)

16 months ago; * src/sqlite.c (Fsqlite_load_extension): Add "vec0" to allowed extensions.
Eli Zaretskii [Sat, 20 Jul 2024 07:27:52 +0000 (10:27 +0300)]
; * src/sqlite.c (Fsqlite_load_extension): Add "vec0" to allowed extensions.

16 months agoAvoid errors in 'icomplete-vertical-mode'
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)

16 months agoDocument GNU ELPA copyright in tips.texi
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.

16 months agoImprove register-use-preview docstring
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.

16 months agoMiscellaneous checkdoc fixes
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.

17 months ago* lisp/progmodes/peg.el (peg-syntax-classes): Typo (bug#72131)
Stefan Monnier [Fri, 19 Jul 2024 18:18:29 +0000 (14:18 -0400)]
* lisp/progmodes/peg.el (peg-syntax-classes): Typo (bug#72131)

17 months ago* lisp/transient.el (static-if): Remove duplicated definition.
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.

17 months agoAdapt file-remote-p doc
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.

17 months ago; Fix typo in etc/ORG-NEWS (Bug#72186)
Stefan Kangas [Fri, 19 Jul 2024 08:13:04 +0000 (10:13 +0200)]
; Fix typo in etc/ORG-NEWS (Bug#72186)

17 months ago* etc/TODO: Delete item about merging Magit.
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>.

17 months ago; Fix typos
Stefan Kangas [Sun, 7 Jul 2024 15:40:31 +0000 (17:40 +0200)]
; Fix typos

17 months ago* doc/man/emacs.1.in: Add "No warranty" notice.
Stefan Kangas [Thu, 18 Jul 2024 08:42:59 +0000 (10:42 +0200)]
* doc/man/emacs.1.in: Add "No warranty" notice.

17 months ago; * doc/man/emacs.1.in: Improve wording.
Stefan Kangas [Thu, 18 Jul 2024 08:36:01 +0000 (10:36 +0200)]
; * doc/man/emacs.1.in: Improve wording.

17 months agoImprove emacs man page description of --user flag
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)