all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
Subject: RE: Accessing recent file history
Date: Wed, 4 Jan 2006 08:56:38 -0800	[thread overview]
Message-ID: <DNEMKBNJBGPAOPIJOOICAEBJDBAA.drew.adams@oracle.com> (raw)
In-Reply-To: <u3bk4nm2b.fsf@gmail.com>

    I want to write a small function to open files using iswitchb
    functions, using the recent file names list as input. Somewhat similar
    to what I do in the following defun:

    (defun my-switch-to-bookmark (bname)
      "Interactively switch to bookmark as `iswitchb' does."
      (interactive (list (flet ((iswitchb-make-buflist
                                 (default)
                                 (require 'bookmark)
                                 (setq iswitchb-buflist
    (bookmark-all-names))))
                           (iswitchb-read-buffer "Jump to bookmark: "))))
      (bookmark-jump bname))

    So, I want something exactly like the above, but instead of
    `bookmark-jump' I want to use `find-file' and instead of
    `bookmark-all-names' I want to get hold of the file history.

    The file history that I see in the File -> Open Recently Visited would
    be best, but I guess the minibuffer history for `find-file' would work
    too.

Use `recentf-list' (library recentf.el).
See `icicle-recent-file' for an example:
http://www.emacswiki.org/cgi-bin/wiki/icicles.el.

  parent reply	other threads:[~2006-01-04 16:56 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-04 13:45 Accessing recent file history Mathias Dahl
2006-01-04 14:30 ` Matt Hodges
2006-01-04 16:55 ` Henrik Enberg
2006-01-04 16:56 ` Drew Adams [this message]
     [not found] ` <mailman.21390.1136393858.20277.help-gnu-emacs@gnu.org>
2006-01-04 21:06   ` Mathias Dahl
2006-01-05  7:17     ` Mathias Dahl

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DNEMKBNJBGPAOPIJOOICAEBJDBAA.drew.adams@oracle.com \
    --to=drew.adams@oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.