all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Scanning parenthesis in string/comment
@ 2023-01-22 17:15 Yuan Fu
  2023-01-23  1:49 ` Ruijie Yu via Users list for the GNU Emacs text editor
  2023-01-23  8:10 ` Jean Louis
  0 siblings, 2 replies; 4+ messages in thread
From: Yuan Fu @ 2023-01-22 17:15 UTC (permalink / raw)
  To: help-gnu-emacs

I’m writing an expand-region-like function, which expands region by logical entities, like word-at-point, list-at-point, etc. Say I have this string

"Filter out invalid regions in REGIONS regarding ORIG.
ORIG is the current position. Each region is (BEG . END).”

And point is at the opening parenthesis, how do I detect this balanced parenthesis pair and expand the region over it? syntax-pass and forward-list only works with lists outside of strings and comments, IIUC.

Yuan


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-01-23 19:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-22 17:15 Scanning parenthesis in string/comment Yuan Fu
2023-01-23  1:49 ` Ruijie Yu via Users list for the GNU Emacs text editor
2023-01-23 19:24   ` Yuan Fu
2023-01-23  8:10 ` Jean Louis

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.