Article View: gnu.emacs.help
Article #189136Re: "Real" Vi and Edt emulation packages?
From: Bill Reynolds
Date: Sat, 27 Apr 1991 06:53
Date: Sat, 27 Apr 1991 06:53
27 lines
2224 bytes
2224 bytes
In article <9104252257.AA18628@galahad.cs.purdue.edu> svb@CS.PURDUE.EDU (Stephan Bechtolsheim) writes: > has nothing to do with emacs. Check the manual: you can > define what a word is etc., so there is no problem with that. > > StvB Umm... Correct me if I'm wrong, but doesn't emacs allow you to redefine the *constituents* of words through the use of the syntax table, but not exactly what the *definition* of a word is, i.e. I could say that "from now on 'a'is a punctuation-constituent character", but I cannot say something like "a word consists of a non-empty string of word-constituent characters surrounded by whitespace or punctuation-constituent characters". I've thought about how to do this, since emacs' idea of words drive me crazy too. I've considered altering the word functions in vip.el to use regexp-forward-search to look for patterns like P+W+\|P+W+, where W is a regexp representing all word constituent characters (like in the syntax table), P punctuation chars and W white chars (e.g. (setq W [0-9a-zA-Z])). I haven't gotten it working yet (no time blah blah). Does anybody out there think this is good idea? That this is a lousy idea? That I am making something simple very complicated and should RTFM? In any case, I remain... -- _______________________________________________________________________ | Bill Reynolds | bill@inls1.ucsd.edu
Technical Details
Message-ID:
<BILL.91Apr26235354@inls1.ucsd.edu>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!elroy.jpl.nasa.gov!swrinde!mips!pacbell.com!ucsd!network.ucsd.edu!network!billReferences:
<1991Apr25.145435.4390@ttsi.lonestar.org> <9104252257.AA18628@galahad.cs.purdue.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103b8b,4aee8009378917a2 X-Google-Attributes: gid103b8b,public X-Google-ArrivalTime: 1991-04-27 05:50:16 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!elroy.jpl.nasa.gov!swrinde!mips!pacbell.com!ucsd!network.ucsd.edu!network!bill From: bill@inls1.ucsd.edu (Bill Reynolds) Newsgroups: gnu.emacs.help Subject: Re: "Real" Vi and Edt emulation packages? Message-ID: <BILL.91Apr26235354@inls1.ucsd.edu> Date: 27 Apr 91 06:53:54 GMT References: <1991Apr25.145435.4390@ttsi.lonestar.org> <9104252257.AA18628@galahad.cs.purdue.edu> Sender: news@network.ucsd.edu Followup-To: gnu.emacs.help Organization: Institute for Nonlinear Science, UCSD Lines: 27 Nntp-Posting-Host: inls1.ucsd.edu In-reply-to: svb@CS.PURDUE.EDU's message of 25 Apr 91 22:57:39 GMT