emacs-orgmode
[Top][All Lists]
Advanced

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

[PATCH] Fix bug in orgtbl-self-insert-command when used with evil-escape


From: Aaron Zeng
Subject: [PATCH] Fix bug in orgtbl-self-insert-command when used with evil-escape
Date: Mon, 03 Apr 2023 14:35:23 -0400

There appears to be a bug in orgtbl-self-insert-command, which uses 
last-input-event instead of last-command-event.  self-insert-command itself 
uses the latter variable.

Reproduction steps:

1. Enable evil-mode and evil-escape-mode
2. Set `evil-escape-key-sequence' to "fd" (the default)
3. In an empty text-mode buffer with orgtbl-mode enabled:
   a. Press `f RET' slowly; this inserts f and then a newline
   b. Press `f RET` quickly; this inserts just two newlines

After step 3b, view-lossage contains:

 f                 ;; orgtbl-self-insert-command
 <return> <return> ;; orgtbl-hijacker-command-100

With the patch, the above steps correctly insert f and then a newline.

Attachment: 0001-org-table-Refactor-away-unnecessary-variable.patch
Description: Text Data

Attachment: 0002-org-table-Fix-incorrect-input-when-used-with-evil-es.patch
Description: Text Data


reply via email to

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