all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: lisa-asket@perso.be
To: lisa-asket@perso.be, help-gnu-emacs@gnu.org
Subject: Counting parameter in a function call
Date: Sat, 26 Jun 2021 02:48:34 +0200 (CEST)	[thread overview]
Message-ID: <ea-mime-60d67962-5264-7f29053f@www-7.mailo.com> (raw)
In-Reply-To: <ea-mime-60d53742-e83-56e3366@www-8.mailo.com>

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	other threads:[~2021-06-26  0:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-25  1:54 Counting parameter in a function call lisa-asket
2021-06-26  0:48 ` lisa-asket [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ea-mime-60d67962-5264-7f29053f@www-7.mailo.com \
    --to=lisa-asket@perso.be \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.