From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Roehler Newsgroups: gmane.emacs.help Subject: empty-line-p Date: Thu, 29 Mar 2007 15:06:34 +0200 Message-ID: <460BB9DA.5090006@easy-emacs.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1175177206 8395 80.91.229.12 (29 Mar 2007 14:06:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 29 Mar 2007 14:06:46 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 29 16:06:38 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HWvGN-0000GA-Hv for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Mar 2007 16:06:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HWvIx-0008KZ-Bw for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Mar 2007 09:08:43 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HWvIj-0008JM-6y for help-gnu-emacs@gnu.org; Thu, 29 Mar 2007 10:08:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HWvIe-00089S-6g for help-gnu-emacs@gnu.org; Thu, 29 Mar 2007 10:08:28 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HWvIe-00088x-3A for help-gnu-emacs@gnu.org; Thu, 29 Mar 2007 09:08:24 -0500 Original-Received: from moutng.kundenserver.de ([212.227.126.171]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HWvG3-0000Vk-3L for help-gnu-emacs@gnu.org; Thu, 29 Mar 2007 10:05:43 -0400 Original-Received: from [84.190.165.100] (helo=[192.168.178.25]) by mrelayeu.kundenserver.de (node=mrelayeu8) with ESMTP (Nemesis), id 0ML31I-1HWvFo1Hix-00067R; Thu, 29 Mar 2007 16:05:28 +0200 User-Agent: Thunderbird 1.5.0.4 (X11/20060516) X-Provags-ID: V01U2FsdGVkX1/Mu1SbfpGcFaB+L0Tj3xBQC2wxT1NDaUDjt38 svSiOCnHj0E287eN6DtSoVcBkklnqS6a2dBeQGubf0XOETLzso l9l8z5wHTkkACJAzyhDww== X-detected-kernel: Linux 2.6? (barebone, rare!) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:42275 Archived-At: 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