From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: read-file-name Date: Tue, 10 Nov 2009 02:55:06 +0200 Organization: JURTA Message-ID: <87skcnjj11.fsf@mail.jurta.org> 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 1257814784 7755 80.91.229.12 (10 Nov 2009 00:59:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 10 Nov 2009 00:59:44 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 10 01:59:37 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 1N7f56-000225-75 for ged-emacs-devel@m.gmane.org; Tue, 10 Nov 2009 01:59:36 +0100 Original-Received: from localhost ([127.0.0.1]:37114 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N7f55-0007PK-RO for ged-emacs-devel@m.gmane.org; Mon, 09 Nov 2009 19:59:35 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N7f3U-0006hD-SM for emacs-devel@gnu.org; Mon, 09 Nov 2009 19:57:56 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N7f3Q-0006ff-BH for emacs-devel@gnu.org; Mon, 09 Nov 2009 19:57:56 -0500 Original-Received: from [199.232.76.173] (port=51920 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N7f3Q-0006fc-67 for emacs-devel@gnu.org; Mon, 09 Nov 2009 19:57:52 -0500 Original-Received: from smtp-out1.starman.ee ([85.253.0.3]:54599 helo=mx1.starman.ee) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N7f3P-0005J1-P3 for emacs-devel@gnu.org; Mon, 09 Nov 2009 19:57:51 -0500 X-Virus-Scanned: by Amavisd-New at mx1.starman.ee Original-Received: from mail.starman.ee (62.65.211.91.cable.starman.ee [62.65.211.91]) by mx1.starman.ee (Postfix) with ESMTP id 1191E3F417E; Tue, 10 Nov 2009 02:57:46 +0200 (EET) In-Reply-To: (Stefan Monnier's message of "Mon, 09 Nov 2009 09:31:14 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (x86_64-pc-linux-gnu) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:116771 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)))) Done. BTW, do you know an Emacs function that does such common subexpression elimination? -- Juri Linkov http://www.jurta.org/emacs/