jmarc jumbubled,
> 

> 2/ the index commands now use last word or selection as default value.
> However, I use for that the selectWordWhenUnderCursor (!) method,
> which ignore word when cursor is at boundary (this mean you have to be
> in the middle of a word). I can understand this is a problem with
> index, but I did not use a different method it because it is IMO a
> problem for font change too (the other user).

Hey, somebody's looking at something I wrote :)

It's been a couple of years since I wrote or looked at that, but it 
seems to me that I wrote a new function to determine the "last word."  
The logic to it is to default to the word you just typed, or one that 
you have clicked on. I think the typical case of inserting an index 
entry is immediately after typing it, so punctuation should also be 
allowed but not included.  e.g., if i type "end.<insert index>" it 
should offer "end"

If memory serves, the function works by checking to see if it is on a 
letter.  If so, it moves right until it finds the last letter, and then 
travels left until whitespace.  

(hmm, did I ever get as far as using the selected text, if it exists, 
before looking at the word? It's been so long . . .)

> So would it be OK to change the behaviour of font functions to apply
> to a word when cursor is at its boundary? Currently this does nothing.

I think this would be the expected behavior.

> Also, I would like to remove one of the index menu entries. Do we
> really need two of them? Can someone come up with something less wordy
> than 'Index of preceeding word'??

I think we do :) Index-preceding can be done entirely from the 
keyboard, and is designed to be right in the usual case.  It's actually 
a descendent of one of my old word 5.1 macros.  While typing, I get 
annoyed any time I have to use the mouse.

For anything other than what the automated result would be, a dialog is 
necessary.  Dialogs should not be imposed unless needed.  

So, yes, I think both are needed.

hawk

-- 
Prof. Richard E. Hawkins, Esq.                     /"\   ASCII ribbon campaign 
[EMAIL PROTECTED]  Smeal 178  (814) 375-4700         \ /   against HTML mail
These opinions will not be those of                 X    and postings 
Penn State until it pays my retainer.              / \ 


Reply via email to