]> git.eshelyaron.com Git - emacs.git/commitdiff
(devanagari-post-read-conversion): New
authorDave Love <fx@gnu.org>
Sat, 15 Dec 2001 17:51:41 +0000 (17:51 +0000)
committerDave Love <fx@gnu.org>
Sat, 15 Dec 2001 17:51:41 +0000 (17:51 +0000)
function.

lisp/language/devan-util.el

index 34205fbcc6fc18e97da5e7c826f224707dab0d74..19e965448ad5ff2382a1ea3979589111c99764eb 100644 (file)
     (devanagari-compose-region (point-min) (point-max))
     (buffer-string)))
 
+(defun devanagari-post-read-conversion (len)
+  (save-excursion
+    (save-restriction
+      (let ((buffer-modified-p (buffer-modified-p)))
+       (narrow-to-region (point) (+ (point) len))
+       (devanagari-compose-region (point-min) (point-max))
+       (set-buffer-modified-p buffer-modified-p)
+       (- (point-max) (point-min))))))
+
 (defun range (from to)
   "Make the list of the integers of range FROM to TO."
   (let (result)