From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Phil Lord Newsgroups: gmane.emacs.help Subject: Re: input methods per file Date: Fri, 25 Jan 2008 04:42:36 -0800 (PST) Organization: http://groups.google.com Message-ID: <0887a96d-5201-44dd-b58d-07b483360f2e@f10g2000hsf.googlegroups.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1201277570 6667 80.91.229.12 (25 Jan 2008 16:12:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 25 Jan 2008 16:12:50 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 25 17:13:09 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JIRAr-0000TT-7M for geh-help-gnu-emacs@m.gmane.org; Fri, 25 Jan 2008 17:13:01 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JIRAQ-000351-Om for geh-help-gnu-emacs@m.gmane.org; Fri, 25 Jan 2008 11:12:34 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!f10g2000hsf.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 26 Original-NNTP-Posting-Host: 128.240.229.67 Original-X-Trace: posting.google.com 1201264957 20375 127.0.0.1 (25 Jan 2008 12:42:37 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 25 Jan 2008 12:42:37 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: f10g2000hsf.googlegroups.com; posting-host=128.240.229.67; posting-account=-F9EOgoAAACKHjj4GuJyv1qOHMV8QRls User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.11) Gecko/20071204 Ubuntu/7.10 (gutsy) Firefox/2.0.0.11, gzip(gfe), gzip(gfe) X-HTTP-Via: 1.1 bucket2.ncl.ac.uk:8080 (squid/2.6.STABLE13) Original-Xref: shelby.stanford.edu gnu.emacs.help:155564 X-Mailman-Approved-At: Fri, 25 Jan 2008 11:06:48 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:50952 Archived-At: On Jan 24, 3:08 pm, bojohan+n...@dd.chalmers.se (Johan Bockg=E5rd) wrote: > Phillip Lord writes: > > ;; Local Variables: *** > > ;; eval: (set-input-method "italian-postfix") *** > > ;; End: *** > > > Which works well, but is a pain because I get asked a yes no question > > as eval is risky. > > You can use > > ;; Allow italian-postfix input method > (add-to-list 'safe-local-eval-forms > '(set-input-method "italian-postfix")) > > or > > ;; Allow all uses of set-input-method > (put 'set-input-method 'safe-local-eval-function t) Perfect, just what I was looking for. Many thanks! Phil