all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* 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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.