GNU bug report logs -
#26103
25.1; Typo in rfc2231-encode-string docstring
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 26103 in the body.
You can then email your comments to 26103 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#26103
; Package
emacs
.
(Wed, 15 Mar 2017 01:26:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Tim Landscheidt <tim <at> tim-landscheidt.de>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Wed, 15 Mar 2017 01:26:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
In:
| (defun rfc2231-encode-string (param value)
| "Return and PARAM=VALUE string encoded according to RFC2231.
| Use `mml-insert-parameter' or `mml-insert-parameter-string' to insert
| the result of this function."
| […]
it should read: "Return a PARAM=VALUE string […]."
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#26103
; Package
emacs
.
(Wed, 15 Mar 2017 05:55:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 26103 <at> debbugs.gnu.org (full text, mbox):
On Wed, 15 Mar 2017 01:24:38 +0000, Tim Landscheidt wrote:
> In:
>| (defun rfc2231-encode-string (param value)
>| "Return and PARAM=VALUE string encoded according to RFC2231.
>| Use `mml-insert-parameter' or `mml-insert-parameter-string' to insert
>| the result of this function."
>| […]
> it should read: "Return a PARAM=VALUE string […]."
I think so, too. Furthermore, there are two similar ones:
(defun rfc2045-encode-string (param value)
"Return and PARAM=VALUE string encoded according to RFC2045."
(defun rfc2047-encode-parameter (param value)
"Return and PARAM=VALUE string encoded in the RFC2047-like style.
Lars wrote rfc2231- and rfc2045- 18 years ago, and rfc2047- is
what I made 13 years ago following in Lars' footsteps.
All those are typo errors, aren't they? ;-)
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#26103
; Package
emacs
.
(Sat, 13 May 2017 18:40:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 26103 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi :)
yeah, it really looks like typos.
If it is ok I attached a patch that changes `and` to `a`.
---
lisp/mail/rfc2045.el | 2 +-
lisp/mail/rfc2047.el | 2 +-
lisp/mail/rfc2231.el | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/lisp/mail/rfc2045.el b/lisp/mail/rfc2045.el
index f6000500e1..11a6151887 100644
--- a/lisp/mail/rfc2045.el
+++ b/lisp/mail/rfc2045.el
@@ -28,7 +28,7 @@
(require 'ietf-drums)
(defun rfc2045-encode-string (param value)
- "Return and PARAM=VALUE string encoded according to RFC2045."
+ "Return a PARAM=VALUE string encoded according to RFC2045."
(if (or (string-match (concat "[" ietf-drums-no-ws-ctl-token "]") value)
(string-match (concat "[" ietf-drums-tspecials "]") value)
(string-match "[ \n\t]" value)
diff --git a/lisp/mail/rfc2047.el b/lisp/mail/rfc2047.el
index bcbdc17631..d276e2117f 100644
--- a/lisp/mail/rfc2047.el
+++ b/lisp/mail/rfc2047.el
@@ -851,7 +851,7 @@ Point moves to the end of the region."
(buffer-string)))
(defun rfc2047-encode-parameter (param value)
- "Return and PARAM=VALUE string encoded in the RFC2047-like style.
+ "Return a PARAM=VALUE string encoded in the RFC2047-like style.
This is a substitution for the `rfc2231-encode-string' function, that
is the standard but many mailers don't support it."
(let ((rfc2047-encoding-type 'mime)
diff --git a/lisp/mail/rfc2231.el b/lisp/mail/rfc2231.el
index ba972c7346..66f539f698 100644
--- a/lisp/mail/rfc2231.el
+++ b/lisp/mail/rfc2231.el
@@ -234,7 +234,7 @@ These look like:
(decode-coding-string (buffer-string) coding-system)))))
(defun rfc2231-encode-string (param value)
- "Return and PARAM=VALUE string encoded according to RFC2231.
+ "Return a PARAM=VALUE string encoded according to RFC2231.
Use `mml-insert-parameter' or `mml-insert-parameter-string' to insert
the result of this function."
(let ((control (ietf-drums-token-to-list ietf-drums-no-ws-ctl-token))
--
2.11.0 (Apple Git-81)
--
Ruslan Bekenev
[Message part 2 (text/html, inline)]
Reply sent
to
Eli Zaretskii <eliz <at> gnu.org>
:
You have taken responsibility.
(Fri, 19 May 2017 11:39:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Tim Landscheidt <tim <at> tim-landscheidt.de>
:
bug acknowledged by developer.
(Fri, 19 May 2017 11:39:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 26103-done <at> debbugs.gnu.org (full text, mbox):
> Date: Sat, 13 May 2017 21:39:18 +0300
> From: Ruslan Bekenev <furyinbox <at> gmail.com>
>
> Hi :)
> yeah, it really looks like typos.
> If it is ok I attached a patch that changes `and` to `a`.
Thanks, pushed.
In the future, please include a ChangeLog-style commit log message
describing your changes (I made them this time for you).
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 17 Jun 2017 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 8 years and 60 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.