bug-gnu-emacs
[Top][All Lists]
Advanced

[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" <address@hidden> 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 <address@hidden>          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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]