diff options
| author | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2021-09-18 13:55:31 +0200 |
|---|---|---|
| committer | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2021-09-18 13:55:31 +0200 |
| commit | f1dec4dee26969e899aaa76b9965709996ab34cd (patch) | |
| tree | 6cea10c807cd4c2590ce49713b0e74a21b1fc6e1 /itches | |
| parent | bc07248695d8e9038d3efcf9388296fd8a8996dd (diff) | |
| download | memory-leaks-f1dec4dee26969e899aaa76b9965709996ab34cd.tar.xz | |
Update some Emacs itches
Diffstat (limited to 'itches')
| -rw-r--r-- | itches/emacs/emoji.org | 11 | ||||
| -rw-r--r-- | itches/emacs/tracker.org | 38 |
2 files changed, 41 insertions, 8 deletions
diff --git a/itches/emacs/emoji.org b/itches/emacs/emoji.org index 0d163c7..d38066f 100644 --- a/itches/emacs/emoji.org +++ b/itches/emacs/emoji.org @@ -15,12 +15,7 @@ For example: regional flags, ZWJ sequences from - 🐕🦺 - regional indicators: 🇪🇺, 🇫🇷 -* TODO Add a convenient way to set a font for all emojis +* DONE Add a convenient way to set a font for all emojis -AFAICT there is no convenient way to =set-fontset-font= e.g. Noto - Color Emoji for "all emojis"; valid TARGETs for this function are - - single characters - - character ranges - - scripts, as defined in =script-representative-chars= - - charsets - - nil = any character not already covered by another font-spec +Robert Pluim added an =emoji= script that can be used with +~set-fontset-font~ in Emacs 28. diff --git a/itches/emacs/tracker.org b/itches/emacs/tracker.org index 33f1ce1..f6e80f7 100644 --- a/itches/emacs/tracker.org +++ b/itches/emacs/tracker.org @@ -125,6 +125,44 @@ Unfortunately, Symbola now comes with a [[https://dn-works.com/wp-content/upload Cf. [[https://bugs.archlinux.org/task/58886][Arch Linux]], [[https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=897047][Debian]], [[https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/EC6I35ILFICKY5W5XTHYJC6UH36B2UQS/][Fedora]], [[https://www.mail-archive.com/gentoo-dev@lists.gentoo.org/msg88799.html][Gentoo]], [[https://github.com/NixOS/nixpkgs/pull/79679][NixOS]] and [[https://bugs.launchpad.net/ubuntu/+source/ttf-ancient-fonts/+bug/1824065][Ubuntu]] threads; also [[https://en.wikipedia.org/wiki/Talk:Open-source_Unicode_typefaces#Symbola_font][Wikipedia]] thread. +*** imenu +**** TODO Add grouping/sorting predicates to ~imenu~ completion +So that ~imenu~ + ~icomplete-vertical-mode~ becomes a built-in, +buffer-less equivalent of ~imenu-list~. + +Simple example of these predicates in action: + +#+begin_src elisp +(completing-read + "bleh? " + (lambda (string pred action) + (if (eq action 'metadata) + (let ((sort-fn + (lambda (candidates) + (let* ((numbers (sort (mapcar 'string-to-number candidates) '<)) + (evens (seq-filter 'cl-evenp numbers)) + (odds (seq-difference numbers evens))) + (mapcar 'number-to-string + (if (and (car evens) (< (car evens) (car odds))) + (append evens odds) + (append odds evens))))))) + `(metadata + (cycle-sort-function . ,sort-fn) + (display-sort-function . ,sort-fn) + (group-function + . (lambda (candidate transform) + (if transform + candidate + (if (cl-evenp (string-to-number candidate)) + "even" + "odd")))))) + (complete-with-action action + (mapcar 'number-to-string + (number-sequence 1 10)) + string + pred)))) +#+end_src + *** project **** DONE [[bug:45765]] Change default-directory before prompting in project-compile :PROPERTIES: |
