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

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

Counting parameter in a function call


From: lisa-asket
Subject: Counting parameter in a function call
Date: Sat, 26 Jun 2021 02:48:34 +0200 (CEST)

Have found that I can use count-matches to campute tho number of arguments

in a function.



M-x count-matches ,



Now I have to extend this to an elisp function so that I can select the region

of the function, so that it returns me the number in it.




From: lisa-asket@perso.be
To: help-gnu-emacs@gnu.org
Subject: Counting parameter in a function call
Date: 25/06/2021 03:54:10 Europe/Paris

I want to write a function that counts tho number of entries in a function call

after selecting a region.



For instance, the following will count to 6 and the result displayed in the 

modeline.



@myfunc{A, B, C, D, E, F}










reply via email to

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