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

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

RE: Buffer Navigation


From: Drew Adams
Subject: RE: Buffer Navigation
Date: Tue, 18 Oct 2005 20:35:16 -0700

    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.





reply via email to

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