From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.help Subject: Re: recentf: abbreviate paths? tilde for home folder? Date: Tue, 02 Aug 2005 20:47:06 +0200 Organization: Dept. of Theoretical Physics, University of Ulm Message-ID: References: Reply-To: Reiner Steib NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1123008510 25329 80.91.229.2 (2 Aug 2005 18:48:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 2 Aug 2005 18:48:30 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Aug 02 20:48:25 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E01nV-00064I-Ln for geh-help-gnu-emacs@m.gmane.org; Tue, 02 Aug 2005 20:47:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E01qD-0001Xo-VO for geh-help-gnu-emacs@m.gmane.org; Tue, 02 Aug 2005 14:50:17 -0400 Original-Newsgroups: gnu.emacs.help X-Face: 1; h7XMU[7l}$T@J.D}5z*w8Tg'}B5ArAWc8>2X~otB; kOjKs8X%|hTC#dG:%Vpx")x7S/`v :VXU#fZW$X$zdhEU.RfVQ@<-m9IuN{Hm"fW{,5]6kR'M*vEs+{5Cj!L(JTRzA$(},?5J=sm; %Od 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:28360 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:28360 On Tue, Aug 02 2005, Kevin Rodgers wrote: > Reiner Steib wrote: [...] > > (defun rs-recentf-filename-handler (name) > > (replace-regexp-in-string (concat "\\`" (expand-file-name "~")) "~" > name)) > > (setq recentf-filename-handler 'rs-recentf-filename-handler) > > Why not just (setq recentf-filename-handler 'abbreviate-file-name) Thanks for pointing this out. I think `abbreviate-file-name' should be added as a choice in the defcustom of `recentf-filename-handler'. [ BTW: Emacs 21 doesn't offer `recentf-filename-handler' so it might not be useful for David. ] Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/