aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>1999-01-19 03:07:53 +0000
committerRichard M. Stallman <[email protected]>1999-01-19 03:07:53 +0000
commit265519e3f7184dff54f2aff486d11abaf9c6b0e0 (patch)
tree120f52cdefcbfebf19d75a4f363a816b8b5fb99d /lisp
parent3ea1bd5099e435023964f64762610fc8cdab1e54 (diff)
(select-safe-coding-system): Hightlight at most 256 characters.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/international/mule-cmds.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el
index c05129bfc1..cc72c2580c 100644
--- a/lisp/international/mule-cmds.el
+++ b/lisp/international/mule-cmds.el
@@ -495,7 +495,8 @@ and TO is ignored."
(beginning-of-line)
(set-window-start (selected-window) (point))
(save-excursion
- (while (re-search-forward "[^\000-\177]" to t)
+ (while (and (< (length overlays) 256)
+ (re-search-forward "[^\000-\177]" to t))
(let* ((char (preceding-char))
(charset (char-charset char)))
(when (assq charset non-safe-chars)