From: "H. Dieter Wilhelm" <dieter@duenenhof-wilhelm.de>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: dick <dick.r.chiang@gmail.com>, emacs-devel@gnu.org
Subject: Re: align mysteries
Date: Thu, 14 Oct 2021 23:19:58 +0200 [thread overview]
Message-ID: <86pms7xq0x.fsf@duenenhof-wilhelm.de> (raw)
In-Reply-To: <87zgrbtj9z.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 14 Oct 2021 22:59:20 +0200")
Lars Ingebrigtsen <larsi@gnus.org> writes:
> Is anybody here using `M-x align'? If so, is it doing what you expect
> it to? :-)
For my needs it is working perfectly (I didn't study it, because it
works so nicely in my programming mode "APDL-Mode" on Melpa). Here's an
example when setting parameters:
mp = 3333333
l =40.0
kkkkk=8
M-x apdl-align
mp = 3333333
l = 40.0
kkkkk = 8
(Don't know if this is convincing for you :-))
(defun apdl-align (p-min p-max)
"Align current paragraph or selection of APDL variable definitions.
If a region is selected align it (with the region borders P-MIN
and P-MAX) otherwise align the current code paragraph."
(interactive "r")
(if mark-active
(align p-min p-max)
(align-current))) ; align-current needs a mark
Dieter
--
Best wishes
H. Dieter Wilhelm
Zwingenberg, Germany
next prev parent reply other threads:[~2021-10-14 21:19 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 [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86pms7xq0x.fsf@duenenhof-wilhelm.de \
--to=dieter@duenenhof-wilhelm.de \
--cc=dick.r.chiang@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=larsi@gnus.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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).