[net.emacs] gnu emacs abbrev mode misfeature

ben@cucca.UUCP (Ben Fried) (01/11/86)

In the file abbrev.c there is explicit code to capitalize a word if
there were any capitals in it.  This does not exist in twenex emacs,
and would seem to be a "misfeature" - for example, if you abbrev a
call with the name "GetNextWindow" to "getnextwindow", and then expand
it twice, the first time the word will be expanded to "GetNextWindow",
and then to "Getnextwindow".  This is done by the following code, from
the function Fexpand_abbrev():

      else if (uccount)
	{
	  /* Abbrev included some caps.  Cap first initial of expansion */
	  idx = point;
	  SetPoint (wordstart);
	  Fcapitalize_word (make_number (1));
	  SetPoint (idx);
	}

What is the justification for this?  I rather often use an
abbrev that gets expanded, then go back to do something, and find that
the word has been capitalized.
-- 
Ben Fried				arpa: Ui.ben@cu20b
User Services				edu:  Ui.ben@cu20b.columbia.edu
Columbia University			uucp: {?}!seismo!columbia!cucca!ben
Center for Computing Activities		bitnet: ben@cucca

			  ``Rabbit Season!''