When trying to use the prime-mode provided by prime-el, emacs lets me input ONE character before freezing Reproducible: Always Steps to Reproduce: 1.Run emacs 2.starts "prime-mode" mode 3.input one character Actual Results: Emacs freezes Expected Results: Normal use of prime-mode (input of japanese characters) Versions : emacs21.3-r2 prime-el1.2.0
Hi, prime.el freezes when app-i18n/prime fails to start. I found that prime won't start when you use ruby18. So I editted app-i18n/prime so that it depends on =dev-lang/ruby-1.6*. If you happened to use ruby18 on your system, please remerge app-i18n/prime (and possibly you need rm -rf ~/.prime) and try again?
Hello, You were right, when launching prime with ruby1.8, I got a weird message... So I moved on and followed your instructions : Well, here's what I did : #emerge prime => with the new dependency you added, it emerged ruby-1.6 as well #ruby-config ruby16 => I noticed the config was still on ruby18 after one or two more Emacs freezes :), this made it use the awaited version #rm -R ~/.prime Then I checked if prime was behaving correctly... Unfortunately, no #prime /usr/lib/ruby/site_ruby/prime/engine/engine-basic.rb:12:in `require': No such file to load -- sary (LoadError) from /usr/lib/ruby/site_ruby/prime/engine/engine-basic.rb:12 from /usr/lib/ruby/site_ruby/prime/prime.rb:51:in `require' from /usr/lib/ruby/site_ruby/prime/prime.rb:51:in `init_engines' from /usr/lib/ruby/site_ruby/prime/prime.rb:50:in `each' from /usr/lib/ruby/site_ruby/prime/prime.rb:50:in `init_engines' from /usr/lib/ruby/site_ruby/prime/prime.rb:25:in `initialize' from /usr/bin/prime:162:in `new' from /usr/bin/prime:162:in `main' from /usr/bin/prime:177 Then I tried prime-el to confirm what I feared : Emacs freezed again when launching the prime-mode. It freezes exactly on this message : "Loading /home/arnaud/.prime/Custom_prime-el.el (source) done" I really have no clue what the reason can be for that misbehaviour, hence I give you a bit of information about my system : #emerge info Portage 2.0.49-r18 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.22_firewall) ================================================================= System uname: 2.4.22_firewall i686 Intel(R) Celeron(R) CPU 2.40GHz Gentoo Base System version 1.4.3.12 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer -falign-functions=4 -falign-jumps=4" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer -falign-functions=4 -falign-jumps=4" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X Xaw3d aalib acpi alsa apm arts avi berkdb bonobo canna cdr crypt cups emacs encode esd ethereal fbcon firebird foomaticdb gdbm ggi gif gnome gpm gtk gtk2 gtkhtml guile imlib java jpeg ldap libg++ libwww mad mikmod motif mozilla mpeg mule ncurses nls oggvorbis opengl oss pam pcmcia pdflib perl png pnp python qt quicktime readline ruby samba scanner sdl slang slp socks5 spell sse ssl svga tcltk tcpd tetex tiff truetype trusted usb videos wmf x86 xinerama xml xml2 xmms xv zlib" and the versions of every concerned software : ruby-1.8.1_pre2-r1 AND ruby-1.6.8-r4 emacs-21.3-r2 prime-el-1.2.0 prime-dict-0.6.0 My system has a standard locale, I don't even use an FR one :) #locale LANG=POSIX LC_CTYPE="POSIX" LC_NUMERIC="POSIX" LC_TIME="POSIX" LC_COLLATE="POSIX" LC_MONETARY="POSIX" LC_MESSAGES="POSIX" LC_PAPER="POSIX" LC_NAME="POSIX" LC_ADDRESS="POSIX" LC_TELEPHONE="POSIX" LC_MEASUREMENT="POSIX" LC_IDENTIFICATION="POSIX" LC_ALL= Hope you have some clue about it, if you need further informations about my system, I'd be glad to help Cheers
I see. You need to rebuild any modules that depend on ruby16 after you install it in addition to ruby18. Namely, dev-ruby/sary-ruby and dev-libs/suikyo need to be remerged. (Otherwise they were compiled only against ruby18) One thing I want to ask you is about `head /usr/bin/prime`. If you remerged prime after you reinstalled ruby16, it should look like this: rico% head /usr/bin/prime #! /usr/bin/ruby16 # # PRIME: PRedictive Input Method Editor # $Id: prime,v 1.2 2003/06/03 13:37:49 komatsu Exp $ # # Copyright (C) 2001 Satoru Takabayashi <satoru@namazu.org> # Copyright (C) 2002, 2003 Hiroyuki Komatsu <komatsu@taiyaki.org> # All rights reserved. # This is free software with ABSOLUTELY NO WARRANTY. It means you don't need to change system default ruby (prime is forced to use ruby16 whichever ruby your system points to). If it doesn't look like this, please ensure you remerged prime _after you installed ruby16_ or edit it by hand.
THANK YOU !!!! It works now, after emerging again suikyo and sary-ruby. I also changed the ruby configuration back to ruby18 and it works perfectly fine.