[Top][All Lists]

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

Re: make a drawing with Emacs

From: Stefan Monnier
Subject: Re: make a drawing with Emacs
Date: Thu, 03 Sep 2020 13:41:57 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

>> The arguments can be any attribute that's valid for an SVG element.  I'm
>> not sure how digging into the source code helps you with determining
>> that -- you'd need to look at the SVG standards document to find out
>> what keywords/values are valid.
> (That said, changing the signature on all these functions to
>   (cl-defun svg-... (... &key stroke-width stroke-color fill-color ... 
> &allow-other-keys)
> would be fine by me, and should be backwards-compatible.)

IIRC it would make the code slower, tho.  It adds code like

    (let ((stroke-color (cadr (plist-member args :stroke-color))))

which the compiler fails to optimize away when `stroke-color` is not used.


reply via email to

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