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: emacs and beginning of lines Date: Sun, 07 Sep 2014 20:35:57 +0200 Organization: Aioe.org NNTP Server Message-ID: <87y4tvffci.fsf@debian.uxu> References: <87r3zpko3s.fsf@mithlond.arda> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1410115226 27951 80.91.229.3 (7 Sep 2014 18:40:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 7 Sep 2014 18:40:26 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Sep 07 20:40:19 2014 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 1XQhNq-0002oT-TI for geh-help-gnu-emacs@m.gmane.org; Sun, 07 Sep 2014 20:40:19 +0200 Original-Received: from localhost ([::1]:39276 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XQhNq-0007oV-AD for geh-help-gnu-emacs@m.gmane.org; Sun, 07 Sep 2014 14:40:18 -0400 Original-Path: usenet.stanford.edu!goblin3!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 45 Original-NNTP-Posting-Host: P0uMB9BthHuWo8+BJXB4Mw.user.speranza.aioe.org Original-X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-Notice: Filtered by postfilter v. 0.8.2 Cancel-Lock: sha1:XYHXcR27IauV1OuR2hW2zRkCZbI= Mail-Copies-To: never Original-Xref: usenet.stanford.edu gnu.emacs.help:207406 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:99681 Archived-At: Jude DaShiell writes: > M-m should work better I think, thanks. M-m is the default for `back-to-indentation', yes, but it makes sense to DWIM-merge that with C-a as to me intuitively it is the same. I just now wrote a post on this issue (sort of) in another thread - check they out, otherwise I'll just offer you the source to try: (defun back-to-dwim () (interactive) (let ((point (point))) (back-to-indentation) (if (= point (point)) (move-beginning-of-line nil) ))) ; ARG (nil = this line) Yes, Python is one of the very few programming languages that has compulsory indentation so I imagine you would want really good support for that. I'm a bit split on that issue. On the one hand, I always indent my code pedantically. It is the first thing I do if I ever get to continue work on some other guy's code. Then, it is also a matter of learning what is going on by making it look good. That works in the bicycle repair shop as well. But the looks are as important in themselves. ("May I indent your code?" is an insult, perhaps the worst.) On the other hand, I don't like the Python compulsory approach and I would never stand for it either in C or Lisp. It is like a puzzle. You want a puzzle to be difficult but you still don't want a puzzle with uniformly formed pieces and the picture being a vast field with all-but identical red and green flowers. It is good to de a pedant in programming but you don't have to be pedantic about it :) -- underground experts united