changeset 42061:0332665b9445

(devanagari-range): Renamed from `range'. All calls changed. (devanagari-regexp-of-hashtbl-keys): Renamed from `regexp-of-hashtbl-keys'. All calls changed.
author Richard M. Stallman <rms@gnu.org>
date Sun, 16 Dec 2001 03:45:30 +0000
parents f3b460667d31
children 6254fdd1bbb7
files lisp/language/devan-util.el
diffstat 1 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/language/devan-util.el	Sun Dec 16 03:43:49 2001 +0000
+++ b/lisp/language/devan-util.el	Sun Dec 16 03:45:30 2001 +0000
@@ -84,13 +84,13 @@
 	(set-buffer-modified-p buffer-modified-p)
 	(- (point-max) (point-min))))))
 
-(defun range (from to)
+(defun devanagari-range (from to)
   "Make the list of the integers of range FROM to TO."
   (let (result) 
     (while (<= from to) (setq result (cons to result) to (1- to))) result))
 
-(defun regexp-of-hashtbl-keys (hashtbl)
-  "Returns the regular expression of hashtable keys."
+(defun devanagari-regexp-of-hashtbl-keys (hashtbl)
+  "Return a regular expression that matches all keys in hashtable HASHTBL."
   (let ((max-specpdl-size 1000))
     (regexp-opt
      (sort 
@@ -113,7 +113,7 @@
    (aset composition-function-table (decode-char 'ucs ucs)
 	 (list (cons devanagari-composable-pattern 
                      'devanagari-composition-function)))))
- (nconc '(#x0903) (range #x0905 #x0939) (range #x0958 #x0961)))
+ (nconc '(#x0903) (devanagari-range #x0905 #x0939) (devanagari-range #x0958 #x0961)))
 
 ;; Notes on conversion steps.
 
@@ -433,7 +433,7 @@
     hash))
 
 (defvar dev-char-glyph-regexp
-  (regexp-of-hashtbl-keys dev-char-glyph-hash))
+  (devanagari-regexp-of-hashtbl-keys dev-char-glyph-hash))
 
 ;; glyph-to-glyph conversion table.
 ;; it is supposed that glyphs are ordered in 
@@ -473,7 +473,7 @@
 	  dev-glyph-glyph)
     hash))
 (defvar dev-glyph-glyph-regexp
-  (regexp-of-hashtbl-keys dev-glyph-glyph-hash))
+  (devanagari-regexp-of-hashtbl-keys dev-glyph-glyph-hash))
 
 
 ;; yet another glyph-to-glyph conversions.
@@ -488,13 +488,13 @@
 	  dev-glyph-glyph-2)
     hash))
 (defvar dev-glyph-glyph-2-regexp
-  (regexp-of-hashtbl-keys dev-glyph-glyph-2-hash))
+  (devanagari-regexp-of-hashtbl-keys dev-glyph-glyph-2-hash))
 
 
 (defun dev-charseq (from &optional to)
   (if (null to) (setq to from))
   (mapcar (function (lambda (x) (indian-glyph-char x 'devanagari)))
-          (range from to)))
+          (devanagari-range from to)))
 
 (defvar dev-glyph-cvn
   (append