Po Lu [Thu, 20 Jun 2024 13:29:39 +0000 (21:29 +0800)]
Fix NS build
* src/nsfns.m (Fx_create_frame, ns_create_tip_frame): Remove
references to deleted variable. (bug#71638)
Stefan Kangas [Thu, 20 Jun 2024 11:30:11 +0000 (13:30 +0200)]
Remove more references to Windows 95
* doc/lispref/frames.texi (Window System Selections):
* doc/misc/ediff.texi (Patch and Diff Programs):
* doc/misc/efaq-w32.texi (Third-party multibyte, Swap Caps NT)
(Subprocesses and floppy drive):
* etc/PROBLEMS:
* lisp/printing.el (pr-path-alist, pr-command):
* lisp/ps-print.el: Remove more references to Windows 95, which is not
supported by Emacs.
Eli Zaretskii [Thu, 20 Jun 2024 10:42:04 +0000 (13:42 +0300)]
Fix last change
* src/xdisp.c (handle_line_prefix): Set the 'align_visually_p'
only after pushing the iterator.
(pop_it): Reset the 'align_visually_p' flag. (Bug#71605)
Eli Zaretskii [Thu, 20 Jun 2024 09:52:06 +0000 (12:52 +0300)]
Fix use of ':align-to' in 'wrap-prefix'
* src/dispextern.h (struct it): New flag 'align_visually_p'.
* src/xdisp.c (handle_line_prefix): Set the 'align_visually_p'
flag for 'wrap-prefix'.
(produce_stretch_glyph): If 'align_visually_p' flag is set, count
the :align-to offset from the beginning of the screen line, not
from BOL. (Bug#71605)
* doc/lispref/display.texi (Truncation, Specified Space): Document
the special handling of ':align-to' in 'wrap-prefix'.
Po Lu [Thu, 20 Jun 2024 09:20:10 +0000 (17:20 +0800)]
* src/frame.c (gui_set_font): Reference image cache after reassignment.
Po Lu [Thu, 20 Jun 2024 09:03:54 +0000 (17:03 +0800)]
; * src/frame.c (make_frame): Typo.
Po Lu [Thu, 20 Jun 2024 09:03:36 +0000 (17:03 +0800)]
Correctly cache images when frames vary in their font metrics
* src/alloc.c (mark_frame): Mark this frame's image cache, if it
exist.
(mark_terminals): Cease marking T->image_cache.
* src/androidfns.c (unwind_create_frame, Fx_create_frame)
(android_create_tip_frame):
* src/haikufns.c (unwind_create_frame, haiku_create_frame)
(haiku_create_tip_frame):
* src/nsfns.m (unwind_create_frame):
* src/pgtkfns.c (unwind_create_frame, Fx_create_frame)
(x_create_tip_frame):
* src/xfns.c (unwind_create_frame, Fx_create_frame)
(x_create_tip_frame):
* src/w32fns.c (unwind_create_frame, Fx_create_frame)
(w32_create_tip_frame): Remove adjustments of the frame image
cache's reference count rendered redundant by the assignment of
image caches to individual frames rather than terminals.
* src/dispextern.h (struct image_cache) <scaling_col_width>: New
field.
* src/frame.c (gui_set_font): In lieu of clearing F's image
cache unconditionally, establish whether the column width as
considered by compute_image_size has changed, and if so, adjust
or reassign the frame's image cache.
(make_frame): Clear F->image_cache.
* src/frame.h (struct frame) <image_cache>: New field.
(FRAME_IMAGE_CACHE): Return F->image_cache.
* src/image.c (make_image_cache): Clear C->scaling_col_width.
(cache_image): Adjust to new means of assigning image caches to
frames.
* src/termhooks.h (struct terminal) <image_cache>: Delete field.
* src/xfaces.c (init_frame_faces): Do image cache assignment
with all new frames.
Rodrigo Kassick [Wed, 19 Jun 2024 21:04:08 +0000 (23:04 +0200)]
Fix display-buffer-override-next-command (bug#71654)
* lisp/window.el (display-buffer-override-next-command):
display-buffer-overriding-action's car can be either a function or a
list of functions. When a function,
(push action (car display-buffer-overriding-action)) will create a
cons-cell (action . function) instead of a list. In the clear-fun
callback, trying to
(delq action (car display-buffer-overriding-action)) causes an
wrong-type-argument error.
Copyright-paperwork-exempt: yes
Stefan Kangas [Wed, 19 Jun 2024 21:21:10 +0000 (23:21 +0200)]
Update leuven-theme to latest upstream version
* etc/themes/leuven-dark-theme.el:
* etc/themes/leuven-theme.el: Update to latest upstream version
https://github.com/fniessen/emacs-leuven-theme/ commit
a504c1d20625fe373ad5ea4ff3d94ea3706cbb87 (2024-03-30).
Philip Kaludercic [Wed, 19 Jun 2024 20:54:05 +0000 (22:54 +0200)]
* lisp/which-key.el (which-key-is-verbose): Remove unused option
Eli Zaretskii [Wed, 19 Jun 2024 11:30:17 +0000 (14:30 +0300)]
Avoid compilation warnings
* src/xwidget.c (Fxwidget_perform_lispy_event): Avoid compiler
warnings. (Bug#71638)
Po Lu [Wed, 19 Jun 2024 08:42:49 +0000 (16:42 +0800)]
Merge remote-tracking branch 'savannah/master' into master-android-1
Po Lu [Wed, 19 Jun 2024 08:41:59 +0000 (16:41 +0800)]
Don't follow symlinks in returning directory attributes of /
* src/androidvfs.c (struct android_vops) <stat>: New argument
for flags.
(android_unix_stat): Implement in terms of fstatat, not stat,
and provide flags to the same.
(android_afs_stat, android_content_stat, android_authority_stat)
(android_saf_root_stat, android_saf_tree_stat)
(android_saf_new_stat, android_fstatat): Adjust to match.
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.
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´.
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.
Stefan Kangas [Tue, 18 Jun 2024 19:54:22 +0000 (21:54 +0200)]
; * .mailmap: Update.
Philip Kaludercic [Tue, 18 Jun 2024 19:45:58 +0000 (21:45 +0200)]
Merge remote-tracking branch 'origin/feature/which-key-in-core'
Stefan Kangas [Tue, 18 Jun 2024 19:27:01 +0000 (21:27 +0200)]
* lisp/org/ob-lua.el: Minor doc fixes.
Stefan Kangas [Tue, 18 Jun 2024 19:10:42 +0000 (21:10 +0200)]
Update Coccinelle URL
* admin/coccinelle/README: Update URL.
Jonas Bernoulli [Tue, 18 Jun 2024 15:02:20 +0000 (17:02 +0200)]
Update to Transient
v0.7.0-1-g482bc777
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.
Philip Kaludercic [Tue, 18 Jun 2024 08:53:18 +0000 (10:53 +0200)]
Disable usage of unicode for which-key by default
* lisp/which-key.el (which-key-dont-use-unicode): Set to t.
(which-key-separator, which-key-ellipsis): Ensure that these
options are set after 'which-key-dont-use-unicode', as their
default value depends on it.
Philip Kaludercic [Tue, 18 Jun 2024 08:42:12 +0000 (10:42 +0200)]
Remove :underline from 'which-key-highlighted-command-face '
* lisp/which-key.el (which-key-highlighted-command-face): To
avoid using properties that might not be supported on all
displays, we instead inherit from the semantic face 'highlight'.
Philip Kaludercic [Tue, 18 Jun 2024 08:41:01 +0000 (10:41 +0200)]
; * lisp/which-key.el (which-key--process-page): Use ?\s
Philip Kaludercic [Tue, 18 Jun 2024 08:40:01 +0000 (10:40 +0200)]
Prevent which-key faces from over-extending during formatting
* lisp/which-key.el (which-key--pad-column): Instead of
injecting the description using a left-aligned format-string (%-[n]s),
we manually add the necessary padding so that the text
properties don't extend beyond the description. This allows us
to use a face with a background without it extending until the
end of a column.
See also
63a6fb2a7a02ca88835c3fd473894d3b7d39ff15 for a similar
issue with Quick Help.
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.
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.
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.
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).
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.
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.
Eshel Yaron [Mon, 17 Jun 2024 14:48:43 +0000 (16:48 +0200)]
(bookmark--jump-via): Ensure 'window-point' is set correctly
* lisp/bookmark.el (bookmark--jump-via): Record
bookmark-prescribed point before calling DISPLAY-FUNCTION, and
use it to set 'window-point' afterwards. (Bug#71603)
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.
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.
Po Lu [Mon, 17 Jun 2024 09:45:41 +0000 (17:45 +0800)]
; Auto-commit of loaddefs files.
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.
Po Lu [Mon, 17 Jun 2024 04:11:25 +0000 (12:11 +0800)]
Improve treatment of touch screen input by rmc and its callers
* lisp/emacs-lisp/rmc.el (read-multiple-choice--short-answers):
Run touch screen event translation on touch screen events
received, and respond to pinch, tap and scrolling gestures.
* lisp/net/nsm.el (nsm-query-user): Disable use-dialog-box in
the details window.
* lisp/touch-screen.el (touch-screen-translate-touch): Autoload.
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.
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.
Stefan Kangas [Sun, 16 Jun 2024 19:59:42 +0000 (21:59 +0200)]
; Fix typos
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.
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.
Stefan Kangas [Sun, 16 Jun 2024 11:39:26 +0000 (13:39 +0200)]
; Fix more checkdoc warnings in which-key.el
* lisp/which-key.el (which-key-special-keys)
(which-key-highlighted-command-face, which-key--safe-lookup-key)
(which-key--safe-lookup-key-description)
(which-key-add-keymap-based-replacements)
(which-key-add-key-based-replacements)
(which-key--fit-buffer-to-window-horizontally)
(which-key--popup-max-dimensions)
(which-key--propertize-description, which-key--format-and-replace)
(which-key--get-bindings, which-key--list-to-pages)
(which-key--create-pages-1, which-key--create-pages)
(which-key--get-popup-map, which-key-show-major-mode): Fix
checkdoc warnings.
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.
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.
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.
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.
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.
Philip Kaludercic [Sat, 15 Jun 2024 19:24:46 +0000 (21:24 +0200)]
Fix :version tag for 'which-key' custom data
* lisp/which-key.el (which-key-idle-delay)
(which-key-idle-secondary-delay, which-key-echo-keystrokes)
(which-key-max-description-length)
(which-key-min-column-description-width)
(which-key-add-column-padding, which-key-unicode-correction)
(which-key-dont-use-unicode, which-key-separator)
(which-key-ellipsis, which-key-prefix-prefix)
(which-key-compute-remaps, which-key-replacement-alist)
(which-key-allow-multiple-replacements)
(which-key-show-docstrings, which-key-highlighted-command-list)
(which-key-special-keys, which-key-buffer-name)
(which-key-show-prefix, which-key-popup-type)
(which-key-min-display-lines, which-key-max-display-columns)
(which-key-side-window-location, which-key-side-window-slot)
(which-key-side-window-max-width)
(which-key-side-window-max-height, which-key-frame-max-width)
(which-key-frame-max-height)
(which-key-allow-imprecise-window-fit)
(which-key-show-remaining-keys, which-key-sort-order)
(which-key-sort-uppercase-first, which-key-paging-prefixes)
(which-key-paging-key, which-key-use-C-h-commands)
(which-key-show-early-on-C-h, which-key-is-verbose)
(which-key-preserve-window-configuration)
(which-key-hide-alt-key-translations, which-key-delay-functions)
(which-key-allow-regexps, which-key-inhibit-regexps)
(which-key-show-transient-maps, which-key-init-buffer-hook)
(which-key-key-face, which-key-separator-face)
(which-key-note-face, which-key-command-description-face)
(which-key-local-map-description-face)
(which-key-highlighted-command-face)
(which-key-group-description-face, which-key-special-key-face)
(which-key-docstring-face)
(which-key-custom-popup-max-dimensions-function)
(which-key-custom-hide-popup-function)
(which-key-custom-show-popup-function, which-key-lighter)
(which-key-inhibit-display-hook)
(which-key-this-command-keys-function)
(which-key-allow-evil-operators)
(which-key-show-operator-state-maps): Rename :version to
:package-version and add new :version tags indicating that
'which-key' was added with Emacs 30.
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).
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.
Kyle Meyer [Sat, 15 Jun 2024 18:25:35 +0000 (14:25 -0400)]
Update to Org 9.7.4-7-g165319
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.
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.
Eli Zaretskii [Sat, 15 Jun 2024 17:06:09 +0000 (13:06 -0400)]
Merge from origin/emacs-29
59261e6f4fe Fix auth-info-password
778f8c793d1 ; * lisp/mail/rmail.el (rmail-get-new-mail-hook): Doc fix.
e6044b29e65 ; Minor fixes in ELisp manual
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.
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)
Eli Zaretskii [Sat, 15 Jun 2024 16:47:44 +0000 (19:47 +0300)]
; * doc/emacs/package.texi (Package Files): Fix wording.
Stefan Kangas [Sat, 15 Jun 2024 14:31:14 +0000 (16:31 +0200)]
Bump `which-key` minimum Emacs version to 25.1
* lisp/which-key.el: Bump minimum required Emacs version to 25.1 since
the package depends on `universal-argument--description'. This was
detected by package-lint.
Stefan Kangas [Sat, 15 Jun 2024 14:29:36 +0000 (16:29 +0200)]
Fix checkdoc warnings in which-key.el
* lisp/which-key.el (which-key, which-key-idle-secondary-delay)
(which-key-replacement-alist)
(which-key-allow-multiple-replacements, which-key-show-docstrings)
(which-key-highlighted-command-list, which-key-show-prefix)
(which-key-sort-order, which-key-sort-uppercase-first)
(which-key-use-C-h-commands, which-key-show-early-on-C-h)
(which-key-preserve-window-configuration, which-key-C-h-map)
(which-key-delay-functions, which-key-inhibit-regexps)
(which-key-faces, which-key-key-face, which-key-separator-face)
(which-key-note-face, which-key-command-description-face)
(which-key-local-map-description-face, which-key-special-key-face)
(which-key-inhibit-display-hook)
(which-key-this-command-keys-function, which-key-mode)
(which-key--init-buffer, which-key--get-menu-item-binding)
(which-key--get-keymap-bindings, which-key-reload-key-sequence)
(which-key-show-major-mode, which-key-show-full-major-mode)
(which-key-C-h-dispatch): Fix checkdoc warnings.
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)
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.
Philip Kaludercic [Sat, 15 Jun 2024 12:55:20 +0000 (14:55 +0200)]
* etc/NEWS: Mention the addition of 'which-key'
Philip Kaludercic [Sat, 15 Jun 2024 12:48:58 +0000 (14:48 +0200)]
* lisp/which-key.el: Clean up file header
Philip Kaludercic [Sat, 15 Jun 2024 12:44:06 +0000 (14:44 +0200)]
Merge remote-tracking branch 'github-which-key/master'
Eli Zaretskii [Sat, 15 Jun 2024 12:02:11 +0000 (15:02 +0300)]
; * lisp/textmodes/ispell.el (ispell-aspell-find-dictionary): Doc fix.
Arash Esbati [Thu, 13 Jun 2024 09:46:09 +0000 (11:46 +0200)]
; Fix some docstrings. (bug#71532)
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.