From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: Activate an input-method from file-local variables? Date: Wed, 19 Jul 2006 09:45:38 +0900 Message-ID: References: <17593.10.639545.231797@parhasard.net> <17594.9387.783893.359064@parhasard.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1153270033 23550 80.91.229.2 (19 Jul 2006 00:47:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 19 Jul 2006 00:47:13 +0000 (UTC) Cc: kehoea@parhasard.net, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 19 02:47:10 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1G30DM-00078y-Ea for ged-emacs-devel@m.gmane.org; Wed, 19 Jul 2006 02:47:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G30DL-0008DJ-L9 for ged-emacs-devel@m.gmane.org; Tue, 18 Jul 2006 20:46:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G30D7-0008Ck-Gv for emacs-devel@gnu.org; Tue, 18 Jul 2006 20:46:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G30D5-0008C5-LE for emacs-devel@gnu.org; Tue, 18 Jul 2006 20:46:45 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G30D4-0008C0-V4 for emacs-devel@gnu.org; Tue, 18 Jul 2006 20:46:42 -0400 Original-Received: from [150.29.246.133] (helo=mx1.aist.go.jp) by monty-python.gnu.org with esmtp (Exim 4.52) id 1G30G4-0002oq-Pp for emacs-devel@gnu.org; Tue, 18 Jul 2006 20:49:49 -0400 Original-Received: from smtp3.aist.go.jp ([150.29.246.12]) by mx1.aist.go.jp with ESMTP id k6J0kIA0028680; Wed, 19 Jul 2006 09:46:18 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp3.aist.go.jp with ESMTP id k6J0kHf1021206; Wed, 19 Jul 2006 09:46:17 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 3.36 #1 (Debian)) id 1G30C2-0004u6-00; Wed, 19 Jul 2006 09:45:38 +0900 Original-To: Stefan Monnier In-reply-to: (message from Stefan Monnier on Tue, 18 Jul 2006 10:44:43 -0400) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/22.0.50 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:57302 Archived-At: In article , Stefan Monnier writes: >>> That seems much more complex than my current solution of using >>> `eval: (activate-input-method "TeX")' and adding >>> (put 'activate-input-method 'safe-local-eval-function t). >> Provided that a local variable specified in a file is >> customizable, does :set function of it called? > Currently no: it just uses `set'. Using the custom setter might be an > option, but we should be careful with it: Custom's support for buffer-local > settings is mostly untested (And hence not overly reliable). Ummm, then, we must wait for that getting reliable, or implement a code that checks the value of current-input-method and, if necessary, calls a proper activating function in read_char or somewhere. Those should be after the release. --- Kenichi Handa handa@m17n.org