在Emacs中追踪标签后切换到原始缓冲区 [英] Switch to original buffer after chasing tags in Emacs

查看:188
本文介绍了在Emacs中追踪标签后切换到原始缓冲区的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 M - 。跳转到类/函数的定义。有时候有多个类有相同的标签,所以我需要使用 C-u M - 。跳转到多个文件,因此多个缓冲区。现在我的问题是,如何快速回到原来的缓冲区?我知道 C-x b ,但是您需要键入缓冲区名称,或者默认情况下给您访问的最后一个缓冲区,是否还有进一步的?例如,去最后一个缓冲区的前一个缓冲区?

I use M-. to jump to definitions of class/functions. Sometimes there are multiple classes with the same tag, so I need to use C-u M-. to jump to multiple files, hence multiple buffers. Now my question is, how do I go back to the original buffer quickly? I know C-x b, but you need to type in the buffer name, or it just give you by default the last buffer you visited, is there anyway to go further? For example, go to the previous buffer of the last buffer?

推荐答案

我相信 M - 。 call find-tag 默认情况下。您应该可以使用 M - * pop-tag-mark )来备份堆栈。

I believe that M-. calls find-tag by default. You should be able to go back up the stack of locations with M-* (pop-tag-mark).

Ch f find-tag


表示调用此命令的点的标记将
推送到环上,并可能会弹出回到 M - * 。与此命令对应的
环标记。

A marker representing the point when this command is invoked is pushed onto a ring and may be popped back to with M-*. Contrast this with the ring of marks gone to by the command.

这篇关于在Emacs中追踪标签后切换到原始缓冲区的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆