From 91c78c93238435b1116d3fa8221216660a4ceb73 Mon Sep 17 00:00:00 2001 From: Dave Love Date: Sat, 15 Dec 2001 17:51:41 +0000 Subject: [PATCH] (devanagari-post-read-conversion): New function. --- lisp/language/devan-util.el | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lisp/language/devan-util.el b/lisp/language/devan-util.el index 34205fbcc6f..19e965448ad 100644 --- a/lisp/language/devan-util.el +++ b/lisp/language/devan-util.el @@ -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) -- 2.39.5