[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: buffer-list and desktop
From: |
Kevin Rodgers |
Subject: |
Re: buffer-list and desktop |
Date: |
Wed, 10 Nov 2004 12:30:53 -0700 |
User-agent: |
Mozilla Thunderbird 0.9 (X11/20041105) |
Matthias wrote:
> Is there a ready-made command, or package to list buffers that will be
> saved by desktop.el?
Here's a start:
(defun desktop-list-buffers ()
"Return the list of buffers that `desktop-save' would save."
(nreverse
(apply 'nconc
(mapcar (lambda (buffer)
(save-excursion
(set-buffer buffer)
(if (desktop-save-buffer-p (buffer-file-name)
(buffer-name)
major-mode)
(list buffer))))
(buffer-list)))))
--
Kevin Rodgers
- buffer-list and desktop, Matthias, 2004/11/10
- Re: buffer-list and desktop,
Kevin Rodgers <=
- Re: buffer-list and desktop, Kevin Rodgers, 2004/11/10
- Re: buffer-list and desktop, David Kastrup, 2004/11/10
- Re: buffer-list and desktop, Jesper Harder, 2004/11/10
- Re: buffer-list and desktop, David Kastrup, 2004/11/10
- Re: buffer-list and desktop, Kevin Rodgers, 2004/11/11
- Re: buffer-list and desktop, Matthias, 2004/11/12