From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Davis Herring" Newsgroups: gmane.emacs.devel Subject: Re: Abbrev should preserve case Date: Wed, 20 Jun 2007 20:47:39 -0700 (PDT) Message-ID: <29696.128.165.0.81.1182397659.squirrel@webmail.lanl.gov> References: <200706201948.06271.andreas.roehler@online.de> <4nvedib77v.fsf@fencepost.gnu.org> Reply-To: herring@lanl.gov NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1182397679 5222 80.91.229.12 (21 Jun 2007 03:47:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 21 Jun 2007 03:47:59 +0000 (UTC) Cc: Andreas =?iso-8859-1?Q?R=F6hler?= , emacs-devel@gnu.org To: "Glenn Morris" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 21 05:47:56 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1I1DeF-00035D-FI for ged-emacs-devel@m.gmane.org; Thu, 21 Jun 2007 05:47:55 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I1DeE-000848-RR for ged-emacs-devel@m.gmane.org; Wed, 20 Jun 2007 23:47:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I1DeA-00080S-VM for emacs-devel@gnu.org; Wed, 20 Jun 2007 23:47:51 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I1DeA-000801-Cs for emacs-devel@gnu.org; Wed, 20 Jun 2007 23:47:50 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I1DeA-0007zy-7t for emacs-devel@gnu.org; Wed, 20 Jun 2007 23:47:50 -0400 Original-Received: from mailwasher.lanl.gov ([192.65.95.54] helo=mailwasher-b.lanl.gov) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I1De8-0004si-PP; Wed, 20 Jun 2007 23:47:49 -0400 Original-Received: from mailrelay1.lanl.gov (mailrelay1.lanl.gov [128.165.4.101]) by mailwasher-b.lanl.gov (8.13.8/8.13.6/(ccn-5)) with ESMTP id l5L3le6r019772; Wed, 20 Jun 2007 21:47:41 -0600 Original-Received: from webmail1.lanl.gov (webmail1.lanl.gov [128.165.4.106]) by mailrelay1.lanl.gov (8.13.8/8.13.8/(ccn-5)) with ESMTP id l5L3lebN011609; Wed, 20 Jun 2007 21:47:40 -0600 Original-Received: from webmail1.lanl.gov (localhost.localdomain [127.0.0.1]) by webmail1.lanl.gov (8.12.11.20060308/8.12.11) with ESMTP id l5L3lefV022905; Wed, 20 Jun 2007 21:47:40 -0600 Original-Received: (from apache@localhost) by webmail1.lanl.gov (8.12.11.20060308/8.12.11/Submit) id l5L3ldRZ022903; Wed, 20 Jun 2007 20:47:39 -0700 X-Authentication-Warning: webmail1.lanl.gov: apache set sender to herring@lanl.gov using -f Original-Received: from 128.165.0.81 (SquirrelMail authenticated user 196434) by webmail.lanl.gov with HTTP; Wed, 20 Jun 2007 20:47:39 -0700 (PDT) In-Reply-To: <4nvedib77v.fsf@fencepost.gnu.org> User-Agent: SquirrelMail/1.4.8-6.el3.2lanl X-Priority: 3 (Normal) Importance: Normal X-PMX-Version: 4.7.1.128075 X-CTN-5-MailScanner-Information: Please see http://network.lanl.gov/email/virus-scan.php X-CTN-5-MailScanner: Found to be clean X-CTN-5-MailScanner-From: herring@lanl.gov X-detected-kernel: Linux 2.4-2.6 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 Xref: news.gmane.org gmane.emacs.devel:73491 Archived-At: > How would you tell the difference between `FOO' meaning "expand to the > upper-case expansion of `foo'" (as it works now), and `FOO' a totally > separate abbreviation? I guess you could try a case-insensitive match > first, then a case-sensitive one if it fails. This would mean that > `FOO' could expand to something different than `foo' only if `foo' > were not defined as an abbrev. Seems a bit complex though. Surely you mean do a case-sensitive search first and then insensitive? Obviously the sensitive one can't work if the insensitive one fails. Then you go on to say that "FOO" could only be -different- if there is nothing than which to be different; instead we want to say "`FOO' can only expand as upcased `foo' if `FOO' is not its own abbrev", right? I'm not trying to be needlessly pedantic; rather I think what you probably meant to say made significantly more sense as a path forward than what you did say and so deserves consideration. Davis -- This product is sold by volume, not by mass. If it appears too dense or too sparse, it is because mass-energy conversion has occurred during shipping.