From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/18806 Path: news.gmane.org!.POSTED!not-for-mail From: Tim Landscheidt Newsgroups: gmane.emacs.gnus.user Subject: Re: Changing language input method by addressee Date: Fri, 09 Mar 2018 19:18:14 +0000 Organization: http://www.tim-landscheidt.de/ Message-ID: <874llp12ix.fsf@passepartout.tim-landscheidt.de> References: <87lgf1vnkq.fsf@bobnewell.net> <87vae5yb23.fsf@ericabrahamsen.net> <87po4dqj0c.fsf@bobnewell.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 1520622990 3585 195.159.176.226 (9 Mar 2018 19:16:30 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 9 Mar 2018 19:16:30 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Fri Mar 09 20:16:26 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 1euNVB-0000qH-VN for gegu-info-gnus-english@m.gmane.org; Fri, 09 Mar 2018 20:16:26 +0100 Original-Received: from localhost ([::1]:47564 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1euNXD-0001RJ-2F for gegu-info-gnus-english@m.gmane.org; Fri, 09 Mar 2018 14:18:31 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34171) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1euNXA-0001RD-2H for info-gnus-english@gnu.org; Fri, 09 Mar 2018 14:18:28 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1euNX6-0001G5-Uf for info-gnus-english@gnu.org; Fri, 09 Mar 2018 14:18:28 -0500 Original-Received: from [195.159.176.226] (port=50521 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1euNX6-0001Fj-Mq for info-gnus-english@gnu.org; Fri, 09 Mar 2018 14:18:24 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1euNV1-0000ez-OU for info-gnus-english@gnu.org; Fri, 09 Mar 2018 20:16:15 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 31 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:o3jwPiD/iW2cWX9vVwoWMa1AeOw= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 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:18806 Archived-At: Bob Newell wrote: >> 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. BTW, I have a similar itch with sentence-end-double-space which I set to nil when I compose German mails (or other texts), being able to type: | (set (make-local-variable 'sentence-end-double-space) nil) now blindly :-). I always wanted to solve that more fundamentally: A buffer (or a part of a buffer?) has an associated language, and certain properties derive from that, similar to HTML's lang attribute. Sentence ends, smart quotes, etc. would then take the buffer's (or point's) language in consideration. Does Emacs provide some groundwork to build upon for that? Tim