alphapapa / alphapapa/unpackaged.el

Possible to make `sort-sexps` take a sorting function?

オープン
#20 コメント 7 件 リアクション 0 件 担当者 1 名 @alphapapa が担当を希望しています GitHub で見る
enhancement
主要言語
Emacs Lisp
スター
416
フォーク
12
PR マージ指標
30日以内にマージされた PR はありません

説明

My lisp-fu is not so advanced to do this, but I'd love ot pass something like, `(sort-sexps beg end &optional accessor)` to sort specifically on a certain element of a list (i.e., sort all defines by `cadr`).

Looks like the `collect (cons (buffer-substring...)` code needs to be modified, but I'm not sure how to define a searcher for a certain element of each read list and return its begin and end points in the buffer.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。