From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mosur Mohan Newsgroups: gmane.emacs.bugs Subject: bug#4592: Bug in built-in function substitute-in-file-name Date: Tue, 29 Sep 2009 17:37:26 -0700 Message-ID: <7f5ab920909291737r4b739331v40b9d9ea703ef440@mail.gmail.com> Reply-To: Mosur Mohan , 4592@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1254283028 31222 80.91.229.12 (30 Sep 2009 03:57:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 30 Sep 2009 03:57:08 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 30 05:57:01 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 1MsqJI-0008GR-A8 for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Sep 2009 05:57:01 +0200 Original-Received: from localhost ([127.0.0.1]:52227 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MsqJH-0008CL-KT for geb-bug-gnu-emacs@m.gmane.org; Tue, 29 Sep 2009 23:56:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MsnLf-0002h1-Iv for bug-gnu-emacs@gnu.org; Tue, 29 Sep 2009 20:47:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MsnLa-0002Xd-E6 for bug-gnu-emacs@gnu.org; Tue, 29 Sep 2009 20:47:14 -0400 Original-Received: from [199.232.76.173] (port=40089 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MsnLa-0002XO-AU for bug-gnu-emacs@gnu.org; Tue, 29 Sep 2009 20:47:10 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:37224) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MsnLZ-0006ZI-L6 for bug-gnu-emacs@gnu.org; Tue, 29 Sep 2009 20:47: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 n8U0l7WS031666; Tue, 29 Sep 2009 17:47:07 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n8U0j47R031085; Tue, 29 Sep 2009 17:45:04 -0700 Resent-Date: Tue, 29 Sep 2009 17:45:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Mosur Mohan Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Wed, 30 Sep 2009 00:45:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 4592 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.125427105530282 (code B ref -1); Wed, 30 Sep 2009 00:45:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 30 Sep 2009 00:37:35 +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 n8U0bYi3030279 for ; Tue, 29 Sep 2009 17:37:35 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MsnCH-0001B3-L2 for bug-gnu-emacs@gnu.org; Tue, 29 Sep 2009 20:37:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MsnCC-00010B-Cd for bug-gnu-emacs@gnu.org; Tue, 29 Sep 2009 20:37:32 -0400 Original-Received: from [199.232.76.173] (port=42634 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MsnCC-0000zi-5r for bug-gnu-emacs@gnu.org; Tue, 29 Sep 2009 20:37:28 -0400 Original-Received: from mail-qy0-f196.google.com ([209.85.221.196]:48458) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MsnCB-0005RP-PV for bug-gnu-emacs@gnu.org; Tue, 29 Sep 2009 20:37:27 -0400 Original-Received: by qyk34 with SMTP id 34so4530805qyk.14 for ; Tue, 29 Sep 2009 17:37:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=E3aN/H4jKzTgwnovG7e4Yzmj0zWyR66MoQpvYt6bAL8=; b=mmQi+RhAI9N76PDI/8LPFH1kH/JA+WMVB58A7Sn0uHVjRdrMaVVJRdPdLabhoCWUF1 PIYGkQeZSGHTj2fHXCOLWdPoi0mLyoWdvHM21FBnaQX6ZnyvufLIOw0BqQqr2V0S+Nub HtuHQHLeKvp5Jn4kLInh9YunwAENv/aoXLllQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=aBb02sC5JJKZyN9K4UYH9GnpZEiBCGKkBOfzIJ+741Th7963ORLUgWHsHldwUtuXGt fF24a7d1cW85GfekVklI0OPc/PTCQT/uCCVJOQD6eJ2Ju356dLKsY4WvxgOrpT/3Hkrw VwlchhUtnU86sJrKAOg6X0d3GotMhnpEqVBOs= Original-Received: by 10.224.63.202 with SMTP id c10mr4767857qai.39.1254271046916; Tue, 29 Sep 2009 17:37:26 -0700 (PDT) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Tue, 29 Sep 2009 20:47:14 -0400 X-Mailman-Approved-At: Tue, 29 Sep 2009 23:56:22 -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:31588 Archived-At: I am running Emacs version 21.3 on a Linux x86_64 machine. 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. A search for "substitute-in-file-name" in bug.gnu.emacs didn't turn up anything relevant to this problem. I narrowed the problem down to substitute-in-file-name after some debugging. Here's the sequence: In the recently launched Emacs session, while editing a file, I type C-x C-f to open another file. In the minibuffer, I see the prompt "~/DesignDB/" (my current working directory) I type "~/Al" so that the minibuffer now reads "~/DesignDB/~/Al" I hit to do completion on ~/Al The minibuffer changes to "~/Alps/", which is correct. In the older Emacs session where I see the problem, I carry out the same sequence. With the minibuffer reading "~/DesignDB/~/Al", I hit The minibuffer shows this message: "Opening directory: no such file or directory, /nfs/pdx/home/mmohan/DesignDB/~*/Al" The *Messages* window contains this message: read-file-name-internal: Opening directory: no such file or directory, /nfs/pdx/home/mmohan/DesignDB/~*/ I debugged this difference in complete.el and ffap.el until I reached the above discrepancy in the behavior of built-in function substitute-in-file-name. I was then able to make the 2 sessions exhibit the difference with the minimal arg "/~/" to the function. Hope that is sufficient info. Thanks, -- Mosur Mohan