From: Daniel Mendler via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: i@fuzy.me, luangruo@yahoo.com, 75199@debbugs.gnu.org
Subject: bug#75199: 30.0.93; Emacs crashes when completing with corfu
Date: Mon, 30 Dec 2024 19:43:34 +0100 [thread overview]
Message-ID: <877c7hc8q1.fsf@daniel-mendler.de> (raw)
In-Reply-To: <86bjwtnhyh.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 30 Dec 2024 20:28:38 +0200")
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Daniel Mendler <mail@daniel-mendler.de>
>> Cc: Eli Zaretskii <eliz@gnu.org>, luangruo@yahoo.com, 75199@debbugs.gnu.org
>> Date: Mon, 30 Dec 2024 19:00:45 +0100
>>
>> Zhengyi Fu <i@fuzy.me> writes:
>>
>> > On 2024-12-30 23:24, Eli Zaretskii wrote:
>> >
>> >> Earlier you wrote:
>> >>
>> >>> The error is probably caused by the width value of 0 passed to
>> >>> XCreatePixmapFromBitmapData().
>> >>> It seems gui_intersect_rectangles() returns true even if the resulted
>> >>> rectangle is empty. Is that correct behavior?
>> >> Can you tell how this happens? Is corfu doing something special with
>> >> the fringes?
>> >
>> > I noticed the following calls in corfu--popup-show before the error:
>> >
>> > * define-fringe-bitmap(corfu--bar [-241] 1 8 (top periodic))
>> > * define-fringe-bitmap(corfu--nil [])
>>
>> I've adjusted the second call to the following, also for compatibility
>> with older Emacs versions.
>>
>> (define-fringe-bitmap 'corfu--nil [0] 1 1)
>
> Doesn't
>
> (define-fringe-bitmap 'corfu--nil [0])
>
> work as well? If it doesn't, I guess the doc string is inaccurate?
Yes. If I understand [info:elisp#Customizing Bitmaps] correctly, in this
case the HEIGHT would be 1, but the WIDTH would be 8. This is slightly
different from the above, but it should work just as well given that the
bitmap is all zero. The corfu--nil bitmap is just a placeholder for the
empty fringe.
Daniel
next prev parent reply other threads:[~2024-12-30 18:43 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-30 13:02 bug#75199: 30.0.93; Emacs crashes when completing with corfu Zhengyi Fu
[not found] ` <handler.75199.B.17355638041034.ack@debbugs.gnu.org>
2024-12-30 14:25 ` bug#75199: Acknowledgement (30.0.93; Emacs crashes when completing with corfu) Zhengyi Fu
2024-12-30 14:40 ` bug#75199: 30.0.93; Emacs crashes when completing with corfu Eli Zaretskii
2024-12-30 15:04 ` Zhengyi Fu
2024-12-30 15:24 ` Eli Zaretskii
2024-12-30 15:45 ` Zhengyi Fu
2024-12-30 15:55 ` Zhengyi Fu
2024-12-30 18:00 ` Daniel Mendler via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-30 18:28 ` Eli Zaretskii
2024-12-30 18:43 ` Daniel Mendler via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2024-12-30 19:17 ` Eli Zaretskii
2024-12-30 19:47 ` Daniel Mendler via Bug reports for GNU Emacs, the Swiss army knife of text editors
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=877c7hc8q1.fsf@daniel-mendler.de \
--to=bug-gnu-emacs@gnu.org \
--cc=75199@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=i@fuzy.me \
--cc=luangruo@yahoo.com \
--cc=mail@daniel-mendler.de \
/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.