all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Yuri Khan <yuri.v.khan@gmail.com>
To: Skip Montanaro <skip.montanaro@gmail.com>
Cc: Help GNU Emacs <help-gnu-emacs@gnu.org>,
	Tim Landscheidt <tim@tim-landscheidt.de>
Subject: Re: TIL about string-rectangle
Date: Thu, 31 Dec 2020 15:03:43 +0700	[thread overview]
Message-ID: <CAP_d_8U7kMPFkD_WwJ661Sib-Hx8T0VPosc=TAsoMiFUP0RJjg@mail.gmail.com> (raw)
In-Reply-To: <CANc-5Uz-_cw3S9Nq4c=rrBGg3JuEDuxPaGQvBcmPPrp6e=fWBw@mail.gmail.com>

On Thu, 31 Dec 2020 at 05:13, Skip Montanaro <skip.montanaro@gmail.com> wrote:

> > For complex sorts, I once wrote a function that enhances
> > sort-regexp-fields (and needs a docstring and comments that
> > I could understand after eight years): ...
>
> Thanks. I've used the Unix sort(1) command for a few decades now. It's
> kind of burned into my brain. I know Emacs Lisp is exceedingly
> powerful (I used it as my Lisp interpreter as the one and only Lisp
> class I took), but sort(1) does just what I wanted here other than not
> terminating the third (year) field at the comma. It's kind of hard to
> argue with its economy. Regular expressions are quite handy, but also
> pretty verbose for this task.

You will have an easier time sorting by date if you keep dates in the
ISO 8601 format: YYYY-MM-DD.



  reply	other threads:[~2020-12-31  8:03 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-30 20:59 TIL about string-rectangle Skip Montanaro
2020-12-30 21:37 ` Tim Landscheidt
2020-12-30 22:11   ` Skip Montanaro
2020-12-31  8:03     ` Yuri Khan [this message]
2020-12-31 10:21       ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-12-31 12:44       ` Skip Montanaro
2020-12-31 14:32     ` Tim Landscheidt
2020-12-30 21:43 ` Drew Adams
2020-12-30 22:08   ` Skip Montanaro
2020-12-30 23:11     ` Drew Adams
2020-12-30 23:23       ` Drew Adams
2020-12-30 23:24       ` Skip Montanaro
2020-12-31  7:15         ` Sivaram Neelakantan

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='CAP_d_8U7kMPFkD_WwJ661Sib-Hx8T0VPosc=TAsoMiFUP0RJjg@mail.gmail.com' \
    --to=yuri.v.khan@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=skip.montanaro@gmail.com \
    --cc=tim@tim-landscheidt.de \
    /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.