help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: VHDL and Emacs (My experience)


From: Lennart Borgman (gmail)
Subject: Re: VHDL and Emacs (My experience)
Date: Mon, 14 May 2007 20:51:26 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070326 Thunderbird/2.0.0.0 Mnenhy/0.7.5.666

Andy wrote:
On May 14, 12:07 pm, Mike Treseler <address@hidden> wrote:
Andy wrote:
 I had to set another couple of
options to get it to treat the selected text as "pending delete" too.
I do that with query-replace.

I just wish there was a handy way to select a word or phrase in the
code and then search for other occurrences of it, with minimal
additional typing. There probably is, but I just don't know it yet!
Like most tasks, it's easy once you know how to do it :)

C-s

Then type enough letters to see the instances light up.

C-s again to jump to the next instance, etc.

     -- Mike Treseler

Mike,

Thanks, but I already know how to use C-s (that's what I end up
using). Unfortunately, it still requires me to type the word (or
enough of it to be sufficiently unique) to start the search. I was
looking for something that allows me to select an existing word,
usually a port or signal/variable name (with mouse or keyboard), and
search for other occurrences of that word. Typing the entire word gets
tedious when using long names with specific suffixes, which require
that virtually the entire name be re-typed. When in I-search (C-s), a
C-v (paste) does not act like I typed it, but actually inserts the
copy buffer at the cursor location. It's like the C-v operation
overrides the fact that one is already in I-search mode.


You can use M-y to yank (ie paste) text into the C-s search string.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]