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

Re: Please help with the bidi Emacs



Nadim Shaikli writes:
 >  Peering through the 'emacs-bidi'
 > mailing-list[2] archives, here is the info to check-out the emacs-bidi
 > version from CVS,
 > 
 >  + Set up your CVS as explained in
 >      http://savannah.gnu.org/cvs/?group=emacs
 > 
 >  + Type these commands (or their equivalent)
 >      $ export CVS_RSH="ssh"
 >      $ cvs -z3 -d:ext:anoncvs at savannah dot gnu dot org:/cvsroot/emacs \
 >            co -r emacs-bidi emacs
 > 


Also, to enable Bidi reordering by default, add the following to your
.emacs file:

(setq default-enable-bidi-display t) 


I've done some testing with this but no joy. I'm on X and I'm entering
Arabic characters through the XKB extension. Emacs crashes after few
seconds of usage (backtrace below). Looks like Emacs is only able to
successfully reorder 2 characters in a buffer before disappearing with 
the "Fatal error (6).Aborted" message showing up in my terminal window.


#0  0x40278081 in kill () from /lib/tls/libc.so.6
#1  0x080efd8c in abort () at emacs.c:417
#2  0x08094a30 in bidi_resolve_neutral (bidi_it=0xbfffdedc) at bidi.c:1438
#3  0x08094f87 in bidi_level_of_next_char (bidi_it=0xbfffdedc) at bidi.c:1549
#4  0x080952eb in bidi_get_next_char_visually (bidi_it=0xbfffdedc) at bidi.c:1725
#5  0x08065d17 in reseat_1 (it=0xbfffdd00, pos={charpos = 1, bytepos = 1}, set_stop_p=0)
    at xdisp.c:4653
#6  0x08065bbd in reseat (it=0xbfffdd00, pos={charpos = 1, bytepos = 1}, force_p=1) at xdisp.c:4601
#7  0x080620f9 in start_display (it=0xbfffdd00, w=0x6, pos={charpos = 1, bytepos = 1})
    at xdisp.c:2211
#8  0x0807292b in try_window (window=1219830432, pos={charpos = -1073750784, bytepos = 1})
    at xdisp.c:12153
#9  0x0807230e in redisplay_window (window=1219830432, just_this_one_p=1) at xdisp.c:11816
#10 0x0806ea36 in redisplay_window_1 (window=0) at xdisp.c:10588
#11 0x08153194 in internal_condition_case_1 (bfun=0x806ea00 <redisplay_window_1>, arg=1219830432, 
    handlers=1480327720, hfun=0x806e9a0 <redisplay_window_error>) at eval.c:1374
#12 0x0806dc39 in redisplay_internal (preserve_echo_area=0) at xdisp.c:10225
#13 0x0806cf72 in redisplay () at xdisp.c:9585
#14 0x080f60a5 in read_char (commandflag=1, nmaps=2, maps=0xbffff4ac, prev_event=406556692, 
    used_mouse_menu=0xbffff4e8) at keyboard.c:2496
#15 0x080fcb77 in read_key_sequence (keybuf=0xbffff610, bufsize=30, prompt=406556692, 
    dont_downcase_last=0, can_return_switch_frame=1, fix_current_buffer=1) at keyboard.c:8827
#16 0x080f2dc3 in command_loop_1 () at keyboard.c:1505
#17 0x0815308e in internal_condition_case (bfun=0x80f2c20 <command_loop_1>, handlers=406644340, 
    hfun=0x80f2760 <cmd_error>) at eval.c:1333
#18 0x080f2abe in command_loop_2 () at keyboard.c:1292
#19 0x08152beb in internal_catch (tag=0, func=0x80f2a90 <command_loop_2>, arg=406556692)
    at eval.c:1094
#20 0x080f2a5e in command_loop () at keyboard.c:1271
#21 0x080f24f4 in recursive_edit_1 () at keyboard.c:987
#22 0x080f2621 in Frecursive_edit () at keyboard.c:1043
#23 0x080f0d00 in main (argc=1, argv=0xbffffcc4) at emacs.c:1674


hth,
Thamer Mahmoud