From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Bruce Ingalls Newsgroups: gmane.emacs.help Subject: Re: replace C-s with C-f Date: Mon, 17 Feb 2003 19:35:12 GMT Organization: Road Runner - NYC Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1045510889 15629 80.91.224.249 (17 Feb 2003 19:41:29 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 17 Feb 2003 19:41:29 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18kr8q-00043x-00 for ; Mon, 17 Feb 2003 20:41:28 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18kr8V-0000fF-01 for gnu-help-gnu-emacs@m.gmane.org; Mon, 17 Feb 2003 14:41:07 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-out.visi.com!hermes.visi.com!nnxp1.twtelecom.net!news-east.rr.com!news-server.columbus.rr.com!cyclone.rdc-nyc.rr.com!news-out.nyc.rr.com!twister.nyc.rr.com.POSTED!not-for-mail User-Agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.2) Gecko/20021127 X-Accept-Language: en-us, en Original-Newsgroups: gnu.emacs.help In-Reply-To: Original-Lines: 19 Original-NNTP-Posting-Host: 24.168.135.82 Original-X-Complaints-To: abuse@rr.com Original-X-Trace: twister.nyc.rr.com 1045510512 24.168.135.82 (Mon, 17 Feb 2003 14:35:12 EST) Original-NNTP-Posting-Date: Mon, 17 Feb 2003 14:35:12 EST Original-Xref: shelby.stanford.edu gnu.emacs.help:110304 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:6806 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:6806 David Kastrup wrote: > Bruce Ingalls writes: > >>I bound C-f to isearch-forward, as follows: >> >> (global-set-key [(control s)] 'save-buffer) >> (global-set-key [(control f)] 'isearch-forward) >> >>The bindings work, but when I want to continue a search, >>by hitting C-f again, it instead stops & restarts the search. >>What is the best way to handle this? ...> So the answer is obvious: add your stuff to isearch-mode-map. Thanks for the help. I have problems with the syntax. At least the following compiled :) (append 'isearch-mode-map '(define-key map "\C-f" 'isearch-repeat-forward))