]> git.eshelyaron.com Git - emacs.git/log
emacs.git
4 months ago; * lisp/net/shr.el (shr-image-zoom-levels): Fix wrong type.
Mattias Engdegård [Tue, 9 Jul 2024 16:30:48 +0000 (18:30 +0200)]
; * lisp/net/shr.el (shr-image-zoom-levels): Fix wrong type.

(cherry picked from commit ac797f60160848fb625db4855befc68352d6cbd2)

4 months agoUse cheaper string constructors
Mattias Engdegård [Tue, 9 Jul 2024 08:01:03 +0000 (10:01 +0200)]
Use cheaper string constructors

* src/coding.c (make_string_from_utf8):
* src/fileio.c (file_name_directory):
* src/lread.c (Fintern):
* src/gnutls.c (Fgnutls_format_certificate):
Use `make_multibyte_string` and `make_unibyte_string` instead of
more expensive `make_specified_string` and `make_string_from_bytes`.

(cherry picked from commit 7e358aa706f9dbfce24304e8a05904538615537f)

4 months agoWarn if D-Bus error "InteractiveAuthorizationRequired" occurs
Michael Albinus [Tue, 9 Jul 2024 15:37:50 +0000 (17:37 +0200)]
Warn if D-Bus error "InteractiveAuthorizationRequired" occurs

* lisp/net/dbus.el
(dbus-error-interactive-authorization-required): New defconst.
(dbus-warn-interactive-authorization-required): New defun.
(dbus-event-error-functions): Add it.

(cherry picked from commit acfc3884bf58f7b407c42c8751affbcb365eb105)

4 months agoFix bug#71929
Po Lu [Tue, 9 Jul 2024 14:00:39 +0000 (22:00 +0800)]
Fix bug#71929

* src/image.c (free_image_cache): Unconditionally release image
cache, as this function is only called with its existence
already established.

* src/xfaces.c (free_frame_faces): Clear FRAME_IMAGE_CACHE (f).
(bug#71929)

(cherry picked from commit 8350ebd22e983df5eb9ad33d427bd3d6a09ffe7f)

4 months ago; * src/dbusbind.c (Fdbus_message_internal): Fix coding style.
Po Lu [Tue, 9 Jul 2024 13:16:47 +0000 (21:16 +0800)]
; * src/dbusbind.c (Fdbus_message_internal): Fix coding style.

(cherry picked from commit 4ca35cbb6ebe9b2bd0690d73b9ff722be7e07b2c)

4 months ago; Change `imap-shell-host` docstring to mention SSH
Stefan Kangas [Tue, 9 Jul 2024 12:09:20 +0000 (14:09 +0200)]
; Change `imap-shell-host` docstring to mention SSH

* lisp/net/imap.el (imap-shell-host): Doc fix; mention SSH instead of
rlogin.

(cherry picked from commit 8f96e0064fa701655413bdeb4612b5b2a63102c4)

4 months agoAdapt dbus-tests.el
Michael Albinus [Tue, 9 Jul 2024 12:01:07 +0000 (14:01 +0200)]
Adapt dbus-tests.el

* test/lisp/net/dbus-tests.el
(dbus-test04-call-method-authorizable): New test.
(dbus--test-signal-handler): Remove debug message.

(cherry picked from commit 813ca8c214a7105190d359edcbedcf30aafb0bfa)

4 months agoSupport interactive D-Bus authorization
Steven Allen [Tue, 9 Jul 2024 11:16:43 +0000 (13:16 +0200)]
Support interactive D-Bus authorization

When invoking D-Bus methods, let the user enable interactive
authorization by passing an :authorizable t parameter.  This makes
it possible to D-Bus methods that require polkit authorization.

* configure.ac (HAVE_DBUS_MESSAGE_SET_ALLOW_INTERACTIVE_AUTHORIZATION):
Set a new variable if `dbus_message_set_allow_interactive_authorization'
is available.

* src/dbusbind.c (dbus-message-internal): Allow interactive
authorization by passing :authorizable t.

* doc/misc/dbus.texi (Synchronous Methods, Asynchronous Methods):
* etc/NEWS:
* lisp/net/dbus.el (dbus-call-method-asynchronously): Document the
new parameter.

(cherry picked from commit 551a71c313be26d067e59fa11c79e4ef5c550e92)

4 months agoMake D-Bus tests stable
Michael Albinus [Tue, 9 Jul 2024 10:11:13 +0000 (12:11 +0200)]
Make D-Bus tests stable

* test/lisp/net/dbus-tests.el (dbus-debug): Declare, not define.
(dbus--test-event-expected): New defvar.
(dbus--test-signal-handler): Check for `dbus--test-event-expected'.
(dbus-test05-register-signal-with-nils)
(dbus-test08-register-monitor): Adapt tests.

(cherry picked from commit 24cad0e2e773a6f9cbd4a9721694a44246a7c974)

4 months ago; Skip commit d883f9a1f35c5daed877e4a96ecd7e31c259dc40
Eshel Yaron [Tue, 9 Jul 2024 17:50:48 +0000 (19:50 +0200)]
; Skip commit d883f9a1f35c5daed877e4a96ecd7e31c259dc40

4 months ago* etc/TODO (Native compiler improvements): Add entry.
Andrea Corallo [Tue, 9 Jul 2024 09:03:04 +0000 (11:03 +0200)]
* etc/TODO (Native compiler improvements): Add entry.

(cherry picked from commit e53f0f4869600f698e9d8c9527aaf5fba9ec1243)

4 months agoFix bug#70697 with respect to fringe bitmaps
Po Lu [Tue, 9 Jul 2024 06:10:07 +0000 (14:10 +0800)]
Fix bug#70697 with respect to fringe bitmaps

* src/pgtkterm.c (pgtk_draw_fringe_bitmap): Always call
`fill_background_by_face' for clearing backgrounds of fringe
bitmaps.  (bug#70697)

(cherry picked from commit 671ad83026e0f9727a809311d43fd7a57403b33b)

4 months agoFix byte-compiler warning in calc.el
Po Lu [Tue, 9 Jul 2024 01:35:16 +0000 (09:35 +0800)]
Fix byte-compiler warning in calc.el

* lisp/calc/calc.el
(calc-embedded-open-close-new-formula-alist): Remove previously
introduced quotation marks, as they bring the width of the doc
string past 80.

(cherry picked from commit 15c591bad6282824adf33fa195733da416d3fef2)

4 months agoeditorconfig-core-handle.el: Fix regressions in fnmatch handling
Stefan Monnier [Mon, 8 Jul 2024 21:09:31 +0000 (17:09 -0400)]
editorconfig-core-handle.el: Fix regressions in fnmatch handling

* lisp/editorconfig-core-handle.el
(editorconfig-core-handle-get-properties-hash): Fix computation of
relative file name.
(editorconfig-core-handle--fnmatch-p): Handle the case when `pattern`
doesn't have a `/` but does match the `/` character.

(cherry picked from commit dce31372a60a9d37591671b8570169c9117e416a)

4 months agoCheckdoc fixes in `url/*.el`
Stefan Kangas [Mon, 8 Jul 2024 15:49:14 +0000 (17:49 +0200)]
Checkdoc fixes in `url/*.el`

* lisp/url/url-util.el (url-query-key-value-allowed-chars):
* lisp/url/url.el (url-retrieve-synchronously): Checkdoc fixes.

(cherry picked from commit ed2986494c7c3fb6aaeb7647c6812c4091500222)

4 months agoCheckdoc fixes in `term/*.el`
Stefan Kangas [Mon, 8 Jul 2024 15:47:21 +0000 (17:47 +0200)]
Checkdoc fixes in `term/*.el`

* lisp/term/android-win.el (android-clear-preedit-text):
* lisp/term/pgtk-win.el (featurep):
* lisp/term/x-win.el (x-clear-preedit-text): Checkdoc fixes.

(cherry picked from commit 846c0e10ffaa13af654e9247e658a088d03d6f34)

4 months agoCheckdoc fixes in `mh-e/*.el`
Stefan Kangas [Mon, 8 Jul 2024 15:39:51 +0000 (17:39 +0200)]
Checkdoc fixes in `mh-e/*.el`

* lisp/mh-e/mh-e.el (mh-tool-bar):
* lisp/mh-e/mh-folder.el (mh-folder-mode):
* lisp/mh-e/mh-search.el (mh-pick-menu, mh-search-mode):
* lisp/mh-e/mh-show.el (mh-show-mode): Checkdoc fixes.

(cherry picked from commit 3977aa0756860d771442c69ee018fa7e925d0a62)

4 months agoCheckdoc fixes in `calc/*.el`
Stefan Kangas [Mon, 8 Jul 2024 14:44:17 +0000 (16:44 +0200)]
Checkdoc fixes in `calc/*.el`

* lisp/calc/calc.el (calc-embedded-open-close-new-formula-alist):
Checkdoc fixes.

(cherry picked from commit 521f740d0136924b2931d4fff6868eb0427b946d)

4 months agoCheckdoc fixes in `textmodes/*.el`
Stefan Kangas [Mon, 8 Jul 2024 15:16:32 +0000 (17:16 +0200)]
Checkdoc fixes in `textmodes/*.el`

* lisp/textmodes/ispell.el (ispell-command-loop):
* lisp/textmodes/mhtml-mode.el (mhtml--construct-submode):
* lisp/textmodes/page-ext.el (pages-set-delimiter):
* lisp/textmodes/refbib.el (r2b-get-field, r2b-put-field):
* lisp/textmodes/refer.el (refer-cache-bib-files):
* lisp/textmodes/reftex-index.el (reftex-index-phrase-selection-or-word):
(reftex-index-phrases-mode):
* lisp/textmodes/table.el (table-insert, table--fill-region-strictly):
Checkdoc fixes.

(cherry picked from commit 336aa6ab17a25351d54bb66fb66939ca27a6e94a)

4 months agoCheckdoc fixes in `gnus/*.el`
Stefan Kangas [Mon, 8 Jul 2024 15:07:03 +0000 (17:07 +0200)]
Checkdoc fixes in `gnus/*.el`

* lisp/gnus/gnus-agent.el (gnus-agent-enable-expiration)
(gnus-agent-with-refreshed-group, gnus-agentize)
(gnus-agent-fetch-headers, gnus-agent-update-files-total-fetched-for)
(gnus-agent-update-view-total-fetched-for):
* lisp/gnus/gnus-art.el (gnus-article-address-banner-alist)
(gnus-default-article-saver, gnus-mime-view-part-as-charset)
(gnus-block-private-groups, gnus-article-edit-mode):
* lisp/gnus/gnus-dired.el (gnus-dired-mode, gnus-dired-attach)
(gnus-dired-find-file-mailcap, gnus-dired-print):
* lisp/gnus/gnus-msg.el (gnus-summary-attach-article):
* lisp/gnus/gnus-score.el (gnus-home-score-file):
* lisp/gnus/gnus-search.el (gnus-search-ignored-newsgroups)
(gnus-search-mu-switches, gnus-search-mu-remove-prefix)
(gnus-search-thread):
* lisp/gnus/gnus-sieve.el (gnus-sieve-string-list):
* lisp/gnus/message.el (message-beginning-of-line):
* lisp/gnus/mm-url.el:
* lisp/gnus/mm-view.el (mm-w3m-setup, mm-setup-w3m):
* lisp/gnus/mml-sec.el (mml-signencrypt-style):
* lisp/gnus/nndiary.el:
* lisp/gnus/nnimap.el (nnimap-server-port, nnimap-use-namespaces)
(nnimap-expunge):
* lisp/gnus/nnmail.el (nnmail-incoming-coding-system):
(nnmail-ignore-broken-references):
* lisp/gnus/nnmairix.el (nnmairix-default-group):
* lisp/gnus/nntp.el (nntp-report):
* lisp/gnus/nnvirtual.el (nnvirtual-update-read-and-marked):
(nnvirtual-partition-sequence):
* lisp/gnus/spam-stat.el (spam-stat-process-directory-age)
(spam-stat-last-saved-at, spam-stat-save):
* lisp/gnus/spam.el (spam-enter-ham-BBDB, spam-check-BBDB):
Checkdoc fixes.

(cherry picked from commit e19fd6a22de00465b8fa6db574d71d03fa37b11f)

4 months agoCheckdoc fixes in `eshell/*.el`
Stefan Kangas [Mon, 8 Jul 2024 14:50:17 +0000 (16:50 +0200)]
Checkdoc fixes in `eshell/*.el`

* lisp/eshell/em-elecslash.el:
* lisp/eshell/em-extpipe.el:
* lisp/eshell/em-pred.el (eshell-get-delimited-modifier-argument):
* lisp/eshell/esh-cmd.el (eshell--unmark-deferrable)
(eshell-named-command-hook):
* lisp/eshell/esh-module.el (eshell-module--feature-name):
* lisp/eshell/esh-util.el (eshell-find-delimiter): Checkdoc fixes.

(cherry picked from commit 7350457c793f5f6b7cd331b85ef5779ca17a1c27)

4 months agoCheckdoc fixes in `emulation/*.el`
Stefan Kangas [Mon, 8 Jul 2024 14:43:27 +0000 (16:43 +0200)]
Checkdoc fixes in `emulation/*.el`

* lisp/emulation/cua-base.el:
* lisp/emulation/viper-mous.el (viper-parse-mouse-key):
* lisp/emulation/viper.el (viper-major-mode-modifier-list):
Checkdoc fixes.

(cherry picked from commit 23c1ba81ddd8e5b74d0d6e17aa53e38a04f86729)

4 months agoCheckdoc fixes in `erc/*.el`
Stefan Kangas [Mon, 8 Jul 2024 14:41:02 +0000 (16:41 +0200)]
Checkdoc fixes in `erc/*.el`

* lisp/erc/erc-backend.el (erc-server-parameters):
* lisp/erc/erc-button.el (erc-button--display-error-with-buttons):
* lisp/erc/erc-dcc.el (erc-dcc-member):
* lisp/erc/erc-fill.el (erc-fill-wrap-refill-buffer):
* lisp/erc/erc-speedbar.el (erc-speedbar--last-ran):
* lisp/erc/erc-stamp.el (erc-stamp--current-time):
* lisp/erc/erc-track.el (erc-make-mode-line-buffer-name):
* lisp/erc/erc.el (erc-interactive-display, erc-modules, erc-cmd-CLEAR)
(erc-update-current-channel-member, erc--format-user-modes)
(erc-check-text-conversion): Checkdoc fixes.

(cherry picked from commit c85f67a66dfc9b3333a466a5fcd313425889ee6e)

4 months agoCheckdoc fixes in `vc/*.el`
Stefan Kangas [Mon, 8 Jul 2024 12:37:29 +0000 (14:37 +0200)]
Checkdoc fixes in `vc/*.el`

* lisp/vc/ediff-init.el (ediff-start-narrowed)
(ediff-buffer-values-orig-A, ediff-buffer-values-orig-B)
(ediff-buffer-values-orig-C, ediff-buffer-values-orig-Ancestor):
* lisp/vc/ediff-mult.el:
* lisp/vc/ediff-ptch.el (ediff-get-patch-buffer):
* lisp/vc/emerge.el (emerge-before-flag, emerge-after-flag):
* lisp/vc/vc-dav.el (vc-dav-checkin):
* lisp/vc/vc-git.el (vc-git-command):
* lisp/vc/vc-hg.el (vc-hg-command):
* lisp/vc/vc-src.el (vc-src-command):
* lisp/vc/vc-svn.el (vc-svn-command):
* lisp/vc/vc.el (vc-checkin): Checkdoc fixes.

(cherry picked from commit e392382e2e26ea6d6afa459621c289007c8ea77c)

4 months agoCheckdoc fixes in `emacs-lisp/*.el`
Stefan Kangas [Mon, 8 Jul 2024 12:30:37 +0000 (14:30 +0200)]
Checkdoc fixes in `emacs-lisp/*.el`

* lisp/emacs-lisp/bytecomp.el (byte-compile-free-vars-warn)
(byte-compile-out):
* lisp/emacs-lisp/eldoc.el (eldoc-documentation-functions):
* lisp/emacs-lisp/find-func.el (find-ert-deftest-regexp):
* lisp/emacs-lisp/macroexp.el (byte-compile-form-stack):
Checkdoc fixes.

(cherry picked from commit ef7364b070e416810de0861c78dbdedf183ee067)

4 months agoCheckdoc fixes in `mail/*.el`
Stefan Kangas [Mon, 8 Jul 2024 12:24:33 +0000 (14:24 +0200)]
Checkdoc fixes in `mail/*.el`

* lisp/mail/feedmail.el (feedmail-mail-send-hook-splitter)
(feedmail-queue-runner-message-sender):
* lisp/mail/mail-extr.el (mail-extr-nuke-outside-range):
* lisp/mail/rmail.el (rmail-automatic-folder-directives)
(rmail-summary-displayed):
* lisp/mail/rmailmm.el (rmail-mime-searching):
* lisp/mail/sendmail.el (mail-mode):
* lisp/mail/supercite.el (sc-mail-last-header-nuked-p): Checkdoc fixes.

(cherry picked from commit 5fe1ae0e843b9f3d0bac5a2d28c23c7210caee9d)

4 months agoCheckdoc fixes in `net/*.el`
Stefan Kangas [Mon, 8 Jul 2024 12:10:46 +0000 (14:10 +0200)]
Checkdoc fixes in `net/*.el`

* lisp/net/ange-ftp.el:
* lisp/net/dictionary.el (dictionary-tool-bar-map):
* lisp/net/eudc.el (eudc-translate-query)
(eudc-translate-attribute-list)
(eudc-format-inline-expansion-result, eudc-bookmark-server):
* lisp/net/eww.el (eww-check-text-conversion):
* lisp/net/rcirc.el (rcirc-server-name):
* lisp/net/tramp-adb.el (tramp-adb-handle-get-remote-uid):
* lisp/net/tramp-cmds.el (tramp-recompile-elpa-command-completion-p):
* lisp/net/tramp-crypt.el (tramp-crypt-command-completion-p):
* lisp/net/tramp-message.el (tramp-debug-buffer-command-completion-p):
* lisp/net/tramp-sh.el (tramp-use-connection-share):
* lisp/net/tramp.el (tramp-command-completion-p): Checkdoc fixes.

(cherry picked from commit e43e9d09986e23d021afb56b4ced440ae8784e33)

4 months agoImprove `use-package-vc-valid-keywords` docstring format
Stefan Kangas [Mon, 8 Jul 2024 12:03:17 +0000 (14:03 +0200)]
Improve `use-package-vc-valid-keywords` docstring format

* lisp/use-package/use-package-core.el
(use-package-vc-valid-keywords): Improve docstring format.

(cherry picked from commit 4c6e9f5b0046648cd01da443cab33c30666c978d)

4 months ago; * etc/TODO: New item on installing Magit.
Stefan Kangas [Mon, 8 Jul 2024 11:52:42 +0000 (13:52 +0200)]
; * etc/TODO: New item on installing Magit.

(cherry picked from commit 928180f32be15a33c0848b81aba0b4d01f7d54e3)

4 months ago; Improve a recent change to the documentation
Eli Zaretskii [Mon, 8 Jul 2024 11:48:25 +0000 (14:48 +0300)]
; Improve a recent change to the documentation

* lisp/emacs-lisp/comp.el (native-comp-debug):
* doc/lispref/compile.texi (Native-Compilation Variables): Improve
wording.

(cherry picked from commit c193a702dc21b1f106dd2d0dd0bf52e1973bf9c9)

4 months ago; Delete fixed item from etc/TODO: "proced on macOS"
Stefan Kangas [Mon, 8 Jul 2024 10:45:30 +0000 (12:45 +0200)]
; Delete fixed item from etc/TODO: "proced on macOS"

The 'process-attributes' function is supported since Emacs 26.1, and
proced seems to be fully working.

* etc/TODO: Delete fixed item: "proced on macOS".

(cherry picked from commit 6ebc5d5c27854a7041014fdb7b248b873379befc)

4 months ago; Delete fixed NS bug from etc/TODO
Stefan Kangas [Mon, 8 Jul 2024 10:38:29 +0000 (12:38 +0200)]
; Delete fixed NS bug from etc/TODO

* etc/TODO: Delete fixed NS bug with 'mouse-avoidance-mode'.
Ref: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=17439#43

(cherry picked from commit 7b2778e3a3d37debb244971611687dc7f68091d5)

4 months ago* etc/TODO: Add item to convert documentation to 'setopt'.
Stefan Kangas [Sun, 7 Jul 2024 20:32:20 +0000 (22:32 +0200)]
* etc/TODO: Add item to convert documentation to 'setopt'.

(cherry picked from commit 198063ba643ae42ba3464317af38abcaf1fac550)

4 months agoPrefer 'setopt' in browse-url docs
Stefan Kangas [Sun, 7 Jul 2024 19:38:10 +0000 (21:38 +0200)]
Prefer 'setopt' in browse-url docs

* lisp/net/browse-url.el:
(browse-url-filename-alist): Doc fix; prefer 'setopt'.

(cherry picked from commit 92de67829ca18b4957cb995a1442f2ccac80847c)

4 months ago; Improve 'native-comp-debug' documentation
Andrea Corallo [Mon, 8 Jul 2024 09:05:29 +0000 (11:05 +0200)]
; Improve 'native-comp-debug' documentation

* lisp/emacs-lisp/comp.el (native-comp-debug): Improve doc.
* doc/lispref/compile.texi (Native-Compilation Variables): Likewise.

(cherry picked from commit 76683853905e73c3f40151f28a8ac7772f2dcec3)

4 months ago* lisp/emacs-lisp/macrostep.el: New file.
Eshel Yaron [Tue, 9 Jul 2024 17:45:26 +0000 (19:45 +0200)]
* lisp/emacs-lisp/macrostep.el: New file.

4 months agoAdd 'minibuffer-action' to 'info-apropos'
Eshel Yaron [Tue, 9 Jul 2024 16:49:10 +0000 (18:49 +0200)]
Add 'minibuffer-action' to 'info-apropos'

4 months agoMake checkdoc recognize "U.S." acronym
Stefan Kangas [Mon, 8 Jul 2024 15:41:23 +0000 (17:41 +0200)]
Make checkdoc recognize "U.S." acronym

* lisp/emacs-lisp/checkdoc.el (checkdoc-in-abbreviation-p): Recognize
"U.S." acronym.

(cherry picked from commit f410b251fd8a30360f2b9969957dae3ab6ee5bd8)

4 months agoperl-mode: fix bug introduced in bd86a6c4fde
Pip Cet [Mon, 8 Jul 2024 14:34:45 +0000 (14:34 +0000)]
perl-mode: fix bug introduced in bd86a6c4fde

* lisp/progmodes/perl-mode.el (perl-calculate-indent): Use
`save-excursion' around code that modifies point.

(cherry picked from commit dd8d5d57df51bcd066323d068b852e9373871584)

4 months agoCorrect conditions for iconification on Android
Po Lu [Mon, 8 Jul 2024 07:33:26 +0000 (15:33 +0800)]
Correct conditions for iconification on Android

* java/org/gnu/emacs/EmacsActivity.java (EmacsActivity)
<isPaused>: Rename to <isStopped>.
(attachWindow): Adjust to match.
(onPause): Delete function.
(onStop): Deem frames iconified after calls to onStop instead.

(cherry picked from commit 67f291ddae31cc4623fd93280b141ee8611f3f5a)

4 months agoFix execution of MS-Windows app execution aliases in Eshell
Jim Porter [Sat, 22 Jun 2024 19:45:19 +0000 (12:45 -0700)]
Fix execution of MS-Windows app execution aliases in Eshell

* lisp/eshell/esh-ext.el (eshell-script-interpreter): Check for 0-size
files (bug#71655).

(cherry picked from commit 130c3efa108de4db0a4a8b7521ecf6551efa89cb)

4 months agoImprove 'tab-line-tabs-fixed-window-buffers' sorting performance
Eval EXEC [Fri, 5 Jul 2024 10:53:36 +0000 (18:53 +0800)]
Improve 'tab-line-tabs-fixed-window-buffers' sorting performance

* lsp/tab-line.el (tab-line-tabs-fixed-window-buffers): Enhance
'tab-line-tabs-fixed-window-buffers' performance by optimizing buffer
sorting mechanism.  Replace inefficient 'seq-position' calls with a hash
table to cache buffer positions, significantly improving speed when
handling large buffer lists (bug#71958).

Copyright-paperwork-exempt: yes
(cherry picked from commit fffab032b05d5dcb72d6729321739ca814c54a28)

4 months agoAdapt Tramp version
Michael Albinus [Sun, 7 Jul 2024 17:43:31 +0000 (19:43 +0200)]
Adapt Tramp version

* doc/misc/trampver.texi:
* lisp/net/trampver.el (tramp-version): Adapt Tramp versions.

(cherry picked from commit 4d21dff571477ca0308293815f3025897bc089a4)

4 months ago; Skip commit 069fa6390973bde3a1c551369ed54d741f369703
Eshel Yaron [Mon, 8 Jul 2024 20:58:11 +0000 (22:58 +0200)]
; Skip commit 069fa6390973bde3a1c551369ed54d741f369703

4 months agoFix Tramp parser
Michael Albinus [Sun, 7 Jul 2024 17:34:37 +0000 (19:34 +0200)]
Fix Tramp parser

* lisp/net/tramp.el (tramp-host-with-port-regexp): Declare.
(tramp-set-syntax): Set also `tramp-host-with-port-regexp'.
(tramp-build-host-with-port-regexp): New defun.
(tramp-host-with-port-regexp): Make it a defvar.  (Bug#71972)

* test/lisp/net/tramp-tests.el (tramp-test01-file-name-syntax)
(tramp-test01-file-name-syntax-simplified)
(tramp-test01-file-name-syntax-separate): Adapt tests.

(cherry picked from commit f4c0459ed3edce33329744f60a0e389c20dc60a5)

4 months agoCheckdoc fixes in progmodes
Stefan Kangas [Sun, 7 Jul 2024 12:50:18 +0000 (14:50 +0200)]
Checkdoc fixes in progmodes

* lisp/progmodes/cperl-mode.el (cperl-file-style)
(cperl-continued-brace-offset, cperl-tips-faces):
* lisp/progmodes/eglot.el (eglot-confirm-server-edits, eglot)
(eglot-list-connections-mode, eglot--outstanding-inlay-hints-region)
(eglot--outstanding-inlay-regions-timer):
* lisp/progmodes/etags.el (etags-goto-tag-location)
(etags--xref-apropos-additional):
* lisp/progmodes/flymake.el (flymake-autoresize-margins):
* lisp/progmodes/gdb-mi.el (gdb-mouse-until, gdb-mouse-jump):
* lisp/progmodes/hideif.el (hif-parse-macro-arglist):
* lisp/progmodes/idlw-help.el (idlwave-html-help-location):
* lisp/progmodes/idlwave.el (idlwave-reserved-word-upcase):
* lisp/progmodes/java-ts-mode.el (java-ts-mode--string-highlight-helper):
* lisp/progmodes/js.el (js--chained-expression-p):
* lisp/progmodes/pascal.el (pascal-mode, pascal-comment-area):
* lisp/progmodes/python.el (python--treesit-fontify-union-types):
* lisp/progmodes/ruby-mode.el (ruby-align-chained-calls)
(ruby-block-indent, ruby-rubocop-use-bundler):
* lisp/progmodes/rust-ts-mode.el
(rust-ts-mode--prettify-symbols-compose-p):
* lisp/progmodes/verilog-mode.el (verilog-cache-has-lisp)
(verilog-auto-insert-lisp, verilog-highlight-region):
* lisp/progmodes/xref.el (xref--get-history): Various checkdoc fixes.

(cherry picked from commit 47c79b62dd04e9ec585354b35e0ef3b3e8c2878d)

4 months agoCheckdoc fixes in Org Mode
Stefan Kangas [Sun, 7 Jul 2024 12:27:14 +0000 (14:27 +0200)]
Checkdoc fixes in Org Mode

* lisp/org/ob-core.el:
* lisp/org/ob-exp.el:
* lisp/org/ob-lob.el:
* lisp/org/ob-plantuml.el (org-babel-execute:plantuml):
* lisp/org/ob-python.el (org-babel-python--command)
(org-babel-python-initiate-session-by-key)
(org-babel-python-initiate-session):
* lisp/org/ob-scheme.el (org-babel-scheme-make-session-name):
* lisp/org/ob-tangle.el (org-babel-find-file-noselect-refresh)
(org-babel-interpret-file-mode):
* lisp/org/ob.el:
* lisp/org/org-agenda.el (org-agenda-mouse-1-follows-link)
(org-agenda-start-with-archives-mode)
(org-agenda-previous-line):
* lisp/org/org-clock.el (org-clock-save, org-clock-load):
* lisp/org/org-element-ast.el (org-element-type-p):
* lisp/org/org-faces.el (org-cycle-level-faces):
* lisp/org/org-fold-core.el (org-fold-core--isearch-overlays):
* lisp/org/org-fold.el (org-fold--extend-changed-region):
* lisp/org/org-goto.el:
* lisp/org/org-habit.el (org-habit-show-all-today):
* lisp/org/org-inlinetask.el (org-inlinetask-in-task-p):
* lisp/org/org-macs.el (org-current-text-column):
* lisp/org/org-mobile.el (org-mobile-check-setup):
* lisp/org/org-mouse.el (org-mouse-bolp):
* lisp/org/org-refile.el (org-refile):
* lisp/org/org-src.el (org-src-do-key-sequence-at-code-block):
* lisp/org/org-table.el (orgtbl-after-send-table-hook)
(orgtbl-self-insert-command, orgtbl-to-orgtbl):
* lisp/org/org.el (org-read-date-popup-calendar, org-finish-function)
(org-occur-parameters, org-self-insert-command, org-ctrl-c-ctrl-c-hook)
(org-ctrl-c-ctrl-c-final-hook, org-submit-bug-report)
(org--single-lines-list-is-paragraph):
* lisp/org/ox-icalendar.el (org-icalendar--vtodo):
* lisp/org/ox-latex.el (org-latex-generate-engraved-preamble):
(org-latex-src--engrave-code):
* lisp/org/ox-publish.el (org-publish-project-alist):
* lisp/org/ox.el (org-export-data): Various checkdoc fixes.

(cherry picked from commit 6757f8e67d3bdfe338810fc26408a62e7839afe7)

4 months agoMark `browse-url-default-scheme` as :risky
Stefan Kangas [Sun, 7 Jul 2024 14:18:07 +0000 (16:18 +0200)]
Mark `browse-url-default-scheme` as :risky

* lisp/net/browse-url.el (browse-url-default-scheme): Mark as
risky file local variable.

(cherry picked from commit 4871ccd41670debd47238ec0d3bbdef064e517e6)

4 months agoMake `checkdoc-verb-check-experimental-flag` default to nil
Stefan Kangas [Sun, 7 Jul 2024 11:40:59 +0000 (13:40 +0200)]
Make `checkdoc-verb-check-experimental-flag` default to nil

This user option leads to a very large amount of false positives in
practice.  In my personal experience, almost all occurrences that are
flagged are false positives.  Flipping the default to something less
intrusive should hopefully encourage more use of checkdoc.

* lisp/emacs-lisp/checkdoc.el
(checkdoc-verb-check-experimental-flag): Switch the default to nil.

(cherry picked from commit 44a3b21d7b8fad3b3ef42bf233ec882856b81177)

4 months agocheckdoc: Flag formatting mistakes in warnings
Stefan Kangas [Sun, 7 Jul 2024 11:37:55 +0000 (13:37 +0200)]
checkdoc: Flag formatting mistakes in warnings

* lisp/emacs-lisp/checkdoc.el (checkdoc-message-text-next-string)
(checkdoc-message-text-engine): Flag formatting mistakes in warnings.
(checkdoc--warning-function-re): New variable.

(cherry picked from commit e738c387dac674092eab4b5b32efd9fb6726dee6)

4 months agocheckdoc: Minor code cleanups
Stefan Kangas [Sun, 7 Jul 2024 10:58:39 +0000 (12:58 +0200)]
checkdoc: Minor code cleanups

* lisp/emacs-lisp/checkdoc.el
(checkdoc-message-text-search): Use 'while-let'.
(checkdoc-message-text-engine): Use 'when' and 'unless'.

(cherry picked from commit 1883603dfc52f71aa515c60103967938a6eec002)

4 months ago; checkdoc: More interactive mode tagging
Stefan Kangas [Sun, 7 Jul 2024 10:52:56 +0000 (12:52 +0200)]
; checkdoc: More interactive mode tagging

(cherry picked from commit 3e999f70a4d0f1ebdb45da305207e2b45f88059f)

4 months agoClarify `checkdoc-max-keyref-before-warn` docstring
Stefan Kangas [Sun, 7 Jul 2024 10:45:03 +0000 (12:45 +0200)]
Clarify `checkdoc-max-keyref-before-warn` docstring

* lisp/emacs-lisp/checkdoc.el (checkdoc-max-keyref-before-warn): Clarify
and reflow docstring.  Fix warning about overly long docstring.

(cherry picked from commit 9fcee3c1d1eb6ce735dc69ee77b0c81900c19c3d)

4 months ago* lisp/files.el (insert-directory): Quote switches in wildcard case.
Juri Linkov [Sun, 7 Jul 2024 06:57:34 +0000 (09:57 +0300)]
* lisp/files.el (insert-directory): Quote switches in wildcard case.

Use shell-quote-wildcard-pattern on the switches string split by
split-string-and-unquote.  This helps to quote such switches as
"--block-size='1" (bug#71935).

(cherry picked from commit b249f022f1285aaf02705b6ac239d95e3b413c18)

4 months agoFix uses of 'dired-omit-mode' (bug#71905)
Juri Linkov [Sun, 7 Jul 2024 06:52:01 +0000 (09:52 +0300)]
Fix uses of 'dired-omit-mode' (bug#71905)

* lisp/dired.el (dired-jump): Disable dired-omit-mode with -1.

* lisp/files.el (recover-session): Disable dired-omit-mode
explicitly afterwards instead of modifying dired-mode-hook
that fails when it contains a lambda.

(cherry picked from commit 8911d53ce5d8c67327704b7bf55ada14024766d0)

4 months agoImprove and extend minibuffer prompt indicators
Eshel Yaron [Mon, 8 Jul 2024 20:49:22 +0000 (22:49 +0200)]
Improve and extend minibuffer prompt indicators

4 months agoFix error when choosing 1-char completion candidates
Eshel Yaron [Mon, 8 Jul 2024 20:47:10 +0000 (22:47 +0200)]
Fix error when choosing 1-char completion candidates

4 months agoAdd 'minibuffer-action' to some info.el commands
Eshel Yaron [Mon, 8 Jul 2024 20:46:32 +0000 (22:46 +0200)]
Add 'minibuffer-action' to some info.el commands

4 months ago; * lisp/bookmark.el (bookmark-jump): Remove outdated workaround
Eshel Yaron [Mon, 8 Jul 2024 20:33:55 +0000 (22:33 +0200)]
; * lisp/bookmark.el (bookmark-jump): Remove outdated workaround

4 months ago; Update ldefs-boot.el
Eshel Yaron [Sun, 7 Jul 2024 15:54:23 +0000 (17:54 +0200)]
; Update ldefs-boot.el

4 months agoRevert "Fix link to major mode variable in docstring"
Eshel Yaron [Sun, 7 Jul 2024 15:43:58 +0000 (17:43 +0200)]
Revert "Fix link to major mode variable in docstring"

This reverts commit b547c78a1e34fe750f746163c7b6060f5433da6f.

4 months agoMark some 'sql{-interactive}-mode'-specific commands as such
Eshel Yaron [Sun, 7 Jul 2024 15:32:48 +0000 (17:32 +0200)]
Mark some 'sql{-interactive}-mode'-specific commands as such

4 months ago(sql-connect): Add 'minibuffer-action'
Eshel Yaron [Sun, 7 Jul 2024 14:13:49 +0000 (16:13 +0200)]
(sql-connect): Add 'minibuffer-action'

4 months ago; Avoid byte-compiler warning in package.el
Eli Zaretskii [Sun, 7 Jul 2024 05:51:16 +0000 (08:51 +0300)]
; Avoid byte-compiler warning in package.el

* lisp/emacs-lisp/package.el (lm-package-needs-footer-line): Declare.

(cherry picked from commit 4a1f2053cdce65efd00de4e211de89f56a549a61)

4 months agoFix fontification of network files in `awk-mode`
Stefan Kangas [Sun, 7 Jul 2024 02:31:01 +0000 (04:31 +0200)]
Fix fontification of network files in `awk-mode`

* lisp/progmodes/cc-awk.el (awk-font-lock-keywords): Fix fontification
of special network file names such as "/inet4/tcp/0/localhost/daytime".
See Info node '(gawk) TCP/IP Networking'.

(cherry picked from commit 17807a3144045305334c85b248ff6cdd93681ab6)

4 months ago* src/androidvfs.c (android_saf_check_nonnull): Fix typo.
Po Lu [Sun, 7 Jul 2024 02:24:24 +0000 (10:24 +0800)]
* src/androidvfs.c (android_saf_check_nonnull): Fix typo.

(cherry picked from commit 8589fd9cae2fbff8bf8eddd055fc1e60fa0df6f2)

4 months agoCorrect JNI string error checking and miscellaneous corrections
Po Lu [Sun, 7 Jul 2024 02:19:31 +0000 (10:19 +0800)]
Correct JNI string error checking and miscellaneous corrections

* src/android-emacs.c (main): Do not attempt to load the
bootstrap class path, which is redundant on all Android releases.

* src/android.c (initEmacs, android_browse_url): Do not assume
exceptions will be raised if GetStringUTFChars fails.  Decode
Android JNI strings as Qandroid_jni.

* src/androidvfs.c (android_saf_check_nonnull): New function.
(android_saf_new_mkdir): Likewise.

(cherry picked from commit 99e510977b22ca60e48b2af70a3c2cdbd90b2b01)

4 months agoFontify `mkbool` as function in `awk-mode`
Stefan Kangas [Sun, 7 Jul 2024 01:50:35 +0000 (03:50 +0200)]
Fontify `mkbool` as function in `awk-mode`

* lisp/progmodes/cc-awk.el (awk-font-lock-keywords):
Fontify 'mkbool' function, added in gawk version 5.2.
See Info node '(gawk) Boolean Functions'.

(cherry picked from commit 745eae00d4178906eda58c26d0d132fbd32b3ff7)

4 months agoCorrectly highlight SYMTAB in `awk-mode`
Stefan Kangas [Sun, 7 Jul 2024 01:39:37 +0000 (03:39 +0200)]
Correctly highlight SYMTAB in `awk-mode`

* lisp/progmodes/cc-awk.el (awk-font-lock-keywords): Fix typo for
"SYMTAB" (see Info node '(gawk) Auto-set').

(cherry picked from commit bbe95a8ceabfa1f4ad2064e1607fe64cf56434fd)

4 months agoAdd a heuristic for type font-lock in rust-ts-mode (bug#69625)
Yuan Fu [Sat, 6 Jul 2024 21:07:39 +0000 (14:07 -0700)]
Add a heuristic for type font-lock in rust-ts-mode (bug#69625)

* lisp/progmodes/rust-ts-mode.el:
(rust-ts-mode--font-lock-settings): Add rule.

(cherry picked from commit 2e9777512a0cd2fb2e60706d6908247496faeeec)

4 months agoFix formatting of tables with thead/tfoot but no tbody
JD Smith [Sat, 6 Jul 2024 13:22:33 +0000 (09:22 -0400)]
Fix formatting of tables with thead/tfoot but no tbody

Correctly handle formatting of tables containing thead and/or tfoot, but
without any tbody, to prevent including thead/tfoot content twice within
the table's derived body.
* lisp/net/shr.el (shr--fix-tbody): Omit 'thead' and 'tfoot' from
implicit body.  (Bug#71685)
* test/lisp/net/shr-resources/table.html:
* test/lisp/net/shr-resources/table.txt: New tests for table rendering.

(cherry picked from commit 9625e4af9946436cea6ba3f41f6c384634bcc999)

4 months ago; Reflow "Commentary" in lisp-mnt.el
Stefan Kangas [Sat, 6 Jul 2024 17:34:28 +0000 (19:34 +0200)]
; Reflow "Commentary" in lisp-mnt.el

* lisp/emacs-lisp/lisp-mnt.el: Reflow "Commentary" section.

(cherry picked from commit 48f4c9cbbc1297eeb2299928bd415c891b98d999)

4 months ago; * lisp/emacs-lisp/comp-run.el (native--compile-async): Improve warning.
Eli Zaretskii [Sat, 6 Jul 2024 17:32:49 +0000 (20:32 +0300)]
; * lisp/emacs-lisp/comp-run.el (native--compile-async): Improve warning.

(cherry picked from commit 22155753a464ceb7cd4f3387738e0dbca8acbd19)

4 months ago; Skip commit 235b9e85a672fa1e24ba12a00af62b3307f0d4c0
Eshel Yaron [Sat, 6 Jul 2024 21:19:23 +0000 (23:19 +0200)]
; Skip commit 235b9e85a672fa1e24ba12a00af62b3307f0d4c0

4 months agocheckdoc: Relax footer line check for recent Emacs
Stefan Kangas [Sat, 6 Jul 2024 15:36:30 +0000 (17:36 +0200)]
checkdoc: Relax footer line check for recent Emacs

* lisp/emacs-lisp/checkdoc.el (checkdoc-file-comments-engine):
Don't require a footer line unless 'lm-package-needs-footer-line'
returns true.

(cherry picked from commit d826240fa56230ef1561d5b4807284ce98a8c6b6)

4 months agoMake `lm-homepage` into an obsolete alias for 'lm-website'
Stefan Kangas [Sat, 6 Jul 2024 15:09:24 +0000 (17:09 +0200)]
Make `lm-homepage` into an obsolete alias for 'lm-website'

* lisp/emacs-lisp/lisp-mnt.el (lm-homepage): Make into an obsolete
function alias for 'lm-website'.

(cherry picked from commit 3cde0066998bc46a44a38583970d748badb0b850)

4 months agoMake `lm-verify` obsolete in favor of checkdoc
Stefan Kangas [Sat, 6 Jul 2024 15:02:34 +0000 (17:02 +0200)]
Make `lm-verify` obsolete in favor of checkdoc

* lisp/emacs-lisp/lisp-mnt.el (lm-verify): Make obsolete in favor
of checkdoc.

(cherry picked from commit af21ac1665832247605ba4835ce823e87efa4208)

4 months agoAdd new function `lm-package-needs-footer-line`
Stefan Kangas [Sat, 6 Jul 2024 14:41:33 +0000 (16:41 +0200)]
Add new function `lm-package-needs-footer-line`

* lisp/emacs-lisp/lisp-mnt.el (lm-package-needs-footer-line):
Factor out new function...
* lisp/emacs-lisp/package.el (package-buffer-info): ...from here.
* lisp/emacs-lisp/lisp-mnt.el (lm-verify): Use above new function.
* test/lisp/emacs-lisp/lisp-mnt-tests.el
(lm-tests--lm-package-needs-footer-line/empty-dependencies)
(lm-tests--lm-package-needs-footer-line/old-version)
(lm-tests--lm-package-needs-footer-line/new-version):
New tests.

(cherry picked from commit c302c5fab0c8dee12e7b19925452871ddb09c0b2)

4 months agoFix treesit range rule for jsdoc
Vincenzo Pupillo [Thu, 27 Jun 2024 14:13:58 +0000 (16:13 +0200)]
Fix treesit range rule for jsdoc

The parser for jsdoc is local, so it is necessary for the range
rule to take this into account.
* lisp/progmodes/js.el (js-ts-mode): Add ':local' keyword.
(js-ts-language-at-point): Remove 'js-ts-language-at-point'.
(Bug#71776)

(cherry picked from commit f910514721e2eac1535d51ccebf7f136be3ba57f)

4 months agoFix documentation of 'balance-windows'
Eli Zaretskii [Sat, 6 Jul 2024 10:44:57 +0000 (13:44 +0300)]
Fix documentation of 'balance-windows'

* lisp/window.el (balance-windows): Doc fix.

* doc/emacs/windows.texi (Change Window): Make the description of
'balance-windows' more accurate.  (Bug#71915)

(cherry picked from commit de3fa00a6140b19e6d62a47be721b5ca9b58438b)

4 months agonnatom: Ensure some parsed values are one line
Daniel Semyonov [Mon, 1 Jul 2024 23:15:24 +0000 (02:15 +0300)]
nnatom: Ensure some parsed values are one line

* lisp/gnus/nnatom.el (nnatom--dom-line): New function.
(nnatom--read-title, nnatom--read-description)
(nnatom--read-article-or-group-authors, nnatom--read-subject)
(nnatom--read-id, nnatom--read-publish, nnatom--read-update)
(nnatom--read-links): Read text using `nnatom--dom-line'.
(Bug#71889)

(cherry picked from commit c986387c79fbae8a99352cad0113bec0b5cb11a5)

4 months agonnfeed: (Mostly) fix group descriptions
Daniel Semyonov [Mon, 1 Jul 2024 22:42:26 +0000 (01:42 +0300)]
nnfeed: (Mostly) fix group descriptions

* lisp/gnus/nnfeed.el (nnfeed--group-description): New function.
(nnfeed-request-group-description, nnfeed-request-list-newsgroups):
Use `nnfeed--group-description' and always return t if group data
is found.  (Bug#71888)

(cherry picked from commit 2fb6a98ecfa1579273a640e923f2e52f75e1f7ad)

4 months agoEglot: support deprecated MarkedString (bug#71353)
João Távora [Sat, 6 Jul 2024 09:17:42 +0000 (10:17 +0100)]
Eglot: support deprecated MarkedString (bug#71353)

* lisp/progmodes/eglot.el: Make a markdown code block if
MarkedString passed.

(cherry picked from commit 74b82e6802e65ff0ec1ac3bbc680b5db9a7f1c89)

4 months ago; * doc/lispref/strings.texi (Creating Strings): Followup to last change.
Eli Zaretskii [Sat, 6 Jul 2024 08:36:44 +0000 (11:36 +0300)]
; * doc/lispref/strings.texi (Creating Strings): Followup to last change.

(cherry picked from commit a6a588ccf10bacb0c196f695dee9c7333af7e776)

4 months ago; Fix doc string of 'string-fill'
Eli Zaretskii [Sat, 6 Jul 2024 08:28:39 +0000 (11:28 +0300)]
; Fix doc string of 'string-fill'

* lisp/emacs-lisp/subr-x.el (string-fill): Rename LENGTH to WIDTH
and update the doc string accordingly.  (Bug#71856)

(cherry picked from commit a3e57a29becdc028d5a5059c35b5f7be7c1510e4)

4 months agoFix returning to original TTY frame after 'rmail-reply'
Eli Zaretskii [Sat, 6 Jul 2024 07:32:39 +0000 (10:32 +0300)]
Fix returning to original TTY frame after 'rmail-reply'

* lisp/mail/rmail.el (rmail-start-mail): Record the frame from
which an Rmail command, such as 'rmail-mail' or 'rmail-reply', was
invoked.
(rmail--find-orig-rmail-frame): New function.
(rmail-mail-return): Use 'rmail--find-orig-rmail-frame' to find
the original frame, and make it the top frame on its TTY terminal.
(Bug#69738)

(cherry picked from commit 1b5cf29431a0727329d5e223be68ea2499d872ea)

4 months agoAllow using multiple buffers in 'eshell-command'
Thierry Volpiatto [Wed, 19 Jun 2024 10:02:59 +0000 (12:02 +0200)]
Allow using multiple buffers in 'eshell-command'

Provide the same functionality as 'async-shell-command-buffer' but for
'eshell-command'.

Co-Authored-By: Jim Porter <jporterbugs@gmail.com>
* lisp/eshell/eshell.el (eshell-command-async-buffer): New option...
(eshell-command): ... use it.

* lisp/eshell/esh-proc.el (eshell-sentinel): Check for buffer liveness
in 'finish-io'.

* test/lisp/eshell/eshell-tests.el
(eshell-test/eshell-command/output-buffer/async-kill): New test.

* etc/NEWS: Announce this change (bug#71554).

(cherry picked from commit 7f631a3e2aca97e95b8659c902c25ab21f084e08)

4 months agoImprove warnings from native compiler
Eli Zaretskii [Fri, 5 Jul 2024 19:00:08 +0000 (22:00 +0300)]
Improve warnings from native compiler

* src/comp.c (syms_of_comp) <native-compiler>: Rename from 'comp'.

* src/lread.c (maybe_swap_for_eln):
* lisp/emacs-lisp/comp.el (comp--fwprop):
* lisp/emacs-lisp/comp-run.el
(comp--accept-and-process-async-output, native--compile-async):
Adjust to the new symbol.

(cherry picked from commit 814710067f0558e308c7020b22e455fe0ece7878)

4 months agoperl-mode.el: Improve indent after hanging open-paren
Stefan Monnier [Fri, 5 Jul 2024 14:02:39 +0000 (10:02 -0400)]
perl-mode.el: Improve indent after hanging open-paren

Make the indentation of the code right after an open paren/brace
use the same rule as already used to indent the corresponding
matching paren/brace.

* lisp/progmodes/perl-mode.el (perl-calculate-indent):
Use `perl-indent-new-calculate`s "virtual" indentation instead of
approximating it with `current-indentation`.

(cherry picked from commit bd86a6c4fde1aa42ea9e8b5434f0cb63f8d52684)

4 months agoDocument adding package dependency on Emacs version
Stefan Kangas [Fri, 5 Jul 2024 11:58:07 +0000 (13:58 +0200)]
Document adding package dependency on Emacs version

* doc/lispref/package.texi (Simple Packages, Multi-file Packages):
Document how to make a package depend on a specific version of Emacs.

(cherry picked from commit cefec59df7b24887496dafc32eae69083dfa60f2)

4 months agoFix file-name detection in Dired under -F
Eli Zaretskii [Fri, 5 Jul 2024 10:58:11 +0000 (13:58 +0300)]
Fix file-name detection in Dired under -F

* lisp/files.el (insert-directory-clean): Support all the symbols
appended to file names by the -F/--classify option of 'ls'.  See
https://lists.gnu.org/archive/html/emacs-devel/2024-07/msg00366.html
for the details.

(cherry picked from commit d190cb0e886f3d748ddbb8bf915c19149d00c0c4)

4 months agoEnable Gnulib substitute on Android systems with defective strnlen
Po Lu [Fri, 5 Jul 2024 04:09:52 +0000 (12:09 +0800)]
Enable Gnulib substitute on Android systems with defective strnlen

* configure.ac (AC_FUNC_STRNLEN): Detect a bug where strnlen is
liable to integer overflows if addition of the search limit to
the string would also overflow.

* src/xdisp.c (store_mode_line_string): Remove stopgap measure.

(cherry picked from commit 04d7318efa20cce3aa369fdfd563d8364feb6e78)

4 months agoFix dumping finalizers with pdumper
Pip Cet [Thu, 4 Jul 2024 22:09:55 +0000 (22:09 +0000)]
Fix dumping finalizers with pdumper

* src/pdumper.c (dump_finalizer): Use `out' (a pointer to a finalizer)
rather than `&out' (a pointer to a pointer to a finalizer).

(cherry picked from commit d76eb23232bffdf2505b13ec9216c6d0487a0ccb)

4 months agoRemove redundant `require`s
Stefan Kangas [Thu, 4 Jul 2024 21:55:16 +0000 (23:55 +0200)]
Remove redundant `require`s

* lisp/gnus/canlock.el (sha1):
* lisp/international/utf7.el (base64):
* lisp/net/hmac-md5.el (md5):
* lisp/org/ob-processing.el (sha1):
* lisp/org/org-feed.el (sha1):
* test/lisp/net/rfc2104-tests.el (sha1, md5): Don't require features
that are built-in, and always provided.

(cherry picked from commit 0e591a9112c15bfe7bd19c06fa117cfc9e87f8b5)

4 months agoIn SHR, load from URL cache if possible when zooming images
Jim Porter [Sun, 23 Jun 2024 21:53:49 +0000 (14:53 -0700)]
In SHR, load from URL cache if possible when zooming images

* lisp/net/shr.el (shr-replace-image): New function extracted from...
(shr-image-fetched): ... here.
(shr-zoom-image): Check URL cache and call 'shr-replace-image' if we
can.

(cherry picked from commit f91387cce8f6f1dced427ad44686ffcc69574ef6)

4 months agoFix the different image zoom levels in SHR to work as expected
Jim Porter [Sun, 23 Jun 2024 21:48:32 +0000 (14:48 -0700)]
Fix the different image zoom levels in SHR to work as expected

* lisp/net/shr.el (shr-image-zoom-levels): New option.
(shr-image-zoom-level-alist): New variable.
(shr-zoom-image): Take POSITION and ZOOM-LEVEL arguments.  Consult
'shr-image-zoom-levels'.
(shr-put-image): Use 'shr-image-zoom-level-alist'.
(shr-rescale-image): Only reset width *or* height when either is too
large.
(shr--image-zoom-original-size, shr--image-zoom-image-size)
(shr--image-zoom-fill-height): New functions.

* etc/NEWS: Announce this change.

(cherry picked from commit 208207c1c07fb4669c6b7d64c27236074f996ae4)

4 months agoIn SHR, keep track of image sizes as specified by the HTML
Jim Porter [Sun, 23 Jun 2024 19:25:25 +0000 (12:25 -0700)]
In SHR, keep track of image sizes as specified by the HTML

Previously, these values got lost when zooming the image.

* lisp/net/shr.el (shr-tag-img): Set 'image-dom-size'...
(shr-zoom-image): ... use it.  Rename 'size' to 'zoom'.
(shr-image-fetched): Rename 'image-size' to 'image-zoom'.
(shr-put-image): Accept the zoom level as ':zoom' and document it.
Previously, FLAGS was a mix of alist and plist(!).

* test/lisp/net/shr-tests.el (shr-test/zoom-image): Rename "size" to
"zoom".

(cherry picked from commit 6d082f3c79269f00308d6e8b7d31d6a119376fe2)

4 months agoSlice images based on their height in SHR, not their zoom level
Jim Porter [Sun, 23 Jun 2024 19:18:57 +0000 (12:18 -0700)]
Slice images based on their height in SHR, not their zoom level

* lisp/net/shr.el (shr-sliced-image-height): New option...
(shr-put-image): ... use it.  Compute the number of slices in relation
to the image height; this way, each slice is roughly the height of a
line of ordinary text.

* test/lisp/net/shr-tests.el (shr-test/zoom-image): Update test, since
zooming no longer necessarily triggers slicing.

* doc/misc/eww.texi (Advanced): Document 'shr-sliced-image-proportion'.

* etc/NEWS: Announce this change.

(cherry picked from commit 3ce7e4ee3f1f8bf85c2c455ac624bec6c7cd10a8)

4 months ago; * src/fns.c (fixnum_float_cmp): Explain argument constraint.
Mattias Engdegård [Thu, 4 Jul 2024 15:48:16 +0000 (17:48 +0200)]
; * src/fns.c (fixnum_float_cmp): Explain argument constraint.

Suggested by Pip Cet.

(cherry picked from commit fa6f088a483f1f2e19863800c6215a8136288b8f)

4 months ago(edebug--called-interactively-skip): Fix bug#71934
Stefan Monnier [Thu, 4 Jul 2024 15:47:01 +0000 (11:47 -0400)]
(edebug--called-interactively-skip): Fix bug#71934

* lisp/emacs-lisp/edebug.el (edebug--called-interactively-skip):
Adjust to new interpreted functions.

(cherry picked from commit 334d51322072caea8283f3735864bb83afeaabce)