[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: creating empty file
From: |
Kevin Rodgers |
Subject: |
Re: creating empty file |
Date: |
Tue, 17 Oct 2000 20:42:56 GMT |
"Dr. Mirko Luedde" <Mirko.Luedde@Computer.Org> wrote:
> 1) Let's visit a new buffer via "C-x f myfile". Don't type anything
> into the buffer. Instead, immediately save the file via "C-x s". Then
> no file will be created in the filesystem.
Here's how you can get the desired behavior:
(add-hook 'find-file-not-found-hooks
(lambda ()
(set-buffer-modified-p t)
;; Don't short-circuit remaining hook functions:
nil))
--
Kevin Rodgers <kevinr@ihs.com> Lead Software Engineer
Information Handling Services Electronic Systems Development
15 Inverness Way East, M/S A114 GO BUFFS!
Englewood CO 80112-5776 USA 1 303 397 2807[voice]
Sent via Deja.com http://www.deja.com/
Before you buy.