(glasses-make-readable): Fix uncapitalization of
authorGerd Moellmann <gerd@gnu.org>
Sun, 30 Jul 2000 11:49:57 +0000 (11:49 +0000)
committerGerd Moellmann <gerd@gnu.org>
Sun, 30 Jul 2000 11:49:57 +0000 (11:49 +0000)
identifiers like `myXMLDocument'.

lisp/progmodes/glasses.el

index 9a4c18e..f59ce2b 100644 (file)
@@ -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 "\\<.")