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: Buffer Navigation Date: Tue, 18 Oct 2005 20:35:16 -0700 Message-ID: References: <1129690887.411887.235150@g43g2000cwa.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1129693279 10493 80.91.229.2 (19 Oct 2005 03:41:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 19 Oct 2005 03:41:19 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 19 05:41:18 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ES4oe-0007kC-7H for geh-help-gnu-emacs@m.gmane.org; Wed, 19 Oct 2005 05:40:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ES4mx-0001FD-QP for geh-help-gnu-emacs@m.gmane.org; Tue, 18 Oct 2005 23:38:51 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ES4kT-0000Dr-4t for help-gnu-emacs@gnu.org; Tue, 18 Oct 2005 23:36:17 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ES4kR-0000C0-2H for help-gnu-emacs@gnu.org; Tue, 18 Oct 2005 23:36:16 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ES4kP-0000Bp-MT for help-gnu-emacs@gnu.org; Tue, 18 Oct 2005 23:36:13 -0400 Original-Received: from [148.87.122.30] (helo=rgminet01.oracle.com) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1ES4kP-0005kT-Ma for help-gnu-emacs@gnu.org; Tue, 18 Oct 2005 23:36:13 -0400 Original-Received: from rgmsgw300.us.oracle.com (rgmsgw300.us.oracle.com [138.1.186.49]) by rgminet01.oracle.com (Switch-3.1.6/Switch-3.1.6) with ESMTP id j9J3ZPI0031944; Tue, 18 Oct 2005 21:35:25 -0600 Original-Received: from rgmsgw300.us.oracle.com (localhost [127.0.0.1]) by rgmsgw300.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id j9J3ZPGH005214; Tue, 18 Oct 2005 21:35:25 -0600 Original-Received: from dradamslap (dhcp-amer-rmdc-csvpn-gw4-141-144-96-252.vpn.oracle.com [141.144.96.252]) by rgmsgw300.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with SMTP id j9J3ZM7c005197 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Tue, 18 Oct 2005 21:35:24 -0600 Original-To: "Shug Boabby" , X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 In-Reply-To: <1129690887.411887.235150@g43g2000cwa.googlegroups.com> X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:30364 Archived-At: from that wiki entry i found the bs calls... silly me for trying to re-implement their simple next/previous stuff. bs-show is nice too. however, none of these numerous adons do what i want... which is to only navigate through files which i, myself, not some mode or function call, have opened. i don't want to go writing out regexs for the types of files i usually edit... i just want emacs to be smart enough to know what i have opened by hand. is that kind of information stored anyway? or is writing a wrapper for open/close the only solution... Buffer and file commands normally filter out uninteresting buffers (those whose names start with a space) and files (those whose names match `completion-ignored-extensions', for example), but that isn't exactly what you're asking for. You can certainly write something yourself - just keep track of the buffers and files you open yourself. If you put their names on a list, you can use Icicles cycling and completion to access them. But this requires a little Emacs Lisp. If a list of recently used files is sufficient for you (they might not still be open, so this is not exactly what you asked for), then there are libraries that do that too. Icicles, for instance, has commands `icicle-recent-file' and `icicle-recent-file-other-window', which let you open a recently visited file (filename completion and cycling available, as usual). This uses library `recentf.el', which persistently records your visited files. You can also cycle through the files you opened during the current session only, by using Icicles command `icicle-history' (bound to `M-h' in the minibuffer). You can use this on any minibuffer input, including filename input. During file-name completion, it lets you complete to, or cycle through, your recently visited files of the current session. For instance, `C-x f', then `M-h', then use up/down arrows to cycle through recent files and choose one (RET). (If you use library `savehistory.el', then `icicle-history' uses the persistent minibuffer histories saved by that library.) HTH.