From unknown Fri Aug 15 16:57:14 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6212: 23.2; ^S^Q^@ --error--> Wrong type argument: characterp, 67108896 Resent-From: trentbuck@gmail.com (Trent W. Buck) Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 18 May 2010 15:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 6212 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 6212@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.127419543732041 (code B ref -1); Tue, 18 May 2010 15:11:02 +0000 Received: (at submit) by debbugs.gnu.org; 18 May 2010 15:10:37 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OEORJ-0008Kk-9k for submit@debbugs.gnu.org; Tue, 18 May 2010 11:10:37 -0400 Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OEORG-0008Ke-TS for submit@debbugs.gnu.org; Tue, 18 May 2010 11:10:35 -0400 Received: from lists.gnu.org ([199.232.76.165]:51838) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1OEORC-00071b-01 for submit@debbugs.gnu.org; Tue, 18 May 2010 11:10:30 -0400 Received: from [140.186.70.92] (port=47013 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OEORA-0000Ti-1S for bug-gnu-emacs@gnu.org; Tue, 18 May 2010 11:10:29 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,T_DKIM_INVALID,T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OEOR7-0008Fa-0M for bug-gnu-emacs@gnu.org; Tue, 18 May 2010 11:10:27 -0400 Received: from mail-pw0-f41.google.com ([209.85.160.41]:41607) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OEOR6-0008FL-NY for bug-gnu-emacs@gnu.org; Tue, 18 May 2010 11:10:24 -0400 Received: by pwi7 with SMTP id 7so6390191pwi.0 for ; Tue, 18 May 2010 08:10:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :message-id:mime-version:content-type; bh=bD88exLcy+WZF0mMyw21UAhG2sEFD5TP96EvkMJgRU0=; b=chwu0ZIMsrV/yBGmI96uSDISJUFmmFIc9AbofwTAeIbffYemKfemW026fBx9Clsn6S bmckcTFfzG0c+urphplUOckrn60SvOGuYLRWLtF4tz4DxqdVL1ou+YGVsvMyvNkb6gKj WOiM+xIhNVvyGE3b6R9+mRUKJCN8q8UKVUO2k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:message-id:mime-version:content-type; b=eGRzR3V+u2hjH9dn6woEs/JzPuGHDqTqQrT3rLZk+oFBuOnKGcx3iYiEtmQ6JSjYrq X7SItFq/bVQxQKWuGhkrE12DnMCqIrZa72JJW3Gjig93K04O+8Rp60zDmYBRrB2lAmq/ 2hMd5Ce7IQLVMLvieEPmpf9QnfXRSObYvZsy8= Received: by 10.141.2.8 with SMTP id e8mr5045122rvi.205.1274195422392; Tue, 18 May 2010 08:10:22 -0700 (PDT) Received: from localhost (ppp118-209-61-96.lns20.mel4.internode.on.net [118.209.61.96]) by mx.google.com with ESMTPS id c9sm4001035rvi.14.2010.05.18.08.10.19 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 18 May 2010 08:10:21 -0700 (PDT) From: trentbuck@gmail.com (Trent W. Buck) Date: Wed, 19 May 2010 01:10:16 +1000 Message-ID: <87632lutyf.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -4.7 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.9 (----) 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-@. The use case is to find high-bit (non-ASCII) characters in a file of indeterminate Windows codepage encoding. I normally type C-M-s [^ C-q C-SPC -~] (since ^@ and ~ are the bounds of the ASCII character set). This no longer works. In GNU Emacs 23.2.1 (x86_64-pc-linux-gnu) of 2010-05-16 on barber, modified by Debian configured using `configure '--build' 'x86_64-linux-gnu' '--build' 'x86_64-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs23:/etc/emacs:/usr/local/share/emacs/23.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.2/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/23.2/leim' '--with-x=no' '--without-gconf' 'build_alias=x86_64-linux-gnu' 'CFLAGS=-DDEBIAN -g -O2' 'LDFLAGS=-g' 'CPPFLAGS='' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: C value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_AU.utf8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Fundamental Minor modes in effect: xterm-mouse-mode: t ido-everywhere: t savehist-mode: t icomplete-mode: t partial-completion-mode: t show-paren-mode: t delete-selection-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-s C-q C-@ ESC x r e p o r t SPC e m a c s SPC b u g RET Recent messages: Loading /etc/emacs/site-start.d/50haskell-mode.el (source)... Loading /usr/share/emacs/site-lisp/haskell-mode/haskell-site-file.el (source)...done Loading /etc/emacs/site-start.d/50haskell-mode.el (source)...done Loading /etc/emacs/site-start.d/50paredit-el.el (source)...done Loading /etc/emacs/site-start.d/50psvn.el (source)...done Loading /etc/emacs/site-start.d/50puppet-el.el (source)...done Loading /etc/emacs/site-start.d/50w3m-el-snapshot.el (source)...done Loading /etc/emacs/site-start.d/51debian-el.el (source)...done Ido mode enabled For information about GNU Emacs and the GNU system, type C-h C-a. isearch-process-search-char: Wrong type argument: characterp, 67108896 Load-path shadows: /usr/share/emacs/site-lisp/haskell-mode/inf-haskell hides /usr/share/emacs/23.2/site-lisp/haskell-mode/inf-haskell /usr/share/emacs/site-lisp/haskell-mode/haskell-site-file hides /usr/share/emacs/23.2/site-lisp/haskell-mode/haskell-site-file /usr/share/emacs/site-lisp/haskell-mode/haskell-simple-indent hides /usr/share/emacs/23.2/site-lisp/haskell-mode/haskell-simple-indent /usr/share/emacs/site-lisp/haskell-mode/haskell-mode hides /usr/share/emacs/23.2/site-lisp/haskell-mode/haskell-mode /usr/share/emacs/site-lisp/haskell-mode/haskell-indentation hides /usr/share/emacs/23.2/site-lisp/haskell-mode/haskell-indentation /usr/share/emacs/site-lisp/haskell-mode/haskell-indent hides /usr/share/emacs/23.2/site-lisp/haskell-mode/haskell-indent /usr/share/emacs/site-lisp/haskell-mode/haskell-hugs hides /usr/share/emacs/23.2/site-lisp/haskell-mode/haskell-hugs /usr/share/emacs/site-lisp/haskell-mode/haskell-ghci hides /usr/share/emacs/23.2/site-lisp/haskell-mode/haskell-ghci /usr/share/emacs/site-lisp/haskell-mode/haskell-font-lock hides /usr/share/emacs/23.2/site-lisp/haskell-mode/haskell-font-lock /usr/share/emacs/site-lisp/haskell-mode/haskell-doc hides /usr/share/emacs/23.2/site-lisp/haskell-mode/haskell-doc /usr/share/emacs/site-lisp/haskell-mode/haskell-decl-scan hides /usr/share/emacs/23.2/site-lisp/haskell-mode/haskell-decl-scan /usr/share/emacs/site-lisp/haskell-mode/haskell-cabal hides /usr/share/emacs/23.2/site-lisp/haskell-mode/haskell-cabal /usr/share/emacs/site-lisp/haskell-mode/haskell-c hides /usr/share/emacs/23.2/site-lisp/haskell-mode/haskell-c /usr/share/emacs/23.2/site-lisp/puppet-el/puppet-mode hides /usr/share/emacs/site-lisp/puppet-mode /usr/share/emacs/23.2/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup /usr/share/emacs23/site-lisp/dictionaries-common/flyspell hides /usr/share/emacs/23.2/lisp/textmodes/flyspell /usr/share/emacs23/site-lisp/dictionaries-common/ispell hides /usr/share/emacs/23.2/lisp/textmodes/ispell Features: (shadow sort mail-extr message sendmail regexp-opt ecomplete rfc822 mml easymenu mml-sec password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc time-date mm-util mail-prsvr gmm-utils wid-edit mailheader canlock sha1 hex-util hashcash mail-utils emacsbug multi-isearch jka-compr edmacro kmacro xt-mouse ido savehist icomplete complete paren delsel saveplace debian-el debian-el-loaddefs w3m-load emacs-goodies-el emacs-goodies-custom emacs-goodies-loaddefs easy-mmode dpkg-dev-el dpkg-dev-el-loaddefs ediff-hook vc-hooks lisp-float-type lisp-mode register page menu-bar rfn-eshadow timer select mldrag mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind multi-tty emacs) From unknown Fri Aug 15 16:57:14 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6212: 23.2; ^S^Q^@ --error--> Wrong type argument: characterp, 67108896 Resent-From: Juanma Barranquero Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 18 May 2010 16:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6212 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: "Trent W. Buck" Cc: 6212@debbugs.gnu.org Received: via spool by 6212-submit@debbugs.gnu.org id=B6212.12741987691358 (code B ref 6212); Tue, 18 May 2010 16:07:02 +0000 Received: (at 6212) by debbugs.gnu.org; 18 May 2010 16:06:09 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OEPJ2-0000Lo-Pp for submit@debbugs.gnu.org; Tue, 18 May 2010 12:06:09 -0400 Received: from mail-fx0-f44.google.com ([209.85.161.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OEPJ0-0000LN-Mc for 6212@debbugs.gnu.org; Tue, 18 May 2010 12:06:07 -0400 Received: by fxm12 with SMTP id 12so121550fxm.3 for <6212@debbugs.gnu.org>; Tue, 18 May 2010 09:06:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type; bh=cckZqbh9JHhXYQ4ZS+JQUp/HejVTjbaXA/tT9Zmqvgc=; b=ODVsjFYWB7n+uwnaAbILjiHv9LAGBftWMiZGW8BW3uGW5P+wcSeWmnzDBtWzNrdBC4 iPJ6EKJLoDJUUoSDC2SIiI4XGizJwihx9Fz5FH+tJvluqw83xGtZUYoni0BXw07Dz2Hw XwDxPGh2r6KscQxfg3Xy3VKLxOnZEru5TfOdo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=ZZ6sQkoQwXTaj9ynOdp3/rtKlMXddKxJ4YT/HDfegd9U9GCPd4e1EBb9dm1hKfYI4P CgG2E1MFmrvtY7GhXvjDLT2v1snyk27ggchRGxRM72FL38Nw0iP9ibPq4Zo2XdhIPh+a OKQYc+28g/LcnsyhBwQvvDIL3PS0KijfWo4ZE= Received: by 10.204.75.35 with SMTP id w35mr15923bkj.194.1274198758017; Tue, 18 May 2010 09:05:58 -0700 (PDT) MIME-Version: 1.0 Received: by 10.204.74.70 with HTTP; Tue, 18 May 2010 09:05:36 -0700 (PDT) In-Reply-To: <87632lutyf.fsf@gmail.com> References: <87632lutyf.fsf@gmail.com> From: Juanma Barranquero Date: Tue, 18 May 2010 18:05:36 +0200 Message-ID: Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -1.9 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.8 (--) On Tue, May 18, 2010 at 17:10, Trent W. Buck wrote: > Attempting to insert a literal ^@ control character worked in 23.1. > In 23.2, it results in an error: Wrong type argument: characterp, > 67108896 `quoted-insert' is calling `read-quoted-char', which reads C-@ as the character 0, but then does (lookup-key local-function-key-map (vector char)) `local-function-key-map' inherits from `function-key-map', which in 23.2 maps C-@ to C-SPC ;; 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]) Presumably, by this change: 2009-10-19 Stefan Monnier * bindings.el (function-key-map): Map C-@ to C-SPC if C-@ is unbound. Stefan? Juanma From unknown Fri Aug 15 16:57:14 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6212: 23.2; ^S^Q^@ --error--> Wrong type argument: characterp, 67108896 Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 18 May 2010 16:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6212 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Monnier Cc: "Trent W. Buck" , 6212@debbugs.gnu.org Received: via spool by 6212-submit@debbugs.gnu.org id=B6212.12742009792635 (code B ref 6212); Tue, 18 May 2010 16:43:02 +0000 Received: (at 6212) by debbugs.gnu.org; 18 May 2010 16:42:59 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OEPsh-0000gS-7T for submit@debbugs.gnu.org; Tue, 18 May 2010 12:42:59 -0400 Received: from pantheon-po34.its.yale.edu ([130.132.50.80]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OEPse-0000gM-VI for 6212@debbugs.gnu.org; Tue, 18 May 2010 12:42:57 -0400 Received: from furry (dhcp128036014213.central.yale.edu [128.36.14.213]) (authenticated bits=0) by pantheon-po34.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o4IGgqYq002089 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 18 May 2010 12:42:52 -0400 Received: by furry (Postfix, from userid 1000) id 3B212C057; Tue, 18 May 2010 12:42:52 -0400 (EDT) From: Chong Yidong References: <87632lutyf.fsf@gmail.com> Date: Tue, 18 May 2010 12:42:52 -0400 In-Reply-To: <87632lutyf.fsf@gmail.com> (Trent W. Buck's message of "Wed, 19 May 2010 01:10:16 +1000") Message-ID: <87pr0ti2k3.fsf@stupidchicken.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-Spam-Score: -2.7 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) 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 * 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. From unknown Fri Aug 15 16:57:14 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6212: 23.2; ^S^Q^@ --error--> Wrong type argument: characterp, 67108896 Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 18 May 2010 20:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6212 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Chong Yidong Cc: "Trent W. Buck" , 6212@debbugs.gnu.org Received: via spool by 6212-submit@debbugs.gnu.org id=B6212.127421474113457 (code B ref 6212); Tue, 18 May 2010 20:33:01 +0000 Received: (at 6212) by debbugs.gnu.org; 18 May 2010 20:32:21 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OETSf-0003V0-Hb for submit@debbugs.gnu.org; Tue, 18 May 2010 16:32:21 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OETSc-0003Uu-Lp for 6212@debbugs.gnu.org; Tue, 18 May 2010 16:32:19 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhIFAKaV8ktMCpz0/2dsb2JhbACXV4Yscr8BhRAEjC8 X-IronPort-AV: E=Sophos;i="4.53,257,1272859200"; d="scan'208";a="64510536" Received: from 76-10-156-244.dsl.teksavvy.com (HELO pastel.home) ([76.10.156.244]) by ironport2-out.pppoe.ca with ESMTP; 18 May 2010 16:32:13 -0400 Received: by pastel.home (Postfix, from userid 20848) id AF0578079; Tue, 18 May 2010 16:32:13 -0400 (EDT) From: Stefan Monnier Message-ID: References: <87632lutyf.fsf@gmail.com> <87pr0ti2k3.fsf@stupidchicken.com> Date: Tue, 18 May 2010 16:32:13 -0400 In-Reply-To: <87pr0ti2k3.fsf@stupidchicken.com> (Chong Yidong's message of "Tue, 18 May 2010 12:42:52 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.3 (--) >> 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-@. > * bindings.el (function-key-map): Map C-@ to C-SPC if C-@ is unbound. [...] > 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. Indeed, that's part of the culprit. The reason for the remapping is that as the comment tries to explain many terminals send C-@ when the user hits C-SPC, so rather than bind commands to both C-SPC and C-@, it's much better to let key remapping handling it once and for all. The "canonical" binding is for C-SPC, so we want to remap C-@ to C-SPC rather than the other way around. But note that C-q C-SPC works just fine, so the remapping from C-@ to C-SPC is not really the core problem. I think the patch I just installed (appended) will fix things. Can you confirm? Stefan === modified file 'lisp/subr.el' --- lisp/subr.el 2010-05-15 13:23:48 +0000 +++ lisp/subr.el 2010-05-18 20:25:28 +0000 @@ -1868,16 +1868,14 @@ (if inhibit-quit (setq quit-flag nil))) ;; Translate TAB key into control-I ASCII character, and so on. ;; Note: `read-char' does it using the `ascii-character' property. - ;; We could try and use read-key-sequence instead, but then C-q ESC - ;; or C-q C-x might not return immediately since ESC or C-x might be - ;; bound to some prefix in function-key-map or key-translation-map. + ;; We could try and use read-key instead. + (let ((translation (lookup-key local-function-key-map (vector char)))) + (if (arrayp translation) + (setq translated (aref translation 0)))) (setq translated (if (integerp char) (char-resolve-modifiers char) char)) - (let ((translation (lookup-key local-function-key-map (vector char)))) - (if (arrayp translation) - (setq translated (aref translation 0)))) (cond ((null translated)) ((not (integerp translated)) (setq unread-command-events (list char) From unknown Fri Aug 15 16:57:14 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6212: 23.2; ^S^Q^@ --error--> Wrong type argument: characterp, 67108896 Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 18 May 2010 20:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6212 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Monnier Cc: "Trent W. Buck" , 6212@debbugs.gnu.org Received: via spool by 6212-submit@debbugs.gnu.org id=B6212.127421596014126 (code B ref 6212); Tue, 18 May 2010 20:53:01 +0000 Received: (at 6212) by debbugs.gnu.org; 18 May 2010 20:52:40 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OETmJ-0003fn-Sz for submit@debbugs.gnu.org; Tue, 18 May 2010 16:52:40 -0400 Received: from pantheon-po15.its.yale.edu ([130.132.50.71]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OETmG-0003fi-IJ for 6212@debbugs.gnu.org; Tue, 18 May 2010 16:52:37 -0400 Received: from furry (dhcp128036014213.central.yale.edu [128.36.14.213]) (authenticated bits=0) by pantheon-po15.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o4IKqWiB029579 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 18 May 2010 16:52:32 -0400 Received: by furry (Postfix, from userid 1000) id 65C91C057; Tue, 18 May 2010 16:52:32 -0400 (EDT) From: Chong Yidong References: <87632lutyf.fsf@gmail.com> <87pr0ti2k3.fsf@stupidchicken.com> Date: Tue, 18 May 2010 16:52:32 -0400 In-Reply-To: (Stefan Monnier's message of "Tue, 18 May 2010 16:32:13 -0400") Message-ID: <87fx1pj5kf.fsf@stupidchicken.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-Spam-Score: -2.7 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) Stefan Monnier writes: > Indeed, that's part of the culprit. The reason for the remapping is > that as the comment tries to explain many terminals send C-@ when the > user hits C-SPC, so rather than bind commands to both C-SPC and > C-@, it's much better to let key remapping handling it once and > for all. The "canonical" binding is for C-SPC, so we want to remap C-@ > to C-SPC rather than the other way around. > > But note that C-q C-SPC works just fine, so the remapping from > C-@ to C-SPC is not really the core problem. > > I think the patch I just installed (appended) will fix things. > Can you confirm? Yes, it fixes the bug. Thanks. From unknown Fri Aug 15 16:57:14 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: trentbuck@gmail.com (Trent W. Buck) Subject: bug#6212: closed (Re: bug#6212: 23.2; ^S^Q^@ --error--> Wrong type argument: characterp, 67108896) Message-ID: References: <87632lutyf.fsf@gmail.com> X-Gnu-PR-Message: they-closed 6212 X-Gnu-PR-Package: emacs Reply-To: 6212@debbugs.gnu.org Date: Wed, 19 May 2010 01:57:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1274234222-22488-1" This is a multi-part message in MIME format... ------------=_1274234222-22488-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #6212: 23.2; ^S^Q^@ --error--> Wrong type argument: characterp, 67108896 which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 6212@debbugs.gnu.org. --=20 6212: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D6212 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1274234222-22488-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 6212-done) by debbugs.gnu.org; 19 May 2010 01:56:03 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OEYVv-0005qM-BC for submit@debbugs.gnu.org; Tue, 18 May 2010 21:56:03 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OEYUP-0005pL-Lz for 6212-done@debbugs.gnu.org; Tue, 18 May 2010 21:54:30 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgUFAJfh8ktMCpz0/2dsb2JhbACXWoYtcrxyhRAEjC8 X-IronPort-AV: E=Sophos;i="4.53,258,1272859200"; d="scan'208";a="64535009" Received: from 76-10-156-244.dsl.teksavvy.com (HELO alfajor.home) ([76.10.156.244]) by ironport2-out.pppoe.ca with ESMTP; 18 May 2010 21:54:25 -0400 Received: by alfajor.home (Postfix, from userid 20848) id 9241FAED5D; Tue, 18 May 2010 21:54:24 -0400 (EDT) From: Stefan Monnier To: Chong Yidong Subject: Re: bug#6212: 23.2; ^S^Q^@ --error--> Wrong type argument: characterp, 67108896 Message-ID: References: <87632lutyf.fsf@gmail.com> <87pr0ti2k3.fsf@stupidchicken.com> <87fx1pj5kf.fsf@stupidchicken.com> Date: Tue, 18 May 2010 21:54:24 -0400 In-Reply-To: <87fx1pj5kf.fsf@stupidchicken.com> (Chong Yidong's message of "Tue, 18 May 2010 16:52:32 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 6212-done X-Mailman-Approved-At: Tue, 18 May 2010 21:56:02 -0400 Cc: "Trent W. Buck" , X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.3 (--) >> I think the patch I just installed (appended) will fix things. >> Can you confirm? > Yes, it fixes the bug. Thanks. Thanks, closed, Stefan ------------=_1274234222-22488-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 18 May 2010 15:10:37 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OEORJ-0008Kk-9k for submit@debbugs.gnu.org; Tue, 18 May 2010 11:10:37 -0400 Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OEORG-0008Ke-TS for submit@debbugs.gnu.org; Tue, 18 May 2010 11:10:35 -0400 Received: from lists.gnu.org ([199.232.76.165]:51838) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1OEORC-00071b-01 for submit@debbugs.gnu.org; Tue, 18 May 2010 11:10:30 -0400 Received: from [140.186.70.92] (port=47013 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OEORA-0000Ti-1S for bug-gnu-emacs@gnu.org; Tue, 18 May 2010 11:10:29 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,T_DKIM_INVALID,T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OEOR7-0008Fa-0M for bug-gnu-emacs@gnu.org; Tue, 18 May 2010 11:10:27 -0400 Received: from mail-pw0-f41.google.com ([209.85.160.41]:41607) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OEOR6-0008FL-NY for bug-gnu-emacs@gnu.org; Tue, 18 May 2010 11:10:24 -0400 Received: by pwi7 with SMTP id 7so6390191pwi.0 for ; Tue, 18 May 2010 08:10:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :message-id:mime-version:content-type; bh=bD88exLcy+WZF0mMyw21UAhG2sEFD5TP96EvkMJgRU0=; b=chwu0ZIMsrV/yBGmI96uSDISJUFmmFIc9AbofwTAeIbffYemKfemW026fBx9Clsn6S bmckcTFfzG0c+urphplUOckrn60SvOGuYLRWLtF4tz4DxqdVL1ou+YGVsvMyvNkb6gKj WOiM+xIhNVvyGE3b6R9+mRUKJCN8q8UKVUO2k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:message-id:mime-version:content-type; b=eGRzR3V+u2hjH9dn6woEs/JzPuGHDqTqQrT3rLZk+oFBuOnKGcx3iYiEtmQ6JSjYrq X7SItFq/bVQxQKWuGhkrE12DnMCqIrZa72JJW3Gjig93K04O+8Rp60zDmYBRrB2lAmq/ 2hMd5Ce7IQLVMLvieEPmpf9QnfXRSObYvZsy8= Received: by 10.141.2.8 with SMTP id e8mr5045122rvi.205.1274195422392; Tue, 18 May 2010 08:10:22 -0700 (PDT) Received: from localhost (ppp118-209-61-96.lns20.mel4.internode.on.net [118.209.61.96]) by mx.google.com with ESMTPS id c9sm4001035rvi.14.2010.05.18.08.10.19 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 18 May 2010 08:10:21 -0700 (PDT) From: trentbuck@gmail.com (Trent W. Buck) To: bug-gnu-emacs@gnu.org Subject: 23.2; ^S^Q^@ --error--> Wrong type argument: characterp, 67108896 Date: Wed, 19 May 2010 01:10:16 +1000 Message-ID: <87632lutyf.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -4.7 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.9 (----) 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-@. The use case is to find high-bit (non-ASCII) characters in a file of indeterminate Windows codepage encoding. I normally type C-M-s [^ C-q C-SPC -~] (since ^@ and ~ are the bounds of the ASCII character set). This no longer works. In GNU Emacs 23.2.1 (x86_64-pc-linux-gnu) of 2010-05-16 on barber, modified by Debian configured using `configure '--build' 'x86_64-linux-gnu' '--build' 'x86_64-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs23:/etc/emacs:/usr/local/share/emacs/23.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.2/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/23.2/leim' '--with-x=no' '--without-gconf' 'build_alias=x86_64-linux-gnu' 'CFLAGS=-DDEBIAN -g -O2' 'LDFLAGS=-g' 'CPPFLAGS='' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: C value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_AU.utf8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Fundamental Minor modes in effect: xterm-mouse-mode: t ido-everywhere: t savehist-mode: t icomplete-mode: t partial-completion-mode: t show-paren-mode: t delete-selection-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-s C-q C-@ ESC x r e p o r t SPC e m a c s SPC b u g RET Recent messages: Loading /etc/emacs/site-start.d/50haskell-mode.el (source)... Loading /usr/share/emacs/site-lisp/haskell-mode/haskell-site-file.el (source)...done Loading /etc/emacs/site-start.d/50haskell-mode.el (source)...done Loading /etc/emacs/site-start.d/50paredit-el.el (source)...done Loading /etc/emacs/site-start.d/50psvn.el (source)...done Loading /etc/emacs/site-start.d/50puppet-el.el (source)...done Loading /etc/emacs/site-start.d/50w3m-el-snapshot.el (source)...done Loading /etc/emacs/site-start.d/51debian-el.el (source)...done Ido mode enabled For information about GNU Emacs and the GNU system, type C-h C-a. isearch-process-search-char: Wrong type argument: characterp, 67108896 Load-path shadows: /usr/share/emacs/site-lisp/haskell-mode/inf-haskell hides /usr/share/emacs/23.2/site-lisp/haskell-mode/inf-haskell /usr/share/emacs/site-lisp/haskell-mode/haskell-site-file hides /usr/share/emacs/23.2/site-lisp/haskell-mode/haskell-site-file /usr/share/emacs/site-lisp/haskell-mode/haskell-simple-indent hides /usr/share/emacs/23.2/site-lisp/haskell-mode/haskell-simple-indent /usr/share/emacs/site-lisp/haskell-mode/haskell-mode hides /usr/share/emacs/23.2/site-lisp/haskell-mode/haskell-mode /usr/share/emacs/site-lisp/haskell-mode/haskell-indentation hides /usr/share/emacs/23.2/site-lisp/haskell-mode/haskell-indentation /usr/share/emacs/site-lisp/haskell-mode/haskell-indent hides /usr/share/emacs/23.2/site-lisp/haskell-mode/haskell-indent /usr/share/emacs/site-lisp/haskell-mode/haskell-hugs hides /usr/share/emacs/23.2/site-lisp/haskell-mode/haskell-hugs /usr/share/emacs/site-lisp/haskell-mode/haskell-ghci hides /usr/share/emacs/23.2/site-lisp/haskell-mode/haskell-ghci /usr/share/emacs/site-lisp/haskell-mode/haskell-font-lock hides /usr/share/emacs/23.2/site-lisp/haskell-mode/haskell-font-lock /usr/share/emacs/site-lisp/haskell-mode/haskell-doc hides /usr/share/emacs/23.2/site-lisp/haskell-mode/haskell-doc /usr/share/emacs/site-lisp/haskell-mode/haskell-decl-scan hides /usr/share/emacs/23.2/site-lisp/haskell-mode/haskell-decl-scan /usr/share/emacs/site-lisp/haskell-mode/haskell-cabal hides /usr/share/emacs/23.2/site-lisp/haskell-mode/haskell-cabal /usr/share/emacs/site-lisp/haskell-mode/haskell-c hides /usr/share/emacs/23.2/site-lisp/haskell-mode/haskell-c /usr/share/emacs/23.2/site-lisp/puppet-el/puppet-mode hides /usr/share/emacs/site-lisp/puppet-mode /usr/share/emacs/23.2/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup /usr/share/emacs23/site-lisp/dictionaries-common/flyspell hides /usr/share/emacs/23.2/lisp/textmodes/flyspell /usr/share/emacs23/site-lisp/dictionaries-common/ispell hides /usr/share/emacs/23.2/lisp/textmodes/ispell Features: (shadow sort mail-extr message sendmail regexp-opt ecomplete rfc822 mml easymenu mml-sec password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc time-date mm-util mail-prsvr gmm-utils wid-edit mailheader canlock sha1 hex-util hashcash mail-utils emacsbug multi-isearch jka-compr edmacro kmacro xt-mouse ido savehist icomplete complete paren delsel saveplace debian-el debian-el-loaddefs w3m-load emacs-goodies-el emacs-goodies-custom emacs-goodies-loaddefs easy-mmode dpkg-dev-el dpkg-dev-el-loaddefs ediff-hook vc-hooks lisp-float-type lisp-mode register page menu-bar rfn-eshadow timer select mldrag mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind multi-tty emacs) ------------=_1274234222-22488-1--