From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.bugs Subject: bug#4592: Bug in built-in function substitute-in-file-name Date: Wed, 30 Sep 2009 11:07:05 +0200 Message-ID: References: <7f5ab920909291737r4b739331v40b9d9ea703ef440@mail.gmail.com> Reply-To: Andreas Schwab , 4592@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1254302876 18348 80.91.229.12 (30 Sep 2009 09:27:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 30 Sep 2009 09:27:56 +0000 (UTC) Cc: 4592@emacsbugs.donarmstrong.com, bug-gnu-emacs@gnu.org To: Mosur Mohan Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 30 11:27:48 2009 Return-path: Envelope-to: geb-bug-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 1MsvTP-0007Fr-Pr for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Sep 2009 11:27:48 +0200 Original-Received: from localhost ([127.0.0.1]:53879 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MsvTP-0005C5-3p for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Sep 2009 05:27:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MsvSt-00054Z-D6 for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2009 05:27:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MsvSo-000538-Tr for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2009 05:27:14 -0400 Original-Received: from [199.232.76.173] (port=41912 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MsvSo-00052y-5B for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2009 05:27:10 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:51338) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MsvSn-0006QE-Iv for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2009 05:27:10 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8U9R7bP010270; Wed, 30 Sep 2009 02:27:07 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n8U9F4DM008269; Wed, 30 Sep 2009 02:15:04 -0700 Resent-Date: Wed, 30 Sep 2009 02:15:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Andreas Schwab Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Wed, 30 Sep 2009 09:15:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4592 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12543017287467 (code B ref -1); Wed, 30 Sep 2009 09:15:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 30 Sep 2009 09:08:48 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8U98l2S007464 for ; Wed, 30 Sep 2009 02:08:48 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MsvB0-00082o-M6 for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2009 05:08:46 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MsvAu-0007wC-TO for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2009 05:08:45 -0400 Original-Received: from [199.232.76.173] (port=47030 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MsvAu-0007vp-Jh for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2009 05:08:40 -0400 Original-Received: from mx1.redhat.com ([209.132.183.28]:56458) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MsvAu-0003gT-2y for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2009 05:08:40 -0400 Original-Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n8U977NM029049; Wed, 30 Sep 2009 05:07:07 -0400 Original-Received: from hase.home (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx04.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n8U975Rh013045; Wed, 30 Sep 2009 05:07:06 -0400 X-Yow: Okay.. I'm going home to write the ``I HATE RUBIK's CUBE HANDBOOK FOR DEAD CAT LOVERS''.. In-Reply-To: <7f5ab920909291737r4b739331v40b9d9ea703ef440@mail.gmail.com> (Mosur Mohan's message of "Tue, 29 Sep 2009 17:37:26 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) X-Scanned-By: MIMEDefang 2.67 on 10.5.11.17 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Wed, 30 Sep 2009 05:27:14 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:31594 Archived-At: Mosur Mohan writes: > When I start up Emacs, I go to the *scratch* buffer and eval > (substitute-in-file-name "/~/") > and I get the expected result > "~/" > > After running for a while, I notice that filename completion starts > giving errors. At this point, I re-try the above experiment: > (substitute-in-file-name "/~/") > But now, I get: > "/~/" > > I am not able to figure out what happened in between to make it stop > working correctly. What does (find-file-name-handler "/~/" 'substitute-in-file-name) return? Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."