[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Counting bracketing marks
From: |
fatiparty |
Subject: |
Re: Counting bracketing marks |
Date: |
Thu, 17 Mar 2022 01:31:14 +0100 (CET) |
Mar 16, 2022, 19:48 by help-gnu-emacs@gnu.org:
> I want to count the number of opening and closing marks `(` and `)` .
>
> (defun bracketing-count (region-start region-end)
> "Count opening and closing bracketing marks."
> (interactive "r")
>
> (save-excursion
> (let ( count (count-matches "\(" (point) region-end) )
> (message "%d" count) )))
>
But this is giving me
save-excursion: let' bindings can have only one value-form: count-matches,
"(", (point), region-end user-error: Minibuffer window is not active`.
- Counting bracketing marks, fatiparty, 2022/03/16
- Message not available
- Re: Counting bracketing marks,
fatiparty <=
- Message not available