bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Japanese quail kana-kanji and asynchronous inserts


From: Michael Welsh Duggan
Subject: Japanese quail kana-kanji and asynchronous inserts
Date: 10 Nov 2000 16:27:32 -0500

This bug report will be sent to the Free Software Foundation,
 not to your local site managers!!
Please write in English, because the Emacs maintainers do not have
translators to read other languages for them.

In GNU Emacs 20.4.2 (powerpc-ibm-aix4.1.4.0, X toolkit)
 of Tue Jul 20 1999 on peoria.mt.cs.cmu.edu
configured using `configure  
--prefix=/afs/cs.cmu.edu/project/cmt-21/catalyst/rs_aix41 --verbose --with-pop'

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

We have a program here which uses process filters to asynchronously
insert text in a particular buffer in front of a region which is there
for the user to type into.  I.e.: there is an edit region which the
user types in, and the process filter simultaneously inserts new text
in front of this region.  (It is an internal chat system.  Inserted
text are incoming messages.  User edited text are outgoing messages.)

Unfortunately, to to the way `quail-japanese-kanji-kkc' is written,
kana to kanji conversion has disasterous concequences if text is
inserted in (or deleted from) regions behind the quail region.  This
is due to the fact that it stores temporarily buffer positions rather
than markers.  I have created a patch which fixes this for me, but I
would like someone more acquainted with the internals of the kkc
process to check that this is the right thing to do:

*** /tmp/japanese.el    Fri Nov 10 16:24:11 2000
--- /tmp/ediff1796477R  Fri Nov 10 16:24:11 2000
***************
*** 79,86 ****
  ;; (Kana Kanji Converter) utility.
  (defun quail-japanese-kanji-kkc ()
    (interactive)
!   (let ((from (overlay-start quail-conv-overlay))
!       (to (overlay-end quail-conv-overlay)))
      (quail-delete-overlays)
      (setq quail-current-str nil)
      (when (= (char-before to) ?n)
--- 79,86 ----
  ;; (Kana Kanji Converter) utility.
  (defun quail-japanese-kanji-kkc ()
    (interactive)
!   (let ((from (copy-marker (overlay-start quail-conv-overlay) t))
!       (to (copy-marker (overlay-end quail-conv-overlay) t)))
      (quail-delete-overlays)
      (setq quail-current-str nil)
      (when (= (char-before to) ?n)


Recent input:
( c o p y - m a r k e r SPC C-e C-b C-b t C-b SPC C-e 
( backspace ) C-x 1 C-n C-n C-n C-n C-n C-n C-n M-v 
C-n C-n C-n C-n C-n M-f M-f backspace backspace e r 
C-a C-SPC escape > C-w C-c C-k y e s return f C-y C-k 
C-k C-k C-k C-k C-k C-k C-k C-k escape < C-n C-n C-p 
M-f C-e C-n C-n C-n C-n C-n escape > C-x 1 escape < 
C-c C-c q M-x r e p o tab r t - e m tab return

Recent messages:
Sending...
Saving file /home/md5i/Mail/archive/misc-mail...
Wrote /home/md5i/Mail/archive/misc-mail
Sending...done

Making completion list...
Loading emacsbug...
Loading emacsbug...done
received chat.helix zephyrgram from Patrick Riley
received help zephyrgram from John Hawkinson, KB1CGZ

-- 
Michael Duggan
(md5i@cs.cmu.edu)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]