emacs-devel
[Top][All Lists]
Advanced

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

Args out of range with new auto-composition implementation


From: Juanma Barranquero
Subject: Args out of range with new auto-composition implementation
Date: Tue, 2 Sep 2008 01:39:13 +0200

An error I'm getting since the auto-composition changes of a few days ago:

;;; testbug.el ;;;
(column-number-mode 1)

(defun testbug ()
  (interactive)
  (split-window)
  (other-window 1)
  (pop-to-buffer (get-buffer-create "testbug")))
;;;;;;;;;;;;;;;;;

emacs -Q -l testbug.el
C-h H
M-: (goto-char 276) <RET>   ;; or move the cursor to any auto-composed char
M-x testbug <RET>

  => "Args out of range: 274, 274"

(and the windows are not correctly painted.)

Setting a breakpoint at data.c:args_out_of_range, you get this backtrace:

Breakpoint 3, args_out_of_range (a1=2192, a2=2192) at data.c:124
124       xsignal2 (Qargs_out_of_range, a1, a2);
(gdb) bt
#0  args_out_of_range (a1=2192, a2=2192) at data.c:124
#1  0x0119556b in validate_interval_range (object=51728900,
begin=0x82dd90, end=0x82dd90, force=0) at textprop.c:154
#2  0x01197467 in Ftext_properties_at (position=2192, object=51728896)
at textprop.c:588
#3  0x01197537 in Fget_text_property (position=2192, prop=47716689,
object=51728900) at textprop.c:609
#4  0x011ed5fc in face_at_buffer_position (w=0x351fe00, pos=274,
region_beg=0, region_end=0, endptr=0x82dec8, limit=276,
    mouse=0) at xfaces.c:6278
#5  0x011a48d1 in font_range (pos=274, limit=0x82df38, w=0x351fe00,
face=0x0, string=47716353) at font.c:3678
#6  0x0119b7e4 in autocmp_chars (cft_element=<value optimized out>,
charpos=274, bytepos=346, limit=276, win=0x351fe00,
    face=0x0, string=47716353) at composite.c:944
#7  0x011a00ca in composition_reseat_it (cmp_it=0x82e014, charpos=274,
bytepos=346, endpos=276, w=0x351fe00, face=0x0,
    string=47716353) at composite.c:1081
#8  0x011705a9 in scan_for_column (endpos=0x82e0c4, goalcol=0x82e0c8,
prevcol=0x0) at indent.c:597
#9  0x01170d85 in current_column () at indent.c:725
#10 0x01053467 in redisplay_window (window=62406148,
just_this_one_p=0) at xdisp.c:13315
#11 0x010566cc in redisplay_window_0 (window=62406148) at xdisp.c:12206
#12 0x01018e71 in internal_condition_case_1 (bfun=0x10566a9
<redisplay_window_0>, arg=62406148, handlers=47699205,
    hfun=0x1023dd2 <redisplay_window_error>) at eval.c:1559
#13 0x0102e0d4 in redisplay_windows (window=274) at xdisp.c:12185
#14 0x0102e046 in redisplay_windows (window=274) at xdisp.c:12179
#15 0x010477cd in redisplay_internal (preserve_echo_area=<value
optimized out>) at xdisp.c:11761
#16 0x0108b159 in read_char (commandflag=1, nmaps=2, maps=0x82fb70,
prev_event=47716353, used_mouse_menu=0x82fc34, end_time=0x0)
    at keyboard.c:2648
#17 0x0108f7aa in read_key_sequence (keybuf=0x82fcd4, bufsize=30,
prompt=47716353, dont_downcase_last=0,
    can_return_switch_frame=1, fix_current_buffer=1) at keyboard.c:9345
#18 0x0109291d in command_loop_1 () at keyboard.c:1620
#19 0x010190f6 in internal_condition_case (bfun=0x109268f
<command_loop_1>, handlers=47780105, hfun=0x10898f6 <cmd_error>)
    at eval.c:1511
#20 0x01088d9b in command_loop_2 () at keyboard.c:1338
#21 0x010191a0 in internal_catch (tag=47776177, func=0x1088d78
<command_loop_2>, arg=47716353) at eval.c:1247
#22 0x0108973b in command_loop () at keyboard.c:1317
#23 0x01089a8f in recursive_edit_1 () at keyboard.c:942
#24 0x01089bfa in Frecursive_edit () at keyboard.c:1004
#25 0x01002c41 in main (argc=4, argv=0xa927a8) at emacs.c:1693

This is on Windows, MinGW 4.3.0, optimized build.

 Juanma




reply via email to

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