From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: dkcombs@panix.com (David Combs) Newsgroups: gmane.emacs.help Subject: Re: I can't yank regexp for/into isearch-forward-regexp's pmpt Date: Sun, 13 Aug 2006 01:10:03 +0000 (UTC) Organization: Public Access Networks Corp. Message-ID: References: NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1155433292 13664 80.91.229.2 (13 Aug 2006 01:41:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 13 Aug 2006 01:41:32 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Aug 13 03:41:31 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GC4yj-0002Wj-LA for geh-help-gnu-emacs@m.gmane.org; Sun, 13 Aug 2006 03:41:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GC4yj-0007MW-8J for geh-help-gnu-emacs@m.gmane.org; Sat, 12 Aug 2006 21:41:25 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!spool-scsi2.readnews.com!news-out.readnews.com!news-xxxfer.readnews.com!news.misty.com!news.pir.net!panix!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 23 Original-NNTP-Posting-Host: panix3.panix.com Original-X-Trace: reader2.panix.com 1155431403 9806 166.84.1.3 (13 Aug 2006 01:10:03 GMT) Original-X-Complaints-To: abuse@panix.com Original-NNTP-Posting-Date: Sun, 13 Aug 2006 01:10:03 +0000 (UTC) X-Newsreader: trn 4.0-test76 (Apr 2, 2001) Original-Xref: shelby.stanford.edu gnu.emacs.help:141017 Original-To: help-gnu-emacs@gnu.org 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:36642 Archived-At: In article , Kevin Rodgers wrote: > >You might be able to do what you want with a little hacking: > >(defun isearch-yank-kill-as-regexp () > "Like `isearch-yank-kill', except during regular expression search: >Search for the text that matches the string (as a regexp) instead of >searching for the literal string itself." > (let ((isearch-regexp nil)) > (isearch-yank-kill))) > >(define-key isearch-mode-map "\M-z" 'isearch-yank-kill-as-regexp) > Thanks! -- I'll give it a try and report back (don't hold breath, though). Thanks also for the explanations. David