[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [External] : sort-block

From: Emanuel Berg
Subject: Re: [External] : sort-block
Date: Mon, 01 Aug 2022 16:39:29 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Drew Adams wrote:

> 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').

I'll change the name ... thanks.

(defun sort-paragraph ()
  (let ((beg (progn (backward-paragraph) (point)))
        (end (progn (forward-paragraph)  (point))) )
    (sort-lines nil beg end) ))
(defalias 'sort-block #'sort-paragraph)

underground experts united

reply via email to

[Prev in Thread] Current Thread [Next in Thread]