]> git.eshelyaron.com Git - emacs.git/log
emacs.git
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

5 months ago; * lisp/menu-bar.el (kill-this-buffer): Another doc fix (bug#71510).
Eli Zaretskii [Wed, 12 Jun 2024 12:21:27 +0000 (15:21 +0300)]
; * lisp/menu-bar.el (kill-this-buffer): Another doc fix (bug#71510).

(cherry picked from commit 6893c327e982528fdc93e3a956a4b6830a09ea3f)

5 months ago; * etc/NEWS: Add doc markup for char-to-name
Robert Pluim [Tue, 11 Jun 2024 16:35:46 +0000 (18:35 +0200)]
; * etc/NEWS: Add doc markup for char-to-name

(cherry picked from commit 3905db6e3aa947b847c072259ad6d08c8a15e10e)

5 months agoSupport --no-window-system option in emacsclient
Eli Zaretskii [Wed, 12 Jun 2024 11:10:32 +0000 (14:10 +0300)]
Support --no-window-system option in emacsclient

* lib-src/emacsclient.c (print_help_and_exit, longopts): Add
'--no-window-system' alias for -t.  (Bug#71509)

(cherry picked from commit ebb0a3036d2256c214b3116b029ecbcc63040be0)

5 months ago; * lisp/menu-bar.el (kill-this-buffer): Doc fix (bug#71510).
Eli Zaretskii [Wed, 12 Jun 2024 10:53:19 +0000 (13:53 +0300)]
; * lisp/menu-bar.el (kill-this-buffer): Doc fix (bug#71510).

(cherry picked from commit c4a6b9dbfeee8a345f8761f86b7f89dd0ba9bbe4)

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

* lisp/net/tramp-compat.el (tramp-compat-auth-info-password):
Use original function only for Emacs 30+.

(cherry picked from commit 9c2fad55fd2725da5bf30677d07541f6f6d1c45b)

5 months agoSimplify 'ask-user-about-lock'
Eshel Yaron [Wed, 12 Jun 2024 10:03:01 +0000 (12:03 +0200)]
Simplify 'ask-user-about-lock'

5 months agoRestore omitted dependency
Po Lu [Wed, 12 Jun 2024 09:02:07 +0000 (17:02 +0800)]
Restore omitted dependency

* java/Makefile.in (install_temp): Depend on
$(libsrc)/asset-directory-tool.

(cherry picked from commit 6d64cf5ee1bf67e84f7e338b5de5aa139193d2e7)

5 months agoFix info/DIR generation broken by update to Org manual
Eli Zaretskii [Wed, 12 Jun 2024 08:46:36 +0000 (11:46 +0300)]
Fix info/DIR generation broken by update to Org manual

* build-aux/make-info-dir: Adapt to latest changes in Org manual's
markup.

(cherry picked from commit eb5aafb0f4cf7d2f5f12e2eb3a4324c3d5834db7)

5 months agoRestore functionality on Android 2.2
Po Lu [Wed, 12 Jun 2024 08:44:21 +0000 (16:44 +0800)]
Restore functionality on Android 2.2

* java/Makefile.in (install_temp): Do not compress
directory-tree and generate such files in a special format that
stores file sizes.

* lib-src/asset-directory-tool.c (struct directory_tree): New
field st_size.
(need_file_size): New variable.
(main_1, main_2, main): Write file sizes before sibling offsets
if `--api-8' is specified.

* src/android-asset.h (struct android_asset_manager): New field
open.
(struct android_asset): New field name.
(AAssetManager_fromJava): Load AssetManager#open.
(AAssetManager_open): If a directory tree has already been
loaded, search for a matching asset and load its size thence, to
avoid the requirement of an AssetFileDescriptor.
(AAsset_close): Don't assume asset->fd exists.  Release
asset->name.
(AAsset_getLength): Likewise.
(android_asset_create_stream): If asset->name exists, call
AssetManager#open, in order to open compressed files.

* src/androidvfs.c (OLD_ANDROID_ASSETS): Define to 1 on API 8.
(android_extract_long, android_scan_directory_tree): Mark
arguments as const.  Adjust offsets when OLD_ANDROID_ASSETS.
(android_is_directory, android_init_assets, android_afs_readdir):
Likewise.

* src/lread.c (lread_fstat): Define to sys_fstat, not fstat.

(cherry picked from commit 02e70821b3800a082aec215a9ab8adbfafe9ad76)

5 months ago; Fix defcustoms in dired-aux.el
Eli Zaretskii [Wed, 12 Jun 2024 07:19:32 +0000 (10:19 +0300)]
; Fix defcustoms in dired-aux.el

* lisp/dired-aux.el (dired-backup-overwrite)
(dired-create-destination-dirs)
(dired-create-destination-dirs-on-trailing-dirsep)
(dired-vc-rename-file, dired-do-revert-buffer)
(dired-isearch-filenames, dired-confirm-shell-command): Fix doc
strings and customization tags.

(cherry picked from commit af9bf86bd74d36f3a94187a47986efe0e2703a73)

5 months ago; * doc/emacs/maintaining.texi (VC Change Log): Fix recent change.
Eli Zaretskii [Wed, 12 Jun 2024 06:16:40 +0000 (09:16 +0300)]
; * doc/emacs/maintaining.texi (VC Change Log): Fix recent change.

(cherry picked from commit 05fe419deb5784c773f37df2bde9c3cba48c0e9a)

5 months ago; * java/Makefile.in: Fix typo.
Po Lu [Wed, 12 Jun 2024 05:59:08 +0000 (13:59 +0800)]
; * java/Makefile.in: Fix typo.

(cherry picked from commit f543ec18f44fa64d06e1ab45e1484326f8451ebe)

5 months agoImprove compression of Emacs packages on Android 2.2
Po Lu [Wed, 12 Jun 2024 05:52:33 +0000 (13:52 +0800)]
Improve compression of Emacs packages on Android 2.2

* configure.ac (ZIP): Search for a `zip' executable and
substitute the same if targeting SDK 8.

* java/INSTALL: Document new requirement.

* java/Makefile.in (GZIP_PROG, ZIP): New substitutions.
(.PHONY): Delete references to directory-tree.

(install_temp): On SDK 8 and earlier, compress large *.el and
Info files with gzip, and divide install_temp into three
separate directories, with one for large files, another for
gzipped files, and one more for the remainder.
(install_temp/assets/directory-tree, install_temp/assets/version)
(install_temp/assets/build_info): Merge these rules into
install_tmp, that they may execute before the assets directory
is split.
(emacs.apk-in): Package each directory separately, accounting
for their varied compression requirements.

* lisp/term/android-win.el (input-decode-map): Define select to
return in input-decode-map.

(cherry picked from commit 5fc75b051fc623a4f614a7abe09f08d127ed9ccd)

5 months agoMake C-u 1 C-x v L slightly more discoverable
Sean Whitton [Tue, 11 Jun 2024 04:59:56 +0000 (12:59 +0800)]
Make C-u 1 C-x v L slightly more discoverable

* doc/emacs/maintaining.texi (VC Change Log): List C-u 1 C-x v L
as though it were a separate command.  Give the longer
description its own paragraph.

(cherry picked from commit a300db7ad4a16dc39bf1793c2e61f75145337ec6)

5 months agoFix customisation buffer for dired group
Visuwesh [Tue, 11 Jun 2024 05:21:39 +0000 (10:51 +0530)]
Fix customisation buffer for dired group

* lisp/dired-aux.el
(dired-create-destination-dirs-on-trailing-dirsep): Actually
concat the string.  (Bug#71490)

(cherry picked from commit 076e8ad5fc518e93dc7ab23b9dee007205580fbe)

5 months agoread_and_insert_process_output: Insert before markers
Dmitry Gutov [Tue, 11 Jun 2024 18:02:57 +0000 (21:02 +0300)]
read_and_insert_process_output: Insert before markers

* src/insdel.c (adjust_markers_for_insert): Make non-static.

* src/lisp.h: Add declaration for it.

* src/process.c (read_and_insert_process_output): Use it here.
And also call insert_1_both with BEFORE_MARKERS=t, for
compatibility with internal-default-process-filter (bug#66020).

(cherry picked from commit 3199b8584e4583a4b74263f5704a21c3431658c2)

5 months agoRefactor tramp-*-process-file functions
Michael Albinus [Tue, 11 Jun 2024 12:43:28 +0000 (14:43 +0200)]
Refactor tramp-*-process-file functions

* lisp/net/tramp-adb.el (tramp-adb-handle-make-process):
* lisp/net/tramp-sh.el (tramp-sh-handle-make-process): Don't compute
process name, this is done in `tramp-skeleton-make-process'.

* lisp/net/tramp-adb.el (tramp-adb-handle-process-file):
* lisp/net/tramp-sh.el (tramp-sh-handle-process-file):
* lisp/net/tramp-sshfs.el (tramp-sshfs-handle-process-file):
Use `tramp-skeleton-process-file'.

* lisp/net/tramp.el (tramp-get-unique-process-name): New defun.
(tramp-skeleton-make-process): Use it.
(tramp-skeleton-process-file): New defmacro.

(cherry picked from commit 5ecff95993d5edbffb27e14c2815d2b23003bcb4)

5 months ago; * src/emacs.c (Fkill_emacs): Doc fix.
Eli Zaretskii [Tue, 11 Jun 2024 12:39:51 +0000 (15:39 +0300)]
; * src/emacs.c (Fkill_emacs): Doc fix.

(cherry picked from commit 4b902f5031e72ae913d69da9f60528f75b6e5860)

5 months ago; * doc/lispref/nonascii.texi (Character Codes): Fix wording.
Eli Zaretskii [Tue, 11 Jun 2024 12:09:30 +0000 (15:09 +0300)]
; * doc/lispref/nonascii.texi (Character Codes): Fix wording.

(cherry picked from commit 7375b6d5ad96d0b7f210cd4a81aef6274ffcd086)

5 months agoShow character names when describing translations
Robert Pluim [Fri, 7 Jun 2024 10:21:11 +0000 (12:21 +0200)]
Show character names when describing translations

This implements Bug#71411.

* lisp/help.el (help-key-description): Use 'char-to-name' to show the
Unicode name of translated keys.
(help--describe-command): And here.

* etc/NEWS: Announce the change.

(cherry picked from commit e3078994d89adb6e8e004094817faa3862f6d8ab)

5 months agoUse 'char-to-name'
Robert Pluim [Fri, 7 Jun 2024 10:07:50 +0000 (12:07 +0200)]
Use 'char-to-name'

* lisp/international/emoji.el (emoji--name): Lookup name using 'char-to-name'.
* lisp/international/textsec.el (textsec-domain-suspicious-p): And here.
* lisp/simple.el (what-cursor-position): And here.

(cherry picked from commit e4b243b931be8c2f605ce2bb6dbcda4edad7400f)

5 months agoAdd 'char-to-name' convenience function
Robert Pluim [Fri, 7 Jun 2024 10:05:34 +0000 (12:05 +0200)]
Add 'char-to-name' convenience function

* lisp/international/mule-cmds.el (char-to-name): New function.  This is
the inverse of 'char-from-name'.
* doc/lispref/nonascii.texi (Character Codes): Document it.
* etc/NEWS: Announce it.

(cherry picked from commit 3a4cf1aa1efb79b52c0aca18281593ba0e8175ca)

5 months agoEnable support for color fonts in recent releases of Xft
Po Lu [Tue, 11 Jun 2024 08:59:15 +0000 (16:59 +0800)]
Enable support for color fonts in recent releases of Xft

* etc/PROBLEMS (Some fonts are detected..): Document that Xft
2.3.6 should have resolved this issue.

* src/ftfont.c (ftfont_spec_pattern, ftfont_list): Disable
inhibition of color fonts on Xft 2.3.6 and subsequent versions.

(cherry picked from commit cc30758eed9488aed4149adbf7a285622c3ec446)

5 months ago; Revert "Provide for negative PIDs on MS Windows"
Eli Zaretskii [Tue, 11 Jun 2024 07:38:58 +0000 (10:38 +0300)]
; Revert "Provide for negative PIDs on MS Windows"

This reverts commit 9e96fbfd855bf0acc005b2b0973c2a9aef7cdcd2.
Please don't install any changes in this area without discussion.
Bug#71477.

(cherry picked from commit c0aa201adee05ba9ab7663435dd31bcba41aa443)

5 months ago; Revert "* src/filelock.c (pid_strtoimax) [!WINDOWSNT]: Define correctly."
Eli Zaretskii [Tue, 11 Jun 2024 07:38:11 +0000 (10:38 +0300)]
; Revert "* src/filelock.c (pid_strtoimax) [!WINDOWSNT]: Define correctly."

This reverts commit f33806dd6624e874d5cff3cd02ab370f518c0629.
Please don't install changes in this area without discussion.

(cherry picked from commit 57c492e1c07255b0b9fa8f0f96e826fd29d7a283)

5 months ago; * src/process.c (read_and_dispose_of_process_output): Fix style.
Eli Zaretskii [Tue, 11 Jun 2024 07:37:31 +0000 (10:37 +0300)]
; * src/process.c (read_and_dispose_of_process_output): Fix style.

(cherry picked from commit a95f9e5bc64535894dc0c8880408d4466ae2ba89)

5 months ago; * etc/NEWS: Rename read-process-output-fast here also.
Po Lu [Tue, 11 Jun 2024 06:40:46 +0000 (14:40 +0800)]
; * etc/NEWS: Rename read-process-output-fast here also.

(cherry picked from commit 1aa83da46d1af60260b17522608eeca28efff151)

5 months agoEliminate some redundant synchronization on Android
Po Lu [Tue, 11 Jun 2024 06:39:40 +0000 (14:39 +0800)]
Eliminate some redundant synchronization on Android

* java/org/gnu/emacs/EmacsService.java (resetIC): Return on all
versions of Android if the connection need not be reset.

* java/org/gnu/emacs/EmacsView.java (getICMode, setICMode):
Remove needless synchronization.

(cherry picked from commit 677f082b0feda295e6a710b5dac6040f57cfad8b)

5 months agofast-read-process-output: Make safer
Dmitry Gutov [Tue, 11 Jun 2024 02:54:57 +0000 (05:54 +0300)]
fast-read-process-output: Make safer

* src/process.c (read_process_output): Move the call to
'read_and_insert_process_output' from here.
(read_and_dispose_of_process_output): To here (bug#66020).  So
that any Lisp code invoked through modification hook from the
former function also benefit from safety guards like
running_asynch_code, saved match data, inhibit_quot, etc.

(cherry picked from commit bac8a70f454d022d8352200d85eacd27017d4f12)

5 months agoread_process_output_set_last_coding_system: Extract, reuse
Dmitry Gutov [Tue, 11 Jun 2024 02:36:51 +0000 (05:36 +0300)]
read_process_output_set_last_coding_system: Extract, reuse

* src/process.c (read_process_output_set_last_coding_system):
New function, extracted from read_and_dispose_of_process_output.
(read_and_dispose_of_process_output): Update accordingly.
(read_and_insert_process_output): Use it here instead of just
transferring carryover (bug#66020, also mentioned in bug#71452).

(cherry picked from commit d9890bb87063b402853ff0e4ea8bbfc92e5d6e00)

5 months ago* src/filelock.c (pid_strtoimax) [!WINDOWSNT]: Define correctly.
Po Lu [Tue, 11 Jun 2024 02:15:28 +0000 (10:15 +0800)]
* src/filelock.c (pid_strtoimax) [!WINDOWSNT]: Define correctly.

(cherry picked from commit f33806dd6624e874d5cff3cd02ab370f518c0629)

5 months agoProvide for negative PIDs on MS Windows
Po Lu [Tue, 11 Jun 2024 02:04:16 +0000 (10:04 +0800)]
Provide for negative PIDs on MS Windows

* src/filelock.c (pid_t, getpid_for_lock, pidintmax, EPRIdMAX):
New macros; define to unsigned long or corresponding values if
WINDOWSNT.
(lock_file_1, current_lock_owner): Replace intmax_t, getpid,
pid_t and the like with the aforementioned macros.  (bug#71477)

(cherry picked from commit 9e96fbfd855bf0acc005b2b0973c2a9aef7cdcd2)

5 months agoread_and_insert_process_output: Call 'prepare_to_modify_buffer' first
Dmitry Gutov [Tue, 11 Jun 2024 01:51:25 +0000 (04:51 +0300)]
read_and_insert_process_output: Call 'prepare_to_modify_buffer' first

* src/process.c (read_and_insert_process_output): Call
'prepare_to_modify_buffer' before any insertions (bug#71452).

(cherry picked from commit 5a576069fcd803a6a5260a2da8ce0862be982eb4)

5 months ago; * src/process.c (syms_of_process): Fix ommission.
Po Lu [Tue, 11 Jun 2024 01:09:35 +0000 (09:09 +0800)]
; * src/process.c (syms_of_process): Fix ommission.

(cherry picked from commit f74f4089fd2f2d317b993e842556608833791de3)

5 months agoFix recently added eshell test
Stefan Kangas [Mon, 10 Jun 2024 20:17:35 +0000 (22:17 +0200)]
Fix recently added eshell test

* test/lisp/eshell/esh-cmd-tests.el
(esh-cmd-test/empty-background-command): Fix failing test.

(cherry picked from commit 37a715c609a10493d981fd4badca3d9c7dd872f8)

5 months agoAvoid rare assertion violations when deleting a frame
Eli Zaretskii [Mon, 10 Jun 2024 19:13:29 +0000 (22:13 +0300)]
Avoid rare assertion violations when deleting a frame

* src/dispnew.c (adjust_frame_glyphs): Allow nrows = 0 when
deleting a frame.  (Bug#71475)

(cherry picked from commit 7c97d05b56a90251cbe94099d211225b330449b1)

5 months ago; * src/treesit.c (treesit_check_node): Don't use non-ASCII comments.
Eli Zaretskii [Mon, 10 Jun 2024 18:24:51 +0000 (21:24 +0300)]
; * src/treesit.c (treesit_check_node): Don't use non-ASCII comments.

(cherry picked from commit 2ac85aa6139b151920b08385e7f943e072a1503c)

5 months agoFix treesit-tests
Eli Zaretskii [Mon, 10 Jun 2024 18:22:47 +0000 (21:22 +0300)]
Fix treesit-tests

* test/src/treesit-tests.el (treesit-node-api): Adapt the test to
changes in 'treesit_check_node'.  (Bug#71012)

(cherry picked from commit ffd2c492a0e0f70a66f113fe4ea9c50081818a44)

5 months agoAllow to print treesit objects from GDB
Eli Zaretskii [Mon, 10 Jun 2024 18:12:12 +0000 (21:12 +0300)]
Allow to print treesit objects from GDB

* src/.gdbinit (xtsparser, xtsnode, xtsquery): New functions.
(xpr): Call them for treesit objects.

(cherry picked from commit aca5de19b86c973bf303de936bdd06dbb86c023e)

5 months ago* src/print.c (print_vectorlike_unreadable): Fix merge accident.
Mattias Engdegård [Mon, 10 Jun 2024 16:49:28 +0000 (18:49 +0200)]
* src/print.c (print_vectorlike_unreadable): Fix merge accident.

(cherry picked from commit ce4e5e6a28182b4559802cd6fa62c68c2b035bc8)

5 months ago* etc/emacs_lldb.py (Lisp_Object): Add TS types.
Mattias Engdegård [Mon, 10 Jun 2024 16:47:00 +0000 (18:47 +0200)]
* etc/emacs_lldb.py (Lisp_Object): Add TS types.

(cherry picked from commit 6d0b1db518855b446ee49ab93f8faa0c24a81510)

5 months ago; Silence a byte-compiler warning in typescript-ts-mode.el
Andrea Corallo [Mon, 10 Jun 2024 16:00:27 +0000 (18:00 +0200)]
; Silence a byte-compiler warning in typescript-ts-mode.el

* lisp/progmodes/typescript-ts-mode.el (treesit-node-child): Declare.

(cherry picked from commit e6b771570e064e7e8f34b715eab74a013f713712)

5 months ago; Fix recent change to python-tests.el
kobarity [Mon, 10 Jun 2024 14:50:11 +0000 (23:50 +0900)]
; Fix recent change to python-tests.el

* test/lisp/progmodes/python-tests.el
(python-tests--pythonstartup-file): Use already bound
'python-shell-interpreter'.  (Bug#70815)

(cherry picked from commit 3003d6a0c046a8f94dfb276f1856a5b298044387)

5 months ago; Skip commit 84653558fe4c6c54f8aba922302895ab9cd61de6
Eshel Yaron [Wed, 12 Jun 2024 09:26:29 +0000 (11:26 +0200)]
; Skip commit 84653558fe4c6c54f8aba922302895ab9cd61de6

5 months ago; Skip commit 0c459b11cdb530e2ba882e215f205435ca71a726
Eshel Yaron [Wed, 12 Jun 2024 09:26:25 +0000 (11:26 +0200)]
; Skip commit 0c459b11cdb530e2ba882e215f205435ca71a726

5 months ago* lisp/org/ox.el (org-export-filters-alist): Don't define as constant...
Stefan Monnier [Mon, 10 Jun 2024 14:58:46 +0000 (10:58 -0400)]
* lisp/org/ox.el (org-export-filters-alist): Don't define as constant...

...since we modify it (set it to nil) in `orgtbl-to-generic`.

(cherry picked from commit d3524560ee3cb075125f0af158d4af01cb2ab546)

5 months ago(rng-do-some-validation): Fix dangerous use of `with-silent-modifications`
Stefan Monnier [Mon, 10 Jun 2024 14:43:14 +0000 (10:43 -0400)]
(rng-do-some-validation): Fix dangerous use of `with-silent-modifications`

* lisp/nxml/rng-valid.el (rng-do-some-validation): Don't let-bind
`inhibit-modification-hooks` around code which can wait.
(rng-cache-state): Bind it here instead.

(cherry picked from commit 018a6d2ee903e0d09cda1d9e3b65bab73eda998f)

5 months agoCorrect documentation build warnings and errors with Texinfo 4.13
Po Lu [Mon, 10 Jun 2024 13:56:56 +0000 (21:56 +0800)]
Correct documentation build warnings and errors with Texinfo 4.13

* doc/emacs/custom.texi (Init Rebinding): Avoid @U command.

* doc/emacs/dired.texi (Image-Dired): EXIF, PNG and JPEG are
acronyms.

(cherry picked from commit 8a55f4d0b06c96c95a2a2a7eb4a9a7fedb105e70)

5 months ago; * src/process.c (read_process_output): Check in missing hunk.
Po Lu [Mon, 10 Jun 2024 13:15:45 +0000 (21:15 +0800)]
; * src/process.c (read_process_output): Check in missing hunk.

(cherry picked from commit 485b01429f1ed54aae617a6fff1d4371d2247beb)

5 months agoRename new variable in process.c
Po Lu [Mon, 10 Jun 2024 13:12:56 +0000 (21:12 +0800)]
Rename new variable in process.c

* src/process.c (syms_of_process): Rename
read_process_output_fast to fast_read_process_output.

(cherry picked from commit 5df7506a4923bb5b7fa47f62b4af41075b1ba7c5)

5 months agoRefactor tramp-*-make-process functions
Michael Albinus [Mon, 10 Jun 2024 12:37:48 +0000 (14:37 +0200)]
Refactor tramp-*-make-process functions

* lisp/net/tramp.el (tramp-handle-make-process):
* lisp/net/tramp-adb.el (tramp-adb-handle-make-process):
* lisp/net/tramp-androidsu.el (tramp-androidsu-handle-make-process):
* lisp/net/tramp-sh.el (tramp-sh-handle-make-process):
Use `tramp-skeleton-make-process'.

* lisp/net/tramp-container.el (tramp-actions-before-shell):
Don't declare.

* lisp/net/tramp-sh.el (tramp-actions-before-shell):
Add ;;;###tramp-autoload cookie.

* lisp/net/tramp.el (tramp-file-local-name): Adapt docstring.
(tramp-skeleton-make-process): New defmacro.

(cherry picked from commit 9b12854743ad4c9fdd44bd9ce2f9b309e0c674cf)

5 months agocperl-mode: fix doc string escaping
Mattias Engdegård [Mon, 10 Jun 2024 12:03:48 +0000 (14:03 +0200)]
cperl-mode: fix doc string escaping

* lisp/progmodes/cperl-mode.el (cperl--extra-paired-delimiters):
Fix broken escaping.

(cherry picked from commit 087b842eedbaff3990cb6f80786934f4c5220d63)

5 months agoOrg: fix mistakes in regexp, skip set and doc string
Mattias Engdegård [Mon, 10 Jun 2024 11:59:31 +0000 (13:59 +0200)]
Org: fix mistakes in regexp, skip set and doc string

All found by Relint.

* lisp/org/org-element.el (org-element-copy-buffer):
Repair incorrect escaping.
* lisp/org/org-macs.el (org--line-empty-p): Fix broken skip-set.
* lisp/org/org.el (org-setup-yank-dnd-handlers): Fix broken regexp.

(cherry picked from commit 331573e40731d6635acd366694493c26b480c230)

5 months ago; Avoid byte-compilation warning in cperl-mode.el
Eli Zaretskii [Mon, 10 Jun 2024 11:21:48 +0000 (14:21 +0300)]
; Avoid byte-compilation warning in cperl-mode.el

* lisp/progmodes/cperl-mode.el (cperl--extra-paired-delimiters):
Avoid byte-compiler warning about curved quotes.

(cherry picked from commit bb7b406adb0f95002f22116786da2470fef129b2)

5 months agoExtend auto-revert-test07-auto-revert-several-buffers
Michael Albinus [Mon, 10 Jun 2024 10:55:59 +0000 (12:55 +0200)]
Extend auto-revert-test07-auto-revert-several-buffers

* test/lisp/autorevert-tests.el (auto-revert-test05-global-notify):
Make cleanup robust.
(auto-revert-test07-auto-revert-several-buffers): Extend test.
(Bug#71424)

(cherry picked from commit 24448b7bbb8b8ee87e2ff3c974c3af7a1c5e42c1)

5 months agocperl-mode.el: Update for the current Perl version 5.040
Harald Jörg [Mon, 10 Jun 2024 10:19:04 +0000 (12:19 +0200)]
cperl-mode.el: Update for the current Perl version 5.040

* etc/NEWS: Announce new features of cperl-mode.

* lisp/progmodes/cperl-mode.el (cperl-menu): Add toggle for extra
paired delimiters.
(defconst): new rx expressions `cperl--sub-name-generated-rx' and
`cperl--field-declaration-rx'
(cperl--imenu-entries-rx): Use the new expressions
(cperl--extra-paired-delimiters): New variable holding the paired
delimiters for Perl 5.36 and newer
(cperl-imenu-sub-keywords): Add autogenerated methods to imenu
(cperl-init-faces): Add the __CLASS__ token, builtin constants,
and attributes for field declarations.
(cperl-short-docs): Add __CLASS__ to one-line docs.
(cperl-extra-paired-delimiters-mode): new minor mode to handle
non-ASCII paired delimiters.

* test/lisp/progmodes/cperl-mode-tests.el
(cperl-test-fontify-builtin-constants): new test.
(cperl-test-fontify-class): New test clauses for attributes.
(cperl-test-field-declaration-rx): new test.
(cperl-test-autogenerated-reader-rx): new unit test for the rx
expression.
(cperl-test-extra-delimiters): new test.
(cperl-test-imenu-index): new clauses for imenu capture of
autogenerated methods.

* test/lisp/progmodes/cperl-mode-resources/grammar.pl: Add
examples for Perl 5.40 syntax.

* test/lisp/progmodes/cperl-mode-resources/extra-delimiters.pl:
New resource for non-ASCII paired delimiters.

(cherry picked from commit 060c48435f49eb03019cc9eb7f1657f756f56ceb)

5 months ago; Fix recent change to outline.el.
Basil L. Contovounesios [Mon, 10 Jun 2024 07:42:10 +0000 (09:42 +0200)]
; Fix recent change to outline.el.

The library now makes use of hash-table-empty-p.

(cherry picked from commit 5416889873219988ce9e023eaf448fdbe691d304)

5 months agoMinor revisions to Android key bindings
Po Lu [Mon, 10 Jun 2024 07:37:58 +0000 (15:37 +0800)]
Minor revisions to Android key bindings

* etc/PROBLEMS (Runtime problems specific to Android): Document
inappropriate generation of F3 on certain systems.

* lisp/bindings.el ([iconify-frame], [make-frame-visible]):
Update references to long-obsolete ignore-event command.

* lisp/term/android-win.el ([KEYCODE_NOTIFICATION], [\83]):
Ignore these two nuisance keys by default.

(cherry picked from commit b7b43931ee4263e81bdaf41da571b94e01d10eff)

5 months ago; Tweak recent NEWS and window.el docs.
Basil L. Contovounesios [Mon, 10 Jun 2024 05:29:38 +0000 (07:29 +0200)]
; Tweak recent NEWS and window.el docs.

(cherry picked from commit d6ecabe23b752116e48e8fbb28ee6f47eef5ec18)

5 months agoNew command 'flymake-diagnostics-buffer-fix-diagnostic'
Eshel Yaron [Wed, 12 Jun 2024 09:20:52 +0000 (11:20 +0200)]
New command 'flymake-diagnostics-buffer-fix-diagnostic'

5 months agoMinor improvements for Flymake diagnostics list
Eshel Yaron [Tue, 11 Jun 2024 09:36:54 +0000 (11:36 +0200)]
Minor improvements for Flymake diagnostics list

5 months ago; * lisp/outline.el: Remove unused variable.
Juri Linkov [Mon, 10 Jun 2024 06:39:41 +0000 (09:39 +0300)]
; * lisp/outline.el: Remove unused variable.

(cherry picked from commit 4d59608ec40d725c6d7ec57d02a81ea6c3641079)

5 months ago* lisp/outline.el: Improve new feature of preserving outlines after revert.
Juri Linkov [Mon, 10 Jun 2024 06:34:15 +0000 (09:34 +0300)]
* lisp/outline.el: Improve new feature of preserving outlines after revert.

(outline-minor-mode): Move adding hook 'outline-revert-buffer-rehighlight'
to the same code branch that calls 'outline-minor-mode-highlight-buffer'.
(outline-revert-buffer-rehighlight): Remove same conditions
already existing in 'outline-minor-mode'.
(outline-hidden-headings-regexp): Remove function.
(outline-hidden-headings-paths)
(outline-hidden-headings-restore-paths): New functions
that save and restore complete paths instead of flat regexps.
(outline-revert-buffer-restore-visibility): Use
'outline-hidden-headings-paths' and
'outline-hidden-headings-restore-paths'.

(cherry picked from commit 1a5aa16066bb5180eb92d9c0bfc8cb2c0ce4a4d0)

5 months agoRe-enable TTY glyph production for batch mode frames on Android
Po Lu [Mon, 10 Jun 2024 03:56:24 +0000 (11:56 +0800)]
Re-enable TTY glyph production for batch mode frames on Android

* lisp/org/ob-core.el (org-babel-execute-src-block): Revert
previous change.

* src/term.c (tty_append_glyph, produce_glyphs) [HAVE_ANDROID]:
Re-enable suppressed code.

(cherry picked from commit bd80717d8e762c7559f66d297cdb6144e3f7f958)

5 months agoFix bootstrap of org.texi
Po Lu [Mon, 10 Jun 2024 00:37:51 +0000 (08:37 +0800)]
Fix bootstrap of org.texi

* lisp/org/ob-core.el (org-babel-execute-src-block): Ignore
errors around code block execution.

(cherry picked from commit 8d1d9798f77e837e21252bdd5da961dea4276d86)

5 months ago; Fix typos
Stefan Kangas [Sun, 9 Jun 2024 22:38:13 +0000 (00:38 +0200)]
; Fix typos

(cherry picked from commit 77d0eed74e1d934e28f364cb3adb06365e71335e)

5 months agoImprove correctness of 'eshell-quote-argument'
Jim Porter [Sun, 9 Jun 2024 22:21:08 +0000 (15:21 -0700)]
Improve correctness of 'eshell-quote-argument'

* lisp/eshell/esh-arg.el (eshell-quote-argument): Mention that this
function is for use within Eshell buffers.
(eshell-quote-backslash): Properly quote newlines.

* lisp/eshell/em-unix.el (eshell/cat, eshell/du): Throw
'eshell-external' instead; that's what it's here for.

* test/lisp/eshell/esh-proc-tests.el (esh-proc-test-quote-argument):
Remove.
(esh-proc-test/emacs-command):
* test/lisp/eshell/esh-var-tests.el (esh-var-test/path-var/set)
(esh-var-test/path-var/set-locally): Use 'eshell-quote-argument'.

* test/lisp/eshell/em-unix-tests.el (em-unix-test/compile/interactive):
Use 'shell-quote-argument' (Note: *not* 'eshell-...').

(cherry picked from commit 32a75ecc73b78ad922b2ae66d30b907b13e19cb8)

5 months ago* etc/NEWS: Announce Org update.
Kyle Meyer [Sun, 9 Jun 2024 17:06:28 +0000 (13:06 -0400)]
* etc/NEWS: Announce Org update.

(cherry picked from commit 12d44fe6420e84eab8f750f9a0f8cd73c3e70bb2)

5 months agoUpdate to Org 9.7.3
Kyle Meyer [Sun, 9 Jun 2024 17:06:28 +0000 (13:06 -0400)]
Update to Org 9.7.3

(cherry picked from commit 5a125fb5a9736bd3c67cf6ff9acc185d8e2260e2)

5 months ago; Use the current system's style of shell-quoting in Eshell debug logs
Jim Porter [Sun, 9 Jun 2024 20:47:15 +0000 (13:47 -0700)]
; Use the current system's style of shell-quoting in Eshell debug logs

* lisp/eshell/esh-proc.el (eshell-gather-process-output): Don't force
POSIX syntax.  This is less confusing when running on MS-Windows.

(cherry picked from commit e1cc2d1f61836e1da08817524999878b639e6761)

5 months agoRemove empty Eshell commands when parsing
Jim Porter [Sun, 9 Jun 2024 20:17:53 +0000 (13:17 -0700)]
Remove empty Eshell commands when parsing

This improves the logic for copying/stealing handles when constructing
the command form: now, we should always steal the handles for the last
real command, even if there were some trailing semicolons.

* lisp/eshell/esh-arg.el (eshell-parse-delimiter): Be stricter about
parsing so that things like "& &" aren't parsed as a single "&&" token.

* lisp/eshell/esh-cmd.el (eshell-parse-command): Get the commands in
reverse, and remove any nil commands.
(eshell-split-commands): Always return the trailing terms (except when
there were no terms to begin with).

* test/lisp/eshell/esh-cmd-tests.el
(esh-cmd-test/empty-background-command): New test.

(cherry picked from commit 00649042f3057c9ea2e6a4944924293998e2a527)

5 months ago; Allow batch-file Eshell test on MS-Windows
Eli Zaretskii [Sun, 9 Jun 2024 19:04:51 +0000 (22:04 +0300)]
; Allow batch-file Eshell test on MS-Windows

* test/lisp/eshell/em-script-tests.el (em-script-test/batch-file):
Don't skip on MS-Windows, as the test was fixed.

(cherry picked from commit 968bbdb317abf025e1d2cbd9dc5c20def7e3912a)