1. Create or open a .org file with a top-level TODO item, e.g.:
* TODO Do something special
2. Add a malformed tag by typing, so the line looks like this:
* TODO Do something special :to-do:zoom:
You will notice that Emacs/Org-mode doesn't highlight the tags. Also note that the tag "to-do" is malformed; tags aren't allowed to contain dashes.
3. Add a good tag by using C-c C-q, type "todo" and hit enter. Your line should now look like this:
* TODO Do something :to-do:zoom: :todo:
4. Now put your cursor on the first colon on the line (col 21) and hit C-d repeatedly to delete the "tags" you placed earlier.
5. Crash!
In GNU Emacs 28.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.35, cairo version 1.16.0) of 2023-03-19, modified by Debian built on kokoro-ubuntu Windowing system distributor 'The X.Org Foundation', version 11.0.12101005 System Description: Debian GNU/Linux rodete
Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix
Major mode: Org
Minor modes in effect: display-time-mode: t display-battery-mode: t global-auto-revert-mode: t google-emacs-support-show-upgrade-mode: t editorconfig-mode: t google3-build-global-integrate-build-manipulation-mode: t google3-build-integrate-build-manipulation-mode: t google-kg-mode: t shell-dirtrack-mode: t tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t size-indication-mode: t column-number-mode: t line-number-mode: t auto-fill-function: org-auto-fill-function transient-mark-mode: t