GNU bug report logs - #18447
24.3; transfer case doesn't work in some instances

Previous Next

Package: emacs;

Reported by: Randy Yates <yates <at> digitalsignallabs.com>

Date: Wed, 10 Sep 2014 17:19:02 UTC

Severity: normal

Found in version 24.3

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 18447 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Randy Yates <yates <at> digitalsignallabs.com>
Cc: 18447 <at> debbugs.gnu.org
Subject: 24.3; transfer case doesn't work in some instances
Date: Sun, 28 Sep 2014 17:45:49 -0700
Thanks for the bug report.  As near as I can make out, Emacs is behaving 
according to spec, as the documentation for replace-match says:

  "If the replaced text has only capital letters and has at least one 
multiletter word, convert NEWTEXT to all caps.  Otherwise if all words are 
capitalized in the replaced text, capitalize each word in NEWTEXT."

Here neither condition applies so there's no case conversion.  This is how 
replace-match has behaved for a couple of decades.  Perhaps it'd be useful to 
have a variant that behaves differently, but I expect we'd have to make that an 
upward-compatible change somehow.




This bug report was last modified 5 years and 232 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.