Stefan Monnier
917a623a9d
Merge remote-tracking branch 'origin/emacs-28' into trunk
2022-01-12 15:57:29 -05:00
Glenn Morris
6998b30115
; Fix typo loose/lose
2022-01-12 10:23:31 -08:00
Michael Albinus
9652736b08
Adapt Tramp for `auth-info-password'
...
* lisp/net/tramp-compat.el (tramp-compat-auth-info-password):
New defalias.
* lisp/net/tramp.el (tramp-read-passwd): Use it.
2022-01-08 13:38:18 +01:00
Sam Steingold
ad5cf84fa7
Add `auth-info-password' and use it instead of ad hoc code
...
* lisp/auth-source.el (auth-info-password):
Extract from `auth-source-pick-first-password'.
(auth-source-pick-first-password, auth-source-secrets-create)
(auth-source-user-and-password): Use `auth-info-password'.
* lisp/erc/erc-services.el (erc-nickserv-get-password):
Use `auth-source-pick-first-password'.
* lisp/erc/erc.el (erc-open, erc-server-join-channel): Likewise.
* lisp/gnus/mail-source.el (mail-source-set-1): Add a comment.
* lisp/gnus/nnimap.el (nnimap-credentials): Use `auth-info-password'.
* lisp/gnus/nntp.el (nntp-send-authinfo): Likewise.
* lisp/mail/rmail.el (rmail-get-remote-password): Likewise.
* lisp/mail/smtpmail.el (smtpmail-try-auth-methods): Likewise.
* lisp/net/sieve-manage.el (sieve-sasl-auth): Likewise.
* lisp/net/tramp.el (tramp-read-passwd): Likewise.
* lisp/net/rcirc.el (rcirc): Likewise (fixes a bug: the possibility
that password might be a function was not handled).
2022-01-07 14:48:59 -05:00
Eli Zaretskii
7945d86829
; Fix recent changes in rcirc documentation
...
* doc/misc/rcirc.texi (Changing the time stamp format):
* lisp/net/rcirc.el (rcirc-when): Fix documentation wording.
2022-01-06 18:53:45 +02:00
Philip Kaludercic
0d46683202
Add rcirc-when command
...
* doc/misc/rcirc.texi: Document rcirc-when.
* etc/NEWS: Document rcirc-when.
* lisp/net/rcirc.el (rcirc-when): Add command.
2022-01-06 14:56:23 +01:00
Eli Zaretskii
dcd76bd48d
Merge from origin/emacs-28
...
836be7a112 ; * etc/refcards/ru-refcard.tex: Update Copyright year.
86cbc6ee4a * lisp/net/tramp-sh.el: Adapt copyright year
ebe8772f65 ; Minor fixes related to copyright years
23c1ee6989 ; * test/manual/etags/ETAGS.good_N: Adjust to copyright ye...
8d3fc7ec89 * src/xfaces.c (face_for_font): Make 'hash' be uintptr_t.
19dcb237b5 ; Add 2022 to copyright years.
# Conflicts:
# etc/NEWS
# etc/refcards/ru-refcard.tex
# lib/cdefs.h
# lisp/erc/erc-dcc.el
# lisp/erc/erc-imenu.el
# lisp/erc/erc-replace.el
# lisp/image-dired.el
# lisp/progmodes/xref.el
# m4/alloca.m4
# m4/byteswap.m4
# m4/errno_h.m4
# m4/getopt.m4
# m4/gnulib-common.m4
# m4/inttypes.m4
# m4/stddef_h.m4
# m4/stdint.m4
# m4/sys_socket_h.m4
2022-01-01 07:03:03 -05:00
Michael Albinus
86cbc6ee4a
* lisp/net/tramp-sh.el: Adapt copyright year
2022-01-01 12:22:15 +01:00
Eli Zaretskii
19dcb237b5
; Add 2022 to copyright years.
2022-01-01 02:45:51 -05:00
Michael Albinus
db0cab990c
Documentation update for Secret Service
...
* doc/misc/auth.texi (Secret Service API): Precise "session" collection.
* lisp/auth-source.el (auth-sources): Adapt custom label.
* lisp/net/secrets.el: Adjust comments.
2021-12-31 14:36:49 +01:00
Michael Albinus
4ab5b89de8
The temprary "session" collection might not exist in Secret Service
...
* doc/misc/auth.texi (Secret Service API):
* test/lisp/net/secrets-tests.el (secrets--test-delete-all-session-items)
(secrets-test02-collections, secrets-test03-items)
(secrets-test04-search): The temporary "session" collection might
not exist.
* lisp/net/secrets.el (secrets-struct-secret-content-type):
Remove compatibility hack.
(secrets-create-item): Adapt accordingly.
2021-12-27 19:53:00 +01:00
Michael Albinus
01df347947
Use `permission-denied' in Tramp tests, and more
...
* lisp/net/tramp-crypt.el (tramp-crypt-maybe-open-connection):
Simplify code.
* lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-system-info):
Adapt for "mtp" method.
* test/lisp/net/tramp-tests.el (tramp-test18-file-attributes):
Use `permission-denied' error. Simplify code.
(tramp-test24-file-acl, tramp-test26-file-name-completion):
Simplify code.
2021-12-27 19:51:58 +01:00
Stefan Kangas
fe80d24a0b
* lisp/net/webjump.el: Add TODO section. (Bug#14624)
2021-12-25 16:39:31 +01:00
Michael Albinus
44c43ba4bd
* lisp/net/browse-url.el (browse-url-of-file): Improve browsing remote files.
2021-12-25 14:13:43 +01:00
Lars Ingebrigtsen
b9015606d1
Simplify whitespace stripping in shr-expand-url
...
* lisp/net/shr.el (shr-expand-url): Simplify whitespace stripping.
2021-12-24 10:23:35 +01:00
Stefan Kangas
6a17bb4879
Merge from origin/emacs-28
...
04be23f19f Improve Xref documentation
edb1d491d9 * lisp/net/shr.el (shr-expand-url): Also strip trailing wh...
2021-12-24 06:30:41 +01:00
Andreas Schwab
edb1d491d9
* lisp/net/shr.el (shr-expand-url): Also strip trailing
...
whitespace.
2021-12-23 19:07:49 +01:00
Mattias Engdegård
ccba86be78
Use unibyte strings in ntlm auth requests and responses
...
* lisp/net/ntlm.el (ntlm-build-auth-request)
(ntlm-build-auth-response): Make sure to use unibyte strings for bytes
greater than 127, or base64 encoding will fail.
This should fix failures in ntlm-tests.
2021-12-22 16:34:26 +01:00
Stefan Kangas
11c2ffddc9
Declare functions to silence byte-compiler
...
* lisp/auth-source.el (gnutls-symmetric-decrypt, gnutls-ciphers):
* lisp/net/dbus.el (libxml-parse-xml-region):
* lisp/simple.el (thread-name):
* lisp/thread.el (thread-name, thread-signal, thread--blocker)
(current-thread, thread-live-p, all-threads):
* test/lisp/emacs-lisp/multisession-tests.el (sqlite-close):
* test/lisp/net/gnutls-tests.el (gnutls-symmetric-decrypt)
(gnutls-symmetric-encrypt, gnutls-hash-mac, gnutls-hash-digest)
(gnutls-ciphers, gnutls-digests, gnutls-macs):
* test/lisp/net/network-stream-tests.el (gnutls-peer-status):
* test/lisp/net/shr-tests.el (libxml-parse-html-region):
* test/src/decompress-tests.el (zlib-decompress-region):
* test/src/process-tests.el (thread-last-error, thread-join)
(make-thread):
* test/src/xml-tests.el (libxml-parse-xml-region): Declare
functions to silence byte-compiler in --without-all builds.
2021-12-21 18:04:33 +01:00
Michael Albinus
73e862237d
Add `permission-denied' error to Tramp
...
* lisp/net/tramp-compat.el (tramp-permission-denied): New defconst.
(tramp-compat-permission-denied): New defsubst.
* lisp/net/tramp.el (tramp-handle-access-file):
* lisp/net/tramp-archive.el (tramp-archive-handle-copy-file): Use it.
2021-12-21 15:15:16 +01:00
Mattias Engdegård
e56dd354c7
Don't produce multibyte strings by accident in sasl-scram-rfc
...
* lisp/net/sasl-scram-rfc.el (sasl-scram--client-final-message):
The XOR of two unibyte strings should be a unibyte string.
This code previously worked by accident because of an overly tolerant
base64 encoder (bug#52670), but now causes a test failure.
2021-12-21 10:59:06 +01:00
Lars Ingebrigtsen
7904cae492
Rework how shr sets <span id='foo'> targets to make it more reliable
...
* lisp/net/eww.el (eww-display-html): The target is now a list.
* lisp/net/shr.el (shr--link-targets): New variable.
(shr-insert-document): Set the targets.
(shr-descend): Save targets and apply them later.
(shr-ensure-paragraph): Remove hack to avoid filling from removing
targets.
(shr-tag-a): Save targets for later.
(shr-render-td-1): Bind and set targets (bug#52512).
2021-12-19 13:44:21 +01:00
LdBeth
276fd48176
Add a shr-allowed-images user option
...
* lisp/net/shr.el (shr-allowed-images): New variable (bug#52594).
(shr-image-is-blocked): New function to use it.
(shr-tag-img): Use it.
* doc/misc/eww.texi (Advanced): Document it.
Copyright-paperwork-exempt: yes
2021-12-19 12:26:15 +01:00
Eli Zaretskii
a7794c6dd5
; * lisp/net/browse-url.el (pgtk-backend-display-class): Declare.
2021-12-18 15:39:57 +02:00
Po Lu
6ad5ff4496
Merge remote-tracking branch 'origin/master' into feature/pgtk
2021-12-18 15:30:43 +08:00
Paul Eggert
36d873bf0d
Port tramp-adb.el back to Emacs 26
...
* lisp/net/tramp-adb.el (tramp-adb-ls-output-time-less-p):
Revert previous change since Tramp code should still be backward
compatible to Emacs 26. But add a comment about this.
Problem reported by Michael Albinus in:
https://lists.gnu.org/r/emacs-devel/2021-12/msg01623.html
2021-12-17 01:12:20 -08:00
Po Lu
5e5cde55e5
Merge remote-tracking branch 'origin/master' into feature/pgtk
2021-12-17 14:23:07 +08:00
Paul Eggert
dd0727e1ec
encode-time simplifications
...
* lisp/gnus/gnus-search.el (gnus-search-query-parse-date):
* lisp/net/soap-client.el (soap-decode-date-time):
* lisp/net/tramp-adb.el (tramp-adb-ls-output-time-less-p):
* lisp/org/ol.el (org-store-link):
* lisp/org/org-clock.el (org-clock-sum)
(org-clock-update-time-maybe):
* lisp/org/org-colview.el (org-colview-construct-allowed-dates):
* lisp/org/org-macro.el (org-macro--vc-modified-time):
* lisp/org/org-macs.el (org-2ft, org-matcher-time):
* lisp/org/org-table.el (org-table-eval-formula):
* lisp/org/org.el (org-read-date, org-display-custom-time)
(org-time-string-to-time, org-timestamp-change):
Prefer (encode-time L) to (apply #'encode-time L) where either will do.
* lisp/gnus/gnus-search.el (gnus-search-imap-handle-date):
* lisp/org/org-clock.el (org-clocktable-steps):
Prefer (encode-time S M ...) to (apply #'encode-time (list S M ...)).
2021-12-16 11:17:25 -08:00
Po Lu
81d2e846a8
Merge remote-tracking branch 'origin/master' into feature/pgtk
2021-12-15 18:39:06 +08:00
Stefan Kangas
e07d69e2dc
* lisp/net/eudc.el (custom-menu-create): Remove unnecessary autoload.
2021-12-14 16:10:54 +01:00
Michael Albinus
78a9d151b5
Minor Tramp cleanup
...
* lisp/net/tramp.el (tramp-get-buffer-string): Simplify.
(tramp-lock-pid): Fix docstring.
2021-12-14 14:40:18 +01:00
Po Lu
25084b1e95
Merge remote-tracking branch 'origin/master' into feature/pgtk
2021-12-11 18:34:05 +08:00
Stefan Kangas
b331819302
Merge from origin/emacs-28
...
5708da48d1 Revert "Make `M-x run-python' select the window again"
aa2872a127 Make `M-x run-python' select the window again
c8e19b3a84 Don't bug out on certain empty elements with ids
2021-12-11 06:56:31 +01:00
Lars Ingebrigtsen
c8e19b3a84
Don't bug out on certain empty elements with ids
...
* lisp/net/shr.el (shr-descend): Fix empty-element #id targetting
(bug#52391).
2021-12-10 12:47:10 +01:00
Po Lu
cc0f147180
Merge remote-tracking branch 'origin/master' into feature/pgtk
2021-12-10 14:50:21 +08:00
Stefan Kangas
d601fd4692
Merge from origin/emacs-28
...
7a25ba0fde ; * lisp/image-dired.el: Fix typo.
dda6337066 emacsclient takes more care about XDG_RUNTIME_DIR
26fb4168b8 ; Prefer HTTPS in more URLs
6b89578524 ; * lisp/progmodes/flymake.el: Update the minimum Emacs ve...
2021-12-10 06:30:33 +01:00
Po Lu
6919d5a7c0
Merge remote-tracking branch 'origin/master' into feature/pgtk
2021-12-10 08:54:56 +08:00
Michael Albinus
bbfb373783
Improve lock-pid handling in Tramp
...
* lisp/net/tramp-cache.el: Remove comment.
* lisp/net/tramp-gvfs.el (tramp-gvfs-maybe-open-connection):
* lisp/net/tramp-rclone.el (tramp-rclone-maybe-open-connection):
* lisp/net/tramp-sshfs.el (tramp-sshfs-maybe-open-connection):
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-maybe-open-connection):
Do not set "lock-pid" connection-property.
(tramp-sudoedit-handle-delete-file): Use "rm -f".
* lisp/net/tramp.el (tramp-test-message): Extend for buffers w/o
remote default-directory.
(tramp-lock-pid): New defvar.
(tramp-get-lock-pid): Reimplement.
2021-12-09 20:03:16 +01:00
Stefan Kangas
26fb4168b8
; Prefer HTTPS in more URLs
2021-12-09 16:26:04 +01:00
Po Lu
47cd820d93
Merge remote-tracking branch 'origin/master' into feature/pgtk
2021-12-09 10:30:18 +08:00
Stefan Kangas
05af96456c
Merge from origin/emacs-28
...
ce5bca4913 Document native-comp-async-report-warning-errors more
1933cd5307 Doc fix; Epiphany has been renamed to GNOME Web
b80d7568e4 * lisp/dired-aux.el (dired-check-process): Doc fix. (Bug#...
0f30227f97 ; * lisp/net/browse-url.el (browse-url-epiphany): Fix typo.
d34009db66 Remove dead link from newsticker
# Conflicts:
# lisp/net/browse-url.el
2021-12-08 13:04:14 +01:00
Michael Albinus
0a2507ff90
Backport: Make a more robust check in Tramp using scripts
...
* lisp/net/tramp-sh.el (tramp-find-inline-encoding):
Check, whether scripts in `tramp-remote-coding-commands' are
expandable.
(cherry picked from commit 1d0a60113f )
2021-12-08 09:30:36 +01:00
Po Lu
bdeb189cf2
Merge remote-tracking branch 'origin/master' into feature/pgtk
2021-12-08 09:03:14 +08:00
Stefan Kangas
beed398eb5
browse-url: Refactor code to find executable
...
* lisp/net/browse-url.el (browse-url--find-executable): Extract from...
(browse-url-firefox-program, browse-url-chrome-program)
(browse-url-chromium-program): ...here.
2021-12-07 19:52:56 +01:00
Stefan Kangas
9013e4ea19
browse-url: Remove support for Galeon
...
* lisp/net/browse-url.el (browse-url-galeon-program)
(browse-url-galeon-arguments)
(browse-url-galeon-startup-arguments)
(browse-url-galeon-new-window-is-tab, browse-url-galeon)
(browse-url-galeon-sentinel): Delete, thus removing support for the long
defunct Galeon web browser.
* etc/NEWS: Announce its removal.
2021-12-07 19:36:23 +01:00
Stefan Kangas
1933cd5307
Doc fix; Epiphany has been renamed to GNOME Web
...
* lisp/net/browse-url.el: Doc fix; Epiphany is called GNOME Web
since GNOME 3.4, released in 2012.
Ref: https://help.gnome.org/misc/release-notes/3.4/
2021-12-07 18:59:53 +01:00
Stefan Kangas
0f30227f97
; * lisp/net/browse-url.el (browse-url-epiphany): Fix typo.
2021-12-07 18:38:29 +01:00
Stefan Kangas
d34009db66
Remove dead link from newsticker
...
* lisp/net/newst-backend.el (newsticker--parse-rss-0.91):
* lisp/net/newsticker.el: Remove dead link.
2021-12-07 18:37:18 +01:00
Stefan Kangas
77a30e1e88
browse-url: Remove support for Netscape
...
* lisp/net/browse-url.el (browse-url-netscape-program)
(browse-url-netscape-arguments)
(browse-url-netscape-startup-arguments)
(browse-url-netscape-new-window-is-tab)
(browse-url-netscape-version, browse-url-netscape)
(browse-url-netscape-sentinel, browse-url-netscape-reload)
(browse-url-netscape-send): Delete, thus removing support for the long
defunct Netscape web browser.
* etc/NEWS: Announce its removal.
2021-12-07 18:32:57 +01:00
Michael Albinus
1d0a60113f
Make a more robust check in Tramp using scripts
...
* lisp/net/tramp-sh.el (tramp-find-inline-encoding):
Check, whether scripts in `tramp-remote-coding-commands' are
expandable.
2021-12-07 16:20:13 +01:00