Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

delete does not work on bullet, in latest Emacs #32

Open
holtzermann17 opened this issue Sep 19, 2022 · 1 comment
Open

delete does not work on bullet, in latest Emacs #32

holtzermann17 opened this issue Sep 19, 2022 · 1 comment

Comments

@holtzermann17
Copy link

For me <delete> runs the command delete-forward-char.

Pressing it with the cursor on a bullet raises the following debugger message:

Debugger entered--Lisp error: (wrong-type-argument sequencep t)
  lgstring-glyph-boundary(t 117 118)
  delete-forward-char(1 nil)
  funcall-interactively(delete-forward-char 1 nil)
  command-execute(delete-forward-char)

I'm on GNU Emacs 29.0.50 (build 3, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0, Xaw3d scroll bars) of 2022-08-22.

@holtzermann17
Copy link
Author

Quick work-around

(defun delete-something-here ()
  (interactive)
  (if (get-char-property (point) 'composition)
      (delete-region (point) (1+ (point)))
    (delete-forward-char 1)))

(global-set-key [delete] 'delete-something-here)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant