From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tak Ota Newsgroups: gmane.emacs.devel Subject: recentf ignores directory Date: Mon, 8 Dec 2008 18:43:36 -0800 Organization: Sony Electronics Inc. Message-ID: <20081208.184336.84301573.Takaaki.Ota@am.sony.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 1228790643 28101 80.91.229.12 (9 Dec 2008 02:44:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Dec 2008 02:44:03 +0000 (UTC) To: david@dponce.com, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 09 03:45:07 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L9saw-0003Gg-0C for ged-emacs-devel@m.gmane.org; Tue, 09 Dec 2008 03:45:06 +0100 Original-Received: from localhost ([127.0.0.1]:54891 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L9sZk-0000Y9-FP for ged-emacs-devel@m.gmane.org; Mon, 08 Dec 2008 21:43:52 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L9sZg-0000XZ-0g for emacs-devel@gnu.org; Mon, 08 Dec 2008 21:43:48 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L9sZd-0000UU-GX for emacs-devel@gnu.org; Mon, 08 Dec 2008 21:43:46 -0500 Original-Received: from [199.232.76.173] (port=57459 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L9sZd-0000UP-45 for emacs-devel@gnu.org; Mon, 08 Dec 2008 21:43:45 -0500 Original-Received: from outbound-sin.frontbridge.com ([207.46.51.80]:25808 helo=SG2EHSOBE003.bigfish.com) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_ARCFOUR_MD5:16) (Exim 4.60) (envelope-from ) id 1L9sZc-0002Bp-Nu for emacs-devel@gnu.org; Mon, 08 Dec 2008 21:43:45 -0500 Original-Received: from mail187-sin-R.bigfish.com (10.3.40.3) by SG2EHSOBE003.bigfish.com (10.3.40.23) with Microsoft SMTP Server id 8.1.291.1; Tue, 9 Dec 2008 02:43:41 +0000 Original-Received: from mail187-sin (localhost.localdomain [127.0.0.1]) by mail187-sin-R.bigfish.com (Postfix) with ESMTP id 91919888124; Tue, 9 Dec 2008 02:43:40 +0000 (UTC) X-BigFish: VPS4(z33fclzzzzzz2fh6bh65h) X-Spam-TCS-SCL: 4:0 Original-Received: by mail187-sin (MessageSwitch) id 1228790619737050_12267; Tue, 9 Dec 2008 02:43:39 +0000 (UCT) Original-Received: from mail8.fw-bc.sony.com (mail8.fw-bc.sony.com [160.33.98.75]) by mail187-sin.bigfish.com (Postfix) with ESMTP id 34586146006C; Tue, 9 Dec 2008 02:43:38 +0000 (UTC) Original-Received: from mail3.sjc.in.sel.sony.com (mail3.sjc.in.sel.sony.com [43.134.1.211]) by mail8.fw-bc.sony.com (8.14.2/8.14.2) with ESMTP id mB92hbuL005035; Tue, 9 Dec 2008 02:43:37 GMT Original-Received: from localhost (tak-vaio-sz270p-043191015152.am.sony.com [43.191.15.152]) by mail3.sjc.in.sel.sony.com (8.12.11/8.12.11) with ESMTP id mB92haQp006204; Tue, 9 Dec 2008 02:43:36 GMT X-Telephone: +1-858-942-3239 X-Fax------: +1-858-942-9142 X-SnailMail: 16530 Via Esprillo, MZ7205, San Diego, CA 92127 X-Mailer: Mew-6.2rc1 on Emacs-23.0.60.1 (i386-mingw-nt5.1.2600 built on 2008-12-02) X-SEL-encryption-scan: scanned X-detected-operating-system: by monty-python.gnu.org: Windows 2000 SP4, XP SP1+ X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:106701 Archived-At: I don't find a way to customize recentf to remember opened directory names as well as file names. So I have the following customization in my .emacs. Don't you think it is generally useful if the recentf remembers directory names as well? (defun recentf-track-opened-directory (dir) "Insert the name of the directory just opened into the recent list." (recentf-add-file dir) nil) (add-to-list 'recentf-used-hooks '(find-directory-functions recentf-track-opened-directory)) -Tak I don't subscribe to the emacs-devel list so please include the address explicitly for the correspondence.