From: Emanuel Berg <embe8573@student.uu.se>
To: help-gnu-emacs@gnu.org
Subject: Re: emacs and beginning of lines
Date: Sun, 07 Sep 2014 20:35:57 +0200 [thread overview]
Message-ID: <87y4tvffci.fsf@debian.uxu> (raw)
In-Reply-To: mailman.8378.1410049068.1147.help-gnu-emacs@gnu.org
Jude DaShiell <jdashiel@shellworld.net> 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
next prev parent reply other threads:[~2014-09-07 18:35 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-06 9:59 emacs and beginning of lines Jude DaShiell
2014-09-06 11:03 ` Teemu Likonen
2014-09-07 0:17 ` Jude DaShiell
[not found] ` <mailman.8378.1410049068.1147.help-gnu-emacs@gnu.org>
2014-09-07 18:35 ` Emanuel Berg [this message]
2014-09-07 20:47 ` Marcin Borkowski
[not found] ` <mailman.8416.1410122851.1147.help-gnu-emacs@gnu.org>
2014-09-07 21:32 ` Emanuel Berg
2014-09-08 9:17 ` Marcin Borkowski
2014-09-08 11:31 ` Yuri Khan
2014-09-08 11:34 ` Yuri Khan
2014-09-08 12:21 ` Marcin Borkowski
2014-09-08 12:34 ` Stefan Monnier
[not found] ` <mailman.8453.1410179680.1147.help-gnu-emacs@gnu.org>
2014-09-08 22:14 ` Emanuel Berg
[not found] ` <mailman.8445.1410167872.1147.help-gnu-emacs@gnu.org>
2014-09-08 22:10 ` Emanuel Berg
2014-09-09 7:58 ` Marcin Borkowski
[not found] ` <mailman.8505.1410249559.1147.help-gnu-emacs@gnu.org>
2014-09-09 20:02 ` more LaTeX (was: Re: emacs and beginning of lines) Emanuel Berg
2014-09-10 0:12 ` Marcin Borkowski
[not found] ` <mailman.8575.1410307953.1147.help-gnu-emacs@gnu.org>
2014-09-10 1:12 ` Emanuel Berg
2014-09-10 9:23 ` Marcin Borkowski
[not found] ` <mailman.8603.1410341031.1147.help-gnu-emacs@gnu.org>
2014-09-10 21:55 ` Emanuel Berg
2014-09-10 23:42 ` Marcin Borkowski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y4tvffci.fsf@debian.uxu \
--to=embe8573@student.uu.se \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.