Gnus development mailing list
 help / color / mirror / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: ding@gnus.org
Subject: Re: Aliases with mailing lists
Date: Fri, 03 Dec 2021 10:43:48 -0800	[thread overview]
Message-ID: <87y251y1ej.fsf@ericabrahamsen.net> (raw)
In-Reply-To: <87wnklwpmu.fsf@emailmessageidheader.nil>

Bob Newell <bobnewell@bobnewell.net> writes:

>>
>> However, when I have a mailing list, and press space to expand
>> the mailing list, a different mechanism, namely abbrevs, is
>> used. So there is no identity selection based on the members
>> of the mailing list.
>>
>> I'm trying to make this work to select identity, and have been
>> trying hacks in mailabbrev.el, where the action seems to take
>> place in mail-abbrev-expand-wrapper. I think I might be able
>> to get it to work, but the real question is, should this be
>> built-in to gnus somehow?
>
> Well ... I did get this to work in an embarrassingly hackish
> manner, which I'm too ashamed to post but will share with
> anyone who has the same obscure issue.
>
> In any case hacking mailabbrev.el, which is not part of Gnus,
> might be out of scope for this mailing list. Certainly,
> putting Gnus specific code into mailabbrev.el, which is what I
> did, is unacceptable for general use.
>
> I'm still seeking a way to do this within Gnus, where it
> belongs, but it looks to be non-trivial for someone at my
> admittedly non-stellar skill level.

Completion in message-mode has always been weird, and it's gotten
temporarily weirder as someone (I assume Stefan) has started nudging it
over to use Emacs' standard completion mechanisms.

I'm also a little unclear of what situation you're seeing exactly: do
you mean that expanding names in the "To/From/Cc" headers triggers an
alias switch, but expanding group names in the "Newsgroups" header
doesn't? But the only place `expand-abbrev' is used in header completion
is in the "To/From/Cc" header, so I don't really understand how the two
situations differ.

I also don't know what hook gnus-alias uses to do its alias switching;
if we knew that then this would be easier.

If your Emacs is recent and you have the option
`message-expand-name-standard-ui', try setting it to t and see what that
does.



  reply	other threads:[~2021-12-03 18:44 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-03  1:07 Bob Newell
2021-12-03 17:43 ` Bob Newell
2021-12-03 18:43   ` Eric Abrahamsen [this message]
2021-12-03 20:45     ` Emanuel Berg
2021-12-04 12:57       ` Byung-Hee HWANG
2021-12-04 13:17         ` Emanuel Berg
2021-12-05 12:19           ` Byung-Hee HWANG
2021-12-05 18:15             ` Emanuel Berg
2021-12-06  4:56               ` Byung-Hee HWANG
2021-12-06  5:37                 ` Byung-Hee HWANG
2021-12-03 21:28     ` Bob Newell
2021-12-03 22:21       ` Bob Newell
2021-12-04  0:38         ` Eric Abrahamsen
2021-12-05 11:42     ` Eric S Fraga
2021-12-03 18:12 ` Emanuel Berg
2021-12-05 12:42   ` Eric S Fraga
2021-12-05 18:12     ` Emanuel Berg
2021-12-05 20:42       ` Eric S Fraga
2021-12-05 21:30         ` Emanuel Berg
2021-12-05 22:07           ` Eric S Fraga
2021-12-06  2:29             ` Emanuel Berg
2021-12-06 11:05           ` Emanuel Berg
2021-12-06 17:53 Eric Abrahamsen
2021-12-06 18:40 ` Emanuel Berg
2021-12-06 18:46   ` Emanuel Berg
2021-12-07 11:22 ` Eric S Fraga
2021-12-07 12:41 ` Eric S Fraga
2021-12-08 17:46   ` Eric Abrahamsen
2021-12-09 16:59     ` Eric S Fraga

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=87y251y1ej.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.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).