Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site cucca.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!panda!talcott!harvard!seismo!columbia!cucca!ben From: ben@cucca.UUCP (Ben Fried) Newsgroups: net.emacs Subject: gnu emacs abbrev mode misfeature Message-ID: <167@cucca.UUCP> Date: Fri, 10-Jan-86 22:53:45 EST Article-I.D.: cucca.167 Posted: Fri Jan 10 22:53:45 1986 Date-Received: Sun, 12-Jan-86 06:11:46 EST Reply-To: ben@cucca.UUCP (Ben Fried) Organization: Columbia University Center for Computing Activities Lines: 27 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!''