Lars Ingebrigtsen
55c1670bc5
Rename the textsec-check function to textsec-suspicious-p
...
* lisp/net/shr.el (shr-tag-a):
* lisp/international/textsec-check.el (textsec-suspicious-p):
* lisp/gnus/message.el (message-send-mail):
* lisp/gnus/gnus-art.el (article--check-suspicious-addresses):
* etc/NEWS (like):
* doc/lispref/text.texi (Suspicious Text):
(Suspicious Text): Rename the textsec-check function to
textsec-suspicious-p.
2022-01-20 14:33:36 +01:00
Stefan Monnier
f08dfa9b53
Fix menu-bar mouse clicks in "C-h c" and "C-h k" (bug#53322)
...
* lisp/subr.el (event-start, event-end): Handle '(menu-bar)'
events.
* lisp/net/browse-url.el (browse-url-interactive-arg): Simplify
accordingly.
(cherry picked from commit 9ceb3070e3 )
2022-01-20 14:17:16 +02:00
Lars Ingebrigtsen
e58b4b24cf
Add text for suspicious links
...
* lisp/international/textsec-check.el (textsec-check): Note `link'.
(textsec-propertize): Fix typo.
* lisp/international/textsec.el (textsec-link-suspicious-p): New
function.
* lisp/net/shr.el (shr-tag-a): Check for sus links.
2022-01-19 17:50:21 +01:00
Lars Ingebrigtsen
9e9d83482c
Don't overwrite the link text in shr-tag-a for suspicious URLs
...
* lisp/net/shr.el (shr-tag-a): Tweak how the suspiciousness
warning is handled.
2022-01-19 17:17:49 +01:00
Michael Albinus
63a03d5101
; Fix bug#53367
...
* lisp/net/tramp.el (tramp-debug-buffer-command-completion-p):
Handle small buffers. (Bug#53367)
2022-01-19 17:16:08 +01:00
Lars Ingebrigtsen
1bfc086391
Make shr mark links with suspicious URLs
...
* lisp/international/textsec-check.el (textsec-propertize): New
function.
(textsec-check): Only check, don't alter STRING.
* lisp/international/textsec.el (textsec-url-suspicious-p): New
function.
* lisp/net/shr.el (shr-tag-a): Mark suspicious links.
2022-01-19 16:37:05 +01:00
Michael Albinus
86dbe8682d
Respect structure of Tramp archive file names
...
* lisp/net/tramp.el (tramp-make-tramp-file-name):
Respect structure of archive file names.
2022-01-19 09:07:49 +01:00
Michael Albinus
702ce8dc3e
Morka handling of multi-hops in Tramp more consistent
...
* lisp/net/tramp.el (tramp-make-tramp-file-name): Adapt argument list.
Add hops to `tramp-default-proxies-alist'.
(tramp-find-foreign-file-name-handler): Adapt argument list.
(tramp-handle-abbreviate-file-name): Abbreviate multi-hops.
(tramp-handle-file-remote-p): Adapt handling of hops.
(tramp-add-hops): New defun.
(tramp-compute-multi-hops): Use it.
* lisp/net/tramp.el (tramp-make-tramp-hop-name, tramp-get-buffer)
(tramp-file-name-handler, tramp-handle-file-truename)
(tramp-handle-insert-file-contents, tramp-local-host-p)
(tramp-read-passwd, tramp-clear-passwd):
* lisp/net/tramp-archive.el (tramp-archive-dissect-file-name)
(tramp-archive-gvfs-file-name):
* lisp/net/tramp-cache.el (tramp-get-hash-table):
* lisp/net/tramp-sh.el (tramp-sh-handle-file-truename)
(tramp-sh-handle-make-process, tramp-sh-handle-process-file)
(tramp-sh-file-name-handler-p, tramp-get-remote-path):
* lisp/net/tramp-sshfs.el (tramp-sshfs-handle-process-file):
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-handle-file-truename):
Adapt callees.
* test/lisp/net/tramp-tests.el (tramp-test02-file-name-dissect)
(tramp-test02-file-name-dissect-simplified)
(tramp-test02-file-name-dissect-separate)
(tramp-test07-abbreviate-file-name): Adapt tests.
2022-01-18 11:27:15 +01:00
Michael Albinus
c9d06d080b
Improve handling of INFILE in tramp*-process-file (Bug#53284)
...
* lisp/net/tramp-adb.el (tramp-adb-handle-process-file):
* lisp/net/tramp-sh.el (tramp-sh-handle-process-file):
* lisp/net/tramp-smb.el (tramp-smb-handle-process-file):
* lisp/net/tramp-sshfs.el (tramp-sshfs-handle-process-file):
Improve handling of INFILE. Fix thinko using
`process-file-side-effects'. (Bug#53284)
* lisp/net/tramp-sshfs.el (tramp-sshfs-file-name-handler-alist):
Use `tramp-sshfs-handle-set-file-times'.
(tramp-sshfs-handle-set-file-times): New defun.
* test/lisp/net/tramp-tests.el (tramp-test28-process-file): Extend test.
2022-01-17 10:46:58 +01:00
Stefan Kangas
19d681d24b
Merge from origin/emacs-28
...
e488601849 Update to Org 9.5.2-9-g7ba24c
95640360f0 * lisp/net/dictionary.el (dictionary-context-menu): Use pa...
2022-01-16 06:51:09 +01:00
Juri Linkov
95640360f0
* lisp/net/dictionary.el (dictionary-context-menu): Use package prefix.
2022-01-15 20:58:31 +02:00
Tassilo Horn
45f1e427fc
mailcap: Docfix & handle function-viewer case in mailcap-view-file
...
* lisp/net/mailcap.el (mailcap-mime-data): Fix docstring: if viewer is
a symbol/function, it should have zero args and expect the file's
contents to be in the current buffer.
(mailcap-view-file): Implement the case where the chosen viewer is a
function and not a shell command.
2022-01-15 11:27:20 +01:00
Lars Ingebrigtsen
e3b43f6cd8
Fix mailcap setup when no mailcap files exist
...
* lisp/net/mailcap.el (mailcap-parse-mailcaps): Ensure that we
populate mailcap--computed-mime-data even if none of the files
exist (bug#53009).
2022-01-14 09:26:06 +01:00
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