I am using my-run-latex ()
function (explained here: How can I run additonal linux commands after compiling a latex file) after each save, which I do very often.
I bound it to: (add-hook 'LaTeX-mode-hook (λ () (local-set-key (kbd "C-x C-s") 'my-run-latex)))
.
I observe than after enter C-x C-s
, remove my finger from s
, continue to press Ctrl
and switch into press n
(final comman will be C-n
), once in a while instead of moving line below it shows nnnnnn
in the buffer.
What could be the main reason for this? Does pdf compilation at the background cause this? Is there any way to prevent this behavior?
ibuffer-mode-map
have to do with pressingC-x C-s
orC-n
inLaTeX-mode
?ibuffer-mode-map
has nothing to do with this, removed from questionM-x view-lossage
and go to the bottom of buffer and see whatemacs
is doing (or what your fingers are doing without your brain's approval) ...M-x view-lossage
and try to get some clue, but I am pretty sure my finger continues to pressCtrl
during this happens , but emacs assumes I don'tControl
modifier key and thinking you're only holding downn
.