From: Protesilaos Stavrou <info@protesilaos.com>
To: 57214@debbugs.gnu.org
Cc: summeremacs@gmail.com
Subject: bug#57214: 29.0.50; Incorrect rendering of Emoji (grapheme cluster) in Org heading
Date: Sun, 14 Aug 2022 21:47:21 +0300 [thread overview]
Message-ID: <877d3avf0m.fsf@protesilaos.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2081 bytes --]
Dear maintainers,
I have encountered a bug where grapheme clusters are not rendered
properly when used inside of a folded heading in Org.
Steps to reproduce with 'emacs -Q':
1. Evaluate:
(setq org-pretty-entties t
org-ellipsis " ☀️")
2. Either visit an existing Org file or use the attached sample.
3. Fold a heading in Org by pressing TAB with point somewhere on the
heading.
4. Notice the incorrectly rendered sun emoji at the end of the folded
heading.
If I change 'org-ellipsis' to a single character emoji, such as the
generic smile, the problem no longer occurs:
* Evaluate:
(setq org-ellipsis " 😀")
* Then in the Org file do 'M-x org-mode-restart'.
The smile emoji renders properly at the end of the folded heading's
line.
The attached screenshots show the different results.
All the best,
Protesilaos (or simply "Prot")
* * *
In GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.34, cairo version 1.17.6)
of 2022-08-14 built on kronos
Repository revision: b93e14fa0fd5833adbdd88ec86fccc4b59172302
Repository branch: master
System Description: Arch Linux
Configured using:
'configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib
--localstatedir=/var --mandir=/usr/share/man --with-gameuser=:games
--without-libotf --without-m17n-flt --without-gconf
--with-native-compilation --with-pgtk --with-sound=no --without-gpm
--without-compress-install
'--program-transform-name=s/\([ec]tags\)/\1.emacs/'
'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions
-Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security
-fstack-clash-protection -fcf-protection'
LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now'
Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON
LCMS2 LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PGTK
PNG RSVG SECCOMP SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS WEBP XIM GTK3
ZLIB
--
Protesilaos Stavrou
https://protesilaos.com
[-- Attachment #2: sample.org --]
[-- Type: application/vnd.lotus-organizer, Size: 65 bytes --]
[-- Attachment #3: Screenshot from 2022-08-14 21-39-19.png --]
[-- Type: image/png, Size: 48974 bytes --]
[-- Attachment #4: Screenshot from 2022-08-14 21-39-44.png --]
[-- Type: image/png, Size: 51849 bytes --]
next reply other threads:[~2022-08-14 18:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-14 18:47 Protesilaos Stavrou [this message]
2022-08-14 19:12 ` bug#57214: 29.0.50; Incorrect rendering of Emoji (grapheme cluster) in Org heading Eli Zaretskii
2022-08-15 7:37 ` Protesilaos Stavrou
2022-08-15 11:43 ` Eli Zaretskii
2022-08-15 14:12 ` Protesilaos Stavrou
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=877d3avf0m.fsf@protesilaos.com \
--to=info@protesilaos.com \
--cc=57214@debbugs.gnu.org \
--cc=summeremacs@gmail.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.