From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Martin Thompson Newsgroups: gmane.emacs.help Subject: Re: VHDL and Emacs (My experience) Date: Mon, 14 May 2007 09:07:57 +0100 Organization: TRW Conekt Message-ID: References: <86r6povroi.fsf@harnisch.dyndns.org> <1178889482.456786.95810@u30g2000hsc.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1179166738 4862 80.91.229.12 (14 May 2007 18:18:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 14 May 2007 18:18:58 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon May 14 20:18:56 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Hnf8J-0007IE-3h for geh-help-gnu-emacs@m.gmane.org; Mon, 14 May 2007 20:18:55 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HnfG5-0004Rp-Bd for geh-help-gnu-emacs@m.gmane.org; Mon, 14 May 2007 14:26:57 -0400 Original-Path: shelby.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: comp.lang.vhdl,gnu.emacs.help Original-Followup-To: comp.lang.vhdl Original-Lines: 34 Original-X-Trace: individual.net oUjWBJGkcH1z5i3xaijxHQGLULs9UecHvya5ksvjT1CuIsDvs= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.92 (windows-nt) Cancel-Lock: sha1:jAgcCwvRC3hv7PhAu6mil+NB48k= Original-Xref: shelby.stanford.edu comp.lang.vhdl:66781 gnu.emacs.help:148360 X-Mailman-Approved-At: Mon, 14 May 2007 14:22:30 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:43977 Archived-At: Andy writes: > I use xemacs with cua mode and it handles most of the windows > shortcuts (including C-c, C-x and C-v). I had to set another couple of > options to get it to treat the selected text as "pending delete" too. > 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! > Hi Andy, Does C-s, M-y do what you want? This calls up a search and pastes your previous copy into it. I have C-s bound to isearch-forward, which may be non-default. C-s might be a normal (non-incremental) search, in which case, C-s, C-y might do the trick? Alternatively, "M-x occur" is useful, it opens another window listing which lines a particular phrase (well, regexp) occurs in. If you like it, bind a key for that too :-) I also have a key bound to mark and copy the word/signalname/etc that is under the cursor, all in one go. which is quite handy for these sorts of things... Cheers, Martin -- martin.j.thompson@trw.com TRW Conekt - Consultancy in Engineering, Knowledge and Technology http://www.conekt.net/electronics.html