unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#1817: 23.0.60; C-x RET c RET RET signals an error
@ 2009-01-07 17:54 ` Juri Linkov
  2009-01-07 18:44   ` Glenn Morris
  2009-01-09  3:40   ` bug#1817: marked as done (last-input-char) Emacs bug Tracking System
  0 siblings, 2 replies; 6+ messages in thread
From: Juri Linkov @ 2009-01-07 17:54 UTC (permalink / raw)
  To: emacs-pretest-bug

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/






^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#1817: 23.0.60; C-x RET c RET RET signals an error
  2009-01-07 17:54 ` bug#1817: 23.0.60; C-x RET c RET RET signals an error Juri Linkov
@ 2009-01-07 18:44   ` Glenn Morris
  2009-01-07 19:27     ` Juri Linkov
  2009-01-09  3:40   ` bug#1817: marked as done (last-input-char) Emacs bug Tracking System
  1 sibling, 1 reply; 6+ messages in thread
From: Glenn Morris @ 2009-01-07 18:44 UTC (permalink / raw)
  To: Juri Linkov; +Cc: 1817

merge 1205 1817
stop

Juri Linkov wrote:

> In response to the closed and archived bug#1205:

You can unarchive it, as I did prior to this.

>> +     (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)


It's suprising (to me) that last-input-char might not be a character,
but just change `char-equal' to `equal'.






^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#1817: 23.0.60; C-x RET c RET RET signals an error
  2009-01-07 18:44   ` Glenn Morris
@ 2009-01-07 19:27     ` Juri Linkov
  2009-01-07 20:00       ` Glenn Morris
  0 siblings, 1 reply; 6+ messages in thread
From: Juri Linkov @ 2009-01-07 19:27 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 1817

>> In response to the closed and archived bug#1205:
>
> You can unarchive it, as I did prior to this.

Thanks, I missed the `unarchive' command.

>>> +     (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)
>
> It's suprising (to me) that last-input-char might not be a character,
> but just change `char-equal' to `equal'.

The variable name `last-input-char' is confusing.
It holds an input event, not just a character.
But as I see, its alias is `last-input-event'.
And (info "(elisp) Event Input Misc") says:

     The alias `last-input-char' exists for compatibility
     with Emacs version 18.

So I perhaps the doc string of `last-input-char' should say
that it is an alias for `last-input-event'?

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






^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#1817: 23.0.60; C-x RET c RET RET signals an error
  2009-01-07 19:27     ` Juri Linkov
@ 2009-01-07 20:00       ` Glenn Morris
  2009-01-08 17:00         ` Stefan Monnier
  0 siblings, 1 reply; 6+ messages in thread
From: Glenn Morris @ 2009-01-07 20:00 UTC (permalink / raw)
  To: Juri Linkov; +Cc: 1817

Juri Linkov wrote:

>      The alias `last-input-char' exists for compatibility
>      with Emacs version 18.
>
> So I perhaps the doc string of `last-input-char' should say
> that it is an alias for `last-input-event'?

Definitely, and an obsolete one too, it sounds like.
Can't it be made a "real" alias?

The comment is also misleading:

  /* Last input character read for any purpose.  */
  Lisp_Object last_input_char;


last-command-char looks similar.






^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#1817: 23.0.60; C-x RET c RET RET signals an error
  2009-01-07 20:00       ` Glenn Morris
@ 2009-01-08 17:00         ` Stefan Monnier
  0 siblings, 0 replies; 6+ messages in thread
From: Stefan Monnier @ 2009-01-08 17:00 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 1817

>> The alias `last-input-char' exists for compatibility
>> with Emacs version 18.
>> 
>> So I perhaps the doc string of `last-input-char' should say
>> that it is an alias for `last-input-event'?

> Definitely, and an obsolete one too, it sounds like.
> Can't it be made a "real" alias?

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.


        Stefan






^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#1817: marked as done (last-input-char)
  2009-01-07 17:54 ` bug#1817: 23.0.60; C-x RET c RET RET signals an error Juri Linkov
  2009-01-07 18:44   ` Glenn Morris
@ 2009-01-09  3:40   ` Emacs bug Tracking System
  1 sibling, 0 replies; 6+ messages in thread
From: Emacs bug Tracking System @ 2009-01-09  3:40 UTC (permalink / raw)
  To: Glenn Morris

[-- Attachment #1: Type: text/plain, Size: 860 bytes --]


Your message dated Thu, 08 Jan 2009 22:30:17 -0500
with message-id <0fskntb1h2.fsf@fencepost.gnu.org>
and subject line Re: bug#1817: 23.0.60; C-x RET c RET RET signals an error
has caused the Emacs bug report #1817,
regarding last-input-char
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@emacsbugs.donarmstrong.com
immediately.)


-- 
1817: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=1817
Emacs Bug Tracking System
Contact owner@emacsbugs.donarmstrong.com with problems

[-- Attachment #2: Type: message/rfc822, Size: 3483 bytes --]

From: Juri Linkov <juri@jurta.org>
To: emacs-pretest-bug@gnu.org
Subject: 23.0.60; C-x RET c RET RET signals an error
Date: Wed, 07 Jan 2009 19:54:55 +0200
Message-ID: <873afvovbk.fsf@jurta.org>

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/



[-- Attachment #3: Type: message/rfc822, Size: 1970 bytes --]

From: Glenn Morris <rgm@gnu.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 1817-done@emacsbugs.donarmstrong.com
Subject: Re: bug#1817: 23.0.60; C-x RET c RET RET signals an error
Date: Thu, 08 Jan 2009 22:30:17 -0500
Message-ID: <0fskntb1h2.fsf@fencepost.gnu.org>

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-01-09  3:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <0fskntb1h2.fsf@fencepost.gnu.org>
2009-01-07 17:54 ` bug#1817: 23.0.60; C-x RET c RET RET signals an error Juri Linkov
2009-01-07 18:44   ` Glenn Morris
2009-01-07 19:27     ` Juri Linkov
2009-01-07 20:00       ` Glenn Morris
2009-01-08 17:00         ` Stefan Monnier
2009-01-09  3:40   ` bug#1817: marked as done (last-input-char) Emacs bug Tracking System

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).