]> git.eshelyaron.com Git - emacs.git/commitdiff
(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 9a4c18e19df911cf9a4f17ccb65f07e3cfd571bf..f59ce2b09e1fd9446c403127dd42872ed14569ab 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 "\\<.")