From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: define-abbrev Date: Tue, 30 Oct 2007 15:11:51 -0400 Message-ID: References: <200710281521.17888.andreas.roehler@online.de> <200710291834.14524.andreas.roehler@online.de> <200710301220.38394.andreas.roehler@online.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1193771531 13317 80.91.229.12 (30 Oct 2007 19:12:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Oct 2007 19:12:11 +0000 (UTC) Cc: Richard Stallman , emacs-devel@gnu.org To: Andreas =?iso-8859-1?Q?R=F6hler?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 30 20:12:13 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 1ImwVZ-0005xK-19 for ged-emacs-devel@m.gmane.org; Tue, 30 Oct 2007 20:12:13 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ImwVP-0003KM-Ef for ged-emacs-devel@m.gmane.org; Tue, 30 Oct 2007 15:12:03 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ImwVJ-0003I1-W2 for emacs-devel@gnu.org; Tue, 30 Oct 2007 15:11:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ImwVI-0003FZ-1w for emacs-devel@gnu.org; Tue, 30 Oct 2007 15:11:57 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ImwVH-0003F7-NW for emacs-devel@gnu.org; Tue, 30 Oct 2007 15:11:55 -0400 Original-Received: from x-132-204-242-121.xtpr.umontreal.ca ([132.204.242.121] helo=ceviche.home) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1ImwVF-0001tW-6Z; Tue, 30 Oct 2007 15:11:53 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 3F6B1B4ABE; Tue, 30 Oct 2007 15:11:50 -0400 (EDT) In-Reply-To: <200710301220.38394.andreas.roehler@online.de> ("Andreas =?iso-8859-1?Q?R=F6hler=22's?= message of "Tue, 30 Oct 2007 12:20:37 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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:82151 Archived-At: > With emacs -Q sometimes it's gone, sometimes > not. Strange enough: with -q sometimes also. Maybe the > daylight or the moon have influence too? :) > Error occurs at nearly the last line 898 > (apply 'define-abbrev table elt)))) I'm pretty sure I know where the error is signalled and how to fix this symptom, but depending on the cause the real fix might be conmpletely different, and the cause is elsewhere (the problem seems to be that you're somehow using an abbrev-table that was not created by make-abbrev-table). > BTW having a closer look at the code, I see abbrevs > still downcased. The behavior of abbrevs is not supposed to have changed *at all*. If you look at the patch I installed, it only changes doc/lispref/abbrevs.texi, but not doc/emacs/abbrevs.texi. If you want case-fixed abbrevs, then you need to specify it in elisp: there is currently no command to do that. The way to specify it is to pass ":case-fixed t" to define-abbrev. I'll let other people take care of such UI-level issues because I do not use abbrevs in this way at all, so I have no idea what would be convenient and what would be insufferable. > Can you tell me an example where this downcasing is > useful, why it's introduced once? No idea. I just preserved the old behavior. > For me both GNU and Xemacs abbrev.c codes look much > simpler than new abbrev.el. Tell me which part is too complex, and I may be able to help you understand it (and add relevant comments in the code as I do that). Stefan