From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Hansen Newsgroups: gmane.emacs.devel Subject: Re: char syntax of the $ in $var Date: Wed, 23 Mar 2005 01:43:32 +0100 Organization: disorganized Message-ID: <87k6nz2nuz.fsf@robotron.ath.cx> References: <87oedb2sh4.fsf@robotron.ath.cx> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1111540070 12982 80.91.229.2 (23 Mar 2005 01:07:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 23 Mar 2005 01:07:50 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 23 02:07:50 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DDuLZ-0001KB-V0 for ged-emacs-devel@m.gmane.org; Wed, 23 Mar 2005 02:07:46 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DDuTf-0002Qk-9v for ged-emacs-devel@m.gmane.org; Tue, 22 Mar 2005 20:16:07 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DDuSi-00027w-Jh for emacs-devel@gnu.org; Tue, 22 Mar 2005 20:15:08 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DDuSc-00022w-4T for emacs-devel@gnu.org; Tue, 22 Mar 2005 20:15:03 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DDuSa-00021y-IT for emacs-devel@gnu.org; Tue, 22 Mar 2005 20:15:00 -0500 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1DDu8l-0007a6-2J for emacs-devel@gnu.org; Tue, 22 Mar 2005 19:54:31 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1DDu5y-000869-TW for emacs-devel@gnu.org; Wed, 23 Mar 2005 01:51:38 +0100 Original-Received: from pd95d043b.dip.t-dialin.net ([217.93.4.59]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 23 Mar 2005 01:51:38 +0100 Original-Received: from david.hansen by pd95d043b.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 23 Mar 2005 01:51:38 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-To: emacs-devel@gnu.org Original-Lines: 22 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: pd95d043b.dip.t-dialin.net Mail-Copies-To: nobody User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:0kK9qjyWSp17uEqoncVUh42M/LA= 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 X-MailScanner-To: ged-emacs-devel@m.gmane.org Xref: news.gmane.org gmane.emacs.devel:35017 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:35017 On Wed, 23 Mar 2005 09:05:18 +0900 Miles Bader wrote: > On Wed, 23 Mar 2005 00:03:51 +0100, David Hansen wrote: >> in sh-mode: the $ in $test has syntax 2 = word in perl-mode >> syntax 10 = character quote and in cperl-mode it's 9 = escape. >> > In sh, the $ is not really part of the name, so having emacs > think it is can be quite annoying (the case that drives me nuts > is that dynamic-abbrev won't complete `$FO' based on a previous > `FOO_BAR=...'); this argues for giving the $ a non-word syntax. Sounds reasonable. > In perl, on the other hand, the $ is treated much more as if > it's actually part of the variable name (e.g., you write `$foo > = 3'), so giving the $ word syntax might the right thing to do > for perl. You'll run into the same completion problems with e.g %foo and $foo{'bar'}. So probably all non-word syntax... David