diff options
| author | Richard M. Stallman | 2001-12-16 03:43:49 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2001-12-16 03:43:49 +0000 |
| commit | 48cb5913dc229cc914f4f7ce4769088aaf0354e1 (patch) | |
| tree | 537877d72a1fd47cb4d4dd5c61fca9571fc1821e | |
| parent | 7c59a3884e40a404397b33e9afa29a89531866c8 (diff) | |
| download | emacs-48cb5913dc229cc914f4f7ce4769088aaf0354e1.tar.gz emacs-48cb5913dc229cc914f4f7ce4769088aaf0354e1.zip | |
(range): Function deleted.
(indian-regexp-of-hashtbl-keys): Renamed from `regexp-of-hashtbl-keys'.
All calls changed.
| -rw-r--r-- | lisp/language/ind-util.el | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/lisp/language/ind-util.el b/lisp/language/ind-util.el index 5799f2c5f39..de1ca127f52 100644 --- a/lisp/language/ind-util.el +++ b/lisp/language/ind-util.el | |||
| @@ -40,12 +40,7 @@ | |||
| 40 | 40 | ||
| 41 | (eval-and-compile | 41 | (eval-and-compile |
| 42 | 42 | ||
| 43 | (defun range (from to) | 43 | (defun indian-regexp-of-hashtbl-keys (hashtbl) |
| 44 | "Make the list of the integers of range FROM to TO." | ||
| 45 | (let (result) | ||
| 46 | (while (<= from to) (setq result (cons to result) to (1- to))) result)) | ||
| 47 | |||
| 48 | (defun regexp-of-hashtbl-keys (hashtbl) | ||
| 49 | "Returns the regular expression of hashtable keys." | 44 | "Returns the regular expression of hashtable keys." |
| 50 | (let ((max-specpdl-size 1000)) | 45 | (let ((max-specpdl-size 1000)) |
| 51 | (regexp-opt | 46 | (regexp-opt |
| @@ -303,7 +298,7 @@ FUNCTION will be called 15 times." | |||
| 303 | (defmacro indian-translate-region (from to hashtable encode-p) | 298 | (defmacro indian-translate-region (from to hashtable encode-p) |
| 304 | `(save-excursion | 299 | `(save-excursion |
| 305 | (save-restriction | 300 | (save-restriction |
| 306 | (let ((regexp ,(regexp-of-hashtbl-keys | 301 | (let ((regexp ,(indian-regexp-of-hashtbl-keys |
| 307 | (if encode-p (car (eval hashtable)) | 302 | (if encode-p (car (eval hashtable)) |
| 308 | (cdr (eval hashtable)))))) | 303 | (cdr (eval hashtable)))))) |
| 309 | (narrow-to-region from to) | 304 | (narrow-to-region from to) |
| @@ -547,7 +542,7 @@ FUNCTION will be called 15 times." | |||
| 547 | (eval hashtable)))) | 542 | (eval hashtable)))) |
| 548 | (eval (intern (concat "ucs-" (symbol-name script) | 543 | (eval (intern (concat "ucs-" (symbol-name script) |
| 549 | "-to-is13194-alist")))) | 544 | "-to-is13194-alist")))) |
| 550 | (set regexp (regexp-of-hashtbl-keys (eval hashtable)))))) | 545 | (set regexp (indian-regexp-of-hashtbl-keys (eval hashtable)))))) |
| 551 | '(devanagari bengali assamese gurmukhi gujarati | 546 | '(devanagari bengali assamese gurmukhi gujarati |
| 552 | oriya tamil telugu malayalam)) | 547 | oriya tamil telugu malayalam)) |
| 553 | 548 | ||