aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/glasses.el
diff options
context:
space:
mode:
authorGerd Moellmann <[email protected]>2000-07-30 11:49:57 +0000
committerGerd Moellmann <[email protected]>2000-07-30 11:49:57 +0000
commit15cca6c4f6b8751d22c0467a015bfb1880fe9fd8 (patch)
treec620c744278a88c27a284de489075dcb45235d30 /lisp/progmodes/glasses.el
parentdf5e6194c6c291a8c6773f2529917e2517ebf157 (diff)
(glasses-make-readable): Fix uncapitalization of
identifiers like `myXMLDocument'.
Diffstat (limited to 'lisp/progmodes/glasses.el')
-rw-r--r--lisp/progmodes/glasses.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/progmodes/glasses.el b/lisp/progmodes/glasses.el
index 9a4c18e19d..f59ce2b09e 100644
--- a/lisp/progmodes/glasses.el
+++ b/lisp/progmodes/glasses.el
@@ -186,6 +186,8 @@ CATEGORY is the overlay category. If it is nil, use the `glasses' category."
(o (glasses-make-overlay (match-beginning n) (match-end n))))
(goto-char (match-beginning n))
(when (and glasses-uncapitalize-p
+ (save-match-data
+ (looking-at "[A-Z]\\($\\|[^A-Z]\\)"))
(save-excursion
(save-match-data
(re-search-backward "\\<.")