From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Activate an input-method from file-local variables? Date: Sun, 16 Jul 2006 08:32:45 -0400 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 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1153053150 7256 80.91.229.2 (16 Jul 2006 12:32:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 16 Jul 2006 12:32:30 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 16 14:32:27 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 1G25nL-00046y-Ei for ged-emacs-devel@m.gmane.org; Sun, 16 Jul 2006 14:32:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G25nK-0004Vy-Io for ged-emacs-devel@m.gmane.org; Sun, 16 Jul 2006 08:32:22 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G25n3-0004Va-FR for emacs-devel@gnu.org; Sun, 16 Jul 2006 08:32:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G25n0-0004V4-RO for emacs-devel@gnu.org; Sun, 16 Jul 2006 08:32:04 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G25n0-0004V1-OV for emacs-devel@gnu.org; Sun, 16 Jul 2006 08:32:02 -0400 Original-Received: from [209.226.175.188] (helo=tomts25-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1G25pR-00068X-PI for emacs-devel@gnu.org; Sun, 16 Jul 2006 08:34:33 -0400 Original-Received: from localhost ([70.55.80.113]) by tomts25-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20060716123201.VFFF1747.tomts25-srv.bellnexxia.net@localhost>; Sun, 16 Jul 2006 08:32:01 -0400 Original-Received: by localhost (Postfix, from userid 20848) id B94DF844E; Sun, 16 Jul 2006 08:32:45 -0400 (EDT) Original-To: Aidan Kehoe In-Reply-To: <17594.9387.783893.359064@parhasard.net> (Aidan Kehoe's message of "Sun, 16 Jul 2006 13:36:11 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:57089 Archived-At: >> AFAICT this does not do what I want: it doesn't *activate* the >> input method. You still need to hit C-\ to activate it. > Ah, excuse my misunderstanding. Looking through the source of > activate-input-method, as well as setting current-input-method, it calls > input-method-specific initialisation code, so simply setting a file-local > variable would seem to be impossible. You could, of course, add something > like the below to your init file, and specify hack-activate-input-method > appropriately in the files you want it to work for. 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). Stefan