From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Barry Margolin Newsgroups: gmane.emacs.help Subject: Re: rename existing *shell* to *MYshell.txt. Now, how making "C-x s" SAVE it? Date: Sun, 29 Jun 2008 02:21:35 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1214721652 29104 80.91.229.12 (29 Jun 2008 06:40:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 29 Jun 2008 06:40:52 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jun 29 08:41:37 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 1KCqbQ-0002ZS-Ob for geh-help-gnu-emacs@m.gmane.org; Sun, 29 Jun 2008 08:41:36 +0200 Original-Received: from localhost ([127.0.0.1]:59413 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KCqaa-0004sO-OL for geh-help-gnu-emacs@m.gmane.org; Sun, 29 Jun 2008 02:40:44 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local02.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail Original-NNTP-Posting-Date: Sun, 29 Jun 2008 01:21:35 -0500 Original-Newsgroups: gnu.emacs.help Mail-Copies-To: nobody User-Agent: MT-NewsWatcher/3.5.3b2 (Intel Mac OS X) Original-Lines: 37 X-Usenet-Provider: http://www.giganews.com Original-NNTP-Posting-Host: 24.34.108.171 Original-X-Trace: sv3-C8PTLHuxszcoW0wNcyuBV9StPWxkqQrBB0AKtssXFMA+lIuIEB4mqmCL9JMN5ji4zfEJbXqsg04iNAU!3Vg4ceJesYzgFQvhbyqRw46goFuWRHhL0vSXQSOmNHq5et5PL+rfMAv3QtoluQVxbmVI2bhK6FY9!TEmKWLHcj+qsJ+yWtq9gMd3MZX5rzThXggPmHSM= Original-X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.39 Original-Xref: news.stanford.edu gnu.emacs.help:159773 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:55127 Archived-At: In article , dkcombs@panix.com (David Combs) wrote: > So I have this existing *shell* that I've been working with, > and it belatedly turns out that I want it to "also live > as a disk file" -- to be a physical record of what I've > been doing (in *that* shell). > > So I M-x rename-buffer it to MYshell.txt. > > Question: now, how to "bind" it to a disk file of the > same name? You don't need to rename it, just write it to a file: C-x C-w MYshell.txt RET > > > Or if not that ( > > bind implying that by some magic that > whatever chars appear in *shell* (Well, MYshell.txt buffer) > automatically appears in the disk file too, maybe > > ), then where all I need to do is C-x s and the disk-file > gets updated. I don't know of a way to make it automatically update the file. But once you associate it with a file with C-x C-w, you can then use C-x C-s to update the file manually. -- Barry Margolin, barmar@alum.mit.edu Arlington, MA *** PLEASE post questions in newsgroups, not directly to me *** *** PLEASE don't copy me on replies, I'll read them in the group ***