unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Devon Sean McCullough <Emacs-Hacker2020@jovi.net>
Cc: 53477@debbugs.gnu.org
Subject: bug#53477: 28.0.50; what-cursor-position
Date: Sun, 23 Jan 2022 18:43:17 +0200	[thread overview]
Message-ID: <83h79ul7x6.fsf@gnu.org> (raw)
In-Reply-To: <ce67e421-5c5e-6492-3509-f8ef34224908@jovi.net> (message from Devon Sean McCullough on Sun, 23 Jan 2022 11:08:12 -0500)

> Date: Sun, 23 Jan 2022 11:08:12 -0500
> From: Devon Sean McCullough <Emacs-Hacker2020@jovi.net>
> 
> (let ((debug-on-error t))
>    (pop-to-buffer "bad-char")
>    (save-excursion
>      (insert #x1F62D))
>    (what-cursor-position t))
> 
> ; often bombs instead - as does c-U c-X = but not c-X =
> 
> Debugger entered--Lisp error: (cl-assertion-failed ((not (multibyte-string-p str)) nil))
>    cl--assertion-failed((not (multibyte-string-p str)))
>    encoded-string-description(#("😭" 0 1 (charset unicode)) nil)
>    describe-char(1)
>    what-cursor-position(t)
>    (let ((debug-on-error t)) (pop-to-buffer "bad-char") (save-excursion (insert 128557)) (what-cursor-position t))
>    eval((let ((debug-on-error t)) (pop-to-buffer "bad-char") (save-excursion (insert 128557)) (what-cursor-position t)) nil)
>    elisp--eval-last-sexp(nil)
>    eval-last-sexp(nil)
>    funcall-interactively(eval-last-sexp nil)
>    call-interactively(eval-last-sexp nil nil)
>    command-execute(eval-last-sexp)

I cannot reproduce this, and I don't see how this would be possible,
since encoded-string-description is only ever called for the result of
encode-coding-string, which must be a unibyte string.

> In GNU Emacs 28.0.50 (build 1, x86_64-apple-darwin18.7.0, NS appkit-1671.60 Version 10.14.6 (Build 18G95))
>   of 2021-06-20 built on builder10-14.porkrind.org

This seems to be a very old build of a development version; do you
still see this in the current code?





  reply	other threads:[~2022-01-23 16:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-23 16:08 bug#53477: 28.0.50; what-cursor-position Devon Sean McCullough
2022-01-23 16:43 ` Eli Zaretskii [this message]
2022-02-21 14:20   ` Lars Ingebrigtsen

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83h79ul7x6.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=53477@debbugs.gnu.org \
    --cc=Emacs-Hacker2020@jovi.net \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).