emacs-devel
[Top][All Lists]
Advanced

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

Re: Debugging emacs memory management


From: Dima Kogan
Subject: Re: Debugging emacs memory management
Date: Mon, 05 Oct 2015 03:02:16 -0700

Andreas Schwab <address@hidden> writes:
> Dima Kogan <address@hidden> writes:
>
>> diff --git a/src/font.c b/src/font.c
>> index 8e06532..ca872d0 100644
>> --- a/src/font.c
>> +++ b/src/font.c
>> @@ -3981,7 +3981,15 @@ copy_font_spec (Lisp_Object font)
>>    pcdr = spec->props + FONT_EXTRA_INDEX;
>>    for (tail = AREF (font, FONT_EXTRA_INDEX); CONSP (tail); tail = XCDR 
>> (tail))
>>      if (!EQ (XCAR (XCAR (tail)), QCfont_entity))
>> -      *pcdr = Fcons (XCAR (tail), Qnil), pcdr = xcdr_addr (*pcdr);
>> +      {
>> +        if (CONSP (XCAR (tail)))
>
> This better be always true, otherwise XCAR (XCAR (tail)) would be a bug.

It isn't. Without that check I was getting every time.

  *ERROR*: Wrong type argument: listp, "monospace-10"

Surprised me too, and I haven't checked to see what was happening there.
I will look... tomorrow. It's bed time.



reply via email to

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