Open some-mthfka opened 4 years ago
a similar thing happens when editing table cells
<backspace> ;; evil-delete-backward-char-and-join
<delete> ;; evil-delete-char
c ;; evil-change
d ;; evil-delete
s ;; evil-substitute
x ;; evil-delete-char
X ;; evil-delete-backward-char
C-z
) <delete> ;; delete-forward-char
<delete> ;; org-delete-char
C-z
) <backspace> ;; org-delete-backward-char
In at least one case, Evil behaves as expected, while vanilla Emacs moves the tags.
The tags don't move when pressing delete
in insert state:
<delete> ;; org-delete-char
\
runs the command org-delete-char (found in org-mode-map), which is an interactive compiled Lisp function in ‘org.el’. It is bound to \
. (org-delete-char N)
But they move in vanilla Emacs:
<delete> ;; delete-forward-char
\
(translated from \ ) runs the command delete-forward-char (found in global-map), which is an interactive compiled Lisp function in ‘simple.el’. It is bound to \
. (delete-forward-char N &optional KILLFLAG)
Both when Emacs is started with:
emacs -q
Org mode version 9.4.4 (release_9.4.4 @ c:/Program Files/Emacs/x86_64/share/emacs/27.2/lisp/org/)Org mode version 9.4.4 (release_9.4.4 @ c:/Program Files/Emacs/x86_64/share/emacs/27.2/lisp/org/)
org-plus-contrib
package is installed:
Org mode version 9.4.5 (9.4.5-16-g94be20-elpaplus @ c:/Users/username/AppData/Roaming/.org-plus-contrib.emacs.d/elpa/org-plus-contrib-20210412/)
The Evil config (Evil version 1.14.0
) uses the default Emacs 27.2, org version:
Org mode version 9.4.4 (release_9.4.4 @ c:/Program Files/Emacs/x86_64/share/emacs/27.2/lisp/org/)
The above was tested with:
GNU Emacs 27.2 (build 1, x86_64-w64-mingw32) of 2021-03-26
Windows 10 Version 2004
Issue type
Environment
Emacs version: 26.3 Operating System: arch linux Evil version: evil-git-874beba Evil installation type: Graphical/Terminal: graphical Tested in a
make emacs
session (see CONTRIBUTING.md): yesReproduction steps
when editing the title, you will see that adding characters preserves the alignment of the tags; removing characters breaks the alignment.
In vanilla emacs the alignment is always preserved.