在emacs中显示最近的击键 [英] displaying recent keystrokes in emacs
问题描述
如何恢复我刚刚在Emacs中键入的最新击键?我是Emacs的长期用户(已有30年的经验),但是我经常不正确地键入键序列,却发生了一些奇怪的事情,并且我想知道与我所键入的字符相比,我键入的字符序列是什么.我知道有一个命令可以显示我输入的几十个最新字符,但是我不记得它是什么,而且我似乎也找不到.例如,有时在 dirted-mode
下,我将光标移到一个文件上,然后键入!
在该文件上运行命令,但是通过键入其他一些顺序错误,突然我发现我选择了 dirted
缓冲区中的所有文件,并且所有文件都标有 *
.在这种情况下,我正在尝试调试输入.
类型 Ch l ,它调用 view-lossage
.>
How do I recover the most recent keystrokes I just typed in Emacs? I'm a long-time Emacs user (30 years), but every so often I mistype a key sequence, something strange happens, and I want to know what sequence of chars I typed, compared with what I thought I typed. I know there's a command that shows a couple dozen of the most recent chars I typed, but I can't remember what it is, and I can't seem to find it either. For example, sometimes in dired-mode
, I move the cursor to a file, and I type !
to run a command on that file, but I type some other sequence by mistake, and suddenly I see I've selected all files in the dired
buffer—all files are marked with *
. I'm trying to debug my typing in this situation.
Type C-hl, which invokes view-lossage
.
这篇关于在emacs中显示最近的击键的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!