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)
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)
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)
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)
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)
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)
Eli Zaretskii [Sat, 15 Jun 2024 07:00:59 +0000 (10:00 +0300)]
; * nt/README.W32: Remove Windows 95.
Eli Zaretskii [Sat, 15 Jun 2024 06:59:55 +0000 (09:59 +0300)]
; * nt/README: Remove Windows 95.
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.
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.
Eli Zaretskii [Fri, 14 Jun 2024 18:44:56 +0000 (21:44 +0300)]
; * src/insdel.c (insert_from_gap_1): Update commentary.
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).
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
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.
Dmitry Gutov [Fri, 14 Jun 2024 15:24:04 +0000 (18:24 +0300)]
* lisp/progmodes/project.el: Bump the version
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.
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.
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.
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.
Jim Porter [Fri, 14 Jun 2024 04:44:40 +0000 (21:44 -0700)]
; * lisp/eshell/em-script.el (eshell-execute-file): Improve docstring.
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.
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.
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).
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/...'.
Eshel Yaron [Thu, 13 Jun 2024 14:43:41 +0000 (16:43 +0200)]
; (completion-basic-all-completions): Fix recent change
* lisp/minibuffer.el (completion-basic-all-completions): Don't
omit base size.
https://lists.gnu.org/archive/html/emacs-devel/2024-06/msg00235.html
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"
Po Lu [Thu, 13 Jun 2024 12:11:43 +0000 (20:11 +0800)]
; * src/androidterm.c (android_term_init): Typo.
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".
Eli Zaretskii [Thu, 13 Jun 2024 08:03:52 +0000 (11:03 +0300)]
; * src/w32proc.c (sys_kill): Handle negative PID when sig == 0.
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.
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)
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.
Dmitry Gutov [Wed, 12 Jun 2024 21:46:00 +0000 (00:46 +0300)]
Highlight the suffix in *Completions* buffer in 'basic' style too
* lisp/minibuffer.el (completion-basic-all-completions):
Make sure to highlight the suffix as well (bug#71419).
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.
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'.
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.
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)
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.
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.
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).
Robert Pluim [Tue, 11 Jun 2024 16:35:46 +0000 (18:35 +0200)]
; * etc/NEWS: Add doc markup for char-to-name
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)
Eli Zaretskii [Wed, 12 Jun 2024 10:53:19 +0000 (13:53 +0300)]
; * lisp/menu-bar.el (kill-this-buffer): Doc fix (bug#71510).
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+.
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.
Eli Zaretskii [Wed, 12 Jun 2024 08:48:58 +0000 (11:48 +0300)]
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
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.
Po Lu [Wed, 12 Jun 2024 08:45:47 +0000 (16:45 +0800)]
Merge remote-tracking branch 'savannah/master' into master-android-1
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.
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.
Eli Zaretskii [Wed, 12 Jun 2024 06:16:40 +0000 (09:16 +0300)]
; * doc/emacs/maintaining.texi (VC Change Log): Fix recent change.
Po Lu [Wed, 12 Jun 2024 05:59:08 +0000 (13:59 +0800)]
; * java/Makefile.in: Fix typo.
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.
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.
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)
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).
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.
Eli Zaretskii [Tue, 11 Jun 2024 12:39:51 +0000 (15:39 +0300)]
; * src/emacs.c (Fkill_emacs): Doc fix.
Eli Zaretskii [Tue, 11 Jun 2024 12:09:30 +0000 (15:09 +0300)]
; * doc/lispref/nonascii.texi (Character Codes): Fix wording.
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.
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.
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.
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.
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.
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.
Eli Zaretskii [Tue, 11 Jun 2024 07:37:31 +0000 (10:37 +0300)]
; * src/process.c (read_and_dispose_of_process_output): Fix style.
Po Lu [Tue, 11 Jun 2024 06:40:46 +0000 (14:40 +0800)]
; * etc/NEWS: Rename read-process-output-fast here also.
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.
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.
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).
Po Lu [Tue, 11 Jun 2024 02:15:28 +0000 (10:15 +0800)]
* src/filelock.c (pid_strtoimax) [!WINDOWSNT]: Define correctly.
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)
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).
Po Lu [Tue, 11 Jun 2024 01:09:35 +0000 (09:09 +0800)]
; * src/process.c (syms_of_process): Fix ommission.
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.
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)
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.
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)
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.
Mattias Engdegård [Mon, 10 Jun 2024 16:49:28 +0000 (18:49 +0200)]
* src/print.c (print_vectorlike_unreadable): Fix merge accident.
Mattias Engdegård [Mon, 10 Jun 2024 16:47:00 +0000 (18:47 +0200)]
* etc/emacs_lldb.py (Lisp_Object): Add TS types.
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.
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)
Eli Zaretskii [Mon, 10 Jun 2024 15:10:03 +0000 (18:10 +0300)]
; Another fix of non-ASCII characters in Emacs manual.
Eli Zaretskii [Mon, 10 Jun 2024 15:06:50 +0000 (18:06 +0300)]
; Fix recent change in Emacs manual
* doc/emacs/custom.texi (Init Rebinding): Fix non-ASCII characters.
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`.
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.
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.
Po Lu [Mon, 10 Jun 2024 13:15:45 +0000 (21:15 +0800)]
; * src/process.c (read_process_output): Check in missing hunk.
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.
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.
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.
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.
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.
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)
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.
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.
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.
Basil L. Contovounesios [Mon, 10 Jun 2024 05:29:38 +0000 (07:29 +0200)]
; Tweak recent NEWS and window.el docs.
Juri Linkov [Mon, 10 Jun 2024 06:39:41 +0000 (09:39 +0300)]
; * lisp/outline.el: Remove unused variable.