]> git.eshelyaron.com Git - emacs.git/log
emacs.git
4 months ago; Delete redundant and/or misleading package headers
Stefan Kangas [Wed, 19 Jun 2024 05:22:54 +0000 (07:22 +0200)]
; Delete redundant and/or misleading package headers

* lisp/erc/erc-backend.el:
* lisp/hfy-cmap.el:
* lisp/htmlfontify.el:
* lisp/net/newst-backend.el:
* lisp/net/newst-plainview.el:
* lisp/net/newst-reader.el:
* lisp/net/newst-ticker.el:
* lisp/net/newst-treeview.el:
* lisp/net/newsticker.el:
* lisp/use-package/use-package-ensure-system-package.el:
* lisp/wdired.el: Delete redundant and/or misleading package headers.

(cherry picked from commit 0dd2defc2c19b09ba71bf4d4f813c5402fe31837)

4 months ago; * lisp/htmlfontify.el: Remove "Version" header.
Stefan Kangas [Wed, 19 Jun 2024 05:13:28 +0000 (07:13 +0200)]
; * lisp/htmlfontify.el: Remove "Version" header.

This package is only distributed with Emacs, so the only relevant
version number here is `emacs-version´.

(cherry picked from commit 749ae36ee3e02d41968433915caed6c6fb4cd986)

4 months agoAvoid races between the tooltip and compositor on X and Android
Po Lu [Wed, 19 Jun 2024 02:57:07 +0000 (10:57 +0800)]
Avoid races between the tooltip and compositor on X and Android

* java/org/gnu/emacs/EmacsView.java (onLayout): Don't send
exposure events when the window is still to be attached.

* src/androidfns.c (Fx_show_tip):

* src/xfns.c (Fx_show_tip): Block async input around initial
frame update.

(cherry picked from commit 5fceb53856583384e7adeab52494d1afc6eae666)

4 months ago; * .mailmap: Update.
Stefan Kangas [Tue, 18 Jun 2024 19:54:22 +0000 (21:54 +0200)]
; * .mailmap: Update.

(cherry picked from commit 94be2b2682bc16b15755dca63ef8406018c9f3e9)

4 months ago* lisp/org/ob-lua.el: Minor doc fixes.
Stefan Kangas [Tue, 18 Jun 2024 19:27:01 +0000 (21:27 +0200)]
* lisp/org/ob-lua.el: Minor doc fixes.

(cherry picked from commit a7dff8c53dde18c703f470cde9ad033cffe8c766)

4 months agoUpdate Coccinelle URL
Stefan Kangas [Tue, 18 Jun 2024 19:10:42 +0000 (21:10 +0200)]
Update Coccinelle URL

* admin/coccinelle/README: Update URL.

(cherry picked from commit 0d1edecf1eaab277465b77e8627de01599cc7cee)

4 months agoUpdate to Transient v0.7.0-1-g482bc777
Jonas Bernoulli [Tue, 18 Jun 2024 15:02:20 +0000 (17:02 +0200)]
Update to Transient v0.7.0-1-g482bc777

(cherry picked from commit dceb28a1cfad276cdf070a9b2ca4d8f3ab3c1a85)

4 months agoAdapt tramp-use-file-attributes
Michael Albinus [Tue, 18 Jun 2024 12:40:20 +0000 (14:40 +0200)]
Adapt tramp-use-file-attributes

* doc/misc/tramp.texi: Fix indentation.
(Bug Reports): Mention Gmane group gmane.emacs.tramp.
(Frequently Asked Questions): Precise tramp-use-file-attributes entry.

* lisp/net/tramp-sh.el (tramp-open-connection-setup-interactive-shell):
Dump os-release when `tramp-verbose' is at least 9.

* lisp/net/tramp.el (tramp-use-file-attributes): Adapt docstring.
Use connection-local value.

(cherry picked from commit dc308348a904d69916ca6ab1eb587aff03e8421c)

4 months agoFix window class of Android tooltips
Po Lu [Tue, 18 Jun 2024 07:53:18 +0000 (15:53 +0800)]
Fix window class of Android tooltips

* java/org/gnu/emacs/EmacsWindow.java (getWindowLayoutParams):
Declare as a panel, rather than an attached dialog.

(cherry picked from commit fb04a51894874aba3f9981723981ca336ba5ff77)

4 months agoCorrect resolution of non-virtual directory names on Android
Po Lu [Tue, 18 Jun 2024 06:41:26 +0000 (14:41 +0800)]
Correct resolution of non-virtual directory names on Android

* src/androidvfs.c (android_vfs_canonicalize_name): Correct
return value in cases of underflowing the directory stack.
(android_unix_name): Reset vnode operations vector of copied
vnodes to their standard value, and exclude virtual directories
from subdirectories of the root directory's parent directory.
(android_root_name): Adjust to match.

(cherry picked from commit 6a162be6a8f4681d3465fac7573b9f42cfbeaefb)

4 months ago* java/Makefile.in (emacs.apk-in): Don't compress *.gz files on SDK 8.
Po Lu [Tue, 18 Jun 2024 02:11:51 +0000 (10:11 +0800)]
* java/Makefile.in (emacs.apk-in): Don't compress *.gz files on SDK 8.

(cherry picked from commit 3c2df93e063761ee78b25157c689b6d26210f80b)

4 months agodiff-mode: Optimize source language syntax highlighting
Dmitry Gutov [Mon, 17 Jun 2024 19:51:23 +0000 (22:51 +0300)]
diff-mode: Optimize source language syntax highlighting

* lisp/vc/diff-mode.el (diff--get-revision-properties):
Never pass FILE to 'diff-syntax-fontify-props'; assume that
'vc-find-revision-no-save' has called the major mode function
already (bug#71604).

(cherry picked from commit f7953a0eef4bf6505352c199a2f8ae8f3563fdfa)

4 months ago* lisp/tab-line.el (tab-line-force-update): New function (bug#71601).
Juri Linkov [Mon, 17 Jun 2024 16:47:53 +0000 (19:47 +0300)]
* lisp/tab-line.el (tab-line-force-update): New function (bug#71601).

(tab-line-tab-name-function, tab-line-tabs-function)
(tab-line-tabs-buffer-group-function)
(tab-line-tabs-buffer-group-sort-function)
(tab-line-tabs-buffer-groups-sort-function)
(tab-line-tab-name-format-function):
Use 'tab-line-force-update' in the :set lambda of defcustom.
(tab-line-tab-name-function, tab-line-tabs-function)
(tab-line-cache-key-function): Mention 'tab-line-force-update'
in the docstring.
(tab-line-new-button-show, tab-line-close-button-show):
In the :set lambda of defcustom use 'force-mode-line-update'
with the non-nil arg ALL.

(cherry picked from commit b26270ae94329131966bf2d836cf6c90b90e5cdd)

4 months ago* lisp/outline.el: Make revert-related functions internal.
Juri Linkov [Mon, 17 Jun 2024 16:40:00 +0000 (19:40 +0300)]
* lisp/outline.el: Make revert-related functions internal.

(outline--hidden-headings-paths)
(outline--hidden-headings-restore-paths): Rename with the prefix
'outline--' to mark them internal to discourage from relying on
their arguments and return values.

(cherry picked from commit 66c0099122887e76fab584d04337f6f962757967)

4 months ago; Skip commit 27f46ba4b96947dedbafa6e4366a07fa171dbd2e
Eshel Yaron [Wed, 19 Jun 2024 08:41:41 +0000 (10:41 +0200)]
; Skip commit 27f46ba4b96947dedbafa6e4366a07fa171dbd2e

4 months ago* lisp/touch-screen.el (touch-screen-inhibit-drag): Fix 'not' arity use.
Andrea Corallo [Mon, 17 Jun 2024 13:38:37 +0000 (15:38 +0200)]
* lisp/touch-screen.el (touch-screen-inhibit-drag): Fix 'not' arity use.

(cherry picked from commit a5a374014f3afe0d6b94bf645c6cf886c6564699)

4 months agoDon't hide `not` and `null` arity errors
Mattias Engdegård [Mon, 17 Jun 2024 11:14:08 +0000 (13:14 +0200)]
Don't hide `not` and `null` arity errors

* lisp/emacs-lisp/byte-opt.el (byte-optimize-not):
Don't silently convert incorrect `not` and `null` applications to nil.

(cherry picked from commit 923aad81d473fd99adb651302dcccd79c6afbeff)

4 months ago; Skip commit 175a513d19b7dd2aa2af3eb549b4c6b5a099e88d
Eshel Yaron [Wed, 19 Jun 2024 08:41:05 +0000 (10:41 +0200)]
; Skip commit 175a513d19b7dd2aa2af3eb549b4c6b5a099e88d

4 months agoReinforce bitmap reconfiguration on Android
Po Lu [Mon, 17 Jun 2024 09:43:24 +0000 (17:43 +0800)]
Reinforce bitmap reconfiguration on Android

* java/org/gnu/emacs/EmacsView.java (EmacsView) <unswapped>: New
field in which to record whether the back buffer has received
contents beyond those present at the last buffer swap.
<dimensionsLock>: Delete field.
(onAttachedToWindow, onLayout, handleDirtyBitmap)
(prepareForLayout): Rather, synchronize window dimensions with
the view.
(getCanvas, getBitmap): Do not reconfigure the back buffer
bitmap if such outstanding data exists.
(postSwapBuffers): New function.
(swapBuffers): If such outstanding data exists and the back
bufferis pending reconfiguration, recreate the back buffer and
report exposure.

* src/androidterm.c (handle_one_android_event): Fix indentation.

(cherry picked from commit 82f0014273193d27c71a1fcb9be778c85cfa5e65)

4 months ago; Skip commit 6aa5068ac71cb1b8e46c299138f99fea44319146
Eshel Yaron [Wed, 19 Jun 2024 08:40:27 +0000 (10:40 +0200)]
; Skip commit 6aa5068ac71cb1b8e46c299138f99fea44319146

4 months ago* lisp/outline.el: Keep point on the same outline after revert.
Juri Linkov [Mon, 17 Jun 2024 06:32:45 +0000 (09:32 +0300)]
* lisp/outline.el: Keep point on the same outline after revert.

(outline-hidden-headings-paths): Return the current path as well.
(outline-hidden-headings-restore-paths): Move point to the path
that was current before reverting the buffer (bug#71466).
(outline-revert-buffer-restore-visibility):
Handle both values returned from outline-hidden-headings-paths.

(cherry picked from commit 7be66d8223e49489b2803c0ff027f1824d774441)

4 months ago; Translate comment to English
Stefan Kangas [Sun, 16 Jun 2024 20:16:36 +0000 (22:16 +0200)]
; Translate comment to English

* lisp/progmodes/php-ts-mode.el
(php-ts-mode--parent-html-heuristic): Translate comment to English.

(cherry picked from commit f18a915690c48119daaecf5b8684c46129496866)

4 months ago; Fix typos
Stefan Kangas [Sun, 16 Jun 2024 19:59:42 +0000 (21:59 +0200)]
; Fix typos

(cherry picked from commit c0eefebabfee011f0ec7631d055e482e4965a24d)

4 months agoTramp: handle non-standard file system like GPFS
Michael Albinus [Sun, 16 Jun 2024 14:03:41 +0000 (16:03 +0200)]
Tramp: handle non-standard file system like GPFS

* doc/misc/tramp.texi (Frequently Asked Questions):
Explain tramp-use-file-attributes.

* lisp/net/tramp.el (tramp-use-file-attributes): New defcustom and
defsubst.
(tramp-skeleton-file-exists-p):
* lisp/net/tramp-adb.el (tramp-adb-handle-file-executable-p)
(tramp-adb-handle-file-readable-p):
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-handle-file-executable-p)
(tramp-sudoedit-handle-file-readable-p)
(tramp-sudoedit-handle-file-writable-p): Use it.
* lisp/net/tramp-sh.el (tramp-sh-handle-file-executable-p)
(tramp-sh-handle-file-readable-p)
(tramp-sh-handle-file-writable-p): Use it.
(tramp-sh-handle-set-file-acl): Fix property name.

(cherry picked from commit 90234ba7f024f3dae342689b47930835e4904503)

4 months agoFix clipboard request on macOS for yank-media
Robert Pluim [Sun, 16 Jun 2024 12:23:37 +0000 (14:23 +0200)]
Fix clipboard request on macOS for yank-media

'yank-media' makes a request with 'CLIPBOARD and 'TARGETS, which on
other platforms returns the type(s) of the current selection, but on
macOS returned the selection itself.  Make it return the types instead.

This fixes (Bug#71377).

* src/nsselect.m (ns_get_local_selection): Return nil when called with
QCLIPBOARD and QTARGETS, so that 'ns_get_foreign_selection' is called to
return the type(s) of the selection.

(cherry picked from commit 275a5582414c2f63bccce896200b4e84f1ba0d75)

4 months ago; Skip which-key merge commits
Eshel Yaron [Wed, 19 Jun 2024 08:30:07 +0000 (10:30 +0200)]
; Skip which-key merge commits

4 months agoGeneralize minibuffer-action/apply to non-completion minibuffers
Eshel Yaron [Tue, 18 Jun 2024 17:05:51 +0000 (19:05 +0200)]
Generalize minibuffer-action/apply to non-completion minibuffers

4 months ago(describe-{function,command,variable,symbol,keymap}): Add action
Eshel Yaron [Mon, 17 Jun 2024 16:50:52 +0000 (18:50 +0200)]
(describe-{function,command,variable,symbol,keymap}): Add action

5 months agoFix Bug#71603
Eshel Yaron [Mon, 17 Jun 2024 10:51:19 +0000 (12:51 +0200)]
Fix Bug#71603

5 months agoCorrect 'bookmark-display'
Eshel Yaron [Mon, 17 Jun 2024 10:47:19 +0000 (12:47 +0200)]
Correct 'bookmark-display'

5 months agoAdd 'minibuffer-action' to 'imenu'
Eshel Yaron [Mon, 17 Jun 2024 10:46:14 +0000 (12:46 +0200)]
Add 'minibuffer-action' to 'imenu'

5 months agoNew command 'minibuffer-apply-and-cycle-completion'
Eshel Yaron [Mon, 17 Jun 2024 10:45:27 +0000 (12:45 +0200)]
New command 'minibuffer-apply-and-cycle-completion'

5 months agoFix Bug#52389
Eshel Yaron [Mon, 17 Jun 2024 10:42:00 +0000 (12:42 +0200)]
Fix Bug#52389

5 months agoMinor adjustments to battery.el on Android
Po Lu [Sun, 16 Jun 2024 07:27:43 +0000 (15:27 +0800)]
Minor adjustments to battery.el on Android

* src/android.c (android_query_battery):

* java/org/gnu/emacs/EmacsService.java (queryBattery19)
(queryBattery): Reorder items in value for consistency with
Fandroid_query_battery.

* lisp/battery.el (battery-status-function): Select
battery-android only when android-query-battery is present.
(battery-android): Return temperature and correct values of
power source constants.

(cherry picked from commit a39f6480ea5b6d3f81db90808123cdeb54790787)

5 months agoFix Eshell "which" test on MS-Windows
Jim Porter [Sat, 15 Jun 2024 23:59:11 +0000 (16:59 -0700)]
Fix Eshell "which" test on MS-Windows

* test/lisp/eshell/esh-cmd-tests.el
(esh-cmd-test/which/plain/external-program): Compare the file name
case-insensitively on case-insensitive file systems.

* test/lisp/eshell/eshell-tests-helpers.el
(eshell-command-result--equal): Revert to the previous implementation.

(cherry picked from commit aefcccc1d411c973a3275959d7fa340d77f9157e)

5 months agoSimplify bitmap reallocation on Android
Po Lu [Sun, 16 Jun 2024 03:35:44 +0000 (11:35 +0800)]
Simplify bitmap reallocation on Android

* java/org/gnu/emacs/EmacsView.java: Update outdated commentary.
(handleDirtyBitmap): Don't copy contents of the previous bitmap
to the new.
(onLayout): Unconditionally expose upon layout changes.

(cherry picked from commit 8d60b6bab8b95e4f3b350a8b093e8f60e3f83f69)

5 months agoDocument unavailability of color fonts on Android
Po Lu [Sun, 16 Jun 2024 02:55:43 +0000 (10:55 +0800)]
Document unavailability of color fonts on Android

* doc/emacs/android.texi (Android Fonts): Document absence of
support for color fonts.

(cherry picked from commit 3241d6cfbfeca48fbd5dc12dbf56c21688e9dce4)

5 months agoAccount for duplicate removal on restoring eww-history-position
James Thomas [Mon, 10 Jun 2024 21:30:33 +0000 (03:00 +0530)]
Account for duplicate removal on restoring eww-history-position

* lisp/net/eww.el (eww-desktop-misc-data): Add :history-position
(eww-restore-desktop): Use it.
(desktop-locals-to-save): Remove the raw variable.

(cherry picked from commit 65b7f87a31da2e78285c5eb1ee2b2b38fc349361)

5 months agoFix em-extpipe-tests on MS-Windows
Eli Zaretskii [Sat, 15 Jun 2024 19:20:56 +0000 (22:20 +0300)]
Fix em-extpipe-tests on MS-Windows

* test/lisp/eshell/em-extpipe-tests.el (em-extpipe-test-14): Fix
test on MS-Windows (bug#71446).

(cherry picked from commit 2c201bbba5c43328979bf139330684cacfa074f3)

5 months agoFix 'wrong-type-argument' in 'php-ts-mode--webserver-read-args'
Vincenzo Pupillo [Sat, 15 Jun 2024 16:57:29 +0000 (18:57 +0200)]
Fix 'wrong-type-argument' in 'php-ts-mode--webserver-read-args'

Prevents php-ts-mode--webserver-read-args from throwing an
error if the current buffer is not associated with a file.
* lisp/progmodes/php-ts-mode.el (php-ts-mode--webserver-read-args):
Use 'default-directory if' the current buffer is not associated
with a file.  (Bug#71574)
(php-ts-mode-run-php-webserver): Fix doc string.

(cherry picked from commit 13c4fc3dc72d87af89d92f40808cf4f1285eddab)

5 months agoUpdate to Org 9.7.4-7-g165319
Kyle Meyer [Sat, 15 Jun 2024 18:25:35 +0000 (14:25 -0400)]
Update to Org 9.7.4-7-g165319

(cherry picked from commit 0910f6fe3f701caa478d4aa08d9667316050b977)

5 months ago; Improve last change
Jim Porter [Sat, 15 Jun 2024 18:27:07 +0000 (11:27 -0700)]
; Improve last change

* test/lisp/eshell/esh-proc-tests.el (esh-proc-test/kill-pipeline): Fix
check of exit message and ensure we have only one prompt.

(cherry picked from commit 03ad06737bd229a731ee1d36e245daf34fd7a73b)

5 months ago; Add command logging to some more Eshell tests
Jim Porter [Sat, 15 Jun 2024 18:06:58 +0000 (11:06 -0700)]
; Add command logging to some more Eshell tests

* test/lisp/eshell/esh-proc-tests.el (esh-proc-test/kill-pipeline)
(esh-proc-test/kill-pipeline-head): Write debug logs on failure.

(cherry picked from commit 7df855cdfe617614dbe23fb0302a647ee23589ea)

5 months agoUnify 'minibuffer-hint-mode' and 'completions-auto-update-mode'
Eshel Yaron [Sun, 16 Jun 2024 07:47:40 +0000 (09:47 +0200)]
Unify 'minibuffer-hint-mode' and 'completions-auto-update-mode'

5 months agoAvoid byte-compilation warnings in php-ts-mode
Eli Zaretskii [Sat, 15 Jun 2024 17:03:39 +0000 (20:03 +0300)]
Avoid byte-compilation warnings in php-ts-mode

* lisp/progmodes/php-ts-mode.el (treesit-search-forward)
(treesit-node-prev-sibling, treesit-node-first-child-for-pos):
Declare.

(cherry picked from commit 9b2e1b5e16c233cf5ea039e17175580793a4e5ef)

5 months agoHonor 'Info-additional-directory-list' in 'C-h R' completion
Eshel Yaron [Sat, 15 Jun 2024 16:48:34 +0000 (18:48 +0200)]
Honor 'Info-additional-directory-list' in 'C-h R' completion

* lisp/info.el (info--manual-names): Take into account
'Info-additional-directory-list', in addition to
'Info-directory-list'.  (Bug#71368)

(cherry picked from commit 83182b2c4a4e039884ee54ddce6e657f4fb888eb)

5 months ago; * doc/emacs/package.texi (Package Files): Fix wording.
Eli Zaretskii [Sat, 15 Jun 2024 16:47:44 +0000 (19:47 +0300)]
; * doc/emacs/package.texi (Package Files): Fix wording.

(cherry picked from commit 2d67ea86320c6adbb95a1a94a47037cb3d62dec1)

5 months agoFix problem with recently-added defcustom's
Eli Zaretskii [Sat, 15 Jun 2024 13:20:01 +0000 (16:20 +0300)]
Fix problem with recently-added defcustom's

* lisp/progmodes/php-ts-mode.el (php-ts-mode-php-config)
(php-ts-mode-ws-port, php-ts-mode-ws-document-root)
(php-ts-mode-ws-workers): Fix :type and :safe attributes.
(Bug#71566)

(cherry picked from commit 9e8c0ec9918af12aafa1063ad3bc3f9f1d180e6f)

5 months agoBetter documentation of 'emacs-internal' encoding
Eli Zaretskii [Sat, 15 Jun 2024 12:59:55 +0000 (15:59 +0300)]
Better documentation of 'emacs-internal' encoding

* doc/lispref/nonascii.texi (Coding System Basics): Recommend
'emacs-internal' encoding for caching.

(cherry picked from commit 2cbea4f35cbfb25f53f23ebba81ffe89ce77b136)

5 months ago; * lisp/textmodes/ispell.el (ispell-aspell-find-dictionary): Doc fix.
Eli Zaretskii [Sat, 15 Jun 2024 12:02:11 +0000 (15:02 +0300)]
; * lisp/textmodes/ispell.el (ispell-aspell-find-dictionary): Doc fix.

(cherry picked from commit d802e56182042e32a56ef8515f9ef01c0633be1e)

5 months ago; Fix some docstrings. (bug#71532)
Arash Esbati [Thu, 13 Jun 2024 09:46:09 +0000 (11:46 +0200)]
; Fix some docstrings. (bug#71532)

(cherry picked from commit d05f473285de734fd1a30a7ee69f36303d5ecb7c)

5 months agoFix doc strings in ispell.el
Eli Zaretskii [Sat, 15 Jun 2024 11:55:31 +0000 (14:55 +0300)]
Fix doc strings in ispell.el

* lisp/textmodes/ispell.el (ispell-check-version)
(ispell-get-casechars, ispell-get-not-casechars)
(ispell-get-otherchars, ispell-get-many-otherchars-p)
(ispell-get-ispell-args, ispell-get-extended-character-mode)
(ispell-get-coding-system, ispell-word, ispell-get-word)
(ispell-pdict-save, ispell-command-loop, ispell-help)
(ispell-filter, ispell-highlight-spelling-error)
(ispell-change-dictionary, ispell-region, ispell-ignore-fcc)
(ispell-get-line, ispell-message): Doc fixes (bug#71532)

(cherry picked from commit 45a191738c661d6161ec82a4664bf8bee387219c)

5 months agoFix calc-trail-here for first line of trail.
Ashwin Kafle [Thu, 13 Jun 2024 10:21:38 +0000 (16:06 +0545)]
Fix calc-trail-here for first line of trail.

* lisp/calc/calc.el(calc-trail-here): Change 'or' to 'and'
since (bobp) can return true even if the buffer is not empty.
(Bug#71533)

(cherry picked from commit c637adbf32f2566b739eb96e68546201c55540af)

5 months agoAllow escape sequences in Python prompts
kobarity [Tue, 11 Jun 2024 16:09:21 +0000 (01:09 +0900)]
Allow escape sequences in Python prompts

* lisp/progmodes/python.el (python-shell-prompt-detect): Use
Python's json package if available, and remove escape sequences
in prompts.
* test/lisp/progmodes/python-tests.el
(python-tests-interpreter-2-6-higher-p): New predicate
function.
(python-shell-prompt-detect-7): New test.  (Bug#71440)

(cherry picked from commit af6e7ed4c1aa5fae34eda3507a4baf8b52c97312)

5 months agoFix 'reindent-then-newline-and-indent' with 'abbrev-mode'
Eli Zaretskii [Sat, 15 Jun 2024 10:04:12 +0000 (13:04 +0300)]
Fix 'reindent-then-newline-and-indent' with 'abbrev-mode'

* lisp/simple.el (reindent-then-newline-and-indent): Use a marker
for the initial position.  (Bug#71459)

(cherry picked from commit ffa349f983fa5c754fd7751c0757f6c704fbfe5a)

5 months agoPrevent deletion of separator in *edit string* buffer
Eli Zaretskii [Sat, 15 Jun 2024 08:37:34 +0000 (11:37 +0300)]
Prevent deletion of separator in *edit string* buffer

* lisp/textmodes/string-edit.el (string-edit): Make the separator
line read-only.  (Bug#71405)

(cherry picked from commit 6d12157fa85a12208555e291321af97a09243962)

5 months agoFix electric-pair-mode when characters are bound to non-ASCII keys
Eli Zaretskii [Sat, 15 Jun 2024 08:08:22 +0000 (11:08 +0300)]
Fix electric-pair-mode when characters are bound to non-ASCII keys

* src/cmds.c (Fself_insert_command): Record the argument C in
'last-command-event'.  (Bug#71337)

(cherry picked from commit 988203fe980e3c80f736ad0b6aae9f288ebfa0f1)

5 months ago; * nt/README.W32: Remove Windows 95.
Eli Zaretskii [Sat, 15 Jun 2024 07:00:59 +0000 (10:00 +0300)]
; * nt/README.W32: Remove Windows 95.

(cherry picked from commit 8d67bdae59425fbc7dccd35b89c019c7757c1acd)

5 months ago; * nt/README: Remove Windows 95.
Eli Zaretskii [Sat, 15 Jun 2024 06:59:55 +0000 (09:59 +0300)]
; * nt/README: Remove Windows 95.

(cherry picked from commit f0f0f0fe43480a3df6c43ed52f910197041274f7)

5 months agoSend proper substitution character to Android IMEs
Po Lu [Sat, 15 Jun 2024 02:04:07 +0000 (10:04 +0800)]
Send proper substitution character to Android IMEs

* src/androidterm.c (android_text_to_string): Substitute
REPLACEMENT CHARACTER for NULL in converting characters not
representable without surrogate pairs to UTF-16.

(cherry picked from commit 25452986cbcf3db02cf0b5b624a03bc146b5d80c)

5 months agotypescript/tsx-ts-mode: Indentation for type parameters
Arsen Arsenović [Fri, 14 Jun 2024 23:18:56 +0000 (02:18 +0300)]
typescript/tsx-ts-mode: Indentation for type parameters

* lisp/progmodes/typescript-ts-mode.el
(typescript-ts-mode--indent-rules): Add rule for type_parameters.

(cherry picked from commit 1079d333ab7cb24b81e7ebc4087d2a11baa0097e)

5 months agoFix auth-info-password
Michael Albinus [Wed, 12 Jun 2024 08:24:34 +0000 (10:24 +0200)]
Fix auth-info-password

* lisp/auth-source.el (auth-info-password): :secret can be a
cascaded function.

(cherry picked from commit 59261e6f4fef0ec03c8127b29fe107ed19280a3b)

5 months ago; * lisp/mail/rmail.el (rmail-get-new-mail-hook): Doc fix.
Eli Zaretskii [Sun, 9 Jun 2024 17:56:39 +0000 (20:56 +0300)]
; * lisp/mail/rmail.el (rmail-get-new-mail-hook): Doc fix.

(cherry picked from commit 778f8c793d1c621fc8219644797ef44425bf0bb4)

5 months ago; Minor fixes in ELisp manual
Eli Zaretskii [Sat, 8 Jun 2024 18:06:51 +0000 (21:06 +0300)]
; Minor fixes in ELisp manual

* doc/lispref/searching.texi (Regexp Search): Caveat about using
'search-spaces-regexp'.  (Bug#71429)
* doc/lispref/help.texi (Keys in Documentation): Fix markup.

(cherry picked from commit e6044b29e65d3639c267bf4753391c7cc57106cf)

5 months agoNew commands for minibuffer history control
Eshel Yaron [Sat, 15 Jun 2024 17:22:11 +0000 (19:22 +0200)]
New commands for minibuffer history control

* lisp/minibuffer.el (minibuffer-alternate-history)
(minibuffer-kill-from-history): New commands.
(minibuffer-local-map): Bind them.
(minibuffer-hint-mode): Make interactive.
(minibuffer-action-history): New variable.
(minibuffer-set-completion-action): Use it, new command.
(minibuffer-local-completion-map): Bind them.
(minibuffer-apply): Use 'completion-identity', if present.
(read-history-variable-history): New variable.
(read-history-variable): Use it.

5 months agoNew command 'ignore-string'
Eshel Yaron [Sat, 15 Jun 2024 17:17:12 +0000 (19:17 +0200)]
New command 'ignore-string'

5 months agoFix 'minibuffer-default-add-function' default value
Eshel Yaron [Sat, 15 Jun 2024 17:16:10 +0000 (19:16 +0200)]
Fix 'minibuffer-default-add-function' default value

5 months ago; * src/insdel.c (insert_from_gap_1): Update commentary.
Eli Zaretskii [Fri, 14 Jun 2024 18:44:56 +0000 (21:44 +0300)]
; * src/insdel.c (insert_from_gap_1): Update commentary.

(cherry picked from commit 47746c1f3737fe3e079ceefc496e9601b6dbef32)

5 months ago; Update comments in a recent commit
Eli Zaretskii [Fri, 14 Jun 2024 18:42:18 +0000 (21:42 +0300)]
; Update comments in a recent commit

* src/process.c (read_and_insert_process_output):
* src/insdel.c (insert_from_gap):
* src/coding.h (struct coding_system): Improve comments (bug#71525).

(cherry picked from commit 0372ce5f60c18956738a31985569b86444d52ec5)

5 months ago; Fix Icomplete error during candidate highlighting
Eshel Yaron [Fri, 14 Jun 2024 17:49:21 +0000 (19:49 +0200)]
; Fix Icomplete error during candidate highlighting

* lisp/icomplete.el (icomplete-completions): Pass completion
candidates through 'completion-lazy-hilit' before trimming
common prefix, rather than after.

https://lists.gnu.org/archive/html/emacs-devel/2024-06/msg00271.html
(cherry picked from commit 3b07d33059150671d0af1cc7b51fa7c8cc4b4ea1)

5 months ago"Insert before markers" in read_and_insert_process_output properly
Dmitry Gutov [Fri, 14 Jun 2024 16:50:59 +0000 (19:50 +0300)]
"Insert before markers" in read_and_insert_process_output properly

* src/coding.c (setup_coding_system): Initialize it.
(produce_chars, encode_coding, decode_coding_gap):
Obey it in insert_from_gap calls.
(encode_string_utf_8, decode_string_utf_8): Update the other calls
to insert_from_gap to have one new argument (false).

* src/coding.h: New field insert_before_markers.

* src/decompress.c (Fzlib_decompress_region): Here too.

* src/insdel.c (insert_from_gap):
Accept new argument BEFORE_MARKERS (bug#71525) and pass it through
to adjust_markers_for_insert.

* src/lisp.h: Update prototype.

* src/process.c (read_and_insert_process_output):
Set process_coding->insert_before_markers instead of calling
adjust_markers_for_insert.

(cherry picked from commit a8d5c5fd8789f28ddd040e497f03a988e5f0703c)

5 months ago* lisp/progmodes/project.el: Bump the version
Dmitry Gutov [Fri, 14 Jun 2024 15:24:04 +0000 (18:24 +0300)]
* lisp/progmodes/project.el: Bump the version

(cherry picked from commit 08e38818f6ff4e514ac291bc5a7686f4390759b0)

5 months agoFix generation of org.texi from org.org
Eli Zaretskii [Fri, 14 Jun 2024 11:38:01 +0000 (14:38 +0300)]
Fix generation of org.texi from org.org

* doc/misc/Makefile.in (org_template): Bind
'org-id-track-globally' to nil when running
'org-texinfo-export-to-texinfo-batch', to avoid searching local
user files when building the Org manual.

(cherry picked from commit 6a9f1b504a5a3c096afd17f3b8f8ebeca6a03ed5)

5 months agoCorrect last change
Po Lu [Fri, 14 Jun 2024 08:42:32 +0000 (16:42 +0800)]
Correct last change

* lisp/term.el (term-generate-db-directory): Don't delete
DST-DIRECTORY if not yet existent.

(cherry picked from commit 11b145ac070217891b7ec939ce7821253887dac1)

5 months agoPort term.el's terminfo machinery to Android
Po Lu [Fri, 14 Jun 2024 08:21:55 +0000 (16:21 +0800)]
Port term.el's terminfo machinery to Android

* lisp/term.el (term-generate-db-directory): New function.  Copy
/assets/etc/e to the cache directory, on Android, and return the
same.
(term-exec-1): Call term-generate-db-directory in place of
data-directory.

(cherry picked from commit f66341a13be57bec6c89f75d26444b42ca3f1ecf)

5 months agoUnconditionally prefer built-in decompression functions on Android
Po Lu [Fri, 14 Jun 2024 07:11:04 +0000 (15:11 +0800)]
Unconditionally prefer built-in decompression functions on Android

* lisp/jka-compr.el (jka-compr-insert-file-contents): Prefer
built-in decompression functions (i.e., zlib) to external
agents.

(cherry picked from commit 9c9afd5235782bd987dea12ab89fd91e661ec89e)

5 months ago; * lisp/eshell/em-script.el (eshell-execute-file): Improve docstring.
Jim Porter [Fri, 14 Jun 2024 04:44:40 +0000 (21:44 -0700)]
; * lisp/eshell/em-script.el (eshell-execute-file): Improve docstring.

(cherry picked from commit 19b407ac749fcb8d978e8263ed98328100128de5)

5 months agoRestore file's original name after a failed rename_replace on Windows 9X
Po Lu [Fri, 14 Jun 2024 02:44:20 +0000 (10:44 +0800)]
Restore file's original name after a failed rename_replace on Windows 9X

* src/w32.c (sys_rename_replace): If the rename operation fails
and an intermediate name was generated and applied to the input
file, restore the original.

(cherry picked from commit a458dc5dc828cfbe5d74226d6ef45a3d205cb7d8)

5 months agoEnable compiling Emacs with implicit Make rules suppressed
Po Lu [Fri, 14 Jun 2024 01:58:04 +0000 (09:58 +0800)]
Enable compiling Emacs with implicit Make rules suppressed

* lib/Makefile.in (.SUFFIXES):

* lwlib/Makefile.in (.SUFFIXES):

* oldXMenu/Makefile.in (.SUFFIXES):

* src/Makefile.in (.SUFFIXES): Register .c as a default suffix,
for this list is emptied when `-r' is provided to Make.

(cherry picked from commit 4124b98509bf049a3ccf0f7319b7edf7cae3b6a0)

5 months agoFix file listing in submodules with project-files-relative-names=t
Pär Bohrarper [Fri, 14 Jun 2024 01:04:20 +0000 (04:04 +0300)]
Fix file listing in submodules with project-files-relative-names=t

* lisp/progmodes/project.el (project--vc-list-files):
Prepend module names to files when project-files-relative-names is
non-nil (bug#71538).

(cherry picked from commit 2dae603c4140a0a449b2ddaf572fe94de3908f31)

5 months ago; Minor editorial fixes to some Eshell tests
Jim Porter [Thu, 13 Jun 2024 19:22:01 +0000 (12:22 -0700)]
; Minor editorial fixes to some Eshell tests

* test/lisp/eshell/esh-proc-tests.el
(esh-proc-test/kill-process/redirect-message): Move next to its sibling
tests.
(esh-proc-test/remote/remote-path): Rename from 'esh-var-test/...'.

(cherry picked from commit 4973801c198a4292992b7df0488b3d467c99571e)

5 months ago; Skip commit 56537ab0228262e96bf75f351642d8aaaa8097f7
Eshel Yaron [Fri, 14 Jun 2024 19:25:32 +0000 (21:25 +0200)]
; Skip commit 56537ab0228262e96bf75f351642d8aaaa8097f7

5 months ago;cperl-mode.el: Avoid false positives when parsing new Perl syntax
Harald Jörg [Thu, 13 Jun 2024 12:34:16 +0000 (14:34 +0200)]
;cperl-mode.el: Avoid false positives when parsing new Perl syntax

* lisp/progmodes/cperl-mode.el (cperl--package-for-imenu-rx)
(cperl--class-for-imenu-rx): avoid false positives when collecting
imenu entries
* lisp/progmodes/cperl-mode.el (cperl-init-faces): avoid false
positives when detecting package names

* test/lisp/progmodes/cperl-mode-tests.el
(cperl-test-imenu-index): Add test verifying that $class_false is
not shown as a class _false

* test/lisp/progmodes/cperl-mode-resources/grammar.pl: Add a line
containing a false positive "$class_false"

(cherry picked from commit 39e3c30b514c21854f7fcc87c3a461bd9e81cbdb)

5 months ago; * src/androidterm.c (android_term_init): Typo.
Po Lu [Thu, 13 Jun 2024 12:11:43 +0000 (20:11 +0800)]
; * src/androidterm.c (android_term_init): Typo.

(cherry picked from commit 14f7506c99b19abe411d140c3f09dbf1de63a4b6)

5 months agophp-ts-mode: minor fixes
Mattias Engdegård [Thu, 13 Jun 2024 08:49:28 +0000 (10:49 +0200)]
php-ts-mode: minor fixes

* lisp/progmodes/php-ts-mode.el (php-ts-mode-flymake-php):
Don't use `any` to mean `not-newline`; it's misleading.
(php-ts-mode--predefined-constant): Remove duplicate "E_USER_NOTICE".

(cherry picked from commit 59367f6a3a9dd7fb30429494b622ebdec94e6e32)

5 months ago; * src/w32proc.c (sys_kill): Handle negative PID when sig == 0.
Eli Zaretskii [Thu, 13 Jun 2024 08:03:52 +0000 (11:03 +0300)]
; * src/w32proc.c (sys_kill): Handle negative PID when sig == 0.

(cherry picked from commit 72e6b05221502cf722f7bddf2d100e5eff424dd8)

5 months agoAdapt emacsclient options in doc
Michael Albinus [Thu, 13 Jun 2024 07:29:44 +0000 (09:29 +0200)]
Adapt emacsclient options in doc

* doc/emacs/misc.texi (emacsclient Options):
* doc/man/emacsclient.1: Adapt option list.

(cherry picked from commit 8eeb159b95130a0dc29040ffa9f330874576964e)

5 months agoFix removal of file locks on MS-Windows 9X
Eli Zaretskii [Thu, 13 Jun 2024 07:24:21 +0000 (10:24 +0300)]
Fix removal of file locks on MS-Windows 9X

A new Windows-specific function for validating process ID
is introduced that does TRT with possibly negative PID
values returned by 'getpid' on Windows 9X and also with
values larger than INT_MAX, since PID on Windows is
actually an unsigned 32-bit value.
* src/w32proc.c (w32_valid_process_id): New function.
* src/w32common.h (VALID_PROCESS_ID): Define for WINDOWSNT.
* src/filelock.c [WINDOWSNT]: Include w32common.h.  (Bug#71477)

(cherry picked from commit 0007231a7805abce945349c7c9c75b45155bda5c)

5 months agoCorrectly define `select' binding on Android
Po Lu [Thu, 13 Jun 2024 02:46:59 +0000 (10:46 +0800)]
Correctly define `select' binding on Android

* lisp/term/android-win.el (input-decode-map): Cease binding
select in the initial frame's input-decode-map.

* src/androidterm.c (android_term_init): Binding select in the
freshly created kboard.
(syms_of_androidterm) <Qselect, Qreturn>: New symbols.

(cherry picked from commit 94bcd7964bbb20bc8ff8a91a9656452a97139d60)

5 months ago; Skip commit 6b7ff60a5e71c161a064e27509fe4fb95cf74ddd
Eshel Yaron [Fri, 14 Jun 2024 19:25:00 +0000 (21:25 +0200)]
; Skip commit 6b7ff60a5e71c161a064e27509fe4fb95cf74ddd

5 months agoRelease ERC 5.6
F. Jason Park [Thu, 9 Nov 2023 00:45:37 +0000 (16:45 -0800)]
Release ERC 5.6

* lisp/erc/erc.el: Change Version header from 5.6-git to 5.6.  A
`customize-package-emacs-version-alist' mapping for ERC 5.6 to Emacs
30.1 was already added when moving from 5.5 to 5.6-git.  The ERCVER
variable in doc/misc/erc.texi was likewise updated at that time.
Going forward, such changes will continue to happen preemptively, on
the flip side of each release.
(erc-version): Change version from 5.6-git to 5.6.

(cherry picked from commit d1e98a8f0128747030e97ffea20a8f67aa0cd923)

5 months ago; Amend some doc strings in ERC
F. Jason Park [Tue, 11 Jun 2024 04:56:02 +0000 (21:56 -0700)]
; Amend some doc strings in ERC

* lisp/erc/erc-backend.el (define-erc-response-handler): Mention
important distinction between aliases for handlers and hooks, and note
expected type for the latter.
* lisp/erc/erc.el (erc--define-channel-user-status-compat-getter):
Mention that these accessors are not inlined like those generated by
`cl-defstruct'.

(cherry picked from commit bbac7b9fa398254e64e5ee3e8aca2f59adcfda50)

5 months ago; Mention new modes in the Emacs user manual
Eli Zaretskii [Wed, 12 Jun 2024 18:25:41 +0000 (21:25 +0300)]
; Mention new modes in the Emacs user manual

* etc/NEWS: Mark new modes as documented.
* doc/emacs/programs.texi (Program Modes): Add PHP.  (Bug#71380)
Add other new modes.

(cherry picked from commit e00af96c0691b749932756e47f48a53f5e92a00f)

5 months agoAdd php-ts-mode
Vincenzo Pupillo [Fri, 7 Jun 2024 10:39:03 +0000 (12:39 +0200)]
Add php-ts-mode

* etc/NEWS: Mention the new mode.
* lisp/progmodes/php-ts-mode.el: New file.  (Bug#71380)

(cherry picked from commit e37754fc59bac409881d456a83aa0bf2468c94fb)

5 months agoStart of a fix for bug#71477
Paul Eggert [Wed, 12 Jun 2024 15:42:24 +0000 (08:42 -0700)]
Start of a fix for bug#71477

* src/filelock.c (integer_prefixed): New static function.
(VALID_PROCESS_ID): New macro.
(current_lock_owner): Use them to allow negative process IDs
on some Microsoft platforms.

(cherry picked from commit ac14d56a4d749661a9c52941e6511a0c300d35e4)

5 months agoFix misspelled symbols in artist.el
Stefan Kangas [Wed, 12 Jun 2024 16:17:13 +0000 (18:17 +0200)]
Fix misspelled symbols in artist.el

* lisp/textmodes/artist.el (artist-key-undraw-continuously)
(artist-key-draw-continuously)
(artist-key-do-continuously-continuously)
(artist-key-do-continuously-poly)
(artist-key-do-continuously-1point)
(artist-key-do-continuously-2points)
(artist-key-do-continuously-common)
(artist-key-set-point-continuously)
(artist-mouse-draw-continuously): Rename functions to fix misspelling of
"continuously".  Leave old function names as obsolete aliases and update
all callers.
(artist-mt, artist-go-get-undraw-fn, artist-go-get-interval-fn)
(artist-go-get-fill-pred, artist-go-get-fill-fn)
(artist-key-undraw-common, artist-key-draw-common)
(artist-key-do-continously-common, artist-key-set-point-common)
(artist-down-mouse-1): Rename symbol to 'artist-do-continuously' to fix
misspelling of "continuously".  Continue supporting the old symbol for
backwards-compatibility.

(cherry picked from commit b8873a7080f25e47b16cf21d92d64698b5e377fb)

5 months ago(read-library-name): Ignore *-autoloads.el files.
Eshel Yaron [Fri, 14 Jun 2024 12:25:04 +0000 (14:25 +0200)]
(read-library-name): Ignore *-autoloads.el files.

5 months agoRemove 'self-insert-and-exit'
Eshel Yaron [Fri, 14 Jun 2024 12:24:47 +0000 (14:24 +0200)]
Remove 'self-insert-and-exit'

5 months agoMark some minibuffer-specific commands as such
Eshel Yaron [Fri, 14 Jun 2024 12:24:28 +0000 (14:24 +0200)]
Mark some minibuffer-specific commands as such

5 months agoMaintain a stack of minibuffer partial completion inputs
Eshel Yaron [Thu, 13 Jun 2024 18:07:27 +0000 (20:07 +0200)]
Maintain a stack of minibuffer partial completion inputs