From 265519e3f7184dff54f2aff486d11abaf9c6b0e0 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Tue, 19 Jan 1999 03:07:53 +0000 Subject: [PATCH] (select-safe-coding-system): Hightlight at most 256 characters. --- lisp/international/mule-cmds.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el index c05129bfc17..cc72c2580c0 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) -- 2.39.2