unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Alex Schroeder <alex@gnu.org>
Subject: isearch quasimode
Date: Sat, 09 Feb 2002 03:58:34 +0100	[thread overview]
Message-ID: <87n0yjgy3p.fsf@gnu.org> (raw)

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


             reply	other threads:[~2002-02-09  2:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-09  2:58 Alex Schroeder [this message]
2002-02-09 23:56 ` isearch quasimode Alex Schroeder
2002-02-10  5:18 ` Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87n0yjgy3p.fsf@gnu.org \
    --to=alex@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).