all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: uzibalqa via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: uzibalqa <uzibalqa@proton.me>
Cc: 58326@debbugs.gnu.org, Robert Pluim <rpluim@gmail.com>,
	Lars Ingebrigtsen <larsi@gnus.org>
Subject: bug#58326: Reading unicode user inputs from minibuffer
Date: Fri, 07 Oct 2022 00:45:45 +0000	[thread overview]
Message-ID: <gqCJtpSlD5g198wB4KUj7QATn4mg59SWt3kRFYbq-9n-wUcqxn99iO-46K1vwCaxuUWCxKTZWaNgAmT8y51twi_hEY1wI8Qs5_W9bPKWiAs=@proton.me> (raw)
In-Reply-To: <98EvsJF1Tt7YBu0ANLsW6xbGnVSX78C_anVJh5ebgk-2vAJTR7oCnpYSGGpSSotTJIlaIw-nwba6CG0Okzpdp9eunTQP6iQeP3Ps95D7N4I=@proton.me>


------- Original Message -------
On Thursday, October 6th, 2022 at 5:52 PM, uzibalqa via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org> wrote:


> ------- Original Message -------
> On Thursday, October 6th, 2022 at 5:21 PM, Robert Pluim rpluim@gmail.com wrote:
> 
> 
> 
> > > > > > > On Thu, 06 Oct 2022 16:34:01 +0000, uzibalqa uzibalqa@proton.me said:
> > 
> > uzibalqa> ------- Original Message -------
> > 
> > uzibalqa> On Thursday, October 6th, 2022 at 12:21 PM, Lars Ingebrigtsen larsi@gnus.org wrote:
> > 
> > > > This doesn't seem to be about any bugs in Emacs, so I'm closing this bug
> > 
> > > > report.
> > 
> > > > If you need help with using Emacs, please use the mailing lists that
> > 
> > > > exist for that purpose.
> > 
> > uzibalqa> It is about limitation on not taking \uN.
> > 
> > `read-char-by-name' accepts N or #xN, so why would it need extending
> > to accept \uN?
> 
> 
> Because \uN is also an acceptable declaration as has been used in elisp source
> code in other routines. Although accepting "N" from users is satisfactory.
> At times I feel that certain decisions on what to accept and what not to accept
> are completely arbitrary. I am of the school of thought that if there are three
> valid possibilities, one could simply support the three. Why deal with just
> two of them.
> 
> There is also another problem, suppose one decides to use a list, passing utf codes
> through "completing-read". In such case only codes inputted as "\u25BA" would work.
> Using "25BA" and "#x25BA" is futile. These are complications that can be avoided.

There is some serious inconsistency because 

I can do (code (completing-read "Opt: " '("\u27A4") nil t))) (setq glasses-separator code).
This works, but fails with "#x27A4".  

But then for read-char-by-name
(code (string (read-char-by-name "Opt: "))) (setq glasses-separator code)
This works with "#x27A4", but fails with "\u27A4"

(setq glasses-separator code) accepts a string, whether "\u27A4" or "#x27A4", but minibuffer
input is affected by which call is used "completing-read" or "read-char-by-name".










      reply	other threads:[~2022-10-07  0:45 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-06  3:42 bug#58326: Reading unicode user inputs from minibuffer uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-10-06  8:45 ` Robert Pluim
2022-10-06 11:51   ` uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-10-06 12:21     ` Lars Ingebrigtsen
2022-10-06 16:34       ` uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-10-06 17:21         ` Robert Pluim
2022-10-06 17:52           ` uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-10-07  0:45             ` uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]

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='gqCJtpSlD5g198wB4KUj7QATn4mg59SWt3kRFYbq-9n-wUcqxn99iO-46K1vwCaxuUWCxKTZWaNgAmT8y51twi_hEY1wI8Qs5_W9bPKWiAs=@proton.me' \
    --to=bug-gnu-emacs@gnu.org \
    --cc=58326@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    --cc=rpluim@gmail.com \
    --cc=uzibalqa@proton.me \
    /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.