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

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

问题描述

我知道如何使用语义模式在Emacs中使用变量定义。它在单个文件中工作良好(我认为如果定义在另一个文件中,则不起作用)。使用 C-c,j ,我可以去定义变量,但是如何跳回上一行呢?目前我使用显示Symref C-c,g ,并选择显示的symref。



有没有直接的方法?

解决方案

使用: Cu>



如果要在缓冲区之间导航,可以使用:



Cx C-space Cx C - @



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


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.

Is there any straight method?

解决方案

Use:

C-u C-space or C-u C-@

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

C-x C-space or C-x C-@

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天全站免登陆