bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#19634: counting MANY function args more reliably


From: Paul Eggert
Subject: bug#19634: counting MANY function args more reliably
Date: Thu, 22 Jan 2015 09:42:10 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0

On 01/22/2015 08:31 AM, Eli Zaretskii wrote:
Do we want to use this for every call to a function that accepts MANY
args, or just those where the argument is an array?

We should use it for calls where counting the number of arguments is likely to be error-prone.

I'm asking because the proposed patch left out this part of w32fns.c:

   static Lisp_Object
   x_create_tip_frame (struct w32_display_info *dpyinfo,
                      Lisp_Object parms, Lisp_Object text)
   {
     [...]
     Ferase_buffer ();
     Finsert (1, &text);  <<<<<<<<<<<<<<<<<<<<<<

The patch does not affect calls like that, as they're unlikely to give rise to the sort of typographical error that motivated the patch.





reply via email to

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