From: "B. T. Raven" <ecinmn@alcisp.com>
Subject: prospective multi-save function
Date: Fri, 1 Dec 2006 21:16:55 -0600 [thread overview]
Message-ID: <7c5e9$4570f02c$49fa176$10142@DIALUPUSA.NET> (raw)
Since I don't understand or trust the backup process or vc capabilities of
emacs, I would like to have a way off saving the buffer to different
devices by issuing a single command. It seems that these
devices/directories could be fished out of a list and then passed to
save-buffer, save-current-buffer, write-file, etc. It would be useful (to
me at least) to save to the current working directory where the main file
associated with the buffer is, then to an external usb drive, one or more
flash drives, and even to a zip drive or floppy in some cases.
I notice that save-current-buffer has the docstring:
"
save-current-buffer is a special form.
(save-current-buffer &rest BODY)
Save the current buffer; execute BODY; restore the current buffer.
Executes BODY just like `progn'.
"
Could the code for saving the buffer in other places be put into this
BODY? Does it have to go into an explicit (progn... ? Since this is a
special form is it not even avisable to muck around in this area? Why does
it even exist? The compiled lisp function save-buffer claims that it
"saves current buffer." Are there hooks to write and save functions?
Ed
--
next reply other threads:[~2006-12-02 3:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-02 3:16 B. T. Raven [this message]
2006-12-04 8:27 ` prospective multi-save function Mathias Dahl
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='7c5e9$4570f02c$49fa176$10142@DIALUPUSA.NET' \
--to=ecinmn@alcisp.com \
/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).