From mboxrd@z Thu Jan 1 00:00:00 1970 Path: quimby.gnus.org!not-for-mail From: Alex Schroeder Newsgroups: gmane.emacs.devel Subject: isearch quasimode Date: Sat, 09 Feb 2002 03:58:34 +0100 Message-ID: <87n0yjgy3p.fsf@gnu.org> NNTP-Posting-Host: quimby2.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: quimby2.netfonds.no 1013224159 18231 195.204.10.66 (9 Feb 2002 03:09:19 GMT) X-Complaints-To: usenet@quimby2.netfonds.no NNTP-Posting-Date: 9 Feb 2002 03:09:19 GMT Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby2.netfonds.no with esmtp (Exim 3.12 #1 (Debian)) id 16ZNt8-0004jx-00 for ; Sat, 09 Feb 2002 04:09:18 +0100 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian)) id 16ZNkG-00081H-00; Fri, 08 Feb 2002 22:00:08 -0500 Original-Received: from relay03.cablecom.net ([62.2.33.103]) by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian)) id 16ZNiH-0007yi-00 for ; Fri, 08 Feb 2002 21:58:05 -0500 Original-Received: from mail.swissonline.ch (mail.swissonline.ch [62.2.32.83]) by relay03.cablecom.net (8.11.6/8.11.4/SOL/AWF/MXRELAY/06072001) with ESMTP id g192w3Y77495 for ; Sat, 9 Feb 2002 03:58:04 +0100 (CET) Original-Received: from confusibombus (dclient217-162-125-103.hispeed.ch [217.162.125.103]) by mail.swissonline.ch (8.11.4/8.11.4/MSOL-2.30/21-Dec-2000) with ESMTP id g192w2F10665 for ; Sat, 9 Feb 2002 03:58:03 +0100 (MET) Original-Received: from alex by confusibombus with local (Exim 3.12 #1 (Debian)) id 16ZNil-0000JE-00 for ; Sat, 09 Feb 2002 03:58:35 +0100 Original-To: emacs-devel@gnu.org X-Face: ^BC$`[IcggstLPyen&dqF+b2'zyK#r.mU*'Nms}@&4zw%SJ#5!/7SMVjBS7'lb;QK)|IPU5U'o1'522W4TyzB3Ab*IBo^iw]l4|kUbdZuUDO6=Um-.4IzhNiV'B"@K#jy_(wW|Zbk[34flKY^|PrQ?$u2\fKg^]AY>wOX#H32i Original-Lines: 23 User-Agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.1 (i686-pc-linux-gnu) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: quimby.gnus.org gmane.emacs.devel:902 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:902 I want to write an isearch quasimode. Instead of typing C-s a l e x to search for the next occurence of alex, I want to type s-a s-l s-e s-x, assuming that Super indicated the search-quasimode. Does anybody else think this would be a nice idea? You could use s-SPC to emulate forward-word, for example. I think that would make a search alternative even better than isearch -- if you have enough modifier bits left (I'm thinking of Super for forward searching and Hyper for backward searching... YMMV.) Anyway, looking at isearch.el is rather daunting, so I'm looking for some help... The first question is -- given a string, what do I do to use isearch machinery to search for it? I was hoping for something like the following, but there must be more to it. (let ((isearch-string "alex")) (isearch-search-and-update)) Alex. -- http://www.emacswiki.org/ _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://mail.gnu.org/mailman/listinfo/emacs-devel