Gnus development mailing list
 help / color / mirror / Atom feed
From: Bob Newell <bobnewell@bobnewell.net>
To: ding <ding@gnus.org>
Subject: Bug in gnus-alias-remove-current-body?
Date: Wed, 12 Feb 2020 07:51:02 -1000	[thread overview]
Message-ID: <87wo8rheyh.fsf@emailmessageidheader.nil> (raw)

Aloha,

I've been tracking down some odd results with gnus-alias,
which are configuration dependent but still worth a look.

All of my identities add an extra body text of "\n" (and
nothing else but that). This is to make a convenient space
between the -- after the headers and the -- before the sig.

But when I change identities mid-stream (after having entered
a partial message, say, and realizing I should be using a
different identity) this happens.

The first "\n" in my message is deleted. This is because
gnus-alias-remove-current-body is called, and it searches
forward from the top of the message text, removing the first
match for the previous 'body' addition. In other words it
removes the first blank line in my message. Not the desired
behavior. I believe gnus-alias-remove-current-body ought to
search in reverse from the bottom of the body.[1]

As an after-effect, the original "\n" (now at the bottom of
the message text) is left in place and a second "\n"
(representing the additional body text for the new identity)
is added.

Am I missing something here?

Mahalo,

-- 
Bob Newell
Honolulu, Hawai`i
- Via Gnus/BBDB/Org/Emacs/Linux

[1] Or maybe not? I suppose it depends where the user expects
the extra body text to appear. Preamble or postamble? This
might expose a defect in the mechanism?



                 reply	other threads:[~2020-02-12 17:51 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wo8rheyh.fsf@emailmessageidheader.nil \
    --to=bobnewell@bobnewell.net \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).