emacs-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] Add prettify symbols to python-mode


From: David Kastrup
Subject: Re: [PATCH] Add prettify symbols to python-mode
Date: Wed, 23 Sep 2015 21:46:06 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Paul Eggert <address@hidden> writes:

> On 09/23/2015 10:58 AM, David Kastrup wrote:
>> Lisp_Object x[2];
>> x[0] = a;
>> x[1] = b;
>> return Fplus (2, x);
>>
>> does not resemble either a+b or (+ a b).
>
> Sure, but that's not using the C macros properly.  Better is this:
>
>    return CALLN (Fplus, a, b);
>
> which is not so far from (+ a b).

address@hidden:/usr/local/tmp/emacs$ git grep CALLN src|wc -l
85

That's not exactly ubiquitous.  And we have the self-estimate

src/lisp.h:   CALLN is overkill for simple usages like 'Finsert (1, &text);'.  
*/

which actively discourages using a C macro when you can use a direct
call.

Emacs C just is pretty far from a "non-issue".  Pretending otherwise is
not useful.  The number of people working on it will always be limited
to people comfortable working with interpreters and non-native data
types.

-- 
David Kastrup



reply via email to

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