From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.bugs Subject: Re: bug in auto-capitalize.el Date: Wed, 08 Sep 2004 16:15:50 -0600 Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <413F8496.4070402@yahoo.com> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1094681771 22874 80.91.224.253 (8 Sep 2004 22:16:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 8 Sep 2004 22:16:11 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 09 00:16:03 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1C5AjT-0008F3-00 for ; Thu, 09 Sep 2004 00:16:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C5Aol-00058Z-78 for geb-bug-gnu-emacs@m.gmane.org; Wed, 08 Sep 2004 18:21:31 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C5Aoj-00058A-BD for bug-gnu-emacs@gnu.org; Wed, 08 Sep 2004 18:21:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C5Aoh-00057q-OQ for bug-gnu-emacs@gnu.org; Wed, 08 Sep 2004 18:21:29 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C5Aoh-00057g-LD for bug-gnu-emacs@gnu.org; Wed, 08 Sep 2004 18:21:27 -0400 Original-Received: from [193.4.58.12] (helo=horus.isnic.is) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1C5AjI-0004Vh-1l for bug-gnu-emacs@gnu.org; Wed, 08 Sep 2004 18:15:52 -0400 Original-Received: from Mail.FU-Berlin.DE (mail.fu-berlin.de [130.133.1.2]) by horus.isnic.is (8.12.9p2/8.12.9/isnic) with ESMTP id i88MFomC044792 for ; Wed, 8 Sep 2004 22:15:50 GMT (envelope-from mod-submit@uni-berlin.de) Original-Received: by Mail.FU-Berlin.DE (Exim 4.42) from curry.zedat.fu-berlin.de ([160.45.10.36]) for gnu-emacs-bug@moderators.isc.org with esmtp id <1C5AjG-000Ntr-0f>; Thu, 09 Sep 2004 00:15:50 +0200 Original-Received: by Curry.ZEDAT.FU-Berlin.DE (Smail3.2.0.98) from news.uni-berlin.de with bsmtp id ; Thu, 9 Sep 2004 00:15:49 +0200 (MEST) Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Followup-To: poster Original-Lines: 71 X-Orig-X-Trace: news.uni-berlin.de EmESW4QwsXdyFxUffr1M5gASu/qZctYfGWDueneujLlwS/+Zo= User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 X-Accept-Language: en-us X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:8972 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:8972 Norman Werner wrote: > The following mail is from the original bug report to the maintainer > of auto-capitalize.el kevinr@ihs.com > > Unfortunately the mail could not be delivered : > > SMTP error from remote mailer after RCPT TO:: > host mail1.ihs.com [170.207.70.222]: 553 5.7.1 > ... norman.werner@student.uni-magdeburg.de not > allowed to send to recipient > > Since I could not contact the maintainer directly I am now writing to > your address Please don't bother the Emacs maintainers with something they are not responsible for. If you had taken even a minute to search for me via my name (on e.g. http://groups.google.com/) you would have found my current address: . > -------Beginning of Message ------------ > > > I experienced what I think is a bug in auto-capitalize. > > On (gnu)emacs 21.3.1 event-to-character is called with 4 arguments while a > maximum of 2 is allowed. So the debugger is entered. > > I think the offending code is in defun auto-capitalize: > .... > (let ((self-insert-char > (cond ((fboundp 'event-to-character) ; XEmacs > (event-to-character last-command-event > nil nil t)) > (t last-command-event)))) ; GNU Emacs > ... > > The comments indicates that you think that event-to-character is > unbound in gnu-emacs. But it exists as a function of one (optional two > arguments.) No, it doesn't exist at all in GNU Emacs 21.3. You can confirm that by invoking emacs with the -q and --no-site-file command line options, and typing `C-h v event-to-character'. You must be loading some kind of XEmacs compatibility package that is ironically incompatible with XEmacs. > I propose the fixes : > (let ((self-insert-char > (cond ((featurep 'xemacs) ; XEmacs > (event-to-character last-command-event > nil nil t)) > (t last-command-event)))) ; GNU Emacs > Or > > (let ((self-insert-char > (cond ((featurep 'xemacs) ; XEmacs > (event-to-character last-command-event > nil nil t)) > (t (event-to-character last-command-event))))) ; GNU Emacs > > I couldn't test this since I don't have xemacs installed. But It should be ok (featurep 'xemacs) is evil. -- Kevin Rodgers