From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "B. T. Raven" Newsgroups: gmane.emacs.help Subject: prospective multi-save function Date: Fri, 1 Dec 2006 21:16:55 -0600 Organization: UseNetServer.com Message-ID: <7c5e9$4570f02c$49fa176$10142@DIALUPUSA.NET> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1165030836 28060 80.91.229.2 (2 Dec 2006 03:40:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 2 Dec 2006 03:40:36 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Dec 02 04:40:36 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GqLjs-0006qk-D7 for geh-help-gnu-emacs@m.gmane.org; Sat, 02 Dec 2006 04:40:32 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GqLjs-0007VQ-0N for geh-help-gnu-emacs@m.gmane.org; Fri, 01 Dec 2006 22:40:32 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!208.49.83.146.MISMATCH!uns-out.usenetserver.com!news.usenetserver.com!pc02.usenetserver.com!DIALUPUSA.NET!not-for-mail Original-Newsgroups: gnu.emacs.help X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Original-X-Complaints-To: abuse@usenetserver.com Original-Lines: 28 Original-X-Trace: 7c5e94570f02ca13a04d310142 Original-Xref: shelby.stanford.edu gnu.emacs.help:143589 Original-To: help-gnu-emacs@gnu.org 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:39191 Archived-At: 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 --