jed-users mailing list

[2005 Date Index] [2005 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: deleting a buffer without confirmation


Mack Stevenson wrote:
Hi everyone,

How can I delete a buffer which never got written to disk without prompting the user for confirmation? I checked dired.sl (it works that way) but I was unable to spot what makes delbuf() behave differently.

Try this:

define expunge_buffer(buf)
{
   setbuf(buf);
   set_buffer_modified_flag(0);
   delbuf(buf);
}

Marko

--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.


[2005 date index] [2005 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]