* Counting parameter in a function call
@ 2021-06-25 1:54 lisa-asket
2021-06-26 0:48 ` lisa-asket
0 siblings, 1 reply; 2+ messages in thread
From: lisa-asket @ 2021-06-25 1:54 UTC (permalink / raw)
To: help-gnu-emacs
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}
^ permalink raw reply [flat|nested] 2+ messages in thread
* Counting parameter in a function call
2021-06-25 1:54 Counting parameter in a function call lisa-asket
@ 2021-06-26 0:48 ` lisa-asket
0 siblings, 0 replies; 2+ messages in thread
From: lisa-asket @ 2021-06-26 0:48 UTC (permalink / raw)
To: lisa-asket, help-gnu-emacs
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}
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-06-26 0:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-25 1:54 Counting parameter in a function call lisa-asket
2021-06-26 0:48 ` lisa-asket
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).