🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.editors
Article #3180

Re: Misbehavior in Jove

#3180
From: Mark Towfigh
Date: Fri, 17 Jun 1988 20:05
33 lines
1900 bytes
In article <212@isl.stanford.edu> wongpw@isl.Stanford.EDU (Ping Wah Wong) writes:
>I just found a problem in the case-word-capitalize, case-word-lower
>and case-word-upper commands of Jove. Basically, if the cursor is in the
>middle of a word, e.g., middle, the command case-word-capitalize would
>                           ^
>                           |
>                      cursor position
>
>result in midDle, rather than Middle. Does someone has a solution to
>this?

In your .joverc, make a macro (note that you need to use REAL escape
characters, not '^' followed by '['):

define-macro last-word-capitalize ^[-^[C
bind-macro-to-key last-word-capitalize ^[c

This keep ESC c around for when you want to still use it.  Since I
figure you want to capitalize the word you're currently in and then
come back to where you were, this works.  If you want to wind up
after the word no matter what, then you might want to try this:

define-macro last-word-capitalize ^B^[-^[C^[f
bind-macro-to-key last-word-capitalize ^[c

I haven't tested this one. but I think it should work.

Mark
-- 
Mark Towfigh       If there's one thing I like better than a bologna
                   and whipped cream sandwich, it's honey and ketchup.
=======================================================================
UUCP/Internet:     towfigh@phoenix.princeton.edu  BITNET:  TOWFIGH@PUCC
Technical Details
Message-ID: <3120@phoenix.Princeton.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!purdue!gatech!udel!princeton!phoenix!towfigh
References: <212@isl.stanford.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!purdue!gatech!udel!princeton!phoenix!towfigh
From: towfigh@phoenix.Princeton.EDU (Mark Towfigh)
Newsgroups: comp.editors
Subject: Re: Misbehavior in Jove
Summary: Customize!
Keywords: MACRO
Message-ID: <3120@phoenix.Princeton.EDU>
Date: 17 Jun 88 20:05:36 GMT
References: <212@isl.stanford.edu>
Reply-To: towfigh@phoenix.Princeton.EDU (Mark Towfigh)
Organization: Princeton University, NJ
Lines: 33