Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Bob Newell <bobnewell@bobnewell.net>
To: info-gnus-english <info-gnus-english@gnu.org>
Subject: Re: Changing language input method by addressee
Date: Fri, 09 Mar 2018 07:02:59 -1000	[thread overview]
Message-ID: <87po4dqj0c.fsf@bobnewell.net> (raw)
In-Reply-To: <87vae5yb23.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Fri, 09 Mar 2018 15:15:16 +0800")

Eric Abrahamsen <eric@ericabrahamsen.net> writes:

> A better solution might involve giving your BBDB contacts a "language"
> xfield, holding values like "fr" or "de". Then in the
> message-setup-hook just retrieve the actual BBDB contact, check if it
> has a language xfield, and set the input method accordingly.

This is really the right way. Then the method is extensible easily to
any number of languages and the language preferences are stored with the
rest of the recipient's info. And there is no need to loop through a
potentially long list.

Many thanks for the idea. I'll go about implementing it.

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


  reply	other threads:[~2018-03-09 17:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-09  5:13 Bob Newell
2018-03-09  7:15 ` Eric Abrahamsen
2018-03-09 17:02   ` Bob Newell [this message]
2018-03-09 19:18     ` Tim Landscheidt
2018-03-09 19:36       ` Bob Newell
2018-03-09 19:29   ` Bob Newell

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=87po4dqj0c.fsf@bobnewell.net \
    --to=bobnewell@bobnewell.net \
    --cc=info-gnus-english@gnu.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).