From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Aidan Kehoe Newsgroups: gmane.emacs.devel Subject: Re: Activate an input-method from file-local variables? Date: Sat, 15 Jul 2006 18:55:15 +0200 Message-ID: <17593.7667.514209.90288@parhasard.net> References: <17593.10.639545.231797@parhasard.net> <85d5c69auh.fsf@lola.goethe.zz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1152982543 16962 80.91.229.2 (15 Jul 2006 16:55:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 15 Jul 2006 16:55:43 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 15 18:55:40 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 1G1nQT-0003T6-77 for ged-emacs-devel@m.gmane.org; Sat, 15 Jul 2006 18:55:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G1nQS-0003N2-OD for ged-emacs-devel@m.gmane.org; Sat, 15 Jul 2006 12:55:32 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G1nQI-0003Mx-UY for emacs-devel@gnu.org; Sat, 15 Jul 2006 12:55:22 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G1nQG-0003Ml-Dx for emacs-devel@gnu.org; Sat, 15 Jul 2006 12:55:21 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G1nQG-0003Mi-8O for emacs-devel@gnu.org; Sat, 15 Jul 2006 12:55:20 -0400 Original-Received: from [66.111.49.30] (helo=icarus.asclepian.ie) by monty-python.gnu.org with esmtp (Exim 4.52) id 1G1nSR-00089f-SM; Sat, 15 Jul 2006 12:57:35 -0400 Original-Received: by icarus.asclepian.ie (Postfix, from userid 1003) id 968DB8008C; Sat, 15 Jul 2006 17:55:15 +0100 (IST) Original-To: David Kastrup In-Reply-To: <85d5c69auh.fsf@lola.goethe.zz> X-Mailer: VM 7.17 under 21.5 (beta27) "fiddleheads" (+CVS-20060521) XEmacs Lucid X-Echelon-distraction: gtegsc Perle CAVE assassination OSS SURSAT 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:57053 Archived-At: Ar an c=C3=BAigi=C3=BA l=C3=A1 d=C3=A9ag de m=C3=AD I=C3=BAil, scr=C3=AD= obh David Kastrup:=20 > > I do a=20 > > > > (make-variable-buffer-local 'default-input-method) > > > > in my init file >=20 > Why? >=20 > > and then add > > > > default-input-method: "TeX" > > > > to the local-variables of the relevant files. >=20 > Guess why they are named "local variables" ... I guessed because they were a change to the global variable that was done locally from the file in question--I ommited to read the three lines in t= he XEmacs lispref that mention the connection to buffer-local variables, and= am having trouble finding something that mentions it explicitly in the GNU Emacs Lisp reference manual. (And since =E2=80=9Ccoding=E2=80=9D is treat= ed specially anyway--no variable of that name normally exists--its buffer-local treatm= ent says nothing about file local variables as a whole.) Ah, here we are; thr= ee throwaway sentences in =E2=80=9CLocal Variables in Files,=E2=80=9D no men= tion whatsoever in =E2=80=9CCreating and Deleting Buffer-Local Bindings.=E2=80=9D Thank you for the pointer--it=E2=80=99s nice to learn something new.=20 --=20 Santa Maradona, priez pour moi!