Commit graph

173675 commits

Author SHA1 Message Date
Stefan Kangas
0dd2defc2c ; 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.
2024-06-19 07:26:30 +02:00
Stefan Kangas
749ae36ee3 ; * lisp/htmlfontify.el: Remove "Version" header.
This package is only distributed with Emacs, so the only relevant
version number here is `emacs-version´.
2024-06-19 07:26:23 +02:00
Po Lu
5fceb53856 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.
2024-06-19 10:57:07 +08:00
Stefan Kangas
94be2b2682 ; * .mailmap: Update. 2024-06-18 21:54:22 +02:00
Philip Kaludercic
fa4203300f
Merge remote-tracking branch 'origin/feature/which-key-in-core' 2024-06-18 21:45:58 +02:00
Stefan Kangas
a7dff8c53d * lisp/org/ob-lua.el: Minor doc fixes. 2024-06-18 21:27:51 +02:00
Stefan Kangas
0d1edecf1e Update Coccinelle URL
* admin/coccinelle/README: Update URL.
2024-06-18 21:10:42 +02:00
Jonas Bernoulli
dceb28a1cf
Update to Transient v0.7.0-1-g482bc777 2024-06-18 17:02:20 +02:00
Michael Albinus
dc308348a9 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.
2024-06-18 14:40:20 +02:00
Philip Kaludercic
cc0a3a5f65
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.
2024-06-18 11:31:26 +02:00
Philip Kaludercic
543ad34ee4
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'.
2024-06-18 11:31:24 +02:00
Philip Kaludercic
b0b7df823b
; * lisp/which-key.el (which-key--process-page): Use ?\s 2024-06-18 11:31:04 +02:00
Philip Kaludercic
e0190c4fb8
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 63a6fb2a7a for a similar
issue with Quick Help.
2024-06-18 11:31:04 +02:00
Po Lu
fb04a51894 Fix window class of Android tooltips
* java/org/gnu/emacs/EmacsWindow.java (getWindowLayoutParams):
Declare as a panel, rather than an attached dialog.
2024-06-18 15:53:18 +08:00
Po Lu
6a162be6a8 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.
2024-06-18 14:41:26 +08:00
Po Lu
3c2df93e06 * java/Makefile.in (emacs.apk-in): Don't compress *.gz files on SDK 8. 2024-06-18 10:11:51 +08:00
Dmitry Gutov
f7953a0eef 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).
2024-06-17 22:53:35 +03:00
Juri Linkov
b26270ae94 * 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.
2024-06-17 19:47:53 +03:00
Juri Linkov
66c0099122 * 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.
2024-06-17 19:40:00 +03:00
Eshel Yaron
27f46ba4b9
(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)
2024-06-17 16:48:43 +02:00
Andrea Corallo
a5a374014f * lisp/touch-screen.el (touch-screen-inhibit-drag): Fix 'not' arity use. 2024-06-17 15:42:24 +02:00
Mattias Engdegård
923aad81d4 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.
2024-06-17 13:14:08 +02:00
Po Lu
175a513d19 ; Auto-commit of loaddefs files. 2024-06-17 17:45:48 +08:00
Po Lu
82f0014273 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.
2024-06-17 17:45:48 +08:00
Po Lu
6aa5068ac7 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.
2024-06-17 17:45:48 +08:00
Juri Linkov
7be66d8223 * 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.
2024-06-17 09:32:45 +03:00
Stefan Kangas
f18a915690 ; Translate comment to English
* lisp/progmodes/php-ts-mode.el
(php-ts-mode--parent-html-heuristic): Translate comment to English.
2024-06-16 22:38:26 +02:00
Stefan Kangas
c0eefebabf ; Fix typos 2024-06-16 22:38:26 +02:00
Michael Albinus
90234ba7f0 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.
2024-06-16 16:03:41 +02:00
Robert Pluim
275a558241 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.
2024-06-16 14:23:37 +02:00
Stefan Kangas
e0871780ac ; 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.
2024-06-16 13:39:26 +02:00
Po Lu
a39f6480ea 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.
2024-06-16 15:28:54 +08:00
Jim Porter
aefcccc1d4 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.
2024-06-15 22:51:42 -07:00
Po Lu
8d60b6bab8 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.
2024-06-16 11:35:44 +08:00
Po Lu
3241d6cfbf Document unavailability of color fonts on Android
* doc/emacs/android.texi (Android Fonts): Document absence of
support for color fonts.
2024-06-16 10:55:43 +08:00
James Thomas
65b7f87a31 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.
2024-06-15 16:59:48 -07:00
Philip Kaludercic
43a2240119
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.
2024-06-15 21:24:46 +02:00
Eli Zaretskii
2c201bbba5 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).
2024-06-15 22:20:56 +03:00
Vincenzo Pupillo
13c4fc3dc7 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.
2024-06-15 21:52:45 +03:00
Kyle Meyer
0910f6fe3f Update to Org 9.7.4-7-g165319 2024-06-15 14:31:02 -04:00
Jim Porter
03ad06737b ; 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.
2024-06-15 11:27:07 -07:00
Jim Porter
7df855cdfe ; 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.
2024-06-15 11:06:58 -07:00
Eli Zaretskii
1bc093e33c Merge from origin/emacs-29
59261e6f4f Fix auth-info-password
778f8c793d ; * lisp/mail/rmail.el (rmail-get-new-mail-hook): Doc fix.
e6044b29e6 ; Minor fixes in ELisp manual
2024-06-15 13:06:09 -04:00
Eli Zaretskii
9b2e1b5e16 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.
2024-06-15 20:03:39 +03:00
Eshel Yaron
83182b2c4a
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)
2024-06-15 18:48:34 +02:00
Eli Zaretskii
2d67ea8632 ; * doc/emacs/package.texi (Package Files): Fix wording. 2024-06-15 19:47:44 +03:00
Stefan Kangas
f2077bca79 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.
2024-06-15 16:33:09 +02:00
Stefan Kangas
1efbc8ff44 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.
2024-06-15 16:29:36 +02:00
Eli Zaretskii
9e8c0ec991 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)
2024-06-15 16:20:01 +03:00
Eli Zaretskii
2cbea4f35c Better documentation of 'emacs-internal' encoding
* doc/lispref/nonascii.texi (Coding System Basics): Recommend
'emacs-internal' encoding for caching.
2024-06-15 15:59:55 +03:00