Xref: utzoo comp.emacs:4723 gnu.emacs:216 Path: utzoo!attcan!uunet!tut.cis.ohio-state.edu!rutgers!apple!voder!pyramid!oliveb!intelca!mipos3!merlyn From: merlyn@intelob.biin.com (Randal L. Schwartz @ Stonehenge) Newsgroups: comp.emacs,gnu.emacs Subject: Re: deleted buffers Message-ID: <3234@mipos3.intel.com> Date: 26 Nov 88 23:17:18 GMT References: <1587@harlqn.UUCP> Sender: news@mipos3.intel.com Reply-To: merlyn@intelob.biin.com (Randal L. Schwartz @ Stonehenge) Organization: Stonehenge; netaccess via BiiN, Hillsboro, Oregon, USA Lines: 25 In-reply-to: jcgs@harlqn.UUCP (John Sturdy) In article <1587@harlqn.UUCP>, jcgs@harlqn (John Sturdy) writes: | Could anyone tell me how to recognize a deleted buffer object? I'm looking | for something like | (buffer-deleted-p BUFFER) | or | (deleted-buffer-p OBJECT) | but I can't find anything like them. How about something like: (defun deleted-buffer-p (object) "T if OBJECT is a deleted editor buffer." (and (bufferp object) (not (memq object (buffer-list))))) I tried it on two test cases, and it worked. Your mileage may vary. Why are you testing for a deleted buffer? -- Randal L. Schwartz, Stonehenge Consulting Services (503)777-0095 on contract to BiiN Technical Information Services (for now :-), in a former Intel building in Hillsboro, Oregon, USA. or ...!tektronix!inteloa[!intelob]!merlyn SOME MAILERS REQUIRE GRRRRR! Standard disclaimer: I *am* my employer!