unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#37824: Args out of range error
@ 2019-10-19 15:27 Takenari Shinohara
  2019-10-19 17:34 ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: Takenari Shinohara @ 2019-10-19 15:27 UTC (permalink / raw)
  To: 37824

[-- Attachment #1: Type: text/plain, Size: 854 bytes --]

After building recent head, I started to see Args out of range errors
occasionally.

 sort: Args out of range: [nil :family :foundry :swidth :height
:weight :slant :underline :inverse :foreground ...], 19
I inspected a little, and I think a found the problem.
Commit f9206f34d63104c50659a15d3615646a09df87bf intorduced new
LFACE_EXTEND_INDEX enum for lface_attribute_index
in src/dispextern.h, but probably forgot to add corresponding value to
internal-lisp-face-attributes defvar,
causing an arg-out-of-range error for few face related functions.

After adding :extend keyword to internal-lisp-face-attributes the
error don't occur.


(setq internal-lisp-face-attributes
  [nil
   :family :foundry :swidth :height :weight :slant :underline :inverse
   :foreground :background :stipple :overline :strike :box
   :font :inherit :fontset :vector :extend])

[-- Attachment #2: Type: text/html, Size: 1076 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#37824: Args out of range error
  2019-10-19 15:27 bug#37824: Args out of range error Takenari Shinohara
@ 2019-10-19 17:34 ` Eli Zaretskii
  2019-10-20 13:22   ` Ergus via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2019-10-20 20:03   ` Ergus via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 2 replies; 4+ messages in thread
From: Eli Zaretskii @ 2019-10-19 17:34 UTC (permalink / raw)
  To: Takenari Shinohara, Ergus; +Cc: 37824

> From: Takenari Shinohara <takenari.shinohara@gmail.com>
> Date: Sun, 20 Oct 2019 00:27:22 +0900
> 
> After building recent head, I started to see Args out of range errors occasionally.
> 
>  sort: Args out of range: [nil :family :foundry :swidth :height :weight :slant :underline :inverse :foreground ...], 19
> 
> I inspected a little, and I think a found the problem.
> Commit f9206f34d63104c50659a15d3615646a09df87bf intorduced new LFACE_EXTEND_INDEX enum for lface_attribute_index 
> in src/dispextern.h, but probably forgot to add corresponding value to internal-lisp-face-attributes defvar, 
> causing an arg-out-of-range error for few face related functions.
> 
> After adding :extend keyword to internal-lisp-face-attributes the error don't occur.  
> 
> (setq internal-lisp-face-attributes
>   [nil
>    :family :foundry :swidth :height :weight :slant :underline :inverse
>    :foreground :background :stipple :overline :strike :box
>    :font :inherit :fontset :vector :extend])

Thanks.

Jimmy, could you please take a look at this issue?





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#37824: Args out of range error
  2019-10-19 17:34 ` Eli Zaretskii
@ 2019-10-20 13:22   ` Ergus via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2019-10-20 20:03   ` Ergus via Bug reports for GNU Emacs, the Swiss army knife of text editors
  1 sibling, 0 replies; 4+ messages in thread
From: Ergus via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2019-10-20 13:22 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Takenari Shinohara, 37824

This is the same issue than 37806.

I fixed it locally also the other member names. But I'll commit
tomorrow after testing the change. 

On Sat, Oct 19, 2019 at 08:34:53PM +0300, Eli Zaretskii wrote:
>> From: Takenari Shinohara <takenari.shinohara@gmail.com>
>> Date: Sun, 20 Oct 2019 00:27:22 +0900
>>
>> After building recent head, I started to see Args out of range errors occasionally.
>>
>>  sort: Args out of range: [nil :family :foundry :swidth :height :weight :slant :underline :inverse :foreground ...], 19
>>
>> I inspected a little, and I think a found the problem.
>> Commit f9206f34d63104c50659a15d3615646a09df87bf intorduced new LFACE_EXTEND_INDEX enum for lface_attribute_index
>> in src/dispextern.h, but probably forgot to add corresponding value to internal-lisp-face-attributes defvar,
>> causing an arg-out-of-range error for few face related functions.
>>
>> After adding :extend keyword to internal-lisp-face-attributes the error don't occur.
>>
>> (setq internal-lisp-face-attributes
>>   [nil
>>    :family :foundry :swidth :height :weight :slant :underline :inverse
>>    :foreground :background :stipple :overline :strike :box
>>    :font :inherit :fontset :vector :extend])
>
>Thanks.
>
>Jimmy, could you please take a look at this issue?





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#37824: Args out of range error
  2019-10-19 17:34 ` Eli Zaretskii
  2019-10-20 13:22   ` Ergus via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2019-10-20 20:03   ` Ergus via Bug reports for GNU Emacs, the Swiss army knife of text editors
  1 sibling, 0 replies; 4+ messages in thread
From: Ergus via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2019-10-20 20:03 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 37824-done

Fixed in commit: 270ca8c2735cfc7935b9e4d0b770a55138493ef3
This was a duplication of 37806.





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-10-20 20:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-19 15:27 bug#37824: Args out of range error Takenari Shinohara
2019-10-19 17:34 ` Eli Zaretskii
2019-10-20 13:22   ` Ergus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2019-10-20 20:03   ` Ergus via Bug reports for GNU Emacs, the Swiss army knife of text editors

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).