In article <[EMAIL PROTECTED]>, Stefan Monnier <[EMAIL PROTECTED]> writes: >> Could someone tell me what is the right way to rebind all >> keys that are currently bound to forward-word to >> thai-forward-word, and bind them back to the orignal later?
> Something like > (defvar thaiword-mode-map > (let ((map (make-sparse-keymap))) > (define-key [remap forward-word] 'thai-forward-word) > (define-key [remap backward-word] 'thai-backward-word) > map)) > (define-minor-mode thaiword-mode > "Minor mode to make word-movement aware of thai words." > :global t) > Then add (lambda () (thaiword-mode 1)) to setup-function > and (lambda () (thaiword-mode -1)) to exit-function Thank you! Richard Stallman <[EMAIL PROTECTED]> writes: > Is it ok to install a change that binds such word-oriented > commands as M-f, M-b, M-t, M-d, M-DEL to the functions > recognizing thai words when a user select Thai lang. env? > That is ok to install now, because it can't cause problems except for > people who use the Thai language environment. If those people think > this is an improvement, there's nobody else to complain. Ok, I've just installed such changes. Juri Linkov <[EMAIL PROTECTED]> writes: > BTW, there is also the variable `sentence-end-without-period' for > Thai texts. Maybe it should be enabled in Thai lang.envs too. Even in Thai lang. env., people read/write English text, and in that case sentence-end-without-period should not be. Perhaps, the better way is to make sentence-end return a regexp that also matches with "\\ct +" (i.e. Thai character followed by spaces). But, I found that TUTORIAL.th ends sentences with period. I have to consult with Thai native what to do. Anyway, in thai-word-mode, I also enabled line-breaking at Thai word boundary. --- Ken'ichi HANDA [EMAIL PROTECTED] _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel