bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug in auto-capitalize.el


From: Norman Werner
Subject: bug in auto-capitalize.el
Date: Thu, 09 Sep 2004 05:27:50 +0200
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3

The following mail is from the original bug report to the maintainer
of auto-capitalize.el   address@hidden

Unfortunately the mail could not be delivered :

SMTP error from remote mailer after RCPT TO:<address@hidden>:
host mail1.ihs.com [170.207.70.222]: 553 5.7.1
<address@hidden>... address@hidden not
allowed to send to recipient 


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 

(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
-- 
Norman Werner  (Zi. 701)
Wolfgang-Langenbeck-Straße 8
06120 Halle

address@hidden

0176/24058063
0345/9592552


Ab Mitte September:
Norman Werner
Teuremertalweg 11/1
70839 Gerlingen

Tel:0176/24058063
Festnetz: noch nicht bekannt






reply via email to

[Prev in Thread] Current Thread [Next in Thread]