没有检查修改键当前状态的功能,但可以检查命令最后使用的键是否与“control”一起使用: (memq 'control (event-modifiers last-command-event)) 请注意,TAB和RET实际上与C-i和C-m相同,因此它们被视为具有“控制”修饰符。
interactive
或current-prefix-argument
来实现这一点。 - Lindydancer