all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Drew Adams <drew.adams@oracle.com>
Cc: 36988@debbugs.gnu.org
Subject: bug#36988: 26.2; Error "Non-hex digit used for Unicode escape" is not too helpful
Date: Fri, 23 Aug 2019 06:21:31 +0200	[thread overview]
Message-ID: <87r25ch5pw.fsf@gnus.org> (raw)
In-Reply-To: <1cef4784-f090-4a83-b54d-496f23569dd3@default> (Drew Adams's message of "Fri, 9 Aug 2019 09:25:01 -0700 (PDT)")

Drew Adams <drew.adams@oracle.com> writes:

> emacs -Q
>
> Put this text in *scratch*, then move point to bob:
>
> "\u2"
>
> Then evaluate (read (current-buffer)).  You get this error:
>
> Debugger entered--Lisp error: (error "Non-hex digit used for Unicode escape")
>   read(#<buffer *scratch*>)
>   eval((read (current-buffer)) nil)
>   eval-expression((read (current-buffer)) nil nil 127)
>   funcall-interactively(eval-expression (read (current-buffer)) nil nil 127)
>   call-interactively(eval-expression nil nil)
>   command-execute(eval-expression)

[...]

> Perhaps there could be some way to point more or less to the offensive
> "Non-hex digit used for Unicode escape"?  In this case, the offense was
> apparently committed by the \u.

No, the quote mark.

I've now changed this error message to be a bit more helpful:

Non-hex character used for Unicode escape: " (34)

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





      reply	other threads:[~2019-08-23  4:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-09 16:25 bug#36988: 26.2; Error "Non-hex digit used for Unicode escape" is not too helpful Drew Adams
2019-08-23  4:21 ` Lars Ingebrigtsen [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=87r25ch5pw.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=36988@debbugs.gnu.org \
    --cc=drew.adams@oracle.com \
    /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.