From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rolf Ade Newsgroups: gmane.emacs.help Subject: Re: How to test if the current line contains only white-spache? Date: Thu, 19 Nov 2015 14:54:31 +0100 Organization: Me Message-ID: <877fle6qnc.fsf@linux-qg7d.fritz.box> References: <87r3js7e8l.fsf@linux-qg7d.fritz.box> <874mgnystc.fsf@point.pointsman.de> <87d1v67nwo.fsf@linux-qg7d.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1447941382 6808 80.91.229.3 (19 Nov 2015 13:56:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 19 Nov 2015 13:56:22 +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 Nov 19 14:56:21 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 1ZzPgG-00074m-0e for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Nov 2015 14:55:20 +0100 Original-Received: from localhost ([::1]:41797 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZzPgF-0001Ej-0R for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Nov 2015 08:55:19 -0500 Original-Path: usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 37 Original-X-Trace: individual.net /RPELGD21ChEEmknfGR30QztlO3trqtsAigbWIWreBfVYBrEQ= Cancel-Lock: sha1:HpuBsYWcRURfLDIG9uGAR0AHmuU= sha1:KLx4vJuutlVWHq/P2Tyncg9aq90= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) Original-Xref: usenet.stanford.edu gnu.emacs.help:215843 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:108131 Archived-At: Emanuel Berg writes: > Rolf Ade writes: > >> Lesser moving the point around may help in finding >> a better solution. > > Intuitively, it feels good not moving the point around > too much from Elisp. Yes, this is, what my instinct also telling me. But this instinct was trained by other programming languages and environments. I'm aware, that it may be not applicable to emacs lisp / emacs. > Because, moving point around emulates how a human > would solve the problem interactively (i.e., with the > keyboard) contrary to how a computer could just access > the data exactly where it is without any detour. It's not so much the "moving point around emulates how a human would solve the problem interactively" aspect, that feels suspicious to me. It's more the "doing things by banking on side effects of function calls" aspect (the "side effect" I'm talking about is moving the point around). For example within the emacs lisp code, I'm working atm I've a defun, that moves point, then remembers the current point position, then calls another defun, that further moves the point around and then back again in my first defun I'm working on the so defind region. Discussing programming concepts at such 'meta level' is difficult. But maybe some may express their thinking about this. Is this 'moving point around' in emacs lisp programming code the "right thing" to do (just wrap it into a save-excursion and you're fine) or is it a signal, that I haven't found the "right" way to takle the problem at hand with emacs lisp?