changeset 24117:9430507fe106

(select-safe-coding-system): Hightlight at most 256 characters.
author Richard M. Stallman <rms@gnu.org>
date Tue, 19 Jan 1999 03:07:53 +0000
parents cff6faa1cf82
children e9cc3f97cdc3
files lisp/international/mule-cmds.el
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/international/mule-cmds.el	Tue Jan 19 03:00:26 1999 +0000
+++ b/lisp/international/mule-cmds.el	Tue Jan 19 03:07:53 1999 +0000
@@ -495,7 +495,8 @@
 	    (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)