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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#390: 23.0.60; killed buffer in list from function buffer-list?


From: Lennart Borgman (gmail)
Subject: bug#390: 23.0.60; killed buffer in list from function buffer-list?
Date: Wed, 11 Jun 2008 23:26:28 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666

I sometimes get a killed buffer in the list returned from (buffer-list ...):

Result: (#<buffer *Messages*> #<buffer buff-menu.el> #<buffer ido.el> #<buffer buffer.c> #<buffer *Minibuf-1*> #<killed buffer> #<buffer *grep*> #<buffer nt> #<buffer lib-src> #<buffer *GNU Emacs*> #<buffer *scratch*> #<buffer *Minibuf-0*> #<buffer *code-conversion-work*> #<buffer *Echo Area 0*> #<buffer *Echo Area 1*> #<buffer *ex-working-space*> #<buffer *ex-print*> #<buffer *server*> #<buffer *Buffer List*> #<buffer *Completions*> #<buffer *Ediff Registry*> #<buffer *Help*> #<buffer *DOC*> #<buffer *viper-ask-level*>)

This happen in list-buffers-noselect.

      (dolist (buffer (or buffer-list
                          (buffer-list
                           (when Buffer-menu-use-frame-buffer-list
                             (selected-frame)))))

where Buffer-menu-use-frame-buffer-list is t.

Testing it further I found that buffer-live-p with the buffer #<killed buffer> as an argument returns nil.

Unfortunately this is in my patched version of Emacs. I have no patches in src/buffer.c (which of course does not mean that my patches could not be involved).

The doc string for buffer-list says "Return a list of all live buffers".

In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600)
 of 2008-06-10 on LENNART-69DE564






reply via email to

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