From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas =?iso-8859-1?q?R=F6hler?= Newsgroups: gmane.emacs.devel Subject: Re: define-abbrev Date: Tue, 30 Oct 2007 12:20:37 +0100 Message-ID: <200710301220.38394.andreas.roehler@online.de> References: <200710281521.17888.andreas.roehler@online.de> <200710291834.14524.andreas.roehler@online.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1193743192 32125 80.91.229.12 (30 Oct 2007 11:19:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Oct 2007 11:19:52 +0000 (UTC) Cc: Stefan Monnier , Richard Stallman To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 30 12:19:54 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 1Imp8P-0006rs-2Z for ged-emacs-devel@m.gmane.org; Tue, 30 Oct 2007 12:19:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Imp8F-0001F4-KG for ged-emacs-devel@m.gmane.org; Tue, 30 Oct 2007 07:19:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Imp8B-0001Es-Sx for emacs-devel@gnu.org; Tue, 30 Oct 2007 07:19:35 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Imp8A-0001Ef-6a for emacs-devel@gnu.org; Tue, 30 Oct 2007 07:19:35 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Imp89-0001Ec-Vw for emacs-devel@gnu.org; Tue, 30 Oct 2007 07:19:34 -0400 Original-Received: from moutng.kundenserver.de ([212.227.126.177]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Imp84-0003fJ-HX; Tue, 30 Oct 2007 07:19:28 -0400 Original-Received: from noname (p54BEA31B.dip0.t-ipconnect.de [84.190.163.27]) by mrelayeu.kundenserver.de (node=mrelayeu8) with ESMTP (Nemesis) id 0ML31I-1Imp801UQT-0003Se; Tue, 30 Oct 2007 12:19:25 +0100 User-Agent: KMail/1.9.5 In-Reply-To: Content-Disposition: inline X-Provags-ID: V01U2FsdGVkX18b5TTwRgkmzJm4t/z2kYzdRmgx1pRN0XAljfM DQ5LE9a7EuR6XvM4K1n8sqajpI38EF6jNboznox5GVIAZileGr 9TEVTWYiICb/1pJdeyiZA== X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) 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:82135 Am Montag, 29. Oktober 2007 21:57 schrieb Stefan Monnier: > > emacs -q > > cursor after "Welcome" at startscreen > > M-x add-global-abbrev wo RET > > M-x edit-abbrevs > > Kill just inserted line "wo" 0 "Welcome" > > C-c C-c > > then described error occurs. > > apply: Wrong type argument: number-or-marker-p, nil > > Hmm... works fine for me. Can you try it with "emacs -Q" (in case it > depends on some change in your site-init file(s))? > > > Stefan > > 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)))) BTW having a closer look at the code, I see abbrevs still downcased. What means, I still can't have different abbrevs "Te" "te" "tE" "TE". So for me the whole issue isn't tackled. Can you tell me an example where this downcasing is useful, why it's introduced once? Why not simply render a string as is?: genannt London Bridge M-x 3 add-mode-abbrev is called London Bridge =46or me both GNU and Xemacs abbrev.c codes look much simpler than new abbrev.el. I'd prefer little changes there than having a complete new thing. Gr=FC=DFe Andreas R=F6hler