From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: drmemory@starband.net (DrMemory) Newsgroups: gmane.emacs.help Subject: Re: emacsclient: controlling from an application? Date: Wed, 15 Oct 2003 20:36:17 GMT Organization: Starband Communications Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <3F8D9119.8050500@yahoo.com> NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1066250842 1458 80.91.224.253 (15 Oct 2003 20:47:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 15 Oct 2003 20:47:22 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 15 22:47:20 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A9sYC-0006iU-00 for ; Wed, 15 Oct 2003 22:47:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A9sWw-0003Ix-7C for geh-help-gnu-emacs@m.gmane.org; Wed, 15 Oct 2003 16:46:02 -0400 Original-Newsgroups: gnu.emacs.help User-Agent: slrn/0.9.5.7 (UNIX) Original-Lines: 29 Original-NNTP-Posting-Host: 148.63.113.13 Original-X-Complaints-To: abuse@starband.net Original-X-Trace: twister1.starband.net 1066250198 148.63.113.13 (Wed, 15 Oct 2003 16:36:16 EDT) Original-NNTP-Posting-Date: Wed, 15 Oct 2003 16:36:16 EDT Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!central.cox.net!east.cox.net!peer01.cox.net!cox.net!rip!c03.atl99!news.webusenet.com!taylorrain.knology.net!cyclone1.starband.net!twister1.starband.net.POSTED!not-for-mail Original-Xref: shelby.stanford.edu gnu.emacs.help:117290 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:13219 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:13219 > >You can set any variable on a per-buffer basis: > > >(set (make-local-variable 'auto-save-visited-file-name) t) > > >Try putting that in the file itself, either as the first line > ># -*- eval: (set ...) -*- > Thanks. I tried it though, with results as follows, which baffle me: It appears that the eval worked: auto-save-visited-file-name's value is t Local in buffer 2do.txt; global value is nil However, the auto-save is still behaving as if the global value were in force: -rw-r--r-- 1 swani swani 819 Oct 15 14:18 #2do.txt# -rw-r--r-- 1 swani swani 819 Oct 15 14:15 2do.txt I'll have a tilt at the other 2 ideas. Both emacs and the knowledgeable folks in this forum never cease to amaze me. Thanks for the suggestions!