all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Eli Zaretskii <eliz@gnu.org>, Drew Adams <drew.adams@oracle.com>
Cc: 32562@debbugs.gnu.org
Subject: bug#32562: 26; `read-char(-exclusive)' and `characterp'
Date: Mon, 10 Sep 2018 06:43:07 -0700 (PDT)	[thread overview]
Message-ID: <5f51bd06-84dd-47f5-a7da-b0c5814a274c@default> (raw)
In-Reply-To: <<83d0tlpteu.fsf@gnu.org>>

> > Perhaps there is no bug here, other than incomplete or insufficiently
> > clear doc.  Dunno.
> 
> 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'.
> 
> 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.
> 
> 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?
> 
> 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.





       reply	other threads:[~2018-09-10 13:43 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <<3cce8b54-2e85-49a2-84d8-386ded864148@default>
     [not found] ` <<83d0tlpteu.fsf@gnu.org>
2018-09-10 13:43   ` Drew Adams [this message]
2018-09-10 14:04     ` bug#32562: 26; `read-char(-exclusive)' and `characterp' Eli Zaretskii
2018-09-10 14:29     ` Andreas Schwab
2018-09-10 15:01       ` Drew Adams
2018-09-10 17:22         ` Eli Zaretskii
     [not found] <<<<3cce8b54-2e85-49a2-84d8-386ded864148@default>
     [not found] ` <<<<83d0tlpteu.fsf@gnu.org>
     [not found]   ` <<<<5f51bd06-84dd-47f5-a7da-b0c5814a274c@default>
     [not found]     ` <<<<mvmtvmxctnm.fsf@suse.de>
     [not found]       ` <<<<3d6fb22f-de5a-4cce-bf49-023f2fc8388f@default>
     [not found]         ` <<<<83k1ntnu6l.fsf@gnu.org>
     [not found]           ` <<<4df2c3ce-9dcb-483c-b733-f91f54f33bce@default>
     [not found]             ` <<<831sa0o49d.fsf@gnu.org>
     [not found]               ` <<<4d4aa5cd-964c-41c5-ae72-24769afb0bd0@default>
     [not found]                 ` <<<83in3cm08g.fsf@gnu.org>
     [not found]                   ` <<eedf9125-6ece-44cb-a01b-b8da3d707e8c@default>
     [not found]                     ` <<83ftyfnarp.fsf@gnu.org>
2018-09-11 18:58                       ` Drew Adams
2018-09-11 19:03                         ` Eli Zaretskii
     [not found] <<<3cce8b54-2e85-49a2-84d8-386ded864148@default>
     [not found] ` <<<83d0tlpteu.fsf@gnu.org>
     [not found]   ` <<5f51bd06-84dd-47f5-a7da-b0c5814a274c@default>
     [not found]     ` <<83r2i1o3dr.fsf@gnu.org>
2018-09-10 14:57       ` Drew Adams
     [not found]     ` <<mvmtvmxctnm.fsf@suse.de>
     [not found]       ` <<3d6fb22f-de5a-4cce-bf49-023f2fc8388f@default>
     [not found]         ` <<83k1ntnu6l.fsf@gnu.org>
2018-09-10 19:48           ` Drew Adams
2018-09-11  7:57             ` Eli Zaretskii
2018-09-11 15:30               ` Drew Adams
2018-09-11 17:07                 ` Eli Zaretskii
     [not found]   ` <<<5f51bd06-84dd-47f5-a7da-b0c5814a274c@default>
     [not found]     ` <<<mvmtvmxctnm.fsf@suse.de>
     [not found]       ` <<<3d6fb22f-de5a-4cce-bf49-023f2fc8388f@default>
     [not found]         ` <<<83k1ntnu6l.fsf@gnu.org>
     [not found]           ` <<4df2c3ce-9dcb-483c-b733-f91f54f33bce@default>
     [not found]             ` <<831sa0o49d.fsf@gnu.org>
     [not found]               ` <<4d4aa5cd-964c-41c5-ae72-24769afb0bd0@default>
     [not found]                 ` <<83in3cm08g.fsf@gnu.org>
2018-09-11 17:22                   ` Drew Adams
2018-09-11 18:34                     ` Eli Zaretskii
2018-08-28 20:39 Drew Adams
2018-08-28 20:51 ` Noam Postavsky
2018-08-28 21:24   ` Drew Adams
2018-08-28 22:27     ` Noam Postavsky
2018-09-10 10:01     ` Eli Zaretskii
2018-09-10  9:56 ` Eli Zaretskii

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=5f51bd06-84dd-47f5-a7da-b0c5814a274c@default \
    --to=drew.adams@oracle.com \
    --cc=32562@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /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.