Gnus development mailing list
 help / color / mirror / Atom feed
From: Katsumi Yamaoka <yamaoka@jpl.org>
To: ding@gnus.org
Subject: Re: groups with non-ASCII names
Date: Thu, 03 Dec 2015 11:01:58 +0900	[thread overview]
Message-ID: <b4mio4gxpbd.fsf@jpl.org> (raw)
In-Reply-To: <87lh9ccxv8.fsf_-_@free.fr>

On Wed, 02 Dec 2015 23:02:51 +0100, Peter Münster wrote:
> Now I do: tab-completion does not work in message-mode on the "Gcc:"
> line, when the group name has non-ASCII characters.

> What could be done, to get tab-completion for such groups please?

Only the non-ASCII group doesn't appear in the candidates list
for the completion, whereas that group appears in the Group buffer,
doesn't it?  If so, unfortunately I have no idea how it happens.
Does this form return a non-nil value?

(intern-soft
 (encode-coding-string "nnml:テスト" 'utf-8)
 gnus-active-hashtb)

;; Replace "nnml:テスト" with your group name in question.

If this returns nil but the next one returns non-nil,

(intern-soft
 (string-as-multibyte
  (encode-coding-string "nnml:テスト" 'utf-8))
 gnus-active-hashtb)

there would still be something wrong in the Gnus code (or your
customization).  Even so, `message-tab' should work.

FYI:
By default, `message-tab' runs `message-expand-group'[1] that
extracts group names for the candidates from `gnus-active-hashtb'.
If all goes well, a non-ASCII group name in it is encoded by the
utf-8 coding system[2] in the unibyte mode.

[1] The completion function may be customized by
    `message-completion-alist'.
[2] `gnus-group-name-charset-group-alist' specifies it.



  reply	other threads:[~2015-12-03  2:01 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-22 12:22 nnml groups showing up with '*' at startup Adam Sjøgren
2015-11-22 19:08 ` Peter Münster
2015-11-22 19:18   ` Adam Sjøgren
2015-11-23  7:46 ` Michael Sperber
2015-11-23 18:02   ` Adam Sjøgren
2015-11-24  2:40     ` Katsumi Yamaoka
2015-11-24 10:40       ` Katsumi Yamaoka
2015-11-24 20:48         ` Peter Münster
2015-11-25  2:44           ` Katsumi Yamaoka
2015-11-25  8:02             ` Adam Sjøgren
2015-11-25  8:19               ` Katsumi Yamaoka
2015-11-25 10:08                 ` Adam Sjøgren
2015-12-02 22:02           ` groups with non-ASCII names (was: nnml groups showing up with '*' at startup) Peter Münster
2015-12-03  2:01             ` Katsumi Yamaoka [this message]
2015-12-03  8:13               ` groups with non-ASCII names Peter Münster
2015-11-29 12:12       ` nnml groups showing up with '*' at startup Michael Sperber

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=b4mio4gxpbd.fsf@jpl.org \
    --to=yamaoka@jpl.org \
    --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).