all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Mathias Dahl <brakjoller@gmail.com>
Subject: Re: Accessing recent file history
Date: Wed, 04 Jan 2006 22:06:39 +0100	[thread overview]
Message-ID: <m2wthfhfds.fsf@gmail.com> (raw)
In-Reply-To: mailman.21390.1136393858.20277.help-gnu-emacs@gnu.org

Henrik Enberg <henrik.enberg@telia.com> writes:

>> The file history that I see in the File -> Open Recently Visited would
>> be best,
>
> `recentf-list'

Sorry, I was mistaken, I am using session.el and almost forgot
that. Right now, I have two submenus in my File menu: "Open...recently
changed" and "Open...recently visited" and I now know that session
placed them there.

>> but I guess the minibuffer history for `find-file' would work too.
>
> `file-name-history'

Works, thanks!

 (defun my-open-recent-file (fname)
   "Interactively open recently opened file, using `file-name-history' as history"
   (interactive (list (flet ((iswitchb-make-buflist
                              (default)
                              (setq iswitchb-buflist file-name-history)))
                        (iswitchb-read-buffer "Open file: "))))
   (find-file fname))

  parent reply	other threads:[~2006-01-04 21:06 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
     [not found] ` <mailman.21390.1136393858.20277.help-gnu-emacs@gnu.org>
2006-01-04 21:06   ` Mathias Dahl [this message]
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=m2wthfhfds.fsf@gmail.com \
    --to=brakjoller@gmail.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.