emacs.git
16 months agoFix 'forward-comment' in 'toml-ts-mode'
Eli Zaretskii [Sat, 17 Aug 2024 09:29:31 +0000 (12:29 +0300)]
Fix 'forward-comment' in 'toml-ts-mode'

* lisp/textmodes/toml-ts-mode.el (toml-ts-mode--syntax-table): Fix
syntax of newline.  Patch from Jostein Kjønigsen
<jostein@secure.kjonigsen.net>.  (Bug#72489)

16 months agoDocument spell-checking of multiple languages
Eli Zaretskii [Sat, 17 Aug 2024 08:44:35 +0000 (11:44 +0300)]
Document spell-checking of multiple languages

* doc/emacs/fixit.texi (Spelling): Document spell-checking
multi-lingual text with Hunspell.

16 months agoApply --display kluge for PGTK too
Peter Oliver [Sun, 14 Jul 2024 20:50:33 +0000 (21:50 +0100)]
Apply --display kluge for PGTK too

* src/emacs.c (main): The --display option needs the same handling
with the PGTK backend as it does with the X11 backends.  (Bug#72118)

16 months ago; * admin/make-tarball.txt: Minor copyedits.
Eli Zaretskii [Fri, 16 Aug 2024 18:55:37 +0000 (21:55 +0300)]
; * admin/make-tarball.txt: Minor copyedits.

16 months ago; * doc/lispref/strings.texi (Text Comparison): Improve indexing.
Eli Zaretskii [Fri, 16 Aug 2024 11:05:20 +0000 (14:05 +0300)]
; * doc/lispref/strings.texi (Text Comparison): Improve indexing.

16 months ago* lisp/files.el (require-with-check): Improve error messages.
Pip Cet [Thu, 15 Aug 2024 16:28:07 +0000 (16:28 +0000)]
* lisp/files.el (require-with-check): Improve error messages.

16 months ago; * src/data.c (Fsubrp): Improve docstring.
Andrea Corallo [Thu, 15 Aug 2024 08:47:00 +0000 (10:47 +0200)]
; * src/data.c (Fsubrp): Improve docstring.

16 months agoImprove documentation of ERT
Eli Zaretskii [Thu, 15 Aug 2024 08:30:48 +0000 (11:30 +0300)]
Improve documentation of ERT

* doc/misc/ert.texi (Running Tests Interactively)
(Test Selectors):
* lisp/emacs-lisp/ert.el (ert-select-tests)
(ert-run-tests-interactively, ert-run-tests-batch): Improve and
clarify the documentation of the main ERT functions.

16 months agoDisambiguate minor-mode variable in its function docstring
Visuwesh [Wed, 14 Aug 2024 02:37:15 +0000 (08:07 +0530)]
Disambiguate minor-mode variable in its function docstring

* lisp/emacs-lisp/easy-mmode.el (easy-mmode--arg-docstring)
(easy-mmode--mode-docstring): Add "the variable" before the
GETTER if it is a symbol to properly link to minor-mode variable
in the *Help* buffer in the common case.  (bug#72405)

16 months agoFix project-dired keybinding in manual
Arash Esbati [Sun, 11 Aug 2024 19:28:43 +0000 (21:28 +0200)]
Fix project-dired keybinding in manual

* doc/emacs/maintaining.texi (Project File Commands): Fix the
keybinding for `project-dired'.  (Bug#72581)

16 months agoImprove documentation of time-parsing functions
Eli Zaretskii [Wed, 14 Aug 2024 08:35:48 +0000 (11:35 +0300)]
Improve documentation of time-parsing functions

* doc/lispref/os.texi (Time Parsing):
* lisp/calendar/iso8601.el (iso8601-parse):
* lisp/calendar/parse-time.el (parse-time-string): Document that
these functions don't care about the distinction between local
time and UTC.  (Bug#72570)

16 months ago; Backport gitlab-ci.yml from master (don't merge)
Michael Albinus [Wed, 14 Aug 2024 07:47:59 +0000 (09:47 +0200)]
; Backport gitlab-ci.yml from master (don't merge)

* test/infra/gitlab-ci.yml (.job-template): Remove cache:policy.
(.build-template, .test-template): Add job specific cache:policy.
(.tree-sitter-template): Adapt changes.

16 months ago(project-find-regexp): Fix the temporary value of DEFAULT-DIRECTORY
Dmitry Gutov [Tue, 13 Aug 2024 12:14:18 +0000 (15:14 +0300)]
(project-find-regexp): Fix the temporary value of DEFAULT-DIRECTORY

* lisp/progmodes/project.el (project-find-regexp): Make sure the
assigned value of DEFAULT-DIRECTORY ends with a slash.
read-directory-name returns the name without it in certain cases.

16 months agoTag test in typescript-ts-mode-tests.el as unstable
Michael Albinus [Tue, 13 Aug 2024 07:19:00 +0000 (09:19 +0200)]
Tag test in typescript-ts-mode-tests.el as unstable

* test/lisp/progmodes/typescript-ts-mode-tests.el
(typescript-ts-mode-test-indentation): Tag it as :unstable on emba.

16 months ago; * lisp/files.el (require-with-check): Fix last change.
Eli Zaretskii [Tue, 13 Aug 2024 02:27:08 +0000 (05:27 +0300)]
; * lisp/files.el (require-with-check): Fix last change.

16 months ago; * lisp/files.el (require-with-check): Fix doc string and error text.
Eli Zaretskii [Mon, 12 Aug 2024 18:38:46 +0000 (21:38 +0300)]
; * lisp/files.el (require-with-check): Fix doc string and error text.

16 months agomacOS: Wrong frame rectangle after wake (bug#71912)
Gerd Möllmann [Sun, 11 Aug 2024 11:22:45 +0000 (13:22 +0200)]
macOS: Wrong frame rectangle after wake (bug#71912)

* src/nsterm.m ([EmacsView windowDidBecomeKey]):
Call adjustEmacsFrameRect.

16 months ago; Grammar fixes
Po Lu [Mon, 12 Aug 2024 00:10:36 +0000 (08:10 +0800)]
; Grammar fixes

* doc/misc/erc.texi (Connecting):

* lisp/erc/erc.el (erc-compute-server, erc-compute-nick)
(erc-compute-full-name, erc-compute-port): Replace "a number of
increasingly more" with an alternative more grammatical.

16 months agoFix format 2 cmap handling in sfnt.c
Pip Cet [Sun, 11 Aug 2024 10:07:12 +0000 (10:07 +0000)]
Fix format 2 cmap handling in sfnt.c

This code is untested as no font with a format 2 cmap could be found.

* src/sfnt.c (sfnt_lookup_glyph_2): Fix typos.  Assume single-byte
encodings use character codes 0, 1, ..., 255 rather than 0, 256, ...,
65280.

16 months agoFix coordinate transformations in sfnt.c
Pip Cet [Sat, 10 Aug 2024 17:01:44 +0000 (17:01 +0000)]
Fix coordinate transformations in sfnt.c

Backport.

* src/sfnt.c (sfnt_transform_coordinates):
(sfnt_transform_f26dot6): Fix calculation of transformed coordinates in
the very rare case of arbitrary transformation matrices.

16 months ago* lisp/epg.el (epg--start): Don't convert EOL on encoding (bug#72542).
Kazuhiro Ito [Fri, 9 Aug 2024 12:28:41 +0000 (21:28 +0900)]
* lisp/epg.el (epg--start): Don't convert EOL on encoding (bug#72542).

16 months agoAdd PROBLEMS entry for bug#72517
Thomas Fitzsimmons [Fri, 9 Aug 2024 02:58:48 +0000 (22:58 -0400)]
Add PROBLEMS entry for bug#72517

* etc/PROBLEMS (X runtime problems): Document ssh -X session
hang-on-exit after deletion of remote emacsclient -c frame.
(bug#72517)

(cherry picked from commit 9f03300c5c626bf6f8f839be4943cc20db89c24d)

16 months ago; Improve documentation of 'add-to-list'
Eli Zaretskii [Fri, 9 Aug 2024 05:45:30 +0000 (08:45 +0300)]
; Improve documentation of 'add-to-list'

* doc/lispref/lists.texi (List Variables):
* lisp/subr.el (add-to-list): Add/clarify caveats of using
'add-to-list'.

16 months agoNS: Fix scroll-bar setting code (bug#72331)
Gerd Möllmann [Thu, 8 Aug 2024 06:19:56 +0000 (08:19 +0200)]
NS: Fix scroll-bar setting code (bug#72331)

* src/nsterm.m (ns_set_vertical_scroll_bar): Use
WINDOW_SCROLL_AREA_WIDTH instead of NS_SCROLL_BAR_WIDTH.
(ns_set_horizontal_scroll_bar): Use WINDOW_SCROLL_AREA_HEIGHT
instead of NS_SCROLL_BAR_HEIGHT. Clear area differently if vertical
scroll bars are present.
* src/nsterm.h (NS_SCROLL_BAR_WIDTH, NS_SCROLL_BAR_HEIGHT): Remove.

16 months agoRegister for more Intents actions on Android
Po Lu [Fri, 9 Aug 2024 02:11:47 +0000 (10:11 +0800)]
Register for more Intents actions on Android

* java/AndroidManifest.xml.in <EmacsOpenActivity>: Register
for SEND Intents with mailto URIs.

* java/org/gnu/emacs/EmacsOpenActivity.java (onCreate): Use
Intent constants rather than string literals.

16 months ago* lisp/help-macro.el: Add 'help-for-help-use-variable-pitch' option.
Paul W. Rankin [Thu, 8 Aug 2024 02:16:07 +0000 (12:16 +1000)]
* lisp/help-macro.el: Add 'help-for-help-use-variable-pitch' option.

This makes 'variable-pitch-mode' optional, by default ON (to
preserve previous behavior), in Help buffers.  (Bug#72521)

16 months ago; * doc/lispref/strings.texi (String Conversion): Fix last change.
Eli Zaretskii [Thu, 8 Aug 2024 08:41:52 +0000 (11:41 +0300)]
; * doc/lispref/strings.texi (String Conversion): Fix last change.

16 months agoRemove manual entry for string-to-int
Ulrich Müller [Thu, 8 Aug 2024 05:47:50 +0000 (07:47 +0200)]
Remove manual entry for string-to-int

* doc/lispref/strings.texi (String Conversion): Remove mention of
'string-to-int' which was dropped in Emacs 26.  (Bug#72520)

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.