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

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

Re: How to test if the current line contains only white-spache?


From: Yuri Khan
Subject: Re: How to test if the current line contains only white-spache?
Date: Sun, 15 Nov 2015 11:56:46 +0600

On Sat, Nov 14, 2015 at 10:11 PM, Rolf Ade <rolf@pointsman.de> wrote:

> For some random minor elisp code I need to know, if the current line
> contains only white-space characters[1].
>
> I came up with this somewhat convoluted code: […]
> I wonder, what much simpler and more elegant solution I'm missing.

(beginning-of-line)
(if (looking-at "[ \t]*\n")
    …
  …)



reply via email to

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