From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: Kill all visited buffers Date: Sat, 21 Nov 2015 12:43:15 -0800 (PST) Message-ID: <57a76b37-35ec-45bd-a8b5-90031dbe91c3@default> References: <20151121202820.GG3316@mail.akwebsoft.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1448138651 11995 80.91.229.3 (21 Nov 2015 20:44:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 21 Nov 2015 20:44:11 +0000 (UTC) To: Tim Johnson , Emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Nov 21 21:43:47 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1a0F0b-0008U3-62 for geh-help-gnu-emacs@m.gmane.org; Sat, 21 Nov 2015 21:43:45 +0100 Original-Received: from localhost ([::1]:53619 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0F0a-0002Xg-EX for geh-help-gnu-emacs@m.gmane.org; Sat, 21 Nov 2015 15:43:44 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51662) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0F0Q-0002XQ-2n for Help-gnu-emacs@gnu.org; Sat, 21 Nov 2015 15:43:34 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a0F0M-0002Kv-NE for Help-gnu-emacs@gnu.org; Sat, 21 Nov 2015 15:43:33 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:17845) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0F0M-0002Iy-Fo for Help-gnu-emacs@gnu.org; Sat, 21 Nov 2015 15:43:30 -0500 Original-Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id tALKhIea012287 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 21 Nov 2015 20:43:20 GMT Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserv0022.oracle.com (8.13.8/8.13.8) with ESMTP id tALKhHIE019139 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Sat, 21 Nov 2015 20:43:18 GMT Original-Received: from abhmp0014.oracle.com (abhmp0014.oracle.com [141.146.116.20]) by userv0121.oracle.com (8.13.8/8.13.8) with ESMTP id tALKhHHr020714; Sat, 21 Nov 2015 20:43:17 GMT In-Reply-To: <20151121202820.GG3316@mail.akwebsoft.com> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6691.5000 (x86)] X-Source-IP: aserv0022.oracle.com [141.146.126.234] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 156.151.31.81 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:108177 Archived-At: > 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))