RE: write-region or save-region
- This has taken me a bit longer to reply to than I'd like, but rather than just
send the resultant working macro I thought I would spend a little longer
writing down the process in the hope that it may encourage people to write
Attached is a very rough first draft of a 'Creating Macros' narrative, please
do not judge this on its artistic flair or literacy accuracy, rather on its
technical content and ease of reading.
I hope this will also inspire a 'indent-region' macro...
P.S. For those just wanting the macro, here it is:
set-variable #l0 $buffer-fname
!force delete-buffer "*write-region-tmp*"
set-variable $buffer-fname #l0
!force set-variable #l1 @1
!force !force @# write-buffer #l1 @mna
!force !force @# write-buffer @mna
!if ¬ $status
!force delete-buffer $buffer-bname
> -----Original Message-----
> From: Meino Christian Cramer [mailto:Meino.Cramer@...]
> Sent: Tuesday, July 20, 2004 11:56 PM
> To: firstname.lastname@example.org; Phillips, Steven
> Subject: write-region or save-region
> is there a save-region or write-region macro out there anywhere?
> I tried to write one myself but I failed to get asking for a file to
> write to and error handling in case of target file do exist
> Thank you very much in advance for any help/macro ;) :O)
> Keep Microemacsing! X-)