|
From: | Francis Wright |
Subject: | Re: [h-e-w] interactive "r" argument passing |
Date: | Sat, 18 May 2019 11:54:24 +0000 |
Just to follow up on what I wrote below, the following version of your function works fine for me (on Windows 10) and writes the file to my default Documents folder: (defun save-sscratch (start end) "Append region in *scratch* to file scratch.txt." (interactive "r") (with-current-buffer "*scratch*" (write-region start end "c:/Users/fjw/Documents/scratch.txt" t))) I think your problem is the way you have specified the folder that you want to write to. From: help-emacs-windows <help-emacs-windows-bounces+address@hidden>
On Behalf Of Francis Wright If this still doesn't work then I suggest you visit the file you want to write to in Emacs and copy the full filename used by Emacs into your function.
I'll look at this more carefully later. From: help-emacs-windows <help-emacs-windows-bounces+address@hidden> on behalf
of T400 <address@hidden> Thanks, Francis. I tried escaped backslashes and slashes. After this
|
[Prev in Thread] | Current Thread | [Next in Thread] |