[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
empty-line-p
From: |
Andreas Roehler |
Subject: |
empty-line-p |
Date: |
Thu, 29 Mar 2007 15:06:34 +0200 |
User-agent: |
Thunderbird 1.5.0.4 (X11/20060516) |
Hi,
needed a check at several occassions, if the current line
contains printable characters.
What about the following to solve this?
(defun empty-line-p ()
"Returns t if cursor is at an empty line "
(interactive)
(save-excursion
(beginning-of-line)
(if
(looking-at "^[ \t\f\r]*$")
t
nil)))
__
Andreas Roehler
- empty-line-p,
Andreas Roehler <=