]> git.eshelyaron.com Git - emacs.git/log
emacs.git
4 months ago(describe-library): Mention package that library is part of
Eshel Yaron [Sun, 30 Jun 2024 18:48:05 +0000 (20:48 +0200)]
(describe-library): Mention package that library is part of

4 months agoNew command 'propertize-region'
Eshel Yaron [Sun, 30 Jun 2024 16:36:43 +0000 (18:36 +0200)]
New command 'propertize-region'

4 months ago(minibuffer-force-complete): Indicate number of possible completions
Eshel Yaron [Sat, 29 Jun 2024 19:09:54 +0000 (21:09 +0200)]
(minibuffer-force-complete): Indicate number of possible completions

4 months ago(read-extended-command): Be less weird
Eshel Yaron [Sat, 29 Jun 2024 18:40:43 +0000 (20:40 +0200)]
(read-extended-command): Be less weird

4 months agoInherit text props in Completion Preview insertion commands
Eshel Yaron [Sat, 29 Jun 2024 09:51:10 +0000 (11:51 +0200)]
Inherit text props in Completion Preview insertion commands

When completing with Completion Preview mode commands,
inherit text properties from surrounding text similarly to
other completion commands, such as 'completion-at-point'.

* lisp/completion-preview.el (completion-preview-insert)
(completion-preview-partial-insert)
(completion-preview-complete): Use 'insert-and-inherit'
instead of 'insert' to insert text for completion.
* test/lisp/completion-preview-tests.el
(completion-preview-insert-inherits-text-properties): New
test.

4 months ago; Skip commit c4ec905c9a9b68e99f5abf208be53c981cd718eb
Eshel Yaron [Fri, 28 Jun 2024 17:19:39 +0000 (19:19 +0200)]
; Skip commit c4ec905c9a9b68e99f5abf208be53c981cd718eb

4 months ago* lisp/hi-lock.el: More fixes related to revert-buffer.
Juri Linkov [Fri, 28 Jun 2024 06:42:43 +0000 (09:42 +0300)]
* lisp/hi-lock.el: More fixes related to revert-buffer.

(hi-lock-set-pattern): Use the same propertized string
for 'overlay-put' property to allow 'remove-overlays'
to remove it while using 'eq' on the property value.
https://lists.gnu.org/archive/html/emacs-devel/2024-06/msg01001.html

(cherry picked from commit bf862fc277034b6ada4a4a81dd640e116e6b9312)

4 months agoUpdate to Org 9.7.5-9-ga091ca
Kyle Meyer [Fri, 28 Jun 2024 03:55:35 +0000 (23:55 -0400)]
Update to Org 9.7.5-9-ga091ca

(cherry picked from commit 6cc8ffae9a6fa3bbdc71bf5eac3875000c9e7870)

4 months ago; Fix typo in lua-ts-mode.el
john muhl [Wed, 12 Jun 2024 15:41:03 +0000 (10:41 -0500)]
; Fix typo in lua-ts-mode.el

* lisp/progmodes/lua-ts-mode.el: Fix typo.  (Bug#71736)

(cherry picked from commit c477443ab80a087a94c357f3fe5fd62c97e6f6ab)

4 months ago; Add 'eglot-ensure' option to 'lua-ts-mode-hook'
john muhl [Wed, 15 Nov 2023 18:45:18 +0000 (12:45 -0600)]
; Add 'eglot-ensure' option to 'lua-ts-mode-hook'

* lisp/progmodes/lua-ts-mode.el (lua-ts-mode-hook): Add an option to
enable Eglot from the lua-ts-mode-hook.  (Bug#71736)

(cherry picked from commit 6e5e4d6193999eef31a3c62a3de64910ccbd3ffb)

4 months ago; Skip commit 58a2f36a8b93a2773dbf939ee67112897ea72944
Eshel Yaron [Fri, 28 Jun 2024 17:18:16 +0000 (19:18 +0200)]
; Skip commit 58a2f36a8b93a2773dbf939ee67112897ea72944

4 months ago; (completion-preview-partial-insert): Avoid no-op undo entries
Eshel Yaron [Fri, 28 Jun 2024 10:57:32 +0000 (12:57 +0200)]
; (completion-preview-partial-insert): Avoid no-op undo entries

* lisp/completion-preview.el
(completion-preview-partial-insert): Abort change group
rather than deleting entire temporary insertion, so as to
avoid recording no-op undo entries.  Move 'deactivate-mark'
let-binding outside of 'catch' form.

4 months agoWrite Antinews for Emacs 30 ELisp Reference
Eli Zaretskii [Thu, 27 Jun 2024 18:54:52 +0000 (21:54 +0300)]
Write Antinews for Emacs 30 ELisp Reference

* doc/lispref/anti.texi (Antinews):
* doc/lispref/elisp.texi (Top): Rewrite "Antinews" for Emacs 30.

(cherry picked from commit 039e6ffd86650b26364d1fab1014e19dfcab3b21)

4 months ago(eval-last-sexp): Fix bug#71774
Stefan Monnier [Thu, 27 Jun 2024 18:39:27 +0000 (14:39 -0400)]
(eval-last-sexp): Fix bug#71774

* lisp/progmodes/elisp-mode.el (eval-last-sexp): Set `values` only
when `eval-expression-debug-on-error` is nil.

(cherry picked from commit bf8c9f702ba7cba8f835996d49cad01865e2813e)

4 months ago* lisp/hi-lock.el: More fixes for revert-buffer (bug#57534)
Juri Linkov [Thu, 27 Jun 2024 18:08:28 +0000 (21:08 +0300)]
* lisp/hi-lock.el: More fixes for revert-buffer (bug#57534)

(hi-lock-set-pattern): Put the text property 'regexp' on the lighter string.
(hi-lock-revert-buffer-rehighlight): Get the real regexp from the
text property 'regexp'.  This fixes the case when the original
regexp gets lost after e.g. 'M-s . M-s h r'.

(cherry picked from commit 6d94090cadcff1b251457c2d82b287f4beb5a93d)

4 months ago* lisp/hi-lock.el (hi-lock-revert-buffer-rehighlight): Improve (bug#57534).
Juri Linkov [Thu, 27 Jun 2024 17:05:58 +0000 (20:05 +0300)]
* lisp/hi-lock.el (hi-lock-revert-buffer-rehighlight): Improve (bug#57534).

Instead of detecting invalidated overlays, use the same condition
as in 'hi-lock-set-pattern', and always re-highlight overlays,
because even when overlays stays on their original positions,
there is a need to highlight more matches possibly added after revert.

(cherry picked from commit 280c91782afa0c6ae667785b806da58e6be102ae)

4 months ago* lisp/tab-bar.el (tab-bar-select-restore-windows): Improve the docstring.
Juri Linkov [Thu, 27 Jun 2024 16:57:18 +0000 (19:57 +0300)]
* lisp/tab-bar.el (tab-bar-select-restore-windows): Improve the docstring.

Suggested by Kévin Le Gouguec <kevin.legouguec@gmail.com> in bug#71779.

(cherry picked from commit 339310d020587ac25798f94851834c7044c87be4)

4 months agoWrite Antinews for Emacs 30 user manual
Eli Zaretskii [Thu, 27 Jun 2024 16:36:39 +0000 (19:36 +0300)]
Write Antinews for Emacs 30 user manual

* doc/emacs/anti.texi (Antinews):
* doc/emacs/emacs.texi (Top): Rewrite "Antinews" for Emacs 30.

(cherry picked from commit c1e7569a925a5ff4666d2033a979511bc950bd2f)

4 months ago; * lisp/erc/erc-backend.el (erc-server-reconnect-timeout): Doc (bug#71756).
F. Jason Park [Mon, 24 Jun 2024 23:04:37 +0000 (16:04 -0700)]
; * lisp/erc/erc-backend.el (erc-server-reconnect-timeout): Doc (bug#71756).

(cherry picked from commit 233f683da8fa146e3328c96b4cf04211446e026e)

4 months ago; Skip commit 20a672b3b2b1c3306b26e546380f2902d10931a0
Eshel Yaron [Fri, 28 Jun 2024 06:12:02 +0000 (08:12 +0200)]
; Skip commit 20a672b3b2b1c3306b26e546380f2902d10931a0

4 months agoFix two tests for --without-all build
Andrea Corallo [Thu, 27 Jun 2024 13:32:03 +0000 (15:32 +0200)]
Fix two tests for --without-all build

* test/src/image-tests.el
(image-tests-image-mask-p/error-on-nongraphical-display)
(image-tests-image-metadata/error-on-nongraphical-display): xpm images
are not supported in all configurations so use xbm for non graphical
display tests.

(cherry picked from commit 6f9f9a2155542d6452847a9311772c399298c4c8)

4 months ago(buf_bytepos_to_charpos): Fix mixup introduced in commit b300052fb4ef
Stefan Monnier [Thu, 27 Jun 2024 19:36:28 +0000 (15:36 -0400)]
(buf_bytepos_to_charpos): Fix mixup introduced in commit b300052fb4ef

* src/marker.c (buf_bytepos_to_charpos): Don't compare byte-positions
with char-positions.

(cherry picked from commit b595b4598e7b3dabe4d45895f5580c9a351f2885)

4 months agoChange ERC version to 5.6.1-git
F. Jason Park [Thu, 13 Jun 2024 06:10:00 +0000 (23:10 -0700)]
Change ERC version to 5.6.1-git

* doc/misc/erc.texi: Change ERCVER to 5.6.1.
* lisp/erc/erc.el: (erc-version): Change working version to 5.6.1-git.
Do the same for the package Version header.  Don't bother updating
`customize-package-emacs-version-alist' until needed.

(cherry picked from commit 253172162107b34ebd24b8fbe1db4ac10a3931bd)

4 months ago; * etc/PROBLEMS (PGTK): Remove redundant 2nd PGTK section.
Eli Zaretskii [Thu, 27 Jun 2024 10:34:21 +0000 (13:34 +0300)]
; * etc/PROBLEMS (PGTK): Remove redundant 2nd PGTK section.

(cherry picked from commit 98daa10f065ad6a7f840c483b5a230fd3fbf3991)

4 months agoFix handling of non-nil 'dired-movement-style'
Eli Zaretskii [Thu, 27 Jun 2024 09:42:43 +0000 (12:42 +0300)]
Fix handling of non-nil 'dired-movement-style'

* lisp/dired.el (dired--move-to-next-line): Treat any non-nil
value of 'dired-movement-style' except 'cycle' as 'bounded'.
(dired-movement-style): Mention this in the doc string.
(Bug#71770)

(cherry picked from commit ced33bc23978c7e27c30a9e09bf8814f6798524f)

4 months ago; * lisp/gnus/message.el (message-idna-to-ascii-rhs): Doc fix (bug#71757).
Eli Zaretskii [Thu, 27 Jun 2024 09:33:47 +0000 (12:33 +0300)]
; * lisp/gnus/message.el (message-idna-to-ascii-rhs): Doc fix (bug#71757).

(cherry picked from commit b1e9b6fd67df1214dc01bd1b2622f141c59766f3)

4 months ago; Skip commit 5eb9a0d2c79beaaca8b3ea0ee8c6b4bd5efa4bf0
Eshel Yaron [Fri, 28 Jun 2024 05:51:34 +0000 (07:51 +0200)]
; Skip commit 5eb9a0d2c79beaaca8b3ea0ee8c6b4bd5efa4bf0

4 months agoDo not prematurely truncate python eldoc string
James Thomas [Sat, 22 Jun 2024 12:27:00 +0000 (17:57 +0530)]
Do not prematurely truncate python eldoc string

'eldoc-echo-area-use-multiline-p' is there for that.
* lisp/progmodes/python.el (python-eldoc-setup-code):
Make the change.  (Bug#71720)

* etc/NEWS: Announce the change in behavior.

(cherry picked from commit 6ec77f580ddbff9001abbc47ab2b857df41b3f36)

4 months ago; Fix simple-tests as fallout of last change
Eli Zaretskii [Thu, 27 Jun 2024 08:37:15 +0000 (11:37 +0300)]
; Fix simple-tests as fallout of last change

* test/lisp/simple-tests.el
(simple-execute-extended-command--shorter): Fix test broken by new
kill-whole-line tests.  (Bug#65734)

(cherry picked from commit f475a1a25449509aa8c081d63f6ca63833cfdd35)

4 months agoAdd tests for `kill-whole-line' (bug#65734)
Sebastian Miele [Wed, 19 Jun 2024 13:58:24 +0000 (15:58 +0200)]
Add tests for `kill-whole-line' (bug#65734)

* test/lisp/simple-tests.el (simple-test-point-tag):
(simple-test-mark-tag):
(simple-test--set-buffer-text-point-mark):
(simple-test--get-buffer-text-point-mark): Add helper functions used by
the tests.
(kill-whole-line-invisible):
(kill-whole-line-read-only):
(kill-whole-line-after-other-kill):
(kill-whole-line-buffer-boundaries):
(kill-whole-line-line-boundaries): Add tests for `kill-whole-line'.

(cherry picked from commit aa10d0c5ac1a4d706b8562671f2a22a82f9e733b)

4 months agokill-whole-line: Honor visibility; fix kill-ring when read-only (bug#65734)
Sebastian Miele [Wed, 19 Jun 2024 13:48:59 +0000 (15:48 +0200)]
kill-whole-line: Honor visibility; fix kill-ring when read-only (bug#65734)

* lisp/simple.el (kill-whole-line): Use visibility state before
performing any edits as reference instead of expecting that visibility
cannot change.  First of the two calls to `kill-region' may trigger
`after-change-functions' that might alter the visibility state.
Make sure that we populate the `kill-ring' with the contents of the
whole line when buffer is in `read-only-mode'.

(cherry picked from commit 058bb4ca25adb8f4bf78cc0f09a65d730dbd797d)

4 months ago* lisp/hi-lock.el (hi-lock-file-patterns-policy): Add value 'always'.
Juri Linkov [Thu, 27 Jun 2024 06:52:06 +0000 (09:52 +0300)]
* lisp/hi-lock.el (hi-lock-file-patterns-policy): Add value 'always'.

(hi-lock-mode): Update docstring.
(hi-lock-find-patterns): Return t for value 'always'.
(hi-lock-revert-buffer-rehighlight): Rewrite to correctly handle
all possible cases (bug#57534).

(cherry picked from commit e45173d114e37d5a652b5393ce7bcab1acea3f1a)

4 months ago; Skip commit d6afb017debb9cc1a88a129eea688e2f2bbf402a
Eshel Yaron [Fri, 28 Jun 2024 05:48:59 +0000 (07:48 +0200)]
; Skip commit d6afb017debb9cc1a88a129eea688e2f2bbf402a

4 months agoPrevent crashes and related issues if initial activity is destroyed on Android
Po Lu [Thu, 27 Jun 2024 03:06:59 +0000 (11:06 +0800)]
Prevent crashes and related issues if initial activity is destroyed on Android

* java/org/gnu/emacs/EmacsWindow.java
(EmacsWindow) <initialWindowCreated>: New variable.
(EmacsWindow): If the initial frame has not yet been created,
set attachmentToken to -1.

* java/org/gnu/emacs/EmacsWindowManager.java (registerWindow):
When the window's attachment token is -1 (i.e., it is the
default window), start EmacsActivity rather than
EmacsMultitaskActivity.  Catch exceptions around startActivity.

(cherry picked from commit 860840621a1ebe2e4f17ba8ae78d441ea75650b2)

4 months agoDisable preprocessing of assembler files with m4 on non-MIPS systems
Po Lu [Thu, 27 Jun 2024 02:15:13 +0000 (10:15 +0800)]
Disable preprocessing of assembler files with m4 on non-MIPS systems

* exec/Makefile.in (is_mips): New substitution.
(.s.o): Avoid calling m4 unless it be set.

* exec/configure.ac: Substitute is_mips, and don't generate
config-mips.m4 otherwise.

* exec/loader-x86.s:

* exec/loader-x86_64.s: Use assembler rather than m4-defined
comment syntax.

(cherry picked from commit fa322155ad51e3628256232bc113ad7499ab76e7)

4 months agoImprove Local Directory Variables auto-insert
Stefan Kangas [Wed, 26 Jun 2024 23:50:18 +0000 (01:50 +0200)]
Improve Local Directory Variables auto-insert

* lisp/autoinsert.el (auto-insert-alist): Confirm after entering
in a non-existent mode in Local Directory Variables skeleton.

(cherry picked from commit da11a2a5cc3fa7e28031dc87e0f07004a9a005f7)

4 months agoDoc fix in 'php-ts-mode'
Vincenzo Pupillo [Tue, 25 Jun 2024 08:37:40 +0000 (10:37 +0200)]
Doc fix in 'php-ts-mode'

* lisp/progmodes/php-ts-mode.el
(php-ts-mode--custom-html-font-lock-settings): Doc fix.  (Bug#71759)

(cherry picked from commit d5c6eb1f9646781cf103124fb7e88d1fa1cf2473)

4 months agoSupport .dir-locals-2.el in `auto-insert-mode`
Stefan Kangas [Wed, 26 Jun 2024 23:33:40 +0000 (01:33 +0200)]
Support .dir-locals-2.el in `auto-insert-mode`

* lisp/autoinsert.el (auto-insert-alist): Use Directory Local Variables
skeleton also for ".dir-locals-2.el".

(cherry picked from commit a2c3a91f0e3b6a3a22e74ef2dc473c12059e93c9)

4 months agoUse 'revert-function' in *xref* buffer
Eshel Yaron [Wed, 26 Jun 2024 16:51:32 +0000 (18:51 +0200)]
Use 'revert-function' in *xref* buffer

* lisp/progmodes/xref.el (xref--xref-buffer-mode-map): Cease
binding 'g' to 'xref-revert-buffer'.
(xref--xref-buffer-mode): Set 'revert-buffer-function' to...
(xref--revert-buffer): ...this.  New function, renamed from...
(xref-revert-buffer): ...this.  Make it an alias of
'revert-buffer'.
* etc/NEWS: Announce it.
* doc/emacs/maintaining.texi (Xref Commands): Update docs.

(cherry picked from commit 82125b1a6616259531ef3abd45b41089de160ba7)

4 months ago(quail-input-method): Fix bug#70541
Stefan Monnier [Wed, 26 Jun 2024 20:18:57 +0000 (16:18 -0400)]
(quail-input-method): Fix bug#70541

* lisp/international/quail.el (quail-input-method): Don't bind
`inhibit-modification-hooks`.
(quail-point-in-conversion-region): Simplify.

(cherry picked from commit 78951610a6e9a2977008a8d5884bf1f2f8330da2)

4 months agoAvoid compiler warnings in the Cygwin-w32 build
Ken Brown [Wed, 26 Jun 2024 19:57:39 +0000 (15:57 -0400)]
Avoid compiler warnings in the Cygwin-w32 build

* src/w32fns.c [DEFAULT_IMAGE_BASE]: Don't define on Cygwin.
* src/cygw32.h (w32_get_resource): Add prototype.  (Bug#71786)

(cherry picked from commit fb15affde8cb27ad358ad7070d150238cec11f99)

4 months agoAdd new face 'widget-unselected' to wid-edit.el
Stephen Berman [Wed, 26 Jun 2024 06:42:19 +0000 (08:42 +0200)]
Add new face 'widget-unselected' to wid-edit.el

* doc/misc/widget.texi (Customization): Document it.

* etc/NEWS: Announce 'widget-unselected' face.

* lisp/wid-edit.el (widget-unselected): New face.
(widget-specify-unselected, widget-specify-selected): New functions.
(widget-checkbox-action, widget-checklist-add-item)
(widget-radio-add-item, widget-radio-value-set)
(widget-radio-action): Use them.

(cherry picked from commit 8d354925ddb03781e8be96b21023393d217d3778)

4 months agoCease using etags as a default Xref backend
Eshel Yaron [Thu, 27 Jun 2024 19:18:16 +0000 (21:18 +0200)]
Cease using etags as a default Xref backend

4 months ago* lisp/repeat.el (repeat-check-map): Simplify
Eshel Yaron [Thu, 27 Jun 2024 19:17:29 +0000 (21:17 +0200)]
* lisp/repeat.el (repeat-check-map): Simplify

4 months ago(tags-completion-at-point-function): Simplify autoloading
Eshel Yaron [Thu, 27 Jun 2024 19:17:03 +0000 (21:17 +0200)]
(tags-completion-at-point-function): Simplify autoloading

4 months agoNullify 'completion-at-point-functions' default value
Eshel Yaron [Thu, 27 Jun 2024 19:16:43 +0000 (21:16 +0200)]
Nullify 'completion-at-point-functions' default value

4 months agoFix 'repeat-check-map'
Eshel Yaron [Wed, 26 Jun 2024 20:09:16 +0000 (22:09 +0200)]
Fix 'repeat-check-map'

4 months agoRemove 'read-minibuffer-restore-windows'
Eshel Yaron [Wed, 26 Jun 2024 18:55:12 +0000 (20:55 +0200)]
Remove 'read-minibuffer-restore-windows'

4 months agoMinor improvements to new Completion Preview commands
Eshel Yaron [Wed, 26 Jun 2024 09:06:52 +0000 (11:06 +0200)]
Minor improvements to new Completion Preview commands

* lisp/completion-preview.el (Commentary): Mention
`completion-preview-partial-insert' and elaborate about
`completion-preview-insert-sexp'.
(completion-preview--barf-if-no-preview): New function.
(completion-preview-insert, completion-preview-complete):
Use it.
(completion-preview-partial-insert): Rename arg to FUN; only
compute (+ end (length aft)) once; bind 'deactivate-mark' to
nil while inserting/deleting to allow commands that use this
function to work as expected with 'shift-select-mode';
improve behavior when called with point not at the start of
the completion preview overlay (e.g. when point is in the
middle of a multi-word symbol and this function is called
via 'completion-preview-insert-word'); add the base part of
the completion candidate to when calling exit-function.
(completion-preview-insert-word): Improve docsting, rename
argument ARG to N.
(completion-preview-insert-sexp): Likewise, and also remove
second argument INTERACTIVE.
(completion-preview--active-p): Rename to...
(completion-preview-active-p): ...this.  Make this function
public so users can leverage it for their own commands.
Extend docstring to explain how to do that.

* test/lisp/completion-preview-tests.el
(completion-preview-insert-calls-exit-function)
(completion-preview-insert-word): Break long lines.
(completion-preview-insert-sexp)
(completion-preview-insert-nonsubword)
(completion-preview-insert-subword): Fix docstrings.
(completion-preview-insert-mid-symbol): New test.

(cherry picked from commit 9cb2a2040888c28587bed2b0902d9da90720f9a0)

4 months agoNew commands 'completion-preview-insert-{word,sexp}'
Jules Tamagnan [Mon, 24 Jun 2024 15:53:23 +0000 (08:53 -0700)]
New commands 'completion-preview-insert-{word,sexp}'

* lisp/completion-preview.el
(completion-preview-partial-insert): New function.
(completion-preview-insert-word)
(completion-preview-insert-sexp): New commands.
(completion-preview-commands): Add them.
(Commentary): Document them.
(completion-preview-active-mode-map): Add comment.
* test/lisp/completion-preview-tests.el
(completion-preview-insert-calls-exit-function): Update.
(completion-preview-insert-nonsubword)
(completion-preview-insert-subword)
(completion-preview-insert-sexp):  New tests.  (Bug#71716)

(cherry picked from commit b3017e7c252462297ee3887dd6d65cf14f138b85)

4 months agoAlways perform Eshell process cleanup runs in the Eshell buffer
Jim Porter [Wed, 26 Jun 2024 04:39:35 +0000 (21:39 -0700)]
Always perform Eshell process cleanup runs in the Eshell buffer

Previously, some code executed in a timer, which could execute in the
wrong buffer, leading to a hang.

* lisp/eshell/esh-proc.el (eshell-sentinel): Use 'with-current-buffer'
in the timer function.

* test/lisp/eshell/esh-proc-tests.el (eshell-test-value): New variable.
(esh-proc-test/sentinel/change-buffer): New test.

(cherry picked from commit da4bc5c9274a6705501e24fb8f2984f5bf5fe099)

4 months agoAvert crash in store_mode_line_string on Android 5.0 and earlier
Po Lu [Wed, 26 Jun 2024 04:08:55 +0000 (12:08 +0800)]
Avert crash in store_mode_line_string on Android 5.0 and earlier

* src/xdisp.c (store_mode_line_string)
[__ANDROID_API__ < 22]: Call strlen on STRING if the limit
would otherwise be SIZE_MAX, or if the address of the string
is within PRECISION bytes of UINTPTR_MAX, in which case it
cannot possibly be larger than PRECISION.

(cherry picked from commit 8b1841021c0d1ca92cb79443909824519429f75f)

4 months agoUse HarfBuzz in Cygwin-w32 build
Ken Brown [Tue, 25 Jun 2024 15:30:08 +0000 (11:30 -0400)]
Use HarfBuzz in Cygwin-w32 build

* src/w32uniscribe.c (syms_of_w32uniscribe_for_pdumper) [CYGWIN]:
Use cygharfbuzz-0.dll as HarfBuzz DLL name instead of
libharfbuzz-0.dll. (Bug#71766)

(cherry picked from commit e7c85f9235af485baba6e398b4f509f14bf80b1c)

4 months ago; * src/buffer.c (syms_of_buffer) <mode-line-format>: ASCIIfy.
Eli Zaretskii [Tue, 25 Jun 2024 13:42:47 +0000 (16:42 +0300)]
; * src/buffer.c (syms_of_buffer) <mode-line-format>: ASCIIfy.

(cherry picked from commit 8e3e206bd32c2fc4dc07ab2c6271fd0d0e8dddd9)

4 months agoFix tabbing between widgets (bug#70594)
Stephen Berman [Tue, 25 Jun 2024 10:38:03 +0000 (12:38 +0200)]
Fix tabbing between widgets (bug#70594)

* lisp/wid-edit.el (widget-move): Don't error when tabbing in a
buffer with only one active widget and 'widget-skip-inactive'
enabled.  Improve code by handling forward and backward movement
in a single loop.

(cherry picked from commit 2f18929319a4883575acb7440c920ad059a84105)

4 months ago; * lisp/which-key.el (which-key-dont-use-unicode): Add :initialize
Philip Kaludercic [Mon, 24 Jun 2024 20:15:25 +0000 (22:15 +0200)]
; * lisp/which-key.el (which-key-dont-use-unicode): Add :initialize

This fixes the change from 768e92b9, which accidentally would call
'custom-reevaluate-setting' on user options before they were registered,
initialising their default value to nil.  When the 'defcustom'
expressions were evaluated later on, they were not properly initialised
as their variables were already bound to some value (nil).

https://lists.gnu.org/archive/html/emacs-devel/2024-06/msg00825.html
(cherry picked from commit 6ad6507532bc653c13531112e9a5467e4370929a)

4 months ago* lisp/touch-screen.el (touch-screen-inhibit-drag): Another typo.
Po Lu [Tue, 25 Jun 2024 04:52:23 +0000 (12:52 +0800)]
* lisp/touch-screen.el (touch-screen-inhibit-drag): Another typo.

(cherry picked from commit 60b38c317bbd8e6020442a5c0efe504a22eaa092)

4 months agoSupport rescaling sliced images in EWW via 'text-scale-mode'
Jim Porter [Mon, 24 Jun 2024 00:27:24 +0000 (17:27 -0700)]
Support rescaling sliced images in EWW via 'text-scale-mode'

* src/xdisp.c (find_display_property): When the property value has
multiple elements, return the whole list.

* lisp/net/eww.el (eww--rescale-images): Use 'get-display-property'.

* doc/lispref/display.texi (Display Property): Describe the new
'get-display-property' behavior (bug#71741).

(cherry picked from commit 6837828219b965148219f6d8eba4c740aaddacbb)

4 months agoFix rescaling of images via 'text-scale-mode' in EWW
Jim Porter [Sun, 23 Jun 2024 23:59:00 +0000 (16:59 -0700)]
Fix rescaling of images via 'text-scale-mode' in EWW

* lisp/net/eww.el (eww--rescale-images): Handle a :scale of 'default'
(bug#71741).

(cherry picked from commit 3abcfe013d809a8194f5158877fd43f11d714fd5)

4 months ago* lisp/touch-screen.el (touch-screen-inhibit-drag): Fix typo.
Po Lu [Tue, 25 Jun 2024 04:27:08 +0000 (12:27 +0800)]
* lisp/touch-screen.el (touch-screen-inhibit-drag): Fix typo.

(cherry picked from commit 0e43606b20d4ce1c094dfc41ee90f46517aa7419)

4 months agoFix latent side-effects of respecting field boundaries in text conversion
Po Lu [Tue, 25 Jun 2024 03:37:09 +0000 (11:37 +0800)]
Fix latent side-effects of respecting field boundaries in text conversion

* src/textconv.c (textconv_query, get_extracted_text)
(get_surrounding_text): Restore selected window in addition to
excursion.
(locate_and_save_position_in_field): Restore excursion lest the
current buffer differ from the selected window's contents, to
prevent redisplay from clobbering the current buffer when called
while the current buffer is at variance with the selected
window's contents, as seen with dired-other-window.

(cherry picked from commit 1b4c56272110944c4ea1483c6f9662de9e42a07b)

4 months ago; * lisp/treesit.el (treesit--syntax-propertize-start): Fix doc.
Yuan Fu [Tue, 25 Jun 2024 02:27:54 +0000 (19:27 -0700)]
; * lisp/treesit.el (treesit--syntax-propertize-start): Fix doc.

(cherry picked from commit 2ba39a30bf4fbe90b5b5e16a50dc7090a42b759b)

4 months ago; * lisp/simple.el (undo-auto--boundaries): Doc fix (bug#71755).
Eli Zaretskii [Mon, 24 Jun 2024 19:21:26 +0000 (22:21 +0300)]
; * lisp/simple.el (undo-auto--boundaries): Doc fix (bug#71755).

(cherry picked from commit e4046f33ab8ff2a5a1edbba2634d52bcadf25b24)

4 months ago; * lisp/language/cyrillic.el: Delete obsolete commentary (bug#71754).
Eli Zaretskii [Mon, 24 Jun 2024 19:17:05 +0000 (22:17 +0300)]
; * lisp/language/cyrillic.el: Delete obsolete commentary (bug#71754).

(cherry picked from commit 008eeb21fdb294726a4d151929d3fff26658c8a8)

4 months agoAdd missing builtin package declarations
Jonas Bernoulli [Mon, 24 Jun 2024 18:34:53 +0000 (20:34 +0200)]
Add missing builtin package declarations

* lisp/editorconfig-conf-mode.el:
* lisp/editorconfig-core-handle.el:
* lisp/editorconfig-core.el:
* lisp/editorconfig-fnmatch.el:
* lisp/editorconfig-tools.el: Declare library as part of the
'editorconfig' package.

(cherry picked from commit 680155d3f0328a22ecce18647779e0e26931e825)

4 months agoExtend treesitter tests on emba
Michael Albinus [Mon, 24 Jun 2024 18:02:07 +0000 (20:02 +0200)]
Extend treesitter tests on emba

* test/infra/Dockerfile.emba (emacs-tree-sitter): Install c-ashrp
grammar.

* test/infra/Makefile.in (TREE-SITTER-FILES): Add csharp-mode-tests.el.
(tree-sitter-files): Rename from tree-sitter-files-template.
Generate .tree-sitter-files.

* test/infra/gitlab-ci.yml (test-tree-sitter): Extend .tree-sitter-files.

* test/infra/test-jobs.yml: Regenerate.

(cherry picked from commit ce4f56caf71b24ef005c832168f92bc72b532460)

4 months agoShow entries from key-translation-map in which-key mode
Robert Pluim [Mon, 24 Jun 2024 13:09:00 +0000 (15:09 +0200)]
Show entries from key-translation-map in which-key mode

* lisp/which-key.el (which-key-extra-keymaps): New user option.
(which-key--get-current-bindings): Consult it.

(Bug#71648)

(cherry picked from commit 7e8a97ac7885c1f0818a713e98bedd558293bb39)

4 months ago* lisp/tab-bar.el (tab-bar-tab-group-face-function): Improve doc (bug#71733).
Juri Linkov [Mon, 24 Jun 2024 16:57:57 +0000 (19:57 +0300)]
* lisp/tab-bar.el (tab-bar-tab-group-face-function): Improve doc (bug#71733).

(cherry picked from commit 4a0958642d96fcd521087dc4fa54d0701797a585)

4 months ago; Fix flymake tests with GCC 14.
Ulrich Müller [Mon, 24 Jun 2024 13:20:26 +0000 (15:20 +0200)]
; Fix flymake tests with GCC 14.

* test/lisp/progmodes/flymake-tests.el (included-c-header-files):
Fix test failure with GCC 14.  (Bug#71749)

(cherry picked from commit a769f171e7ebb8e30f198f4328d46f47fe7958fb)

4 months agoDon't show char name for multi-char translations
Robert Pluim [Mon, 24 Jun 2024 12:33:30 +0000 (14:33 +0200)]
Don't show char name for multi-char translations

I forgot about shift-translation when implementing this originally, so
this code was being triggered for things like 'C-S-<up>'.

* lisp/help.el (help-key-description): Check if the translation result
is a single char.

(Bug#71411)

(cherry picked from commit 96e27c2ecf9914cbb9d2e0824adf501082f88ef6)

4 months agoReset ls-lisp-use-string-collate when ls-lisp-emulation changes
Robert Pluim [Mon, 24 Jun 2024 09:25:30 +0000 (11:25 +0200)]
Reset ls-lisp-use-string-collate when ls-lisp-emulation changes

* lisp/ls-lisp.el (ls-lisp-set-options): Add ls-lisp-use-string-collate
to the list of custom options that are reset when ls-lisp-emulation
changes.

https://lists.gnu.org/archive/html/help-gnu-emacs/2024-06/msg00135.html
(cherry picked from commit 0715abfa86acb1289074ac7647984941c71759ec)

4 months agoUpdate to Transient v0.7.2-1-gf273c0c8
Jonas Bernoulli [Mon, 24 Jun 2024 11:38:35 +0000 (13:38 +0200)]
Update to Transient v0.7.2-1-gf273c0c8

This fixes two bugs, one of them restoring compatibility with the
version that ships with Emacs 29, making emoji-insert usable again.
The other changes are of cosmetic nature.  The only exception is a new
command, whose creation lead to the discovery of one of the bugs, and
remains unused until a package author actually binds it in a prefix.
I.e., unless someone actually uses this, the risk of a regression is
close to zero, and even if it is used, it can only affect the prefix
that binds it.

(cherry picked from commit 4fcc38966bf58cc9977fc9fea0f7cec7eea30f6b)

4 months ago; Fix typos
Robert Pluim [Mon, 24 Jun 2024 09:19:28 +0000 (11:19 +0200)]
; Fix typos

* ChangeLog.3: It's "its", not "it's", for the possessive.
* ChangeLog.4: And here.

(cherry picked from commit 164f75822b2055606d8f36453dc9a874296983ec)

4 months agoUpdate options that depend on 'which-key-dont-use-unicode'
Philip Kaludercic [Mon, 24 Jun 2024 07:42:20 +0000 (09:42 +0200)]
Update options that depend on 'which-key-dont-use-unicode'

* lisp/which-key.el (which-key-dont-use-unicode): Add a custom setter
that re-evaluates a manual list of options use
'which-key-dont-use-unicode' to determine their default value.

https://lists.gnu.org/archive/html/help-gnu-emacs/2024-06/msg00130.html
(cherry picked from commit 768e92b9c0214a2aa1be2afbee48c455583d3110)

4 months ago(xref-show-definitions-completing-read): Add 'minibuffer-action'
Eshel Yaron [Mon, 24 Jun 2024 17:11:59 +0000 (19:11 +0200)]
(xref-show-definitions-completing-read): Add 'minibuffer-action'

4 months ago; completion-preview-tests.el: Deduplicate some test code
Eshel Yaron [Mon, 24 Jun 2024 14:58:49 +0000 (16:58 +0200)]
; completion-preview-tests.el: Deduplicate some test code

* test/lisp/completion-preview-tests.el
(completion-preview-tests--insert-and-preview): New function.
(completion-preview)
(completion-preview-multiple-matches)
(completion-preview-exact-match-only)
(completion-preview-function-capfs)
(completion-preview-non-exclusive-capfs)
(completion-preview-face-updates)
(completion-preview-capf-errors)
(completion-preview-complete)
(completion-preview-insert-calls-exit-function): Use it.

4 months agowindmove.el: Remove bespoke key binding machinery
Eshel Yaron [Mon, 24 Jun 2024 14:53:45 +0000 (16:53 +0200)]
windmove.el: Remove bespoke key binding machinery

4 months ago* doc/misc/calc.texi (Musical Notes): Fix typo.
Andreas Schwab [Tue, 13 Jun 2023 14:00:17 +0000 (16:00 +0200)]
* doc/misc/calc.texi (Musical Notes): Fix typo.

(cherry picked from commit e4e1d0cd0747f8326fbe55a7486edd51e2e6d21d)

4 months agoFix omission of updates to child frames on Android
Po Lu [Mon, 24 Jun 2024 04:04:05 +0000 (12:04 +0800)]
Fix omission of updates to child frames on Android

* java/org/gnu/emacs/EmacsView.java (onAttachedFromWindow):
Force a layout cycle rather than report exposure immediately.
(prepareForLayout): Delete function.

* java/org/gnu/emacs/EmacsWindow.java (mapWindow): Remove
redundant calls to prepareForLayout.

* src/androidterm.c (handle_one_android_event): Do not swap
buffers when exposure is registered by a frame only partially
updated.

(cherry picked from commit 73a58329a6946f5abc62fee2647efba56cce236b)

4 months agoAdd jsdoc support to js-ts-mode
Damien Cassou [Fri, 14 Jun 2024 08:46:42 +0000 (10:46 +0200)]
Add jsdoc support to js-ts-mode

* lisp/progmodes/js.el (js--treesit-font-lock-settings): Add jsdoc
font-lock settings.
(js--treesit-jsdoc-beginning-regexp): New variable to match the
beginning of a jsdoc block.
(js-ts-mode): Add jsdoc support. Save the 'javascript parser to
`treesit-primary-parser'. Configure `treesit-range-settings' to
use a jsdoc parser within a JavaScript file.
(js-ts-language-at-point): New function to return either 'jsdoc or
'javascript depending on where the point is.

(cherry picked from commit 0edacf2aa7e53d0cec95bcaae4cd19e5389b70f8)

4 months ago; Restore inadvertently removed line.
Eli Zaretskii [Sun, 23 Jun 2024 19:22:12 +0000 (22:22 +0300)]
; Restore inadvertently removed line.

(cherry picked from commit cace0cbee93f2a7f70a14a8445abcd176d3b3af2)

4 months ago; * test/lisp/net/shr-tests.el (shr-test--rendering-check): Use UTF-8.
Eli Zaretskii [Sun, 23 Jun 2024 19:17:37 +0000 (22:17 +0300)]
; * test/lisp/net/shr-tests.el (shr-test--rendering-check): Use UTF-8.

(cherry picked from commit 2b04effb13d2082358aed3a789cddc124dd7c4f2)

4 months ago; Don't run new 'shr-test/zoom-image' when built without image support
Jim Porter [Sun, 23 Jun 2024 18:40:30 +0000 (11:40 -0700)]
; Don't run new 'shr-test/zoom-image' when built without image support

* test/lisp/net/shr-tests.el (shr-test/zoom-image): Skip when
'image-types' is unbound.

(cherry picked from commit 6619aec6bca6d682be9a995f417e65bb0849d593)

4 months ago; * admin/release-branch.txt: Update and fix typo.
Eli Zaretskii [Sun, 23 Jun 2024 17:57:26 +0000 (20:57 +0300)]
; * admin/release-branch.txt: Update and fix typo.

(cherry picked from commit 5d19bfda3219c9d2d2a94656d842a9019b274b51)

4 months agoIgnore all dot-files in .gitignore
Stefan Kangas [Sun, 23 Jun 2024 16:07:27 +0000 (18:07 +0200)]
Ignore all dot-files in .gitignore

* .gitignore: Ignore all dot-files except for those checked into Git.
This makes us less opinionated about using tools in the Emacs tree.

(cherry picked from commit 9688fd6eb1d05e97c556cd53c53dd92220d9efaa)

4 months agoDelete obsolete file process.cocci
Stefan Kangas [Sun, 23 Jun 2024 15:34:38 +0000 (17:34 +0200)]
Delete obsolete file process.cocci

* admin/coccinelle/process.cocci: Delete file.  This semantic patch was
converting code to use the PVAR macro, which was removed by Paul Eggert
on 2012-08-17 (commit 6a09a33b5551).

(cherry picked from commit 7bedbbc708aa3d369617881020807387e7c5b6b1)

4 months ago; Fix typos
Stefan Kangas [Sun, 23 Jun 2024 14:28:31 +0000 (16:28 +0200)]
; Fix typos

(cherry picked from commit fb11294d4156a4be45080ff286a8ee0d5a3ede9b)

4 months agoAllow git 1.8.2 features in .gitignore
Stefan Kangas [Sun, 23 Jun 2024 13:46:42 +0000 (15:46 +0200)]
Allow git 1.8.2 features in .gitignore

* .gitignore: Assume git 1.8.2 or later; we already use the '**' feature
from that version since 2021.

(cherry picked from commit 93088fc13c47fbab875f9ee173c0a66d623d91c6)

4 months agoPrefer setq-local in reftex
Stefan Kangas [Sun, 23 Jun 2024 13:41:23 +0000 (15:41 +0200)]
Prefer setq-local in reftex

* lisp/textmodes/reftex-global.el (reftex-find-duplicate-labels)
(reftex-isearch-minor-mode):
* lisp/textmodes/reftex-index.el (reftex-index-mode)
(reftex-display-index, reftex-index-initialize-phrases-buffer)
(reftex-index-phrases-mode):
* lisp/textmodes/reftex-sel.el (reftex-select-label-mode)
(reftex-select-bib-mode, reftex-insert-docstruct, reftex-select-item):
* lisp/textmodes/reftex-toc.el (reftex-toc-mode, reftex-toc):
* lisp/textmodes/reftex.el (reftex-fontify-select-label-buffer):
Prefer setq-local.

(cherry picked from commit b9ce39ba809f49fe80d5b9a6d41afe1fe144fc77)

4 months ago* src/puresize.h (BASE_PURESIZE): Increase.
Eli Zaretskii [Sun, 23 Jun 2024 11:42:23 +0000 (07:42 -0400)]
* src/puresize.h (BASE_PURESIZE): Increase.

(cherry picked from commit 39aa286072924ebef68b068fa9d9afc8374ede86)

4 months agoUpdate emacs-module for Emacs 31
Eli Zaretskii [Sun, 23 Jun 2024 11:11:04 +0000 (07:11 -0400)]
Update emacs-module for Emacs 31

* src/module-env-31.h: New file.
* src/module-env-30.h:
* configure.ac:
* src/emacs-module.h.in: Update emacs-module files for Emacs 31.

(cherry picked from commit 2d6ca28ce71ab81fb79d702f06b6ad47aa5de433)

4 months ago* lisp/cus-edit.el (customize-changed-options-previous-release): Bump version.
Eli Zaretskii [Sun, 23 Jun 2024 11:03:45 +0000 (07:03 -0400)]
* lisp/cus-edit.el (customize-changed-options-previous-release): Bump version.

(cherry picked from commit c246de0d163354daeac58d13db320b4157166340)

4 months agoBump Emacs version to 31.0.50
Eli Zaretskii [Sun, 23 Jun 2024 10:56:48 +0000 (06:56 -0400)]
Bump Emacs version to 31.0.50

* README:
* configure.ac:
* nt/README.W32:
* msdos/sed2v2.inp:
* etc/refcards/ru-refcard.tex:
* etc/NEWS: Bump Emacs version to 31.0.50.
* etc/NEWS.30: New file.

(cherry picked from commit 17f202939e9d28e207acfb95a5e93563efc0a834)

4 months ago; Move etc/NEWS to etc/NEWS.30
Eli Zaretskii [Sun, 23 Jun 2024 10:53:28 +0000 (06:53 -0400)]
; Move etc/NEWS to etc/NEWS.30

(cherry picked from commit 23e08245c3f807f0da4f9b92eee9bb897533c088)

4 months agoNew branch emacs-30
Eli Zaretskii [Sun, 23 Jun 2024 10:48:54 +0000 (06:48 -0400)]
New branch emacs-30

* README:
* configure.ac:
* nt/README.W32:
* etc/refcards/ru-refcard.tex:
* msdos/sed2v2.inp:
* lisp/cus-edit.el (customize-changed-options-previous-release):
Cut the emacs-30 release branch.

(cherry picked from commit dd0fc6aff602447d3e62d52a2a3b45b1a5733f28)

4 months ago* admin/admin.el: (set-version): Fix regexp for configure.ac.
Eli Zaretskii [Sun, 23 Jun 2024 10:42:29 +0000 (06:42 -0400)]
* admin/admin.el: (set-version): Fix regexp for configure.ac.

(cherry picked from commit bc72c33ac387a0a8cee5a9c0796db35c1c675297)

4 months agoDisable Ffile_system_info for Android special directories
Po Lu [Sun, 23 Jun 2024 08:41:36 +0000 (16:41 +0800)]
Disable Ffile_system_info for Android special directories

* src/fileio.c (Ffile_system_info): Return Qnil if FILENAME
refers to a special directory.

(cherry picked from commit 60475a73d17d293f5c1e82bc5b3c058b414266e8)

4 months agoFix a bug in 'switch-to-buffer'
Martin Rudalics [Sun, 23 Jun 2024 08:26:57 +0000 (10:26 +0200)]
Fix a bug in 'switch-to-buffer'

* lisp/window.el (switch-to-buffer): When asked to switch to the
buffer of the selected window,
'switch-to-buffer-obey-display-actions' is non-nil and
'pop-to-buffer' uses the selected window, don't try to restore
window start and point from 'window-prev-buffers' (Bug#71616).

(cherry picked from commit 5f8a9cd4b6f4441c158a750ad7c5b937b559edd4)

4 months agoFix zooming images in SHR
Jim Porter [Thu, 20 Jun 2024 03:59:59 +0000 (20:59 -0700)]
Fix zooming images in SHR

Previously, for images with no alt-text, the zoomed image wouldn't get
properly inserted.  For images with alt-text, both the zoomed and
unzoomed image would be displayed at once (bug#71666).

* lisp/net/shr.el (shr-sliced-image): New face.
(shr-zoom-image): Reimplement using
'next/previous-single-property-change', and don't bother deleting any of
the text.
(shr-image-fetched): Clean up any overlays when deleting the old region.
(shr-put-image): Ensure we always have a non-empty string to put the
image on.  For sliced images, just use "*", since we'll repeat it, so we
can't preserve the original buffer text exactly anyway.  Apply an
overlay to sliced images to prevent unsightly text decorations.
(shr-tag-img): Move the placeholder space insertion where it should be
and explain what it's doing.

* test/lisp/net/shr-tests.el (shr-test--max-wait-time)
(shr-test-wait-for): New helper functions.
(shr-test/zoom-image): New test.

(cherry picked from commit 5f9b5803bea0f360a91e00cd85d72ea7f56d6095)

4 months ago; Doc fix in 'php-ts-mode'.
Eli Zaretskii [Sun, 23 Jun 2024 05:01:28 +0000 (08:01 +0300)]
; Doc fix in 'php-ts-mode'.

* lisp/progmodes/php-ts-mode.el (php-ts-mode-css-fontify-colors):
Doc fix.

(cherry picked from commit 6f2036243f24369b0b4c35c9b323eb19dad4e4cd)