mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-04 11:00:45 -08:00
(lao-compose-region): New function.
This commit is contained in:
parent
ffec4d9fa7
commit
9b21ecc23f
1 changed files with 10 additions and 0 deletions
|
|
@ -505,6 +505,16 @@ The return value is number of composed characters."
|
|||
(compose-region from to))
|
||||
(- to from))))
|
||||
|
||||
;;;###autoload
|
||||
(defun lao-compose-region (from to)
|
||||
(interactive "r")
|
||||
(save-restriction
|
||||
(narrow-to-region from to)
|
||||
(goto-char (point-min))
|
||||
(with-category-table lao-category-table
|
||||
(while (re-search-forward lao-composition-pattern nil t)
|
||||
(compose-region (match-beginning 0) (point))))))
|
||||
|
||||
;;
|
||||
(provide 'lao-util)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue