[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sh-script beg-end of function
From: |
Andreas Röhler |
Subject: |
Re: sh-script beg-end of function |
Date: |
Fri, 23 Nov 2007 16:56:17 +0100 |
User-agent: |
KMail/1.9.5 |
Just see empty-line-p is my own:
(defcustom empty-line-p-chars "^[ \t\f\r]*$"
"empty-line-p-chars"
:type 'regexp
:group 'convenience)
(defun empty-line-p (&optional ispec)
"Returns t if cursor is at an empty line, nil otherwise."
(interactive "p")
(save-excursion
(beginning-of-line)
(when ispec
(message "%s" (looking-at empty-line-p-chars)))
(looking-at empty-line-p-chars)))
- Re: sh-script beg-end of function, (continued)
- Re: sh-script beg-end of function, Andreas Röhler, 2007/11/21
- Re: sh-script beg-end of function, Stefan Monnier, 2007/11/21
- Re: sh-script beg-end of function, Andreas Röhler, 2007/11/22
- Re: sh-script beg-end of function, Stefan Monnier, 2007/11/22
- Re: sh-script beg-end of function, Andreas Röhler, 2007/11/22
- Re: sh-script beg-end of function, Stefan Monnier, 2007/11/22
- Re: sh-script beg-end of function, Andreas Röhler, 2007/11/23
- Re: sh-script beg-end of function, Stefan Monnier, 2007/11/23
- Re: sh-script beg-end of function, Andreas Röhler, 2007/11/24
- Re: sh-script beg-end of function,
Andreas Röhler <=