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

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

bug#48180: ruby-mode.el: fix font lock for puts and printf


From: Dmitry Gutov
Subject: bug#48180: ruby-mode.el: fix font lock for puts and printf
Date: Mon, 3 May 2021 13:17:48 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1

Hi Steve,

On 03.05.2021 04:01, Steve Purcell wrote:
Both these methods can be called without arguments, so the font
locking of "bare" calls to either is incorrect.  The fix is to
font-lock them as for other kernel methods which accepts zero or more
arguments.

Is that important? Like, is anybody likely to call either without args? font-lock is not a precise facility (that anything depends on), so we can afford to be wrong in 0.01% cases.

If we institute this principle, I suppose we'll need to do this for all functions that can work without args? In my testing, that's also:

p, open, loop, warn, print

Also note that your title says 'printf', but the patch said 'print'.





reply via email to

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