From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Wang Yin Newsgroups: gmane.emacs.help Subject: Please modify some elisp code for me. Date: 12 May 2003 18:26:38 +0800 Organization: Bentium Ltd. (CN99) Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1052734900 10141 80.91.224.249 (12 May 2003 10:21:40 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 12 May 2003 10:21:40 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Mon May 12 12:21:38 2003 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 19FAQ1-0002Zk-00 for ; Mon, 12 May 2003 12:20:30 +0200 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 19FAQg-00089t-00 for gnu-help-gnu-emacs@m.gmane.org; Mon, 12 May 2003 06:21:10 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!newsgate.cuhk.edu.hk!news.cn99.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 41 Original-NNTP-Posting-Host: tu140066.tsinghua.edu.cn Original-X-Trace: mail.cn99.com 1052734572 3386 166.111.140.66 (12 May 2003 10:16:12 GMT) Original-X-Complaints-To: usenet@news.cn99.com Original-NNTP-Posting-Date: Mon, 12 May 2003 10:16:12 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-Xref: shelby.stanford.edu gnu.emacs.help:113092 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:9588 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:9588 Hi, I've found a wonderful elisp code named "quosimode search" at emacswiki.org. It uses two mofifiers for incremental search for text. For example, if I keep Super_R down and type character, it will search forward for that string. If I keep Hyper_L down, it will search backward. I have some interesting ideas about this function. Sometimes, we just want to go to a location quickly. We can press Super_R and just type the charaters around that point. We can move there. But now the problem is that this code hasn't a good repeat mechanism. If I typed a prefix for that location, I can't skip something similiar before that point. For example, the pointer is at beginning of the sentence: "It stores the string to find in the variable `qsearch-string' " ^^^I want to move here I press Hyper_R and type "i", "n", "g", ... "It stores the string to find in the variable `qsearch-string' " ^^^the pointer stopped here At this moment, I want to use another key, say Hyper_R-RET, to repeat the search for the string "ing" to the next one. qsearch.el stores the string to find in the variable `qsearch-string'. It's easy to repeat the search but the author didn't implement such a command. Who will modify this code to enhance it? I think it's better define a -- Wang Yin DA Lab, Tsinghua University, 100084 Beijing China