Is it possible to count the number of comma separated values between two marked points in a file using emacs?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’d go the easy way: M-x
count-matches,. It counts commas, but the number of values should be this number, or plus or minus one, depending on whether either point is a comma itself. I’m using Transient Mark Mode so the function applies automatically to the region.