unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Barry Margolin <barmar@alum.mit.edu>
To: help-gnu-emacs@gnu.org
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	[thread overview]
Message-ID: <barmar-7D3696.02213529062008@newsgroups.comcast.net> (raw)
In-Reply-To: g475vf$13v$1@panix2.panix.com

In article <g475vf$13v$1@panix2.panix.com>,
 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 ***


  reply	other threads:[~2008-06-29  6:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-29  5:18 rename existing *shell* to *MYshell.txt. Now, how making "C-x s" SAVE it? David Combs
2008-06-29  6:21 ` Barry Margolin [this message]
2008-06-29  8:23   ` Xah

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=barmar-7D3696.02213529062008@newsgroups.comcast.net \
    --to=barmar@alum.mit.edu \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).