From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.help Subject: Re: How to test if the current line contains only white-space? Date: Sat, 21 Nov 2015 03:02:08 +0100 Message-ID: <87r3jk85zz.fsf@debian.uxu> References: <87r3js7e8l.fsf@linux-qg7d.fritz.box> <874mgnystc.fsf@point.pointsman.de> <87d1v67nwo.fsf@linux-qg7d.fritz.box> <877fle6qnc.fsf@linux-qg7d.fritz.box> <87bnaqvwvx.fsf@mbork.pl> <87oaep5wdm.fsf_-_@linux-qg7d.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1448070758 28549 80.91.229.3 (21 Nov 2015 01:52:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 21 Nov 2015 01:52:38 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Nov 21 02:52:24 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZzxLk-0003xI-BQ for geh-help-gnu-emacs@m.gmane.org; Sat, 21 Nov 2015 02:52:24 +0100 Original-Received: from localhost ([::1]:50738 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZzxLj-00054H-SO for geh-help-gnu-emacs@m.gmane.org; Fri, 20 Nov 2015 20:52:23 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39196) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZzxLY-00052F-QB for help-gnu-emacs@gnu.org; Fri, 20 Nov 2015 20:52:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZzxLV-0006jf-JQ for help-gnu-emacs@gnu.org; Fri, 20 Nov 2015 20:52:12 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:43168) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZzxLV-0006jX-CL for help-gnu-emacs@gnu.org; Fri, 20 Nov 2015 20:52:09 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZzxLT-0003K3-4Q for help-gnu-emacs@gnu.org; Sat, 21 Nov 2015 02:52:07 +0100 Original-Received: from nl106-137-244.student.uu.se ([130.243.137.244]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 21 Nov 2015 02:52:07 +0100 Original-Received: from embe8573 by nl106-137-244.student.uu.se with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 21 Nov 2015 02:52:07 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-Lines: 33 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: nl106-137-244.student.uu.se Mail-Copies-To: never User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) Cancel-Lock: sha1:hlhgUU4q0a7RPXs9OsQE5fWpxyE= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:108170 Archived-At: Rolf Ade writes: > Well, yeah. If you start digging a bit more into > emacs lisp programming, as I do atm, a lot of > details showing up. While I enjoy that emacs, the > editor, mostly do The Right Thing depending on the > "context" (e.g mode of the buffer) it makes me > nervous that within emacs, the programming > enviroment, the effect of my elisp code often > depends on settings and circumstances that are not > under my (the programmer) control. (And more > important I may not know about. The one I know about > I'm able to handle.) > > In the current, very simple case ("How to test if > the current line contains only white-space?") > I learned the difference between looking-at and > looking-at-p. At some stage I used > beginning-of-line-text and quickly realized that the > result of that defun depends on adaptive-fill-mode > being on or off. And so on. That doesn't sound like a good feeling and to track such influences is not a straightforward task. But this concern never bothered me and I can't recall ever being punished for not being concerned, either, so if you are lucky (?) you are not in any trouble, you are just worried because potentially there could be trouble. -- underground experts united http://user.it.uu.se/~embe8573