unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Emanuel Berg <incal@dataswamp.org>,
	"help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: RE: [External] : sort-block
Date: Mon, 1 Aug 2022 14:21:55 +0000	[thread overview]
Message-ID: <SJ0PR10MB548853E0998E434178422141F39A9@SJ0PR10MB5488.namprd10.prod.outlook.com> (raw)
In-Reply-To: <87h72wefry.fsf@dataswamp.org>

> Useful?

It's up to you.

> Maybe something like this already ... somewhere!
> (defun sort-block ()
>   (interactive)
>   (let ((beg (progn (backward-paragraph) (point)))
>         (end (progn (forward-paragraph)  (point))) )
>     (sort-lines nil beg end) ))

`M-h M-x sort-lines'

Or if you're going to add a key binding, it might
be more useful to add one for `sort-lines' than
for `sort-block' (aka `sort-paragraph').




  reply	other threads:[~2022-08-01 14:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-01  4:42 sort-block Emanuel Berg
2022-08-01 14:21 ` Drew Adams [this message]
2022-08-01 14:39   ` [External] : sort-block Emanuel Berg

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=SJ0PR10MB548853E0998E434178422141F39A9@SJ0PR10MB5488.namprd10.prod.outlook.com \
    --to=drew.adams@oracle.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=incal@dataswamp.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.
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).