all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Teemu Likonen <tlikonen@iki.fi>
Cc: emacs-devel@gnu.org
Subject: Re: align mysteries
Date: Fri, 15 Oct 2021 12:10:35 +0200	[thread overview]
Message-ID: <871r4m61k4.fsf@gnus.org> (raw)
In-Reply-To: <87tuhiljk7.fsf@iki.fi> (Teemu Likonen's message of "Fri, 15 Oct 2021 12:32:40 +0300")

Teemu Likonen <tlikonen@iki.fi> writes:

> C-u M-x align-regexp
>
>     Complex align using regexp: \(\s-*\)      [add one space at the end]
>     Parenthesis group to modify (justify if negative): 1
>     Amount of spacing (or column if negative): 1
>     Repeat throughout line? (y or n) y
>
> The resulting text:
>
>     foo     bar  zot
>     lalala  y    indeed
>
> I don't quite understand those options but I mostly accepted the
> defaults. For the first question I had to add one space (see above).

Aah, I see; thanks.  I tried `M-x align-regexp', too, but without the
prefix, which (again) didn't really seem to do what you'd expect.  But
the doc string for that command at least mentions the prefix argument.
But makes it sound like it's more cumbersome:

---
Non-interactively (or if you specify a prefix argument), you must
enter the full regular expression, including the subexpression.
---

While instead it gives you defaults and a guided tour through the other
parameters.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



      reply	other threads:[~2021-10-15 10:10 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-14 18:59 align mysteries Lars Ingebrigtsen
2021-10-14 19:58 ` 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 [this message]

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=871r4m61k4.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=emacs-devel@gnu.org \
    --cc=tlikonen@iki.fi \
    /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.