在Emacs中搜索标记(选定)文本 [英] Searching for marked (selected) text in Emacs

查看:102
本文介绍了在Emacs中搜索标记(选定)文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用emacs来查看和编辑代码和其他文本文件。我想知道是否有一种向前或向后搜索当前缓冲区中标记的文本的方法。类似于我可以在记事本或wordpad中做的。像在我可以标记缓冲区中的一些文本,做一个C-s或C-r,并能够搜索标记的文本,而不实际输入整个搜索文本?

I use emacs for viewing and editing code and other text files. I wanted to know if there is a way to search forward or backward for text which is marked in the current buffer. Similar to what I can do in notepad or wordpad. As in can I mark some text in the buffer and do a C-s or C-r and be able to search with the marked text without actually typing in the whole search text?

谢谢,

Rohit

推荐答案

是的。 M-W (以获取所选文本的副本) C-s< RET> C-y< RET> 。然后根据需要重复 C-s 。同样的 C-r

Yes. M-W (to get a copy of the selected text) C-s <RET> C-y <RET>. Then repeat C-s as needed. Similarly for C-r.

这篇关于在Emacs中搜索标记(选定)文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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