GNU bug report logs - #6212
23.2; ^S^Q^@ --error--> Wrong type argument: characterp, 67108896

Previous Next

Package: emacs;

Reported by: trentbuck <at> gmail.com (Trent W. Buck)

Date: Tue, 18 May 2010 15:11:02 UTC

Severity: normal

Found in version 23.2

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 6212 <at> debbugs.gnu.org (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: Stefan Monnier  <monnier <at> iro.umontreal.ca>
Cc: "Trent W. Buck" <trentbuck <at> gmail.com>, 6212 <at> debbugs.gnu.org
Subject: Re: bug#6212: 23.2;
	^S^Q^@ --error--> Wrong type argument: characterp, 67108896
Date: Tue, 18 May 2010 12:42:52 -0400
trentbuck <at> gmail.com (Trent W. Buck) writes:

> Attempting to insert a literal ^@ control character worked in 23.1.
> In 23.2, it results in an error: Wrong type argument: characterp,
> 67108896
>
> I am typing C-q C-SPC, in Emacs in Screen in linux's fbcon.  Since ^@ is
> the zeroth character, perhaps this is an off-by-one or overflow error
> somewhere.  The same error occurs when typing C-q C-@.

Yes, I can reproduce this on text-terminals.  It appears to be due to
the following change:

  2009-10-19  Stefan Monnier  <monnier <at> iro.umontreal.ca>

    * bindings.el (function-key-map): Map C-@ to C-SPC if C-@ is unbound.

which added the following to bindings.el:

  ;; Hitting C-SPC on text terminals, usually sends the ascii code 0 (aka C-@),
  ;; so we can't distinguish those two keys, but usually we consider C-SPC
  ;; (rather than C-@) as the "canonical" binding.
  (define-key function-key-map [?\C-@] [?\C-\s])

Stefan, could you take a look?  I don't know your original motivation
for this change, so I don't know how to fix it.




This bug report was last modified 15 years and 63 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.