From: Lars Ingebrigtsen <larsi@gnus.org>
To: emacs-devel@gnu.org
Subject: align mysteries
Date: Thu, 14 Oct 2021 20:59:54 +0200 [thread overview]
Message-ID: <87r1cnv3dh.fsf@gnus.org> (raw)
I've never looked looking into how `align' works (because I don't
usually align anything), but it's kinda weird?
With the following in a text-mode buffer:
foo bar zot
lalala y indeed
`M-x align RET'
with that in the region does nothing. `C-u M-x align RET' does align...
something... And I get:
foo bar zot
lalala y indeed
That is, it made all the spaces in the first line into TABs, and the
first space on the second line into a TAB. ¯\_(ツ)_/¯
The prefix isn't mentioned in the `align' doc string, and it's not
referred to in the function itself, so it's probably reacted to in a
function called by `align'? (I didn't try to debug it.)
So we should at least have a doc string fix here. But is this how
`align' is supposed to work? It seems awfully quirky.
The other thing I wondered about is -- do we have a sexp-aware
alignment command somewhere? That is, that would use `forward-sexp' to
compute the columns?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next reply other threads:[~2021-10-14 18:59 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-14 18:59 Lars Ingebrigtsen [this message]
2021-10-14 19:58 ` align mysteries dick
2021-10-14 20:59 ` Lars Ingebrigtsen
2021-10-14 21:19 ` H. Dieter Wilhelm
2021-10-14 21:35 ` Lars Ingebrigtsen
2021-10-14 21:41 ` Lars Ingebrigtsen
2021-10-15 6:20 ` Eli Zaretskii
2021-10-15 10:01 ` Lars Ingebrigtsen
2021-10-16 17:48 ` H. Dieter Wilhelm
2021-10-14 22:04 ` Stefan Monnier
2021-10-15 10:00 ` Lars Ingebrigtsen
2021-10-15 9:32 ` Teemu Likonen
2021-10-15 10:10 ` Lars Ingebrigtsen
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=87r1cnv3dh.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=emacs-devel@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.