all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Chong Yidong <cyd@stupidchicken.com>
To: Stefan Monnier  <monnier@iro.umontreal.ca>
Cc: "Trent W. Buck" <trentbuck@gmail.com>, 6212@debbugs.gnu.org
Subject: bug#6212: 23.2; ^S^Q^@ --error--> Wrong type argument: characterp, 67108896
Date: Tue, 18 May 2010 12:42:52 -0400	[thread overview]
Message-ID: <87pr0ti2k3.fsf@stupidchicken.com> (raw)
In-Reply-To: <87632lutyf.fsf@gmail.com> (Trent W. Buck's message of "Wed, 19 May 2010 01:10:16 +1000")

trentbuck@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@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.





  parent reply	other threads:[~2010-05-18 16:42 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-18 15:10 bug#6212: 23.2; ^S^Q^@ --error--> Wrong type argument: characterp, 67108896 Trent W. Buck
2010-05-18 16:05 ` Juanma Barranquero
2010-05-18 16:42 ` Chong Yidong [this message]
2010-05-18 20:32   ` Stefan Monnier
2010-05-18 20:52     ` Chong Yidong
2010-05-19  1:54       ` Stefan Monnier

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=87pr0ti2k3.fsf@stupidchicken.com \
    --to=cyd@stupidchicken.com \
    --cc=6212@debbugs.gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=trentbuck@gmail.com \
    /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.