[Top][All Lists]

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

Re: Redisplay hook

From: Clément Pit--Claudel
Subject: Re: Redisplay hook
Date: Sun, 3 Jul 2016 10:23:00 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0

On 2016-07-03 03:45, Eli Zaretskii wrote:
> As a temporary measure, try calling your code from the function
> update_end (you will have to modify the C sources for that).

Thanks! Is there a trick to prevent code running in that section to cause a new 
redisplay cycle?
Calling #'format from there causes a segfault:

Program received signal SIGSEGV, Segmentation fault.
0x0000000000577874 in print_object (obj=<optimized out>, address@hidden, 
    address@hidden) at print.c:1519
1519            if (p != end && (*p == '-' || *p == '+')) p++;
(gdb) bt
#0  0x0000000000577874 in print_object (obj=<optimized out>, address@hidden, 
    address@hidden) at print.c:1519
#1  0x0000000000577a82 in print_object (obj=<optimized out>, address@hidden, 
    escapeflag=<optimized out>) at print.c:1662
#2  0x0000000000578e06 in print (address@hidden, address@hidden, 
    escapeflag=<optimized out>) at print.c:1143
#3  0x0000000000579749 in Fprin1_to_string (object=60247395, noescape=0) at 
#4  0x0000000000555725 in styled_format (nargs=2, args=0x7fffffffc0c0, 
message=<optimized out>) at editfns.c:4088
#5  0x000000000055d1a5 in eval_sub (form=<optimized out>) at eval.c:2145
#6  0x000000000055d33d in Fprogn (body=44976) at eval.c:427
#7  0x000000000055d6b5 in funcall_lambda (fun=53999395, address@hidden, 
    address@hidden) at eval.c:2922
#8  0x000000000055d8e3 in Ffuncall (nargs=2, args=0x7fffffffc310) at eval.c:2762
#9  0x000000000055db39 in funcall_nil (nargs=<optimized out>, args=<optimized 
out>) at eval.c:2340
#10 0x000000000055bd6c in run_hook_with_args (nargs=2, args=0x7fffffffc310, 
funcall=0x55db30 <funcall_nil>)
    at eval.c:2517
#11 0x000000000055bf6a in run_hook_with_args (funcall=<optimized out>, 
args=<optimized out>, nargs=<optimized out>)
    at eval.c:2383
#12 Frun_hook_with_args (nargs=<optimized out>, args=<optimized out>) at 
#13 0x00000000004bd421 in x_update_end (f=<optimized out>) at xterm.c:1234
#14 0x0000000000421c9a in update_frame (address@hidden, force_p=<optimized 
out>, address@hidden, 
    address@hidden) at dispnew.c:3109
#15 0x0000000000453b64 in redisplay_internal () at xdisp.c:14058
#16 0x00000000004557e5 in redisplay () at xdisp.c:13252
#17 0x00000000004f5e3b in read_char (address@hidden, address@hidden, 
    address@hidden, address@hidden) at keyboard.c:2477
#18 0x00000000004f86d3 in read_key_sequence (address@hidden, address@hidden, 
    address@hidden, address@hidden, 
    address@hidden, address@hidden, bufsize=30)
    at keyboard.c:9084
#19 0x00000000004fa1d6 in command_loop_1 () at keyboard.c:1365
#20 0x000000000055c2dd in internal_condition_case (address@hidden 
    address@hidden, address@hidden <cmd_error>) at eval.c:1310
#21 0x00000000004ec6ac in command_loop_2 (address@hidden) at keyboard.c:1107
#22 0x000000000055c28b in internal_catch (address@hidden, address@hidden 
    address@hidden) at eval.c:1075
#23 0x00000000004ec667 in command_loop () at keyboard.c:1086
#24 0x00000000004f0bc4 in recursive_edit_1 () at keyboard.c:692
#25 0x00000000004f0ee5 in Frecursive_edit () at keyboard.c:763
#26 0x00000000004198c8 in main (argc=1, argv=0x7fffffffe0e8) at emacs.c:1656

Lisp Backtrace:
"format" (0xffffc0c0)
"~/redisplay" (0xffffc318)
"redisplay_internal (C function)" (0x0) 

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

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