GNU bug report logs -
#1817
last-input-char
Previous Next
Reported by: Juri Linkov <juri <at> jurta.org>
Date: Wed, 7 Jan 2009 18:05:06 UTC
Severity: minor
Merged with 1942
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 1817 in the body.
You can then email your comments to 1817 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#1817
; Package
emacs
.
(Wed, 07 Jan 2009 18:05:06 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Juri Linkov <juri <at> jurta.org>
:
New bug report received and forwarded. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Wed, 07 Jan 2009 18:05:06 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):
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/
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#1817
; Package
emacs
.
(Wed, 07 Jan 2009 18:55:05 GMT)
Full text and
rfc822 format available.
Message #8 received at 1817 <at> emacsbugs.donarmstrong.com (full text, mbox):
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'.
Forcibly Merged 1205 1817.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> emacsbugs.donarmstrong.com
.
(Wed, 07 Jan 2009 18:55:08 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#1817
; Package
emacs
.
(Wed, 07 Jan 2009 19:35:04 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Juri Linkov <juri <at> jurta.org>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Wed, 07 Jan 2009 19:35:04 GMT)
Full text and
rfc822 format available.
Message #15 received at 1817 <at> emacsbugs.donarmstrong.com (full text, mbox):
>> 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/
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#1817
; Package
emacs
.
(Wed, 07 Jan 2009 20:10:05 GMT)
Full text and
rfc822 format available.
Message #18 received at 1817 <at> emacsbugs.donarmstrong.com (full text, mbox):
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.
Disconnected #1817 from all other report(s).
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> emacsbugs.donarmstrong.com
.
(Thu, 08 Jan 2009 04:50:03 GMT)
Full text and
rfc822 format available.
Changed bug title to `last-input-char' from `23.0.60; C-x RET c RET RET signals an error'.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> emacsbugs.donarmstrong.com
.
(Thu, 08 Jan 2009 04:50:03 GMT)
Full text and
rfc822 format available.
Severity set to `minor' from `normal'
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> emacsbugs.donarmstrong.com
.
(Thu, 08 Jan 2009 04:50:03 GMT)
Full text and
rfc822 format available.
bug reopened, originator not changed.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> emacsbugs.donarmstrong.com
.
(Thu, 08 Jan 2009 05:35:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#1817
; Package
emacs
.
(Thu, 08 Jan 2009 17:10:04 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Stefan Monnier <monnier <at> iro.umontreal.ca>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Thu, 08 Jan 2009 17:10:04 GMT)
Full text and
rfc822 format available.
Message #31 received at 1817 <at> emacsbugs.donarmstrong.com (full text, mbox):
>> 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
Reply sent
to
Glenn Morris <rgm <at> gnu.org>
:
You have taken responsibility.
(Fri, 09 Jan 2009 03:40:04 GMT)
Full text and
rfc822 format available.
Notification sent
to
Juri Linkov <juri <at> jurta.org>
:
bug acknowledged by developer.
(Fri, 09 Jan 2009 03:40:05 GMT)
Full text and
rfc822 format available.
Message #36 received at 1817-done <at> emacsbugs.donarmstrong.com (full text, mbox):
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
Forcibly Merged 1817 1942.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> emacsbugs.donarmstrong.com
.
(Sun, 18 Jan 2009 20:20:03 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> emacsbugs.donarmstrong.com
.
(Mon, 16 Feb 2009 15:24:07 GMT)
Full text and
rfc822 format available.
This bug report was last modified 16 years and 128 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.