|
From: | Mathias Dahl |
Subject: | Re: Missing `with' macro? |
Date: | Mon, 24 Jul 2006 16:33:31 +0200 |
> (setq buf (find-file tumme-db-file)) > ;; do a lot of stuff in it > (save-buffer) ;; optionally > (kill-buffer buf) Just for the record, the above code will bomb out if the current window is a minibuffer or is dedicated: Always prefer find-file-noselect to find-file.
Thanks for the advice! I will probably replace it with a combination of `with-temp-file' and `insert-file-contents'.
Stefan "whose windows are all dedicated or minibuffers"
/Mathias - who has never cared about this dedicated business... :)
[Prev in Thread] | Current Thread | [Next in Thread] |