merlyn@intelob.biin.com (Randal L. Schwartz @ Stonehenge) (11/27/88)
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. <merlyn@intelob.biin.com> or ...!tektronix!inteloa[!intelob]!merlyn SOME MAILERS REQUIRE <merlyn@intelob.intel.com> GRRRRR! Standard disclaimer: I *am* my employer!
jcgs@harlqn.UUCP (John Sturdy) (11/28/88)
In article <3234@mipos3.intel.com> merlyn@intelob.biin.com (Randal L. Schwartz @ Stonehenge) writes: >Why are you testing for a deleted buffer? So that a special buffer, which may get deleted at some time, can be reconstructed next time it is wanted. -- __John All manner of things will be well (St. Julian of Norwich) jcgs@uk.co.harlqn Harlequin Ltd,Barrington,Cambridge,UK +44-223-872522