all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Norman Werner <norman.werner@student.uni-magdeburg.de>
Subject: bug in auto-capitalize.el
Date: Thu, 09 Sep 2004 05:27:50 +0200	[thread overview]
Message-ID: <87fz5sglzd.fsf@student.uni-magdeburg.de> (raw)

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:<kevinr@ihs.com>:
host mail1.ihs.com [170.207.70.222]: 553 5.7.1
<kevinr@ihs.com>... 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


-------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

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

             reply	other threads:[~2004-09-09  3:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-09  3:27 Norman Werner [this message]
     [not found] <mailman.2018.1094672043.1998.bug-gnu-emacs@gnu.org>
2004-09-08 22:15 ` bug in auto-capitalize.el Kevin Rodgers
     [not found] ` <mailman.2045.1094682093.1998.bug-gnu-emacs@gnu.org>
2004-09-09 16:02   ` Kevin Rodgers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fz5sglzd.fsf@student.uni-magdeburg.de \
    --to=norman.werner@student.uni-magdeburg.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.