From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Norman Werner Newsgroups: gmane.emacs.bugs,gmane.spam.detected Subject: bug in auto-capitalize.el Date: Thu, 09 Sep 2004 05:27:50 +0200 Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87fz5sglzd.fsf@student.uni-magdeburg.de> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1094671747 28407 80.91.224.253 (8 Sep 2004 19:29:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 8 Sep 2004 19:29:07 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 08 21:28:36 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 1C587P-0001eR-00 for ; Wed, 08 Sep 2004 21:28:35 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C58Cg-00072d-Vy for geb-bug-gnu-emacs@m.gmane.org; Wed, 08 Sep 2004 15:34:03 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C58Cf-00071h-Fa for bug-gnu-emacs@gnu.org; Wed, 08 Sep 2004 15:34:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C58Ce-00071G-1u for bug-gnu-emacs@gnu.org; Wed, 08 Sep 2004 15:34:01 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C58Cd-00071D-US for bug-gnu-emacs@gnu.org; Wed, 08 Sep 2004 15:34:00 -0400 Original-Received: from [141.48.3.51] (helo=mailgate.uni-halle.de) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1C586j-0007v7-Nq for bug-gnu-emacs@gnu.org; Wed, 08 Sep 2004 15:27:54 -0400 Original-Received: from [141.48.223.1] (helo=gremlin.wls.uni-halle.de) by mailgate.uni-halle.de with esmtp (Exim 4.42) id 1C586a-0005jN-69 ; Wed, 08 Sep 2004 21:27:44 +0200 Original-Received: from win98-kiste (unknown [172.16.133.123]) by gremlin.wls.uni-halle.de (Postfix) with ESMTP id CFB97DA62D; Wed, 8 Sep 2004 21:27:43 +0200 (CEST) Original-To: bug-gnu-emacs@gnu.org User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 X-Scan-Signature: 617c42ed6da9b2d7dd655e9c8120c058 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 X-Spam-Report: 7.9 points; * 2.0 DATE_IN_FUTURE_06_12 Date: is 6 to 12 hours after Received: date * 2.5 BOUNCE_RCPT_TO BODY: Message looks like SMTP transcript with 'RCPT TO' * 2.5 BOUNCE_SMTP_ERROR BODY: Looks like SMTP transcript with 'SMTP error' * 2.5 BOUNCE_COULD_NOT_BE_DELIVERED BODY: Message says 'could not be delivered', so probably a bounce * -1.5 BAYES_01 BODY: Bayesian spam probability is 1 to 10% * [score: 0.0657] Xref: main.gmane.org gmane.emacs.bugs:8970 gmane.spam.detected:328988 X-Report-Unspam: http://unspam.gmane.org/gmane.emacs.bugs:8970 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=20 Since I could not contact the maintainer directly I am now writing to your 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.) 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=20 (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 Norman --=20 Norman Werner (Zi. 701) Wolfgang-Langenbeck-Stra=C3=9Fe 8 06120 Halle norman.werner@student.uni-magdeburg.de 0176/24058063 0345/9592552 Ab Mitte September: Norman Werner Teuremertalweg 11/1 70839 Gerlingen Tel:0176/24058063 Festnetz: noch nicht bekannt