From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#7006: Reader oddity after ?\^ --- should signal error if invalid instead of being garbage Date: Sat, 16 Jul 2011 22:16:59 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1310869104 8023 80.91.229.12 (17 Jul 2011 02:18:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 17 Jul 2011 02:18:24 +0000 (UTC) Cc: Daniel Colascione , 7006@debbugs.gnu.org To: Lars Magne Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 17 04:18:20 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QiGw0-0003ZT-4x for geb-bug-gnu-emacs@m.gmane.org; Sun, 17 Jul 2011 04:18:20 +0200 Original-Received: from localhost ([::1]:49055 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QiGvy-0005pk-VY for geb-bug-gnu-emacs@m.gmane.org; Sat, 16 Jul 2011 22:18:19 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:41032) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QiGvk-0005pa-4B for bug-gnu-emacs@gnu.org; Sat, 16 Jul 2011 22:18:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QiGvj-0008Mh-2R for bug-gnu-emacs@gnu.org; Sat, 16 Jul 2011 22:18:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55727) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QiGvi-0008Md-Vx for bug-gnu-emacs@gnu.org; Sat, 16 Jul 2011 22:18:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QiGvi-0002YS-AT; Sat, 16 Jul 2011 22:18:02 -0400 X-Loop: help-debbugs@gnu.org 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: Sun, 17 Jul 2011 02:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7006 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 7006-submit@debbugs.gnu.org id=B7006.13108690289753 (code B ref 7006); Sun, 17 Jul 2011 02:18:02 +0000 Original-Received: (at 7006) by debbugs.gnu.org; 17 Jul 2011 02:17:08 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QiGup-0002XG-49 for submit@debbugs.gnu.org; Sat, 16 Jul 2011 22:17:07 -0400 Original-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 1QiGun-0002Wk-IY for 7006@debbugs.gnu.org; Sat, 16 Jul 2011 22:17:05 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAEtFIk5MCqt8/2dsb2JhbABSp3V4yXuGPASfJ4Qw X-IronPort-AV: E=Sophos;i="4.67,215,1309752000"; d="scan'208";a="126227315" Original-Received: from 76-10-171-124.dsl.teksavvy.com (HELO ceviche.home) ([76.10.171.124]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 16 Jul 2011 22:16:59 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 315F4660D5; Sat, 16 Jul 2011 22:16:59 -0400 (EDT) In-Reply-To: (Lars Magne Ingebrigtsen's message of "Thu, 14 Jul 2011 15:57:05 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 16 Jul 2011 22:18:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:49310 Archived-At: >> ?\^ is supposed to be the prefix for a control character --- for >> example, ?\^g. However, the character following the ^ can be a >> non-existent control character like ' ' or ')'. Currently, the reader >> outputs a nonsense value in this case. Instead, the reader ought to >> signal an error. It's not "nonsense". > ?\^9 > => 67108921 > That seems awfully confusing. > (format "%x" 67108921) > => "4000039" > Does anybody know whether this a feature or a bug? It's a feature. The ? syntax can be used for more than chars: it can be used for any char and any combination of modifiers (such as the control modifier above), where the modifiers are stored in the upper bits of the number. An exception is made for those few chars whose combination which control exists in ASCII, where the ?\C- is then represented by the corresponding ASCII char rather than use the "control" modifier bit. Stefan