From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.emacs.bugs Subject: bug#5808: 23.1; substitute-in-file-name $NOSUCH vs ${NOSUCH} Date: Wed, 31 Mar 2010 11:18:39 +1100 Message-ID: <87ljd9cpi8.fsf@blah.blah> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1269995171 9769 80.91.229.12 (31 Mar 2010 00:26:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 31 Mar 2010 00:26:11 +0000 (UTC) To: 5808@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Mar 31 02:26:07 2010 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.69) (envelope-from ) id 1Nwlky-0003pS-UM for geb-bug-gnu-emacs@m.gmane.org; Wed, 31 Mar 2010 02:26:05 +0200 Original-Received: from localhost ([127.0.0.1]:35132 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nwlky-0006cD-8r for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Mar 2010 20:26:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nwlkj-0006UE-1o for bug-gnu-emacs@gnu.org; Tue, 30 Mar 2010 20:25:49 -0400 Original-Received: from [140.186.70.92] (port=45053 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nwlkh-0006TC-MH for bug-gnu-emacs@gnu.org; Tue, 30 Mar 2010 20:25:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nwlkb-0005HO-Nf for bug-gnu-emacs@gnu.org; Tue, 30 Mar 2010 20:25:47 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46973) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nwlkb-0005HK-Lk for bug-gnu-emacs@gnu.org; Tue, 30 Mar 2010 20:25:41 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NwleA-00017S-1q; Tue, 30 Mar 2010 20:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Kevin Ryde Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 31 Mar 2010 00:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 5808 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.12699947314294 (code B ref -1); Wed, 31 Mar 2010 00:19:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 31 Mar 2010 00:18:51 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nwldy-00017D-Hi for submit@debbugs.gnu.org; Tue, 30 Mar 2010 20:18:50 -0400 Original-Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nwldx-000178-3a for submit@debbugs.gnu.org; Tue, 30 Mar 2010 20:18:49 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:36433) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Nwldt-00019M-5c for submit@debbugs.gnu.org; Tue, 30 Mar 2010 20:18:45 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nwlds-0003KC-K7 for bug-gnu-emacs@gnu.org; Tue, 30 Mar 2010 20:18:44 -0400 Original-Received: from [140.186.70.92] (port=50354 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nwldq-0003Jj-85 for bug-gnu-emacs@gnu.org; Tue, 30 Mar 2010 20:18:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nwldo-0004Vp-BK for bug-gnu-emacs@gnu.org; Tue, 30 Mar 2010 20:18:42 -0400 Original-Received: from mailout2-3.pacific.net.au ([61.8.2.226]:34106 helo=mailout2.pacific.net.au) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nwldo-0004VV-1g for bug-gnu-emacs@gnu.org; Tue, 30 Mar 2010 20:18:40 -0400 Original-Received: from mailproxy1.pacific.net.au (mailproxy1.pacific.net.au [61.8.2.162]) by mailout2.pacific.net.au (Postfix) with ESMTP id CF0481B7E0E for ; Wed, 31 Mar 2010 11:18:35 +1100 (EST) Original-Received: from blah.blah (ppp2AAA.dyn.pacific.net.au [61.8.42.170]) by mailproxy1.pacific.net.au (Postfix) with ESMTP id AD87A8C4D for ; Wed, 31 Mar 2010 11:18:34 +1100 (EST) Original-Received: from gg by blah.blah with local (Exim 4.71) (envelope-from ) id 1Nwldo-00032n-01 for bug-gnu-emacs@gnu.org; Wed, 31 Mar 2010 11:18:40 +1100 User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 30 Mar 2010 20:19:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org 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:35829 Archived-At: Evaluating (substitute-in-file-name "$NOSUCHVAR") => "$NOSUCHVAR but (substitute-in-file-name "${NOSUCHVAR}") => error Substituting nonexistent environment variable "NOSUCHVAR" whereas I thought the two ways of writing a variable would be treated the same. I'm not sure if this is a bug or a feature. I see they were both errors in Emacs 21, but that 22 up forgives the first. If a feature then it'd be good if the docstring had a note explaining the difference. I'd used then first and then got bitten from the second throwing an error. The docstring might also note unpaired braces are an error (substitute-in-file-name "${HOME") => error primarily in the interests of knowing what circumstances you might have to condition-case or ignore-errors. In GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.16.5) of 2009-09-14 on raven, modified by Debian configured using `configure '--build=i486-linux-gnu' '--host=i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs23:/etc/emacs:/usr/local/share/emacs/23.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.1/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/23.1/leim' '--with-x=yes' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -g -O2' 'LDFLAGS=-g' 'CPPFLAGS='' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_AU value of $XMODIFIERS: nil locale-coding-system: iso-latin-1-unix default-enable-multibyte-characters: t