GNU bug report logs -
#33200
message-simplify-subject too coupled with reply
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 33200 in the body.
You can then email your comments to 33200 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bugs <at> gnus.org
:
bug#33200
; Package
gnus
.
(Tue, 30 Oct 2018 03:24:03 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
"Garreau\, Alexandre" <galex-713 <at> galex-713.eu>
:
New bug report received and forwarded. Copy sent to
bugs <at> gnus.org
.
(Tue, 30 Oct 2018 03:24:05 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On 2018/10/30 at 03:47, Garreau, Alexandre wrote:
>>> On 2018/10/28 at 19:16, Eric Abrahamsen wrote:
>>>> I would file a couple of bug reports.
>
> […] I’m going to try right now.
So here I go (sorry for quotations, it just feels more right to me as
everything needed as been already said briefly at least once):
On 2018/10/29 at 10:17, Eric Abrahamsen wrote:
> "Garreau, Alexandre" <galex-713 <at> galex-713.eu> writes:
>> On 2018/10/28 at 19:16, Eric Abrahamsen wrote:
>>> "Garreau, Alexandre" <galex-713 <at> galex-713.eu> writes:
>>>> […] in the special case of `message-strip-subject-re',
>>>> [`message-simplify-subject'] removes excedentary “Re:”… and add a
>>>> new one! so in the end, `message-reply' doesn’t do [it]: that
>>>> fills terribly wrong. `message-reply' should add a “Re:” (that’s
>>>> the least expectable from it, it’s confusing it is not it that does
>>>> it), and `message-simplify-subject' should do what its name says,
>>>> so that to be really useful: simplify subject, not prepare it for
>>>> another different function (namely, `message-reply')!
On 2018/10/29 at 11:49, Garreau, Alexandre wrote:
> On 2018/10/28 at 19:16, Eric Abrahamsen wrote:
>> "Garreau, Alexandre" <galex-713 <at> galex-713.eu> writes:
>>> I wanted to see this function used in `org-email-link-description',
>>> but it’s impossible because of this oddity (otherwise the message
>>> could be falsely seen as a reply while it isn’t one). If it was
>>> possible, the subject cited in org links could be *semantically*
>>> shorter (rather than blindly arbitrarily cut in the middle), and
>>> benefit from user customizations […].
On 2018/10/29 at 10:17, Eric Abrahamsen wrote:
> "Garreau, Alexandre" <galex-713 <at> galex-713.eu> writes:
>> On 2018/10/28 at 19:16, Eric Abrahamsen wrote:
>>> I'm less certain about this. It's one of those cases where probably
>>> no one remembers why it is the way it is, and no one wants to touch
>>> it because who knows how things might suddenly break.
>>
>> I’m pretty sure el-search can be used so that to quickly check how is
>> it: I checked in all gnus, and the symbol `gnus-simplify-subject' is
>> only used in `message-reply' [and `message-followup' (two screens
>> away: confused both in one function (but knew there were two
>> occurrences))]. So unless you do strange stuff with symbol names
>> twiddling or other complex stuff (I believe you are confident enough
>> in not abusing such things in gnus) so to get it without naming it,
>> it is okay. ^^
>
> I'm convinced!
On 2018/10/30 at 03:47, Garreau, Alexandre wrote:
> I wished I knew to make patches (git illiteracy doesn’t help).
I hope this is okay (I use debian’s emacs build, didn’t recompile, just
went in source, modified, and `vc-diff', didn’t “commit” or anything
(`vc-pull', however)):
[message-simplify-subject_re.patch (text/x-patch, inline)]
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el
index 66356b6fda..0c743bd3aa 100644
--- a/lisp/gnus/message.el
+++ b/lisp/gnus/message.el
@@ -6950,7 +6950,7 @@ Useful functions to put in this list include:
gnus-list-identifiers)
(setq subject (message-strip-list-identifiers subject)))
(when (memq 'message-strip-subject-re functions)
- (setq subject (concat "Re: " (message-strip-subject-re subject))))
+ (setq subject (message-strip-subject-re subject))))
(when (and (memq 'message-strip-subject-trailing-was functions)
message-subject-trailing-was-query)
(setq subject (message-strip-subject-trailing-was subject)))
@@ -6989,7 +6989,7 @@ Useful functions to put in this list include:
subject (or (message-fetch-field "subject") "none"))
;; Strip list identifiers, "Re: ", and "was:"
- (setq subject (message-simplify-subject subject))
+ (setq subject (concat "Re: " (message-simplify-subject subject)))
(when (and (setq gnus-warning (message-fetch-field "gnus-warning"))
(string-match "<[^>]+>" gnus-warning))
@@ -7060,7 +7060,7 @@ If TO-NEWSGROUPS, use that as the new Newsgroups line."
(string-match "world" distribution)))
(setq distribution nil))
;; Strip list identifiers, "Re: ", and "was:"
- (setq subject (message-simplify-subject subject))
+ (setq subject (concat "Re: " (message-simplify-subject subject)))
(widen))
(message-pop-to-buffer (message-buffer-name "followup" from newsgroups))
[Message part 3 (text/plain, inline)]
>>> So should I have bugreported from the beginning? Btw, do Gnus bugs
>>> belong to bug-gnu-emacs mailing-list too? or is there something
>>> separate about Gnus there too? I’m sometimes confused about how much
>>> tight is Gnus to Emacs.
>>
>> This sort of very specific suggestion could have gone in a bug report
>> to begin with, yes, though it doesn't matter too much. Gnus bugs are
>> reported along with Emacs bugs. You can also use `gnus-bug' to do the
>> report,
I guess this is the correct way:
Gnus v5.13
GNU Emacs 25.1.1 (i686-pc-linux-gnu, GTK+ Version 3.22.11)
of 2017-09-15, modified by Debian
Owner recorded as "Garreau\, Alexandre" <galex-713 <at> galex-713.eu>.
Request was from
"Garreau\, Alexandre" <galex-713 <at> galex-713.eu>
to
control <at> debbugs.gnu.org
.
(Tue, 30 Oct 2018 11:37:02 GMT)
Full text and
rfc822 format available.
bug reassigned from package 'gnus' to 'emacs,gnus'.
Request was from
"Garreau\, Alexandre" <galex-713 <at> galex-713.eu>
to
control <at> debbugs.gnu.org
.
(Tue, 30 Oct 2018 11:39:01 GMT)
Full text and
rfc822 format available.
bug No longer marked as found in versions 5.13.
Request was from
"Garreau\, Alexandre" <galex-713 <at> galex-713.eu>
to
control <at> debbugs.gnu.org
.
(Tue, 30 Oct 2018 11:39:01 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org, bugs <at> gnus.org, "Garreau\, Alexandre" <galex-713 <at> galex-713.eu>
:
bug#33200
; Package
emacs,gnus
.
(Fri, 02 Nov 2018 12:17:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 33200 <at> debbugs.gnu.org (full text, mbox):
Michael Albinus <michael.albinus <at> gmx.de> writes:
Hi Alexandre,
>> But ideally I’d like a such function to be linked with the manual, so to
>> remove redundancy, and that’d require an index.
>
> You have now the debbugs-ug.texi node "Mail Command Index" to be
> linked. If we want to make it more accurate, we could even add an
> @anchor to every command.
Finally, I have done this. Every mail command can be referenced to by an
own info link, for example "(debbugs-ug) Mail Command Index: owner" for
the owner command.
Best regards, Michael.
Information forwarded
to
bug-gnu-emacs <at> gnu.org, bugs <at> gnus.org, "Garreau\, Alexandre" <galex-713 <at> galex-713.eu>
:
bug#33200
; Package
emacs,gnus
.
(Mon, 13 May 2019 20:35:01 GMT)
Full text and
rfc822 format available.
Message #17 received at 33200 <at> debbugs.gnu.org (full text, mbox):
"Garreau, Alexandre" <galex-713 <at> galex-713.eu> writes:
> So here I go (sorry for quotations, it just feels more right to me as
> everything needed as been already said briefly at least once):
Thanks for the patch; applied to Emacs 27.1.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Added tag(s) fixed.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Mon, 13 May 2019 20:35:02 GMT)
Full text and
rfc822 format available.
bug marked as fixed in version 27.1, send any further explanations to
33200 <at> debbugs.gnu.org and "Garreau\, Alexandre" <galex-713 <at> galex-713.eu>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Mon, 13 May 2019 20:35:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 11 Jun 2019 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 4 years and 319 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.