From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: substitute-in-file-name and "$" Date: Sat, 05 Jul 2003 18:44:18 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: Reply-To: Michael Albinus NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1057423561 32735 80.91.224.249 (5 Jul 2003 16:46:01 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 5 Jul 2003 16:46:01 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sat Jul 05 18:45:59 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19YqAh-0008Vh-00 for ; Sat, 05 Jul 2003 18:45:59 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19YqJT-0006rm-00 for ; Sat, 05 Jul 2003 18:55:15 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19Yq9m-0000Aa-AS for emacs-devel@quimby.gnus.org; Sat, 05 Jul 2003 12:45:02 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19Yq9a-00007g-T8 for emacs-devel@gnu.org; Sat, 05 Jul 2003 12:44:50 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19Yq9Z-0008W6-3t for emacs-devel@gnu.org; Sat, 05 Jul 2003 12:44:49 -0400 Original-Received: from mailrelay3.alcatel.de ([194.113.59.71] helo=mailrelay1.alcatel.de) by monty-python.gnu.org with esmtp (Exim 4.20) id 19Yq9J-0008Bp-Gq for emacs-devel@gnu.org; Sat, 05 Jul 2003 12:44:33 -0400 Original-Received: from slbh00.bln.sel.alcatel.de (mailhost.bln.sel.alcatel.de [149.204.49.8]) by mailrelay1.alcatel.de (8.9.3/8.9.3) with ESMTP id SAA08685 for ; Sat, 5 Jul 2003 18:44:01 +0200 (MET DST) Original-Received: from slbwba.bln.sel.alcatel.de (albinus@slbwba [149.204.93.83]) by slbh00.bln.sel.alcatel.de (8.9.3/8.9.3) with ESMTP id SAA12823 for ; Sat, 5 Jul 2003 18:44:20 +0200 (MET DST) Original-To: emacs-devel@gnu.org User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/20.7 (hpux) X-Alcanet-MTA-scanned-and-authorized: yes X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:15388 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:15388 Hello, In file name operations, the character "$" is masked by "$$" in order to pass substitute-in-file-name handling. Unfortunately, this works only onces, because after the first call of substitute-in-file-name, "$$" reduces to "$". There is no rule that substitute-in-file-name must be called only once. For example, if you use partial-completion-mode, the filename in the minibuffer will be passed through substitute-in-file-name by PC-do-completion. Later file name operations which call internally substitute-in-file-name will fail therefore. This happens permanently in tramp-smb.el, where "$" is a part of file names of default shares. As workaround, I've written a defadvice for PC-do-completion which requotes "$", but this is far from being perfect. Better would be a general solution. What I'ld like to know: Is it a general rule, that substitute-in-file-name can be called only once for a given file name? Then it should be documented in the Elisp manual, and it is a bug in PC-do-completion. Or is it a more general design problem? Best regards, Michael.