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

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

invisible property


From: 山本和彦
Subject: invisible property
Date: Tue, 24 Dec 2002 17:04:32 +0900 (JST)

Hello,

tamago, an input method framework provided by m17n.org, acts in a
wrong manner on Emacs 21.3.50. Note it works well on Emacs 21.2.

When we select "japanese-egg-wnn" and input "tsu", the cursor jumps to
the open fence, not staying after a japanese character "tsu".

Right behavior: ("^" indicates the position of the cursor. "tsu" is a
Japanese character.)

        |tsu|
            ^

On Emacs 21.3.50

        |tsu|
        ^

I hacked tamago and found that if we removed "invisible" property from
its-put-cursor() in its.el, it works in the right manner. (Of course,
"!" is displayed as a side-effect.)

(defun its-put-cursor (cursor)
  (unless (eq its-barf-on-invalid-keyseq 'its-keyseq-test)
    (let ((p (point))
          (str (copy-sequence "!")))
      (set-text-properties 0 1 (list 'read-only          t
;;                                   'invisible          'egg
                                     'intangible         'its-part-2
                                     'its-cursor         cursor
                                     'point-entered      'egg-enter/leave-fence
                                     'point-left         'egg-enter/leave-fence
                                     'modification-hooks '(egg-modify-fence))
                           str)
      (insert str)
      (goto-char p))))

I guess the cursor behavior against invisible text enbugged in Emacs
21.3.50.

--Kazu

In GNU Emacs 21.3.50.1 (i386-unknown-netbsdelf1.6, X toolkit, Xaw3d scroll bars)
 of 2002-12-22 on mine.iij.ad.jp
configured using `configure '--without-xim' '--prefix=/usr/local/emacs21' 
'CFLAGS=-I/usr/pkg/include' 'CPPFLAGS=-I/usr/pkg/include -L/usr/pkg/lib' 
'LDFLAGS=-R/usr/pkg/lib -L/usr/pkg/lib -R/usr/X11R6/lib -L/usr/X11R6/lib''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: ja_JP.eucJP
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: nil
  locale-coding-system: japanese-iso-8bit
  default-enable-multibyte-characters: t

Recent input:
n SPC DEL DEL n d SPC SPC SPC C-g ESC x b u g SPC SPC 
C-x b * s TAB RET ESC x d e b SPC SPC o SPC SPC RET 
b u g RET DEL DEL DEL SPC d e DEL DEL b u g RET ESC 
x a p r o p o s RET b u g RET C-x o C-v C-v C-s r e 
p o r t RET C-s C-s C-s RET C-x o ESC x e DEL r e p 
o t SPC DEL r SPC e SPC b SPC RET

Recent messages:
No more messages
Refiling and deleting...done
Quit [2 times]
Loading debug...done
Making completion list...
Quit
Loading apropos...done
apropos is on <menu-bar> <help-menu> <apropos> <apropos>
Mark saved where search started [2 times]
Loading emacsbug...done



reply via email to

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