emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#68671: closed (30.0.50; C-x 8 e s RET persistently breaks C-x 8 e r)


From: GNU bug Tracking System
Subject: bug#68671: closed (30.0.50; C-x 8 e s RET persistently breaks C-x 8 e r)
Date: Sat, 27 Jan 2024 13:55:02 +0000

Your message dated Sat, 27 Jan 2024 15:53:57 +0200
with message-id <8634ui991m.fsf@gnu.org>
and subject line Re: bug#68671: 30.0.50; C-x 8 e s RET persistently breaks C-x 
8 e r
has caused the debbugs.gnu.org bug report #68671,
regarding 30.0.50; C-x 8 e s RET persistently breaks C-x 8 e r
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
68671: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=68671
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: 30.0.50; C-x 8 e s RET persistently breaks C-x 8 e r Date: Tue, 23 Jan 2024 11:59:41 +0100
1. emacs -Q
2. C-x 8 e s RET
   [ i.e. invoke `emoji-search` and exit with an empty minibuffer ]
3. Observe error "Wrong type argument: char-or-string-p, nil".  This
   error message could be more friendly, but that's not the issue here.
4. C-x 8 e r
5. Observe error "Wrong type argument: stringp, nil".  That's the issue.

What happens is that C-x 8 e s RET adds `nil` to the value of
`emoji--recent`, which breaks subsequent C-x 8 e r (`emoji-recent`).
This is extra troublesome because `emoji--recent` is used as a
multisession variable, so simply restarting Emacs doesn't help.

I see this also with Emacs 29.2, FWIW.


In GNU Emacs 30.0.50 (build 58, x86_64-apple-darwin23.0.0, NS
 appkit-2487.00 Version 14.0 (Build 23A344)) of 2024-01-23



--- End Message ---
--- Begin Message --- Subject: Re: bug#68671: 30.0.50; C-x 8 e s RET persistently breaks C-x 8 e r Date: Sat, 27 Jan 2024 15:53:57 +0200
> From: Eshel Yaron <me@eshelyaron.com>
> Cc: 68671@debbugs.gnu.org
> Date: Sat, 27 Jan 2024 14:10:15 +0100
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> >> Date: Tue, 23 Jan 2024 11:59:41 +0100
> >> From:  Eshel Yaron via "Bug reports for GNU Emacs,
> >>  the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
> >>
> >>
> >> 1. emacs -Q
> >> 2. C-x 8 e s RET
> >>    [ i.e. invoke `emoji-search` and exit with an empty minibuffer ]
> >> 3. Observe error "Wrong type argument: char-or-string-p, nil".  This
> >>    error message could be more friendly, but that's not the issue here.
> >> 4. C-x 8 e r
> >> 5. Observe error "Wrong type argument: stringp, nil".  That's the issue.
> >>
> >> What happens is that C-x 8 e s RET adds `nil` to the value of
> >> `emoji--recent`, which breaks subsequent C-x 8 e r (`emoji-recent`).
> >> This is extra troublesome because `emoji--recent` is used as a
> >> multisession variable, so simply restarting Emacs doesn't help.
> >>
> >> I see this also with Emacs 29.2, FWIW.
> >
> > Thanks.  Patches for fixing this will be most welcome.
> 
> I'm attaching such a patch below.  This provides better feedback when
> you exit the `C-x 8 e s` minibuffer with an empty input, and avoids
> adding `nil` to `emoji--recent` by bailing beforehand.

Thanks, installed on both emacs-29 and master branches, and closing
the bug.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]