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: More convenient editing of recentf files Date: Sun, 15 Mar 2009 16:02:44 -0700 Message-ID: <005401c9a5c2$26f5c810$0200a8c0@us.oracle.com> References: <-P2dnR3ZpK8hoCDUnZ2dnUVZ_sudnZ2d@posted.cpinternet> <004d01c9a5c0$d989a430$0200a8c0@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1237158189 30601 80.91.229.12 (15 Mar 2009 23:03:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 15 Mar 2009 23:03:09 +0000 (UTC) To: Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 16 00:04:26 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LizNV-0004Go-7B for geh-help-gnu-emacs@m.gmane.org; Mon, 16 Mar 2009 00:04:21 +0100 Original-Received: from localhost ([127.0.0.1]:37486 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LizM9-0002Tl-34 for geh-help-gnu-emacs@m.gmane.org; Sun, 15 Mar 2009 19:02:57 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LizLm-0002TY-O9 for help-gnu-emacs@gnu.org; Sun, 15 Mar 2009 19:02:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LizLh-0002R9-D6 for help-gnu-emacs@gnu.org; Sun, 15 Mar 2009 19:02:33 -0400 Original-Received: from [199.232.76.173] (port=49294 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LizLh-0002R6-5m for help-gnu-emacs@gnu.org; Sun, 15 Mar 2009 19:02:29 -0400 Original-Received: from acsinet12.oracle.com ([141.146.126.234]:22683) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LizLg-0004ls-IS for help-gnu-emacs@gnu.org; Sun, 15 Mar 2009 19:02:28 -0400 Original-Received: from rgminet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by acsinet12.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n2FN26UG028725 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 15 Mar 2009 23:02:07 GMT Original-Received: from acsmt703.oracle.com (acsmt703.oracle.com [141.146.40.81]) by rgminet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n2FN2QdF008113 for ; Sun, 15 Mar 2009 23:02:27 GMT Original-Received: from dradamslap1 (/24.4.133.20) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 15 Mar 2009 23:02:21 +0000 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <004d01c9a5c0$d989a430$0200a8c0@us.oracle.com> Thread-Index: AcmlnarBnQCmpaWLSV6tRg1ATKlWFAAB3K4gAAcOrRA= X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 X-Source-IP: acsmt703.oracle.com [141.146.40.81] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A01020A.49BD88FF.018C:SCFSTAT928724,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) 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:62959 Archived-At: 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'.)