help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Determining existence of text following point


From: Eric Abrahamsen
Subject: Re: Determining existence of text following point
Date: Mon, 17 May 2021 17:09:04 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

michael-franzese@gmx.com writes:

> But if there are only empty spaces it is ok too.

Ah, then Skip's looking-at is a fine solution:

(looking-at-p "\\([[:blank:]]+\\)?\\(\n\\|\\'\\)")

That's as a test. Or you could use a single `replace-regexp' invocation,
to detect and replace the whitespace in one go.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]