aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2021-01-01 01:14:58 -0800
committerPaul Eggert2021-01-01 01:14:58 -0800
commit8bc552ffa53936f9fa1517c30d5057be80d09ca4 (patch)
tree29097047634cc76f1b3aea76a15334d8bf156f5d
parentba05d005e5a81bc123ad8da928b1bccb6b160e7a (diff)
parent74a77ef299f3703b8b9eac7579af6b924de1c3e8 (diff)
downloademacs-8bc552ffa53936f9fa1517c30d5057be80d09ca4.tar.gz
emacs-8bc552ffa53936f9fa1517c30d5057be80d09ca4.zip
Merge from origin/emacs-27
74a77ef299 Improve documentation of 'network-lookup-address-info' c6d5555646 Display messages sent using ERC's /say c156723769 Fix Rmail summary display when From: header is malformed
-rw-r--r--doc/lispref/processes.texi3
-rw-r--r--lisp/erc/erc.el4
-rw-r--r--lisp/mail/rmailsum.el5
-rw-r--r--src/process.c5
4 files changed, 13 insertions, 4 deletions
diff --git a/doc/lispref/processes.texi b/doc/lispref/processes.texi
index 0f713bcae20..535cebed7a8 100644
--- a/doc/lispref/processes.texi
+++ b/doc/lispref/processes.texi
@@ -3111,7 +3111,8 @@ signaled. Call @code{puny-encode-domain} on @var{name}
3111first if you wish to lookup internationalized hostnames. 3111first if you wish to lookup internationalized hostnames.
3112 3112
3113If successful it returns a list of Lisp representations of network 3113If successful it returns a list of Lisp representations of network
3114addresses, otherwise it returns @code{nil}. 3114addresses, otherwise it returns @code{nil}. In the latter case, it
3115also displays the error message hopefully explaining what went wrong.
3115 3116
3116By default both IPv4 and IPv6 lookups are attempted. The optional 3117By default both IPv4 and IPv6 lookups are attempted. The optional
3117argument @var{family} controls this behavior, specifying the symbol 3118argument @var{family} controls this behavior, specifying the symbol
diff --git a/lisp/erc/erc.el b/lisp/erc/erc.el
index 73ca53f5d8c..1044acff8d5 100644
--- a/lisp/erc/erc.el
+++ b/lisp/erc/erc.el
@@ -2861,7 +2861,9 @@ need this when pasting multiple lines of text."
2861 (if (string-match "^\\s-*$" line) 2861 (if (string-match "^\\s-*$" line)
2862 nil 2862 nil
2863 (string-match "^ ?\\(.*\\)" line) 2863 (string-match "^ ?\\(.*\\)" line)
2864 (erc-process-input-line (match-string 1 line) nil t))) 2864 (let ((msg (match-string 1 line)))
2865 (erc-display-msg msg)
2866 (erc-process-input-line msg nil t))))
2865(put 'erc-cmd-SAY 'do-not-parse-args t) 2867(put 'erc-cmd-SAY 'do-not-parse-args t)
2866 2868
2867(defun erc-cmd-SET (line) 2869(defun erc-cmd-SET (line)
diff --git a/lisp/mail/rmailsum.el b/lisp/mail/rmailsum.el
index f09cd0e0abb..60b67edf85a 100644
--- a/lisp/mail/rmailsum.el
+++ b/lisp/mail/rmailsum.el
@@ -786,6 +786,11 @@ the message being processed."
786 ;; To: =?UTF-8?Q?=C5=A0t=C4=9Bp=C3=A1n_?= =?UTF-8?Q?N=C4=9Bmec?= 786 ;; To: =?UTF-8?Q?=C5=A0t=C4=9Bp=C3=A1n_?= =?UTF-8?Q?N=C4=9Bmec?=
787 ;; <stepnem@gmail.com> 787 ;; <stepnem@gmail.com>
788 (setq from (rfc2047-decode-string from)) 788 (setq from (rfc2047-decode-string from))
789 ;; We cannot tolerate any leftover newlines in From,
790 ;; as that disrupts the rmail-summary display.
791 ;; Newlines can be left in From if it was malformed,
792 ;; e.g. had unbalanced quotes.
793 (setq from (replace-regexp-in-string "\n+" " " from))
789 (setq len (length from)) 794 (setq len (length from))
790 (setq mch (string-match "[@%]" from)) 795 (setq mch (string-match "[@%]" from))
791 (format "%25s" 796 (format "%25s"
diff --git a/src/process.c b/src/process.c
index 31591416898..eaa7fa14651 100644
--- a/src/process.c
+++ b/src/process.c
@@ -4587,12 +4587,13 @@ network_lookup_address_info_1 (Lisp_Object host, const char *service,
4587 4587
4588DEFUN ("network-lookup-address-info", Fnetwork_lookup_address_info, 4588DEFUN ("network-lookup-address-info", Fnetwork_lookup_address_info,
4589 Snetwork_lookup_address_info, 1, 2, 0, 4589 Snetwork_lookup_address_info, 1, 2, 0,
4590 doc: /* Look up ip address info of NAME. 4590 doc: /* Look up Internet Protocol (IP) address info of NAME.
4591Optional parameter FAMILY controls whether to look up IPv4 or IPv6 4591Optional parameter FAMILY controls whether to look up IPv4 or IPv6
4592addresses. The default of nil means both, symbol `ipv4' means IPv4 4592addresses. The default of nil means both, symbol `ipv4' means IPv4
4593only, symbol `ipv6' means IPv6 only. Returns a list of addresses, or 4593only, symbol `ipv6' means IPv6 only. Returns a list of addresses, or
4594nil if none were found. Each address is a vector of integers, as per 4594nil if none were found. Each address is a vector of integers, as per
4595the description of ADDRESS in `make-network-process'. */) 4595the description of ADDRESS in `make-network-process'. In case of
4596error displays the error message. */)
4596 (Lisp_Object name, Lisp_Object family) 4597 (Lisp_Object name, Lisp_Object family)
4597{ 4598{
4598 Lisp_Object addresses = Qnil; 4599 Lisp_Object addresses = Qnil;