aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann2001-06-25 10:04:27 +0000
committerGerd Moellmann2001-06-25 10:04:27 +0000
commit7aee34d3d744f8dc4a2cc22be7c111083c858df9 (patch)
tree661689d43a308beb39ce61ecac0da0caad7b1382
parenta01325b85bf0611695ef850357409ff04555e350 (diff)
downloademacs-7aee34d3d744f8dc4a2cc22be7c111083c858df9.tar.gz
emacs-7aee34d3d744f8dc4a2cc22be7c111083c858df9.zip
(glasses-make-readable): Consider
underscores too when separating a parenthesis.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/progmodes/glasses.el8
2 files changed, 9 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 5b2b710168f..f2eead76bdc 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12001-06-25 Milan Zamazal <pdm@zamazal.org>
2
3 * progmodes/glasses.el (glasses-make-readable): Consider
4 underscores too when separating a parenthesis.
5
12001-06-24 Eli Zaretskii <eliz@is.elta.co.il> 62001-06-24 Eli Zaretskii <eliz@is.elta.co.il>
2 7
3 * bookmark.el (bookmark-insert-location, bookmark-bmenu-list) 8 * bookmark.el (bookmark-insert-location, bookmark-bmenu-list)
diff --git a/lisp/progmodes/glasses.el b/lisp/progmodes/glasses.el
index f1c81fe44b5..45c887e2c24 100644
--- a/lisp/progmodes/glasses.el
+++ b/lisp/progmodes/glasses.el
@@ -1,9 +1,9 @@
1;;; glasses.el --- make cantReadThis readable 1;;; glasses.el --- make cantReadThis readable
2 2
3;; Copyright (C) 1999, 2000 Free Software Foundation, Inc. 3;; Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
4 4
5;; Author: Milan Zamazal <pdm@freesoft.cz> 5;; Author: Milan Zamazal <pdm@zamazal.org>
6;; Maintainer: Milan Zamazal <pdm@freesoft.cz> 6;; Maintainer: Milan Zamazal <pdm@zamazal.org>
7;; Keywords: tools 7;; Keywords: tools
8 8
9;; This file is part of GNU Emacs. 9;; This file is part of GNU Emacs.
@@ -198,7 +198,7 @@ CATEGORY is the overlay category. If it is nil, use the `glasses' category."
198 ;; Parentheses 198 ;; Parentheses
199 (when glasses-separate-parentheses-p 199 (when glasses-separate-parentheses-p
200 (goto-char beg) 200 (goto-char beg)
201 (while (re-search-forward "[a-zA-Z]\\(\(\\)" end t) 201 (while (re-search-forward "[a-zA-Z]_*\\(\(\\)" end t)
202 (glasses-make-overlay (match-beginning 1) (match-end 1) 202 (glasses-make-overlay (match-beginning 1) (match-end 1)
203 'glasses-parenthesis))))))) 203 'glasses-parenthesis)))))))
204 204