changeset 42054:144a811f0590

(devanagari-post-read-conversion): New function.
author Dave Love <fx@gnu.org>
date Sat, 15 Dec 2001 17:51:41 +0000
parents b88662003c01
children d0521c771e5a
files lisp/language/devan-util.el
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/language/devan-util.el	Sat Dec 15 17:48:26 2001 +0000
+++ b/lisp/language/devan-util.el	Sat Dec 15 17:51:41 2001 +0000
@@ -75,6 +75,15 @@
     (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)