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

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

RE: Kill all visited buffers


From: Drew Adams
Subject: RE: Kill all visited buffers
Date: Sat, 21 Nov 2015 12:43:15 -0800 (PST)

> Google has failed me. I'm looking for a way to programmatically kill
> all _visited_ buffers.

Filter (buffer-list) with function `buffer-file-name'.  E.g.:

(dolist (buf  (cl-remove-if-not #'buffer-file-name (buffer-list)))
  (kill-buffer buf))



reply via email to

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