From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/18805 Path: news.gmane.org!.POSTED!not-for-mail From: Bob Newell Newsgroups: gmane.emacs.gnus.user Subject: Re: Changing language input method by addressee Date: Fri, 09 Mar 2018 07:02:59 -1000 Organization: Avi Gobbler Publishing Message-ID: <87po4dqj0c.fsf@bobnewell.net> References: <87lgf1vnkq.fsf@bobnewell.net> <87vae5yb23.fsf@ericabrahamsen.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1520617302 19300 195.159.176.226 (9 Mar 2018 17:41:42 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 9 Mar 2018 17:41:42 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) To: info-gnus-english Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Fri Mar 09 18:41:37 2018 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1euM1R-0004sT-FQ for gegu-info-gnus-english@m.gmane.org; Fri, 09 Mar 2018 18:41:37 +0100 Original-Received: from localhost ([::1]:46937 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1euM3S-0006Us-Gc for gegu-info-gnus-english@m.gmane.org; Fri, 09 Mar 2018 12:43:42 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45100) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1euLQB-00058v-C1 for info-gnus-english@gnu.org; Fri, 09 Mar 2018 12:03:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1euLQ7-000276-MG for info-gnus-english@gnu.org; Fri, 09 Mar 2018 12:03:07 -0500 Original-Received: from mail-pf0-x22a.google.com ([2607:f8b0:400e:c00::22a]:38730) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1euLQ7-00026O-Dx for info-gnus-english@gnu.org; Fri, 09 Mar 2018 12:03:03 -0500 Original-Received: by mail-pf0-x22a.google.com with SMTP id d26so1513463pfn.5 for ; Fri, 09 Mar 2018 09:03:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bobnewell-net.20150623.gappssmtp.com; s=20150623; h=from:to:subject:organization:references:date:in-reply-to:message-id :user-agent:mime-version; bh=UaYVjppYR1nDV2a08Aj4VAdZVTbyJQD0OXjXHhaljeU=; b=k6whJdg9w5N2QEZ39WKoSgkchYLnWjbpClPb1rXhqQ4Ep0I7waILjrWfLmkQPtduMC 7XbmZ5KtZwgeed2wx1wioGwjP5gKLJch6IYYAyT/1IooSyjZ3SwNfOzp43dc8Q/62W+0 kER4C5fN9oCl1fkpT9Ciy6xApo48WQrUWCTEBJg9xmsK4vdUtLh0fFjG0XEzsCOEbxQ2 I75GhLqY6Lp/kkztvUkVLbRek1SrYWOXMC6uFvb67TLSCpDiWsLu333XdPUTCSxgVzSD 2K4PsgKiI4PtiPkcFXsxE/ITQWlBb/CHLGJWu2Zh18ZI02CZ4D+bYZCqRd4ro1mfghAI LPOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:organization:references:date :in-reply-to:message-id:user-agent:mime-version; bh=UaYVjppYR1nDV2a08Aj4VAdZVTbyJQD0OXjXHhaljeU=; b=D2vX5pcMVnH2jALwHQqcyV2W8Q3l+4q4QiStGGVrsGXyfRhB8yhEgQHMtQCovPO8MF Ef8YAY9jnrbZkfmPlI68obWdCyQjihJLCOheJfWW1/7geCJqNfRCV8XhZ+HdzOrfneKi mgid3Ez6jaGxsQPo8qHIr5IHJzb0YXWJZFjD08xkreuP9pWrn2SfC9r5nNrLxnsXwa/G yECsc64PARXcx2rGByEytW3IWsKdQZd+NTqgYMIiykdP4EW8jsVh81wfCAh+pH0aoBXv 4v9UNJXUJOeweDZeOEtMMvRtooov8TzW4hg2b7zZcVBafYUx20+RY6zejGEdMOoAwMb6 5RGA== X-Gm-Message-State: APf1xPA4TtA9vT8Y2OPIVJl9Sl5laf1Ty8gTNldl8j6TJf6sLcJdo7/s apnpgJEbvM9Ghb9sHwLV98JP2Toa X-Google-Smtp-Source: AG47ELsMzwukIGc4si72CGpA3xtWjoaQzpvJPRNUb8C/YuYPZf+EhVEPFY4cmE+f7uDdVyOtk53rLg== X-Received: by 10.99.124.14 with SMTP id x14mr24778773pgc.290.1520614981912; Fri, 09 Mar 2018 09:03:01 -0800 (PST) Original-Received: from localhost (udp073869uds.hawaiiantel.net. [141.239.248.62]) by smtp.gmail.com with ESMTPSA id a65sm3880063pfg.90.2018.03.09.09.03.00 for (version=TLS1_2 cipher=AES128-SHA bits=128/128); Fri, 09 Mar 2018 09:03:01 -0800 (PST) In-Reply-To: <87vae5yb23.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Fri, 09 Mar 2018 15:15:16 +0800") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c00::22a X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Original-Sender: "info-gnus-english" Xref: news.gmane.org gmane.emacs.gnus.user:18805 Archived-At: Eric Abrahamsen 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 *