all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Name completion when using "read-char-by-name"
@ 2022-10-07  0:04 uzibalqa
  2022-10-07  6:51 ` Eli Zaretskii
  0 siblings, 1 reply; 14+ messages in thread
From: uzibalqa @ 2022-10-07  0:04 UTC (permalink / raw)
  To: uzibalqa via Users list for the GNU Emacs text editor


How can I use completion when using "read-char-by-name"?  I could write "*ARROW" but how can I
force it to shew me possible completions?





^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Name completion when using "read-char-by-name"
  2022-10-07  0:04 Name completion when using "read-char-by-name" uzibalqa
@ 2022-10-07  6:51 ` Eli Zaretskii
  2022-10-07 15:26   ` uzibalqa
  0 siblings, 1 reply; 14+ messages in thread
From: Eli Zaretskii @ 2022-10-07  6:51 UTC (permalink / raw)
  To: help-gnu-emacs

> Date: Fri, 07 Oct 2022 00:04:36 +0000
> From: uzibalqa <uzibalqa@proton.me>
> 
> 
> How can I use completion when using "read-char-by-name"?  I could write "*ARROW" but how can I
> force it to shew me possible completions?

As usual in Emacs: by pressing TAB.



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Name completion when using "read-char-by-name"
  2022-10-07  6:51 ` Eli Zaretskii
@ 2022-10-07 15:26   ` uzibalqa
  2022-10-07 15:41     ` Eli Zaretskii
  2022-10-07 16:04     ` uzibalqa
  0 siblings, 2 replies; 14+ messages in thread
From: uzibalqa @ 2022-10-07 15:26 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: help-gnu-emacs


------- Original Message -------
On Friday, October 7th, 2022 at 6:51 AM, Eli Zaretskii <eliz@gnu.org> wrote:


> > Date: Fri, 07 Oct 2022 00:04:36 +0000
> > From: uzibalqa uzibalqa@proton.me
> > 
> > How can I use completion when using "read-char-by-name"? I could write "*ARROW" but how can I
> > force it to shew me possible completions?
> 
> 
> As usual in Emacs: by pressing TAB.

The difficulty occurs with read-char-by-name.  Using the common minibuffer commands such as
"M-x text-TAB" I get the list of possible completions.

But with "read-char-by-name" the TAB does not fire the completion list.




^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Name completion when using "read-char-by-name"
  2022-10-07 15:26   ` uzibalqa
@ 2022-10-07 15:41     ` Eli Zaretskii
  2022-10-07 17:33       ` uzibalqa
  2022-10-07 16:04     ` uzibalqa
  1 sibling, 1 reply; 14+ messages in thread
From: Eli Zaretskii @ 2022-10-07 15:41 UTC (permalink / raw)
  To: help-gnu-emacs

> Date: Fri, 07 Oct 2022 15:26:45 +0000
> From: uzibalqa <uzibalqa@proton.me>
> Cc: help-gnu-emacs@gnu.org
> 
> > As usual in Emacs: by pressing TAB.
> 
> The difficulty occurs with read-char-by-name.  Using the common minibuffer commands such as
> "M-x text-TAB" I get the list of possible completions.
> 
> But with "read-char-by-name" the TAB does not fire the completion list.

It does here.  The first time you do that in a session it could be a
bit slow, because Emacs needs to scan the entire list of Unicode
characters.  But it does pop up a buffer with completions.



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Name completion when using "read-char-by-name"
  2022-10-07 15:26   ` uzibalqa
  2022-10-07 15:41     ` Eli Zaretskii
@ 2022-10-07 16:04     ` uzibalqa
  2022-10-07 18:34       ` Bruno Barbier
  2022-10-07 19:03       ` Eli Zaretskii
  1 sibling, 2 replies; 14+ messages in thread
From: uzibalqa @ 2022-10-07 16:04 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: help-gnu-emacs

------- Original Message -------
On Friday, October 7th, 2022 at 3:26 PM, uzibalqa <uzibalqa@proton.me> wrote:


> ------- Original Message -------
> On Friday, October 7th, 2022 at 6:51 AM, Eli Zaretskii eliz@gnu.org wrote:
> 
> 
> 
> > > Date: Fri, 07 Oct 2022 00:04:36 +0000
> > > From: uzibalqa uzibalqa@proton.me
> > > 
> > > How can I use completion when using "read-char-by-name"? I could write "*ARROW" but how can I
> > > force it to shew me possible completions?
> > 
> > As usual in Emacs: by pressing TAB.
> 
> 
> The difficulty occurs with read-char-by-name. Using the common minibuffer commands such as
> "M-x text-TAB" I get the list of possible completions.
> 
> But with "read-char-by-name" the TAB does not fire the completion list.

Ok.  I give some additional information.  If I input "RIGHT<TAB>" I do get the completion.
But what if I want names with "RIGHT" in the middle of a name?






^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Name completion when using "read-char-by-name"
  2022-10-07 15:41     ` Eli Zaretskii
@ 2022-10-07 17:33       ` uzibalqa
  2022-10-07 19:08         ` Eli Zaretskii
  0 siblings, 1 reply; 14+ messages in thread
From: uzibalqa @ 2022-10-07 17:33 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: help-gnu-emacs


------- Original Message -------
On Friday, October 7th, 2022 at 3:41 PM, Eli Zaretskii <eliz@gnu.org> wrote:


> > Date: Fri, 07 Oct 2022 15:26:45 +0000
> > From: uzibalqa uzibalqa@proton.me
> > Cc: help-gnu-emacs@gnu.org
> > 
> > > As usual in Emacs: by pressing TAB.
> > 
> > The difficulty occurs with read-char-by-name. Using the common minibuffer commands such as
> > "M-x text-TAB" I get the list of possible completions.
> > 
> > But with "read-char-by-name" the TAB does not fire the completion list.
> 
> 
> It does here. The first time you do that in a session it could be a
> bit slow, because Emacs needs to scan the entire list of Unicode
> characters. But it does pop up a buffer with completions.

I am quite sure that it is not a question of being slow because I get [no match].
Perhaps there is a setting for completions?  I am using Emacs 29.0.50




^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Name completion when using "read-char-by-name"
  2022-10-07 16:04     ` uzibalqa
@ 2022-10-07 18:34       ` Bruno Barbier
  2022-10-07 19:06         ` uzibalqa
  2022-10-07 19:03       ` Eli Zaretskii
  1 sibling, 1 reply; 14+ messages in thread
From: Bruno Barbier @ 2022-10-07 18:34 UTC (permalink / raw)
  To: uzibalqa, Eli Zaretskii; +Cc: help-gnu-emacs

uzibalqa <uzibalqa@proton.me> writes:

> ------- Original Message -------
> On Friday, October 7th, 2022 at 3:26 PM, uzibalqa <uzibalqa@proton.me> wrote:
>
>
>> ------- Original Message -------
>> On Friday, October 7th, 2022 at 6:51 AM, Eli Zaretskii eliz@gnu.org wrote:
>> 
>> 
>> 
>> > > Date: Fri, 07 Oct 2022 00:04:36 +0000
>> > > From: uzibalqa uzibalqa@proton.me
>> > > 
>> > > How can I use completion when using "read-char-by-name"? I could write "*ARROW" but how can I
>> > > force it to shew me possible completions?
>> > 
>> > As usual in Emacs: by pressing TAB.
>> 
>> 
>> The difficulty occurs with read-char-by-name. Using the common minibuffer commands such as
>> "M-x text-TAB" I get the list of possible completions.
>> 
>> But with "read-char-by-name" the TAB does not fire the completion list.
>
> Ok.  I give some additional information.  If I input "RIGHT<TAB>" I do get the completion.
> But what if I want names with "RIGHT" in the middle of a name?

If you're using the default completion style, try:

    <TAB>RIGHT

that is, move the cursor back before "RIGHT".

See 'basic' in the Emacs manual:

   (info "(emacs) Completion Styles")


Bruno



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Name completion when using "read-char-by-name"
  2022-10-07 16:04     ` uzibalqa
  2022-10-07 18:34       ` Bruno Barbier
@ 2022-10-07 19:03       ` Eli Zaretskii
  1 sibling, 0 replies; 14+ messages in thread
From: Eli Zaretskii @ 2022-10-07 19:03 UTC (permalink / raw)
  To: help-gnu-emacs

> Date: Fri, 07 Oct 2022 16:04:38 +0000
> From: uzibalqa <uzibalqa@proton.me>
> Cc: help-gnu-emacs@gnu.org
> 
> > But with "read-char-by-name" the TAB does not fire the completion list.
> 
> Ok.  I give some additional information.  If I input "RIGHT<TAB>" I do get the completion.
> But what if I want names with "RIGHT" in the middle of a name?

Type *RIGHT<TAB>

Note the asterisk.

P.S.  Do you ever try to read the documentation of the features you
ask about, before you ask?  Or do you expect others to spell it out
for you?  Because everything you ask for is in the documentation.  For
example, this last question's answer is right there in the doc string:

  You can type a few of the first letters of the Unicode name and
  use completion.  If you type a substring of the Unicode name
  preceded by an asterisk ‘*’ and use completion, it will show all
  the characters whose names include that substring, not necessarily
  at the beginning of the name.



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Name completion when using "read-char-by-name"
  2022-10-07 18:34       ` Bruno Barbier
@ 2022-10-07 19:06         ` uzibalqa
  0 siblings, 0 replies; 14+ messages in thread
From: uzibalqa @ 2022-10-07 19:06 UTC (permalink / raw)
  To: Bruno Barbier; +Cc: Eli Zaretskii, help-gnu-emacs


------- Original Message -------
On Friday, October 7th, 2022 at 6:31 PM, Bruno Barbier <brubar.cs@gmail.com> wrote:


> uzibalqa uzibalqa@proton.me writes:
> 
> > ------- Original Message -------
> > On Friday, October 7th, 2022 at 3:26 PM, uzibalqa uzibalqa@proton.me wrote:
> > 
> > > ------- Original Message -------
> > > On Friday, October 7th, 2022 at 6:51 AM, Eli Zaretskii eliz@gnu.org wrote:
> > > 
> > > > > Date: Fri, 07 Oct 2022 00:04:36 +0000
> > > > > From: uzibalqa uzibalqa@proton.me
> > > > > 
> > > > > How can I use completion when using "read-char-by-name"? I could write "*ARROW" but how can I
> > > > > force it to shew me possible completions?
> > > > 
> > > > As usual in Emacs: by pressing TAB.
> > > 
> > > The difficulty occurs with read-char-by-name. Using the common minibuffer commands such as
> > > "M-x text-TAB" I get the list of possible completions.
> > > 
> > > But with "read-char-by-name" the TAB does not fire the completion list.
> > 
> > Ok. I give some additional information. If I input "RIGHT<TAB>" I do get the completion.
> > But what if I want names with "RIGHT" in the middle of a name?
> 
> 
> If you're using the default completion style, try:
> 
> <TAB>RIGHT
> 
> 
> that is, move the cursor back before "RIGHT".
> 
> See 'basic' in the Emacs manual:
> 
> (info "(emacs) Completion Styles")

That does not complete for names that include RIGHT



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Name completion when using "read-char-by-name"
  2022-10-07 17:33       ` uzibalqa
@ 2022-10-07 19:08         ` Eli Zaretskii
  2022-10-07 19:22           ` uzibalqa
  0 siblings, 1 reply; 14+ messages in thread
From: Eli Zaretskii @ 2022-10-07 19:08 UTC (permalink / raw)
  To: help-gnu-emacs

> Date: Fri, 07 Oct 2022 17:33:11 +0000
> From: uzibalqa <uzibalqa@proton.me>
> Cc: help-gnu-emacs@gnu.org
> 
> > > "M-x text-TAB" I get the list of possible completions.
> > > 
> > > But with "read-char-by-name" the TAB does not fire the completion list.
> > 
> > 
> > It does here. The first time you do that in a session it could be a
> > bit slow, because Emacs needs to scan the entire list of Unicode
> > characters. But it does pop up a buffer with completions.
> 
> I am quite sure that it is not a question of being slow because I get [no match].
> Perhaps there is a setting for completions?  I am using Emacs 29.0.50

Is this in "emacs -Q"?  If not, look at your customizations.



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Name completion when using "read-char-by-name"
  2022-10-07 19:08         ` Eli Zaretskii
@ 2022-10-07 19:22           ` uzibalqa
  2022-10-07 19:24             ` uzibalqa
  0 siblings, 1 reply; 14+ messages in thread
From: uzibalqa @ 2022-10-07 19:22 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: help-gnu-emacs


------- Original Message -------
On Friday, October 7th, 2022 at 7:08 PM, Eli Zaretskii <eliz@gnu.org> wrote:


> > Date: Fri, 07 Oct 2022 17:33:11 +0000
> > From: uzibalqa uzibalqa@proton.me
> > Cc: help-gnu-emacs@gnu.org
> > 
> > > > "M-x text-TAB" I get the list of possible completions.
> > > > 
> > > > But with "read-char-by-name" the TAB does not fire the completion list.
> > > 
> > > It does here. The first time you do that in a session it could be a
> > > bit slow, because Emacs needs to scan the entire list of Unicode
> > > characters. But it does pop up a buffer with completions.
> > 
> > I am quite sure that it is not a question of being slow because I get [no match].
> > Perhaps there is a setting for completions? I am using Emacs 29.0.50
> 
> 
> Is this in "emacs -Q"? If not, look at your customizations.

Some package is changing the behaviour because things work with "emacs -Q".



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Name completion when using "read-char-by-name"
  2022-10-07 19:22           ` uzibalqa
@ 2022-10-07 19:24             ` uzibalqa
  2022-10-07 21:29               ` [External] : " Drew Adams
  2022-10-08  6:08               ` Eli Zaretskii
  0 siblings, 2 replies; 14+ messages in thread
From: uzibalqa @ 2022-10-07 19:24 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: help-gnu-emacs


------- Original Message -------
On Friday, October 7th, 2022 at 7:22 PM, uzibalqa <uzibalqa@proton.me> wrote:


> ------- Original Message -------
> On Friday, October 7th, 2022 at 7:08 PM, Eli Zaretskii eliz@gnu.org wrote:
> 
> 
> 
> > > Date: Fri, 07 Oct 2022 17:33:11 +0000
> > > From: uzibalqa uzibalqa@proton.me
> > > Cc: help-gnu-emacs@gnu.org
> > > 
> > > > > "M-x text-TAB" I get the list of possible completions.
> > > > > 
> > > > > But with "read-char-by-name" the TAB does not fire the completion list.
> > > > 
> > > > It does here. The first time you do that in a session it could be a
> > > > bit slow, because Emacs needs to scan the entire list of Unicode
> > > > characters. But it does pop up a buffer with completions.
> > > 
> > > I am quite sure that it is not a question of being slow because I get [no match].
> > > Perhaps there is a setting for completions? I am using Emacs 29.0.50
> > 
> > Is this in "emacs -Q"? If not, look at your customizations.
> 
> 
> Some package is changing the behaviour because things work with "emacs -Q".

What commands could be changing the default behaviour?




^ permalink raw reply	[flat|nested] 14+ messages in thread

* RE: [External] : Re: Name completion when using "read-char-by-name"
  2022-10-07 19:24             ` uzibalqa
@ 2022-10-07 21:29               ` Drew Adams
  2022-10-08  6:08               ` Eli Zaretskii
  1 sibling, 0 replies; 14+ messages in thread
From: Drew Adams @ 2022-10-07 21:29 UTC (permalink / raw)
  To: uzibalqa, Eli Zaretskii; +Cc: help-gnu-emacs@gnu.org

> > > Is this in "emacs -Q"? If not, look at your customizations.
> >
> >
> > Some package is changing the behaviour because
> > things work with "emacs -Q".
> 
> What commands could be changing the default behaviour?

Bisect your init file, to find out just where
you're shooting yourself in the foot.

Once you've determined that you're the culprit,
it's up to you to find where you're hurting
yourself.  Bisect, bisect, bisect.  That's a
binary search - performant.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Name completion when using "read-char-by-name"
  2022-10-07 19:24             ` uzibalqa
  2022-10-07 21:29               ` [External] : " Drew Adams
@ 2022-10-08  6:08               ` Eli Zaretskii
  1 sibling, 0 replies; 14+ messages in thread
From: Eli Zaretskii @ 2022-10-08  6:08 UTC (permalink / raw)
  To: help-gnu-emacs

> Date: Fri, 07 Oct 2022 19:24:00 +0000
> From: uzibalqa <uzibalqa@proton.me>
> Cc: help-gnu-emacs@gnu.org
> 
> > > Is this in "emacs -Q"? If not, look at your customizations.
> > 
> > 
> > Some package is changing the behaviour because things work with "emacs -Q".
> 
> What commands could be changing the default behaviour?

I don't know, something that deals with completion, perhaps?

But bisection is the best strategy.



^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2022-10-08  6:08 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-07  0:04 Name completion when using "read-char-by-name" uzibalqa
2022-10-07  6:51 ` Eli Zaretskii
2022-10-07 15:26   ` uzibalqa
2022-10-07 15:41     ` Eli Zaretskii
2022-10-07 17:33       ` uzibalqa
2022-10-07 19:08         ` Eli Zaretskii
2022-10-07 19:22           ` uzibalqa
2022-10-07 19:24             ` uzibalqa
2022-10-07 21:29               ` [External] : " Drew Adams
2022-10-08  6:08               ` Eli Zaretskii
2022-10-07 16:04     ` uzibalqa
2022-10-07 18:34       ` Bruno Barbier
2022-10-07 19:06         ` uzibalqa
2022-10-07 19:03       ` Eli Zaretskii

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.