From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: read-file-name Date: Mon, 09 Nov 2009 09:31:14 -0500 Message-ID: References: <3b31caf90911051613w80af4cu61352a29ce5dcd77@mail.gmail.com> <87vdhoe73d.fsf@mail.jurta.org> <87y6mkb6qr.fsf@mail.jurta.org> <87bpjfiark.fsf@mail.jurta.org> <87639kt8re.fsf_-_@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1257777120 7915 80.91.229.12 (9 Nov 2009 14:32:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 9 Nov 2009 14:32:00 +0000 (UTC) Cc: emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 09 15:31:53 2009 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 1N7VHc-0007TJ-Ol for ged-emacs-devel@m.gmane.org; Mon, 09 Nov 2009 15:31:53 +0100 Original-Received: from localhost ([127.0.0.1]:34605 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N7VHc-0006Uv-6M for ged-emacs-devel@m.gmane.org; Mon, 09 Nov 2009 09:31:52 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N7VH5-0006HV-Og for emacs-devel@gnu.org; Mon, 09 Nov 2009 09:31:19 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N7VH1-0006Fd-Ki for emacs-devel@gnu.org; Mon, 09 Nov 2009 09:31:19 -0500 Original-Received: from [199.232.76.173] (port=44828 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N7VH1-0006FZ-D1 for emacs-devel@gnu.org; Mon, 09 Nov 2009 09:31:15 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183]:7548 helo=ironport2-out.pppoe.ca) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N7VH1-0005jh-4A for emacs-devel@gnu.org; Mon, 09 Nov 2009 09:31:15 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApsEAK+290pMCpsp/2dsb2JhbACBTttohD4EiRU X-IronPort-AV: E=Sophos;i="4.44,708,1249272000"; d="scan'208";a="48910629" Original-Received: from 76-10-155-41.dsl.teksavvy.com (HELO pastel.home) ([76.10.155.41]) by ironport2-out.pppoe.ca with ESMTP; 09 Nov 2009 09:31:14 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 1F6117F0F; Mon, 9 Nov 2009 09:31:14 -0500 (EST) In-Reply-To: <87639kt8re.fsf_-_@mail.jurta.org> (Juri Linkov's message of "Mon, 09 Nov 2009 12:14:29 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:116746 Archived-At: > All completion functions support a list of default values > except `read-file-name'. The following patch fills this hole. Looks OK, feel free to install it. > ! (if (consp default-filename) > ! (setq default-filename (mapcar 'abbreviate-file-name default-filename)) > ! (setq default-filename (abbreviate-file-name default-filename)))) That should be (setq default-filename (if (consp default-filename) (mapcar 'abbreviate-file-name default-filename) (abbreviate-file-name default-filename)))) -- Stefan