all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: <help-gnu-emacs@gnu.org>
Subject: RE: More convenient editing of recentf files
Date: Sun, 15 Mar 2009 16:02:44 -0700	[thread overview]
Message-ID: <005401c9a5c2$26f5c810$0200a8c0@us.oracle.com> (raw)
In-Reply-To: <004d01c9a5c0$d989a430$0200a8c0@us.oracle.com>

I said:

> Within the loop, call `completing-read' against
> `recentf-list'. E.g.:
> ...
>  (progn
>    (unless (boundp 'recentf-list)(require 'recentf))
>    (when (fboundp 'recentf-mode) (recentf-mode 99))
>    (unless (consp recentf-list)
>       (error "No recently accessed files"))
>         recentf-list))

Obviously, if you choose this approach, you would want to move the recentf tests
outside the loop.

I wanted to also show how defining an Icicles multi-command mirrors defining an
ordinary command that calls `completing-read'. (In Icicles there is no loop -
just a single call to `completing-read'.)





  reply	other threads:[~2009-03-15 23:02 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-15 18:42 More convenient editing of recentf files B. T. Raven
2009-03-15 19:47 ` Lennart Borgman
2009-03-15 22:53 ` Drew Adams
2009-03-15 23:02   ` Drew Adams [this message]
     [not found] ` <mailman.3262.1237146438.31690.help-gnu-emacs@gnu.org>
2009-03-15 23:01   ` B. T. Raven
     [not found] ` <mailman.3269.1237157595.31690.help-gnu-emacs@gnu.org>
2009-03-16  1:09   ` B. T. Raven
2009-03-16  3:24     ` Drew Adams

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='005401c9a5c2$26f5c810$0200a8c0@us.oracle.com' \
    --to=drew.adams@oracle.com \
    --cc=help-gnu-emacs@gnu.org \
    /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.