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: Sun, 16 Jul 2006 13:59:39 +0200 Message-ID: <17594.10795.173314.750640@parhasard.net> References: <17593.10.639545.231797@parhasard.net> <85d5c69auh.fsf@lola.goethe.zz> <17593.7667.514209.90288@parhasard.net> 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 1153050961 1891 80.91.229.2 (16 Jul 2006 11:56:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 16 Jul 2006 11:56:01 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 16 13:55:59 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 1G25E1-0008VF-M9 for ged-emacs-devel@m.gmane.org; Sun, 16 Jul 2006 13:55:54 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G25E1-0006HJ-AA for ged-emacs-devel@m.gmane.org; Sun, 16 Jul 2006 07:55:53 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G25Dr-0006HE-EP for emacs-devel@gnu.org; Sun, 16 Jul 2006 07:55:43 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G25Dp-0006Gr-VX for emacs-devel@gnu.org; Sun, 16 Jul 2006 07:55:42 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G25Dp-0006Gn-MX for emacs-devel@gnu.org; Sun, 16 Jul 2006 07:55:41 -0400 Original-Received: from [66.111.49.30] (helo=icarus.asclepian.ie) by monty-python.gnu.org with esmtp (Exim 4.52) id 1G25GF-0003A8-EK; Sun, 16 Jul 2006 07:58:11 -0400 Original-Received: by icarus.asclepian.ie (Postfix, from userid 1003) id 734608008C; Sun, 16 Jul 2006 12:55:36 +0100 (IST) Original-To: rms@gnu.org In-Reply-To: X-Mailer: VM 7.17 under 21.5 (beta27) "fiddleheads" (+CVS-20060612) XEmacs Lucid X-NS5-file-as-sent: t X-Echelon-distraction: Ruby Ridge Serbian Delta Force NWO New World Order Waco, Texas 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:57088 Archived-At: Ar an s=C3=A9=C3=BA l=C3=A1 d=C3=A9ag de m=C3=AD I=C3=BAil, scr=C3=ADobh= Richard Stallman:=20 > XEmacs lispref that mention the connection to buffer-local variabl= es, > and am >=20 > We try to improve GNU Emacs documentation, but we cannot be > responsible for deficiencies of forked versions such as GNU XEmacs. I didn=E2=80=99t suggest that you were; I mentioned the XEmacs documentat= ion because it was relevant to answering David=E2=80=99s question.=20 > having trouble finding something that mentions it explicitly in th= e GNU > Emacs Lisp reference manual. (And since ?coding? is treated specia= lly >=20 > File local variables are a user feature, not a Lisp programming > feature, They are both. You need an awareness of programming Lisp to use them, something not true for most things detailed in the Emacs Manual. > so they are documented in the Emacs Manual. >=20 > Ah, here we are; three > throwaway sentences in Local Variables in Files, >=20 > I see you found the section in the Emacs Manual which documents them. > (There is an xref to it in the Lisp Manual.) >=20 > Why do you call that text "throwaway"? It is right at the start of > the section, and states the point explicitly. It says everything > there is to say about the question. It doesn=E2=80=99t call them buffer-local variables. In GNU Emacs, variab= les can be local to a let binding or lambda, local to a buffer, or local to a frame.= I read the first sentence =E2=80=98A file can specify local variable values= for use when you edit the file with Emacs.=E2=80=99 as just one more semantic ext= ension of the word =E2=80=98local=E2=80=99; the phrase =E2=80=98it automatically ma= kes those variables local to the buffer=E2=80=99 and a couple of phrases more in that section are w= hat says that the variables are buffer-local. I call those three phrases =E2=80=98throwaway=E2=80=99 because they don=E2= =80=99t arise at the start of any section, they are mentioned in passing rather than emphasised. > no mention whatsoever in > Creating and Deleting Buffer-Local Bindings. >=20 > (When you mention a section title, would you please say which > manual you're talking about? That would help me find it > so I can think about your point.) >=20 > That section describes Lisp facilities for creating and deleting > buffer-local bindings. File local variable lists don't belong there. File local variable lists create buffer-local bindings! That=E2=80=99s wh= at David just explained to me.=20 > Anyway, it seems that I can make the xref in the Lisp Manual clearer, > and restate this basic point. What do you think of this new text? >=20 > A file can specify local variable values; Emacs uses these to cr= eate > buffer-local bindings for those variables in the buffer visiting t= hat > file. @xref{File variables, , Local Variables in Files, emacs, Th= e > GNU Emacs Manual}, for basic information about file local variable= s. > This section describes the functions and variables that affect > processing of file local variables. I find it much clearer; thank you for your thought on this.=20 --=20 Santa Maradona, priez pour moi!