From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#32562: 26; `read-char(-exclusive)' and `characterp' Date: Mon, 10 Sep 2018 06:43:07 -0700 (PDT) Message-ID: <5f51bd06-84dd-47f5-a7da-b0c5814a274c@default> References: <<3cce8b54-2e85-49a2-84d8-386ded864148@default>> <<83d0tlpteu.fsf@gnu.org>> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1536588064 25191 195.159.176.226 (10 Sep 2018 14:01:04 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 10 Sep 2018 14:01:04 +0000 (UTC) Cc: 32562@debbugs.gnu.org To: Eli Zaretskii , Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 10 16:01:00 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fzMkN-0006RH-1T for geb-bug-gnu-emacs@m.gmane.org; Mon, 10 Sep 2018 16:00:59 +0200 Original-Received: from localhost ([::1]:51823 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fzMmT-0007Ez-97 for geb-bug-gnu-emacs@m.gmane.org; Mon, 10 Sep 2018 10:03:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58251) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fzMiq-0002gj-9v for bug-gnu-emacs@gnu.org; Mon, 10 Sep 2018 09:59:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fzMTy-0008Em-An for bug-gnu-emacs@gnu.org; Mon, 10 Sep 2018 09:44:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:46897) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fzMTy-0008Ea-5j for bug-gnu-emacs@gnu.org; Mon, 10 Sep 2018 09:44:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fzMTy-0001Dv-2E for bug-gnu-emacs@gnu.org; Mon, 10 Sep 2018 09:44:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 10 Sep 2018 13:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32562 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 32562-submit@debbugs.gnu.org id=B32562.15365869974640 (code B ref 32562); Mon, 10 Sep 2018 13:44:02 +0000 Original-Received: (at 32562) by debbugs.gnu.org; 10 Sep 2018 13:43:17 +0000 Original-Received: from localhost ([127.0.0.1]:51915 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fzMTF-0001Cm-IP for submit@debbugs.gnu.org; Mon, 10 Sep 2018 09:43:17 -0400 Original-Received: from userp2120.oracle.com ([156.151.31.85]:49638) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fzMTE-0001CW-6X for 32562@debbugs.gnu.org; Mon, 10 Sep 2018 09:43:16 -0400 Original-Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w8ADXwFk093265; Mon, 10 Sep 2018 13:43:10 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=8pxO6BT4uA2xOUP70qYSF9slzfGyu/9LDAh3AaF6NBQ=; b=un1zen5aa+je4nez0ULBBV13kt2k3UKzVXbm8rGU9A31H/SgXiosmXbsgEXDRy/xkDu/ eihVBAhK42ojcCIiB4dI/8muOWelwmFlQ5ZlNiR67RCujPtMqqeAYvnVYvm/uV+UFEPZ gRVrEJ3oRLNq5X9t4E/3vgHULq0wQZBucql5Lpcsa2J4eE8aBX8z5yaoaX3e/hb4t82O 8WLZzpD9bXWWHsX7hIaJFjq0lZO7oqO+KXtC6bJMwdbNNVaxkPeHxAX1dl/zQYGHb7cj UpcMHe5fnlN37IUHTX8V2lziY4MEWUTMDLHe6xD+RNzpzurR1ZznXXtpCdg/39z8Yfte DA== Original-Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp2120.oracle.com with ESMTP id 2mc72qe1jt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 10 Sep 2018 13:43:10 +0000 Original-Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w8ADh845019723 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 10 Sep 2018 13:43:09 GMT Original-Received: from abhmp0003.oracle.com (abhmp0003.oracle.com [141.146.116.9]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w8ADh75S010245; Mon, 10 Sep 2018 13:43:08 GMT In-Reply-To: <<83d0tlpteu.fsf@gnu.org>> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4735.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9011 signatures=668708 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1809100140 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:150187 Archived-At: > > Perhaps there is no bug here, other than incomplete or insufficiently > > clear doc. Dunno. >=20 > It's a documentation bug. > > > But they both seem to read the event from `M-:' and return its value > > (a number). And it is not a character, according to `characterp'. >=20 > What the documentation failed to make clear is that the value returned > by these functions is an _event_, not a character. For ASCII > characters, the event and the character are identical, but modifier > bits that cannot be resolved to yield an ASCII character are left in > the returned value, and that makes the value not a valid character > code. >=20 > I have now clarified this subtle point in the documentation (on the > emacs-26 branch). Thank you. > > And what function reads a `characterp' character, either ignoring > > anything else or raising an error for anything else? >=20 > What do you mean by "reading a 'characterp'"? I said "reads a `characterp' character", meaning reads an event that satisfies `characterp'. Apparently the functions whose names or doc suggests that they read a character do not necessarily return something that satisfies `characterp'. > E.g., if the user types > C-% or M-a, what 'characterp' code would you expect to see? I was asking for a function that insists on getting an event that satisfies `characterp', i.e., that keeps reading events until it does. > Also, does "reading a 'characterp'" include supporting input methods, if > any? Sorry, can't answer that. I know nothing about input methods.