From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: BobD Newsgroups: gmane.emacs.help Subject: Isearch - Incremental search with predefined initial character? Date: Sat, 4 Oct 2014 10:57:28 -0700 (PDT) Message-ID: <3732af9c-0454-431c-88c5-975f34971eee@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1412445627 29860 80.91.229.3 (4 Oct 2014 18:00:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 4 Oct 2014 18:00:27 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Oct 04 20:00:20 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XaTcy-0006IP-KM for geh-help-gnu-emacs@m.gmane.org; Sat, 04 Oct 2014 20:00:20 +0200 Original-Received: from localhost ([::1]:44712 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XaTcy-0006Qq-CY for geh-help-gnu-emacs@m.gmane.org; Sat, 04 Oct 2014 14:00:20 -0400 X-Received: by 10.224.172.2 with SMTP id j2mr10071534qaz.3.1412445448599; Sat, 04 Oct 2014 10:57:28 -0700 (PDT) X-Received: by 10.140.93.79 with SMTP id c73mr2213qge.9.1412445448496; Sat, 04 Oct 2014 10:57:28 -0700 (PDT) Original-Path: usenet.stanford.edu!s7no504179qap.0!news-out.google.com!q8ni41qal.1!nntp.google.com!dc16no622821qab.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=184.61.70.189; posting-account=9hbhDwoAAABs5yR7ZnWiLXjb_7uCgBXB Original-NNTP-Posting-Host: 184.61.70.189 User-Agent: G2/1.0 Injection-Date: Sat, 04 Oct 2014 17:57:28 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:207994 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:100270 Archived-At: Using 24.3.1 (i386-mingw-nt6.1.7601) I wish to do incremental searches with the first character pre-defined, i.e. have emacs prepend a character to the characters I enter. E.g., if I start an i-search, and then enter "abc", emacs will pretend I entered "Xabc". If I continue the i-search, emacs will seek "Xabc". I fiddled with isearch-mode-hook, but I couldn't see how to continue searching with the prepended character. Do I need to fiddle with the "isearch-repeat-..." code? Do I need to fiddle with other code?