🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.help
Article #189281

Re: isearch question

#189281
From: Roland McGrath
Date: Sun, 17 Mar 1991 19:48
27 lines
2102 bytes
In article <9103151823.AA08976@aspen.cs.uiuc.edu> liberte@CS.UIUC.EDU (Daniel LaLiberte) writes:

   Has anyone considered making the incremental searcher command(s)
   into a minor mode?  This wouldnt help the problem of rebinding
   the search-delete-char, for example, but it would unify the 
   interface with the rest of emacs.

I've considered using a keymap rather than the current hard-wired ickiness.
I think I'd still have it read the keys itself rather than just using the
command loop, so you get what you want for C-g.  Either that or a
recursive-edit would be necessary, I think.

   The more general problem is the binding of abstract keys (e.g.
   delete-char) to functions rather than binding literal keys (e.g.
   \b) to functions as is done now.  Any ideas?

That's not so hard.  Just take the keymap and replace matching elts with
something else.  What I think you'd really want for isearch is to take the
current keymap (the union of the local and global maps), and replace
backward-delete-char with isearch-backward-delete-char, yank with
isearch-yank, etc., and everything else with isearch-exit.
Hmm.  Talk to me about this in a few months, after I've released the C
library, when I'll be maintaining the elisp code.
--
	Roland McGrath
	Free Software Foundation, Inc.
roland@ai.mit.edu, uunet!ai.mit.edu!roland
Technical Details
Message-ID: <ROLAND.91Mar17144829@albert.ai.mit.edu>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!samsung!think.com!mintaka!albert.ai.mit.edu!roland
References: <9103151823.AA08976@aspen.cs.uiuc.edu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 103b8b,61f3acf7b9f3e94f
X-Google-Attributes: gid103b8b,public
X-Google-ArrivalTime: 1991-03-18 03:22:48 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!samsung!think.com!mintaka!albert.ai.mit.edu!roland
From: roland@ai.mit.edu (Roland McGrath)
Newsgroups: gnu.emacs.help
Subject: Re: isearch question
Message-ID: <ROLAND.91Mar17144829@albert.ai.mit.edu>
Date: 17 Mar 91 19:48:29 GMT
References: <9103151823.AA08976@aspen.cs.uiuc.edu>
Sender: daemon@mintaka.lcs.mit.edu (Lucifer Maleficius)
Followup-To: gnu.emacs.help
Organization: Hackers Anonymous International, Ltd., Inc. (Applications
 welcome)
Lines: 27
In-Reply-To: liberte@CS.UIUC.EDU's message of 15 Mar 91 18:23:18 GMT