Subject: bug#1817 closed by Glenn Morris <[email-masked]> (Re: bug#1817: 23.0.60; C-x RET c RET RET signals an error)

From: [email-masked] (Emacs bug Tracking System)
Date: Fri, 09 Jan 2009 03:40:05 +0000

This is an automatic notification regarding your bug report
which was filed against the emacs package:

#1817: last-input-char

It has been closed by Glenn Morris <[email-masked]>.

Their explanation is attached below along with your original report.
If this explanation is unsatisfactory and you have not received a
better one in a separate message then please contact Glenn Morris <[email-masked]> by
replying to this email.

-- 
1817: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=1817
Emacs Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#1817: 23.0.60; C-x RET c RET RET signals an error
From: Glenn Morris <[email-masked]>
To: Stefan Monnier <[email-masked]>
Cc: [email-masked]
Date: Thu, 08 Jan 2009 22:30:17 -0500

Stefan Monnier wrote:

> That would be good, yes: Remove last-input-char from the C code, and
> define it in subr.el via define-obsolete-variable-alias.
>
>> last-command-char looks similar.
>
> Then please fix it similarly.

done & done

Subject: 23.0.60; C-x RET c RET RET signals an error
From: Juri Linkov <[email-masked]>
To: [email-masked]
Date: Wed, 07 Jan 2009 19:54:55 +0200

In response to the closed and archived bug#1205:

>>   C-x RET c utf-8 RET C-x C-g
>> produces an unexpected error message:
>>   Wrong type argument: commandp, nil
>
> Perhaps this:
> *** mule-cmds.el         5 Oct 2008 19:07:03 -0000 1.341
> --- mule-cmds.el         21 Oct 2008 02:52:14 -0000
> ***************
> *** 287,292 ****
> --- 287,295 ----
>      (cmd (key-binding keyseq))
>       prefix)
>
> +     (if (char-equal last-input-char ?\C-g)
> +     (keyboard-quit))
> +

I just noticed that this fix in `universal-coding-system-argument'
causes another bug.  It fails with the key sequence `C-x RET c RET RET'
that signals an error:

Debugger entered--Lisp error: (wrong-type-argument characterp return)
  char-equal(return 7)
  universal-coding-system-argument(utf-8-unix)
  call-interactively(universal-coding-system-argument nil nil)

In GNU Emacs 23.0.60 (x86_64-pc-linux-gnu) of 2009-01-06

-- 
Juri Linkov
http://www.jurta.org/emacs/