]> git.eshelyaron.com Git - emacs.git/log
emacs.git
3 months ago; Adjust some tests
Eshel Yaron [Mon, 12 Aug 2024 07:10:19 +0000 (09:10 +0200)]
; Adjust some tests

3 months agoelisp-mode.el, scope.el: Also highlight function symbols
Eshel Yaron [Mon, 12 Aug 2024 07:09:48 +0000 (09:09 +0200)]
elisp-mode.el, scope.el: Also highlight function symbols

3 months ago; Drop etags tests
Eshel Yaron [Mon, 12 Aug 2024 07:04:11 +0000 (09:04 +0200)]
; Drop etags tests

3 months ago; * lisp/emacs-lisp/cond-star.el: Fix whitespace.
Pip Cet [Sun, 11 Aug 2024 15:53:39 +0000 (15:53 +0000)]
; * lisp/emacs-lisp/cond-star.el: Fix whitespace.

(cherry picked from commit 643b564bd38cf037c55dba1a160b7d0c4c8355a9)

3 months ago; * lisp/emacs-lisp/cond-star.el: Fix typos and whitespace.
Eli Zaretskii [Sun, 11 Aug 2024 15:47:36 +0000 (18:47 +0300)]
; * lisp/emacs-lisp/cond-star.el: Fix typos and whitespace.

(cherry picked from commit ad9743b436dc026167c7f122e3fb9ae9b47c90f9)

3 months ago; Fix a typo in the doc-strings of cond*
Gautier Ponsinet [Sun, 11 Aug 2024 12:52:11 +0000 (14:52 +0200)]
; Fix a typo in the doc-strings of cond*

* lisp/emacs-lisp/cond-star.el (cond*): Fix a typo in the
doc-string.  (Bug#72576)

(cherry picked from commit d60f3d5dd4b753f23f99d862b0a051af9a8ca930)

3 months agoAdapt emba cache settings
Michael Albinus [Sun, 11 Aug 2024 14:05:00 +0000 (16:05 +0200)]
Adapt emba cache settings

* test/infra/gitlab-ci.yml (.build-template, .test-template)
(.gnustep-template, .filenotify-gio-template, .eglot-template)
(.tree-sitter-template, .native-comp-template): Add job specific
cache settings.

(cherry picked from commit a9336d6996b0942dccbf143442ac80d4b0e2bbfa)

3 months agoSupport (most of) 'cl-loop' in scope.el
Eshel Yaron [Sun, 11 Aug 2024 18:05:43 +0000 (20:05 +0200)]
Support (most of) 'cl-loop' in scope.el

3 months ago(refactor-backend-rename-highlight-regions): Fix thinko
Eshel Yaron [Sun, 11 Aug 2024 18:05:22 +0000 (20:05 +0200)]
(refactor-backend-rename-highlight-regions): Fix thinko

3 months agoscope.el: Optimize and improve documentation.
Eshel Yaron [Sun, 11 Aug 2024 15:03:43 +0000 (17:03 +0200)]
scope.el: Optimize and improve documentation.

3 months ago; Fix cherry-picking of recent 'c-ts-*' changes
Eshel Yaron [Sun, 11 Aug 2024 15:02:38 +0000 (17:02 +0200)]
; Fix cherry-picking of recent 'c-ts-*' changes

3 months agolisp/dirtrack.el: Drop it.
Eshel Yaron [Sun, 11 Aug 2024 10:33:14 +0000 (12:33 +0200)]
lisp/dirtrack.el: Drop it.

3 months agoscope.el: Improve entry point and nested backquote handling
Eshel Yaron [Sun, 11 Aug 2024 09:52:31 +0000 (11:52 +0200)]
scope.el: Improve entry point and nested backquote handling

3 months agoFix buglet.
Richard Stallman [Sat, 10 Aug 2024 22:45:06 +0000 (18:45 -0400)]
Fix buglet.

* lisp/emacs-lisp/cond-star.el (cond*-match): Move a backquote.

(cherry picked from commit ca56dc2e71660cf501f417ab683590ba2e333661)

3 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

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

(cherry picked from commit b6c2f360694831753a9064e48434d29d7ab07505)

3 months agoMake ftcrfont_close idempotent
Pip Cet [Sat, 10 Aug 2024 16:57:49 +0000 (16:57 +0000)]
Make ftcrfont_close idempotent

This prevents crashes when running code like:

(let ((font (open-font (find-font (font-spec ...)))))
  (close-font font)
  (close-font font))

* src/ftcrfont.c (ftcrfont_close): Make sure the function can be run
several times in a row without crashing.

(cherry picked from commit 1a38936299d3c93767e4b542ccde990ea08379e3)

3 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).

(cherry picked from commit 4dd953d3cc37a6f84458eccd6fc81966fa7207f5)

3 months agoReuse already read `capabilities'
Manuel Giraud [Fri, 9 Aug 2024 15:41:51 +0000 (17:41 +0200)]
Reuse already read `capabilities'

* lisp/mail/smtpmail.el (smtpmail-via-smtp): Reuse already read
`capabilities'.  (Bug#72544)

(cherry picked from commit 24b7f810d843f2264131b881c6f451e7bd041b40)

3 months ago; * src/w32.c (init_ntproc): Fix formatting conventions in last change.
Eli Zaretskii [Fri, 9 Aug 2024 11:00:34 +0000 (14:00 +0300)]
; * src/w32.c (init_ntproc): Fix formatting conventions in last change.

(cherry picked from commit 944e45db53cb173c5eadd4794081c133e8649d67)

3 months agoUse SetHandleInformation to set NOINHERIT in UCRT64
Kien Nguyen [Wed, 7 Aug 2024 17:39:38 +0000 (10:39 -0700)]
Use SetHandleInformation to set NOINHERIT in UCRT64

* src/w32.c (init_ntproc) [_UCRT]: Use SetHandleInformation to
prevent standard handles from being inherited, instead of relying
on MSVCRT-only behavior.  For the details of the problem, see
https://lists.gnu.org/archive/html/emacs-devel/2024-07/msg01129.html.

Copyright-paperwork-exempt: yes
(cherry picked from commit de7de561e1e3a973581b6993b3cc0074ff0bf91c)

3 months ago; Skip commit 5cace09ed0495aff620549e83b4e0dd9d631ecd8
Eshel Yaron [Sun, 11 Aug 2024 07:31:21 +0000 (09:31 +0200)]
; Skip commit 5cace09ed0495aff620549e83b4e0dd9d631ecd8

3 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'.

(cherry picked from commit a0406f7c12e4f7f175646c6468a5ff9290da4c34)

3 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.

(cherry picked from commit bd6dfb97ff0d712dc02c0542a51b00ce41022012)

3 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)

3 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.

(cherry picked from commit 16462b1a62d04a726f99f275b37fd3e6fd512202)

3 months agoFix problem in tramp-container.el
Michael Albinus [Thu, 8 Aug 2024 15:29:40 +0000 (17:29 +0200)]
Fix problem in tramp-container.el

* lisp/net/tramp-container.el (tramp-kubernetes--context-namespace):
Handle nil list elements.

(cherry picked from commit 8b662047074f7413c280c9092d1c39763f8b0e5b)

3 months ago; Skip commit a1b8c2610a4d0cc99088c024e884495b26a17fa8
Eshel Yaron [Sun, 11 Aug 2024 07:30:26 +0000 (09:30 +0200)]
; Skip commit a1b8c2610a4d0cc99088c024e884495b26a17fa8

3 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.

(cherry picked from commit a577eccdbbcf52ebb2096083cee80846d7ac832d)

3 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)

(cherry picked from commit d22e52375a6a87e654a7b3d80e27f30d229f0edf)

3 months agoPort zoneinfo-world-style-list to Debian testing
Paul Eggert [Thu, 8 Aug 2024 06:05:52 +0000 (23:05 -0700)]
Port zoneinfo-world-style-list to Debian testing

Problem reported by Gijs Hillenius <gijs@hillenius.net> in:
https://lists.gnu.org/r/emacs-devel/2024-08/msg00279.html
* lisp/time.el (zoneinfo-style-world-list): Use Asia/Kolkata
instead of Asia/Calcutta.  The main name was changed in tzdata
2008b every practical system has it now.  Some systems do
not include backward-compatibility names, so it is better
to use the standard time now.

(cherry picked from commit 9464a1d3860f700dced23ae8d8d2b37e277a2382)

3 months ago; Skip commit 341e5795d5dbd49db330dda68c8d6040cc07ed63
Eshel Yaron [Sun, 11 Aug 2024 07:29:48 +0000 (09:29 +0200)]
; Skip commit 341e5795d5dbd49db330dda68c8d6040cc07ed63

3 months ago; Skip commit 3e30c779a7035fc99d6a787706bc04ff01868a66
Eshel Yaron [Sun, 11 Aug 2024 07:29:38 +0000 (09:29 +0200)]
; Skip commit 3e30c779a7035fc99d6a787706bc04ff01868a66

3 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.

(cherry picked from commit 09d2125a7fd9ac03bc8d381ac275db8f1589f464)

3 months agoEglot: send more accurate languageId strings to TeX servers
Augusto Stoffel [Wed, 7 Aug 2024 12:44:57 +0000 (13:44 +0100)]
Eglot: send more accurate languageId strings to TeX servers

bug#72343

* lisp/progmodes/eglot.el (eglot-server-programs): Rework TeX-mode entry

(cherry picked from commit 423c86cbde7b1ed1d42c7e21fef6e8be872857b0)

3 months agoEglot: simplify eglot--lookup-mode
João Távora [Wed, 7 Aug 2024 11:51:16 +0000 (12:51 +0100)]
Eglot: simplify eglot--lookup-mode

No longer reorder the LANGUAGES return value to have the
originating mode upfront, since it doesn't seem to serve any
practical purpose anymore.

bug#72343

* lisp/progmodes/eglot.el (eglot--lookup-mode): Simplify.

* test/lisp/progmodes/eglot-tests.el
  (eglot-test-server-programs-guess-lang): Adjust.

(cherry picked from commit 628f2bf579d958bcaddb66c0a58c1a21650d76af)

3 months agoBind TAB not <tab> in M-x lldb
Gerd Möllmann [Wed, 7 Aug 2024 09:38:48 +0000 (11:38 +0200)]
Bind TAB not <tab> in M-x lldb

* lisp/progmodes/gud.el (lldb): Bind TAB not <tab> so that it also works
on terminals.

(cherry picked from commit 2b087abdbb99fee2a670896fb34c666199e9ba84)

3 months ago; Skip commit 153dc4bd1ddf3b70f19f6cceec0a98d710534c18
Eshel Yaron [Sun, 11 Aug 2024 07:28:49 +0000 (09:28 +0200)]
; Skip commit 153dc4bd1ddf3b70f19f6cceec0a98d710534c18

3 months ago; Skip commit c86fc3446540cbdfc626b5d6098e7932d4a6be20
Eshel Yaron [Sun, 11 Aug 2024 07:28:45 +0000 (09:28 +0200)]
; Skip commit c86fc3446540cbdfc626b5d6098e7932d4a6be20

3 months ago; Skip commit cd9a215ef0768534881b775f66a9a3fa9ffceb44
Eshel Yaron [Sun, 11 Aug 2024 07:28:24 +0000 (09:28 +0200)]
; Skip commit cd9a215ef0768534881b775f66a9a3fa9ffceb44

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

* lisp/progmodes/c-ts-common.el:
(c-ts-common--fill-block-comment): Add check for end-mask-done.  This
doesn't affect correctness, but makes the code easier to read.

(cherry picked from commit 458a79b3c7eb164e254f86d5610418ffd5050fec)

3 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.

(cherry picked from commit 679f7ccc49f6300681309029f4e58cffe3e9ff1a)

3 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'.

(cherry picked from commit f0a7eec5a7ddd4a009d050b97acf29744d576e5d)

3 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)

(cherry picked from commit f1e37ae423f3be6224f88a21f30ed40e73a4ce22)

3 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'.

(cherry picked from commit 4dc9e99349d23f6c7fc43f02d5f1e8c50f473183)

3 months ago* lisp/format.el (format-alist): Make 'duden' format write-only.
Ulrich Müller [Tue, 6 Aug 2024 07:40:28 +0000 (09:40 +0200)]
* lisp/format.el (format-alist): Make 'duden' format write-only.

(cherry picked from commit aa5c725fe7ba0a5e67ce1029061b2d887ddeb949)

3 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.

(cherry picked from commit 3817355aed503e79c03bca5d203bd73716d10d9e)

3 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.

(cherry picked from commit 1bbb3220179f2f063cb8252646c34c2bf359decb)

3 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'.

(cherry picked from commit 3f6e7e1da682b708ece0ac79b9c6b8acb357d729)

3 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.

(cherry picked from commit 1c7e00f4f653cf3d30006cefe6568227dcb91c60)

3 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).

(cherry picked from commit b89d65df5fad102aa6abf0285d31b0abd148c907)

3 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)

(cherry picked from commit 729b17c20269ea78f0d1f07aafbeba7bd126f66a)

3 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)

(cherry picked from commit bfb1aee99898d7704a64ee124217b9e9ca43d66d)

3 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.

(cherry picked from commit d787817076e26d28163073847f01fd3587106355)

3 months ago; Skip commit db1f749db5560611f58c000b9582174b9187e045
Eshel Yaron [Sun, 11 Aug 2024 07:23:44 +0000 (09:23 +0200)]
; Skip commit db1f749db5560611f58c000b9582174b9187e045

3 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)

(cherry picked from commit f94d58008eb3d6e9d3ea9e9b967be329a880057b)

3 months ago; Skip commit 292fcd2009918a3e4f15b6451ad521a0a92188ad
Eshel Yaron [Sun, 11 Aug 2024 07:22:44 +0000 (09:22 +0200)]
; Skip commit 292fcd2009918a3e4f15b6451ad521a0a92188ad

3 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.

(cherry picked from commit e50d597f4508c6ef333c5616a2a924360437ba55)

3 months agoAdd minibuffer-action to 'cl-describe-type'. Bind it too.
Eshel Yaron [Sun, 11 Aug 2024 07:17:41 +0000 (09:17 +0200)]
Add minibuffer-action to 'cl-describe-type'.  Bind it too.

3 months agoscope.el: Prefer 'nconc' where possible
Eshel Yaron [Sat, 10 Aug 2024 15:02:33 +0000 (17:02 +0200)]
scope.el: Prefer 'nconc' where possible

3 months ago; Update ldefs-boot.el
Eshel Yaron [Sat, 10 Aug 2024 13:09:40 +0000 (15:09 +0200)]
; Update ldefs-boot.el

3 months ago(read-char-by-name): Adhere to changes in 'completions-group'
Eshel Yaron [Sat, 10 Aug 2024 12:00:11 +0000 (14:00 +0200)]
(read-char-by-name): Adhere to changes in 'completions-group'

3 months agoHighlight occurrences of var at point in Emacs Lisp
Eshel Yaron [Thu, 8 Aug 2024 20:26:16 +0000 (22:26 +0200)]
Highlight occurrences of var at point in Emacs Lisp

3 months agoHighlight binding and free var occurrences in Emacs Lisp
Eshel Yaron [Thu, 8 Aug 2024 19:28:44 +0000 (21:28 +0200)]
Highlight binding and free var occurrences in Emacs Lisp

3 months agoAdd refactor backend for 'emacs-lisp-mode'
Eshel Yaron [Thu, 8 Aug 2024 17:10:50 +0000 (19:10 +0200)]
Add refactor backend for 'emacs-lisp-mode'

3 months agoXref: support lexical variables in Emacs Lisp
Eshel Yaron [Thu, 8 Aug 2024 11:55:34 +0000 (13:55 +0200)]
Xref: support lexical variables in Emacs Lisp

* lisp/emacs-lisp/scope.el
* test/lisp/emacs-lisp/scope-tests.el: New files.
* lisp/progmodes/elisp-mode.el (xref-backend-definitions)
Use new 'scope' function to find bindings of lexical vars.
(xref-backend-references): Implement method.
* lisp/progmodes/xref.el (xref-location-line): Implement for
'xref-buffer-location' locations.

3 months agoeglot.el: Cease overriding 'flymake-diagnostic-functions'
Eshel Yaron [Thu, 8 Aug 2024 11:20:49 +0000 (13:20 +0200)]
eglot.el: Cease overriding 'flymake-diagnostic-functions'

3 months ago; * lisp/emacs-lisp/cond-star.el: Minor cleanup.
Eshel Yaron [Thu, 8 Aug 2024 11:19:59 +0000 (13:19 +0200)]
; * lisp/emacs-lisp/cond-star.el: Minor cleanup.

3 months ago; Fix tests
Eshel Yaron [Tue, 6 Aug 2024 16:20:46 +0000 (18:20 +0200)]
; Fix tests

3 months ago* lisp/tab-bar.el (tab-bar--format-tab-group): Add 'current-group'.
Juri Linkov [Tue, 6 Aug 2024 06:59:48 +0000 (09:59 +0300)]
* lisp/tab-bar.el (tab-bar--format-tab-group): Add 'current-group'.

Use current-group symbol for current tab group item (bug#71883).

(cherry picked from commit 7b49261b5e33b0de967c885aeee988b0221026bb)

3 months agoAvoid compiler warning
Pip Cet [Mon, 5 Aug 2024 21:58:16 +0000 (21:58 +0000)]
Avoid compiler warning

* src/timefns.c (Fdecode_time): Use 'UNINIT' to avoid a warning with
gcc 14 and checking enabled.

(cherry picked from commit 0822d0c1cdd0f107c2090016ab528a5279c50756)

3 months agoFix typo in pdumper.c
Pip Cet [Mon, 5 Aug 2024 21:47:57 +0000 (21:47 +0000)]
Fix typo in pdumper.c

* src/pdumper.c (dump_interval_node): Call 'dump_field_fixup_later' with
the correct arguments.  Discovered by Danny McClanahan.

(cherry picked from commit e7109dfd9c15312d20582efdde8c929c9a65282a)

3 months ago* src/search.c (Fre__describe_compiled): Use 'CHECK_STRING'.
Pip Cet [Mon, 5 Aug 2024 21:46:58 +0000 (21:46 +0000)]
* src/search.c (Fre__describe_compiled): Use 'CHECK_STRING'.

(cherry picked from commit ca258e81b81539dc20a06958f911fc5dcd3df922)

3 months agoAvoid warning when building on macOS versions < 14 (bug#72440)
Mattias Engdegård [Mon, 5 Aug 2024 19:27:17 +0000 (21:27 +0200)]
Avoid warning when building on macOS versions < 14 (bug#72440)

* src/nsterm.m ([EmacsView initFrameFromEmacs:]):
The clipsToBounds property of NSView is only public from macOS 14 on.

(cherry picked from commit ee371f55b359b509cd381c87e78b5f5ee9311f37)

3 months ago; Fix the fix for EmacsView
Gerd Möllmann [Mon, 5 Aug 2024 15:26:23 +0000 (17:26 +0200)]
; Fix the fix for EmacsView

* src/nsterm.m ([EmacsView initFrameFromEmacs:]): Check if
setClipsToBound is available.

(cherry picked from commit 3ad4623bec49428fda34a475641eae9f1f33fc78)

3 months ago; * lisp/transient.el: require pp to defvar pp-default-function
Mattias Engdegård [Mon, 5 Aug 2024 14:44:17 +0000 (16:44 +0200)]
; * lisp/transient.el: require pp to defvar pp-default-function

(cherry picked from commit 1d0c68fbdcbfe0ab5f4e14882d8003f7b7d7d0a0)

3 months agoUpdate to Transient v0.7.4-1-g3d9e9358
Jonas Bernoulli [Mon, 5 Aug 2024 12:41:02 +0000 (14:41 +0200)]
Update to Transient v0.7.4-1-g3d9e9358

(cherry picked from commit c7d9cd722e5a7042a52c92f8497f903bfe9870b8)

3 months ago; Fix last change in EmacsView
Gerd Möllmann [Mon, 5 Aug 2024 09:39:44 +0000 (11:39 +0200)]
; Fix last change in EmacsView

* src/nsterm.m ([EmacsView initFrameFromEmacs:]): Don't check AppKit
version.

(cherry picked from commit f1e29506822739208e5706b733cfd713c5f37cfd)

3 months agoRestore a default before macOS 14 API change (bug#72440)
Gerd Möllmann [Mon, 5 Aug 2024 07:39:01 +0000 (09:39 +0200)]
Restore a default before macOS 14 API change (bug#72440)

* src/nsterm.m ([EmacsView initFrameFromEmacs:]): Set clipsToBounds to
YES.

(cherry picked from commit 9253910a5a5ec89fe6e676e53f355f3b0bdc176e)

3 months ago* lisp/tab-bar.el (tab-bar-tab-group-format-default): Hide hints.
Juri Linkov [Mon, 5 Aug 2024 06:56:38 +0000 (09:56 +0300)]
* lisp/tab-bar.el (tab-bar-tab-group-format-default): Hide hints.

Don't display hints when tab-bar-show-inactive-group-tabs is customized
to t (bug#71939).  Suggested by Ship Mints <shipmints@gmail.com>.

(cherry picked from commit 7a14f60b90ea640087b759466f2e2bafa490699d)

3 months agoFix c-ts-common filling
Yuan Fu [Mon, 5 Aug 2024 03:46:45 +0000 (20:46 -0700)]
Fix c-ts-common filling

* lisp/progmodes/c-ts-common.el:
(c-ts-common--fill-block-comment): Exclude the last line from filling if
it only has non-word characters like *=-.
* test/lisp/progmodes/c-ts-mode-resources/filling.erts: Fir the
multi-line test and add a single line test.

(cherry picked from commit 5ecd35555e9e20de9717f0184f58a15d8a2e68a3)

3 months agoAdd support for variable-pitch fonts in 'visual-wrap-prefix-mode'
Jim Porter [Sun, 28 Jul 2024 03:48:38 +0000 (20:48 -0700)]
Add support for variable-pitch fonts in 'visual-wrap-prefix-mode'

* lisp/emacs-lisp/subr-x.el (string-pixel-width): Allow passing BUFFER
to use the face remappings from that buffer when calculating the width.

* lisp/visual-wrap.el (visual-wrap--prefix): Rename to...
(visual-wrap--adjust-prefix): ... this, and support PREFIX as a number.
(visual-wrap-fill-context-prefix): Make obsolete in favor of...
(visual-wrap--content-prefix): ... this.
(visual-wrap-prefix-function): Extract inside of loop into...
(visual-wrap--apply-to-line): ... this.

* doc/lispref/display.texi (Size of Displayed Text): Update
documentation for 'string-pixel-width'.

* etc/NEWS: Announce this change.

(cherry picked from commit f70a6ea0ea86ef461e40d20664a75a92d02679ea)

3 months agoClarify that 'pcase-lambda' only destructs
Philip Kaludercic [Sun, 4 Aug 2024 14:52:38 +0000 (16:52 +0200)]
Clarify that 'pcase-lambda' only destructs

* lisp/emacs-lisp/pcase.el (pcase-lambda): Copy notice from
'pcase-let', indicating that pcase-lambda won't pattern match
like 'pcase', but just try to destruct with uncertain side
effects if this fails. (Bug#71503)

(cherry picked from commit 0756f3085ea948c945e309e2ce347fc5ab836574)

3 months agoRemove further compat code from Tramp
Michael Albinus [Sun, 4 Aug 2024 11:23:43 +0000 (13:23 +0200)]
Remove further compat code from Tramp

* lisp/net/tramp-adb.el (tramp-adb-handle-process-file):
Use `process-file-return-signal-string'.

* lisp/net/tramp-cache.el (tramp-dump-connection-properties):
Use "lisp-data" for persistency file.

* lisp/net/tramp-cmds.el (tramp-cleanup-this-connection)
(tramp-rename-these-files, tramp-recompile-elpa):
Declare `completion'.

* lisp/net/tramp-container.el (tramp-kubernetes--container)
(tramp-kubernetes--pod, tramp-kubernetes--namespace): Make more
robust.

* lisp/net/tramp-crypt.el (tramp-crypt-remove-directory):
Declare `completion'.

* lisp/net/tramp-gvfs.el (file-notyify-callback): Declare.

* lisp/net/tramp-sh.el (process-file-return-signal-string)
(vc-handled-backends): Don't declare.

* lisp/net/tramp-smb.el (tramp-smb-handle-copy-directory):
Use `copy-directory-create-symlink'.

* lisp/net/tramp.el (tramp-skeleton-write-region): Use `lock-file' and
`unlock-file'..
(tramp-handle-make-lock-file-name): Use `remote-file-name-inhibit-locks'.
(tramp-handle-unlock-file): Use `remote-file-name-inhibit-locks'
and `userlock--handle-unlock-error'.
(tramp-handle-shell-command): Use `shell-command-buffer-name-async'
and `shell-command-buffer-name'.
(tramp-read-passwd): Remove workaround.

(cherry picked from commit 1b806a200edcb893471237f47e969dbb9d6a99f1)

3 months agoImprove font search and handling on MS-Windows
Eli Zaretskii [Sat, 3 Aug 2024 15:11:57 +0000 (18:11 +0300)]
Improve font search and handling on MS-Windows

* src/w32font.c: Add commentary about font search on MS-Windows.
(w32font_coverage_ok, add_font_entity_to_list)
(font_supported_scripts): Consider the coverage OK if a font has
only the SIP bit set, but also sets relevant codepage bits in the
CSB bits.
(font_supported_scripts): Fix script for USB bit 99.
* src/font.c (font_parse_fcname, font_parse_family_registry)
[HAVE_NTGUI]: Don't consider hyphenated suffixes of some Windows
fonts as not belonging to the family name.
* src/w32uniscribe.c (uniscribe_check_otf_1): Increase tags[]
array size, to avoid the E_OUTOFMEMORY error for some fonts.

* lisp/international/fontset.el (font-encoding-alist): Add
'unicode-sip'.

(cherry picked from commit ff6954b9c833bfeb8032fb772fa08e60e9ec56a8)

3 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>.

(cherry picked from commit 8d073823c61017c581a18853c89ec84432018d60)

3 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>.

(cherry picked from commit c25687e860fbae6178afe8096ec003f5f4ce6462)

3 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.

(cherry picked from commit e539a5c7d79b76eb16eed4cb5da4c3a531a640b4)

3 months agoFix 'script-representative-chars' for the 'han' script
Eli Zaretskii [Sat, 3 Aug 2024 07:29:38 +0000 (10:29 +0300)]
Fix 'script-representative-chars' for the 'han' script

* lisp/international/fontset.el (script-representative-chars):
Remove from 'han' codepoints that belong to 'cjk-misc'.

(cherry picked from commit 15afa72460b4a0ec910749646cb9852b4c578f5e)

3 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.

(cherry picked from commit 94fe5894d99f8bb5cb175d7646f07e68360f2089)

3 months agoInstall cond*
Richard Stallman [Fri, 2 Aug 2024 16:03:45 +0000 (12:03 -0400)]
Install cond*

* oond-star.el: New file.

(cherry picked from commit 18491f48d973c9cbc453d9f742ec7f73e83df3bb)

3 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)

(cherry picked from commit ef5466c267542970f28548c820783f3257c1b0cf)

3 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.

(cherry picked from commit cb421286d2e9834d90d29288c932a6c6e03a555f)

3 months agoBring back 'oddp' and 'evenp'
Eshel Yaron [Tue, 6 Aug 2024 09:51:28 +0000 (11:51 +0200)]
Bring back 'oddp' and 'evenp'

3 months agoTeach electric-pair-mode about numeric prefix arguments
Eshel Yaron [Sat, 3 Aug 2024 10:55:51 +0000 (12:55 +0200)]
Teach electric-pair-mode about numeric prefix arguments

3 months agoDrop 'tabulated-list-groups'
Eshel Yaron [Fri, 2 Aug 2024 10:59:32 +0000 (12:59 +0200)]
Drop 'tabulated-list-groups'

3 months agoFix display of empty margins when default face is remapped
Eli Zaretskii [Fri, 2 Aug 2024 06:48:55 +0000 (09:48 +0300)]
Fix display of empty margins when default face is remapped

* src/xdisp.c (display_line): Append space glyphs to margin areas
if the default face is remapped and nothing is written to the
margin area of this screen line.
(produce_special_glyphs): If the truncation/continuation glyphs do
not specify a face, use the remapped default face, not the
original frame-global default face.  Reported by Nicolas
P. Rougier <nicolas.rougier@inria.fr> in
https://lists.gnu.org/archive/html/emacs-devel/2024-07/msg01217.html.

(cherry picked from commit 80108438e5e2e95ca75e59212fb1669a723241b5)

3 months agoFix finding anchor references after 'Info-on-current-buffer'
Eli Zaretskii [Fri, 2 Aug 2024 06:24:55 +0000 (09:24 +0300)]
Fix finding anchor references after 'Info-on-current-buffer'

* lisp/info.el (Info--record-tag-table): New function, extracted
from 'Info-find-node-2'.
(Info-find-node-2, Info-on-current-buffer): Use
'Info--record-tag-table'.  (Bug#72391)

(cherry picked from commit 4fa540f86587d4458cf33da352176f57e20723d4)

3 months ago; * lisp/eshell/em-dirs.el (eshell/cd): Remove extraneous 'eshell-protect'.
Jim Porter [Thu, 1 Aug 2024 16:31:44 +0000 (09:31 -0700)]
; * lisp/eshell/em-dirs.el (eshell/cd): Remove extraneous 'eshell-protect'.

(cherry picked from commit 1134734e19617a0875b77f8c7df64cfb265ec118)

3 months agoFix regression in 'todo-test-todo-quit02'
Martin Rudalics [Thu, 1 Aug 2024 16:04:20 +0000 (18:04 +0200)]
Fix regression in 'todo-test-todo-quit02'

* lisp/window.el (switch-to-prev-buffer): If BURY-OR-KILL is
non-nil, remove any 'quit-restore' or 'quit-restore-prev'
parameter referencing the old buffer too.  This fixes a
regression when running 'todo-test-todo-quit02' from 'ert'
(reported by Andrea Corallo <acorallo@gnu.org>).

(cherry picked from commit 0892b66e9b0233cf66d5f6d10bbd9bf096c41755)

3 months agoFix edge cases in tramp-crypt.el
Michael Albinus [Thu, 1 Aug 2024 14:57:53 +0000 (16:57 +0200)]
Fix edge cases in tramp-crypt.el

* lisp/net/tramp-crypt.el (tramp-crypt-handle-set-visited-file-modtime)
(tramp-crypt-handle-verify-visited-file-modtime): New defuns.
(tramp-crypt-file-name-handler-alist): Use them.
(tramp-crypt-handle-lock-file): Care about `buffer-file-name'.
(tramp-crypt-handle-unlock-file): Remove compat code.

(cherry picked from commit 889e7027d3ec54be204e7bd1f1fa1b8c93f3e172)