在Emacs中,使用语义跳转到符号后如何回到上一行位置? [英] In Emacs, how to go back to previous line position after using semantic Jump to Symbol?

查看:23
本文介绍了在Emacs中,使用语义跳转到符号后如何回到上一行位置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道如何使用 semantic-mode 在 Emacs 中访问变量定义.它在单个文件中运行良好(我认为如果定义在另一个文件中它不起作用).使用 C-c , j ,我可以转到变量的定义,但是,我如何跳回到上一行?目前我使用 display Symref C-c , g,并选择显示的 symref.

I know how to go to a variable definition in Emacs using semantic-mode. It works well in a single file (I think it doesn't work if the definition is in another file). Using C-c , j, I can go to the definition of the variable, but, how do I jump back to the previous line? Currently I use display Symref C-c , g, and select the displayed symref.

有什么直接的方法吗?

推荐答案

使用:

C-u C-spaceC-u C-@

如果你想在缓冲区之间导航回来,你可以使用:

If you want to navigate back between buffers, you can use:

C-x C-spaceC-x C-@

这使 Emacs 跳转到通常由先前跳转命令设置的标记(并从从本地标记环弹出的位置设置标记).

This makes Emacs jump to the mark (and set the mark from position popped off the local mark ring) which has usually been set by a previous jump command.

这篇关于在Emacs中,使用语义跳转到符号后如何回到上一行位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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