memory-leaks

Still reachable: lots of words in many pages.
git clone https://git.kevinlegouguec.net/memory-leaks
Log | Files | Refs | README | LICENSE

hype.org (23129B)


      1 Emacs's NEWS files are useful as a searchable reference, but they can
      2 be overwhelming as an entry point to a new release.  In this file, I'm
      3 keeping track of the changes /I/ am excited about.
      4 * (Cooking)
      5 Not merged yet; still excited about it.
      6 ** UI
      7 *** Cursor
      8 **** ~cursor-indicators-mode~ (bug#77224)
      9 Change cursor style depending on arbitrary predicates.  Might finally
     10 stop me from activating repeat maps by accident.
     11 * 31
     12 ** Applications
     13 *** Dired
     14 **** kill project-relative filename
     15 With =C-u 1 w=.
     16 *** grep
     17 **** Editable =*grep*= buffers (bug#70820)
     18 - =e= to start editing
     19 - =C-c C-c= to apply
     20 *** Package manager
     21 **** Review policy for installations & upgrades
     22 ~package-review-policy~ lets users opt in to reviewing diffs when
     23 installing (new versions of) packages.
     24 *** VC
     25 Steadily inching closer to Magit.
     26 **** =C-x v w= prefix for working tree commands
     27 With ~project.el~ integration.
     28 
     29 Particularly fond of =C-x v w w= to explore alternate versions of a
     30 file; ~magit-find-file~ is still convenient for quickly blaming
     31 arbitrary revisions, but visiting an actual checkout allows deploying
     32 the full language server & linter gamut.
     33 **** =C-x v [IOT]= prefixes for DWIM comparisons with upstreams
     34 NB: =I= & =O= prefixes are opt-in with
     35 =vc-use-incoming-outgoing-prefixes=.
     36 
     37 - =I= stands for "incoming" = "what we would pull",
     38 - =O= stands for "outgoing" = "what we would push",
     39 - =T= stands for "topic" = "what we would ask /them/ to merge";
     40   commands in this prefix purport to compare "outstanding" changes
     41   between the current branch and its upstream, assuming we are sitting
     42   on a transient feature branch that will eventually be merged back
     43   into a longer-lived development trunk.
     44 
     45 Each prefix offers === (fileset diff), =D= (root diff) and =L= (root
     46 log).
     47 
     48 For more information about Emacs's understanding of "outstanding
     49 changes", see bug#80006 and [[info:emacs#Outstanding Changes][emacs#Outstanding Changes]].
     50 **** =M-RET=, =M-n= & =M-p= for low-friction Log View movement
     51 Partly self-imposed by the decision to split the commit message in the
     52 log buffer, and the patch in a separate diff buffer; still, nice to
     53 have a set of keys to do both actions at once.
     54 ** Editing
     55 *** DWIM =C-w= (bug#69097)
     56 =kill-region-dwim= tells =C-w= what to do when the region is inactive:
     57 
     58 - By default, kill the region anyway as long it exists, i.e. the mark
     59   is set; in other words, kill the region revealed by =C-x C-x=.
     60 
     61 - Otherwise kill "a word" backward.
     62 
     63 The option can be set to kill either [[info:emacs#Words][an Emacs word]] (major-mode
     64 dependant) or a [[info:readline#Commands For Killing][readline word]] (whitespace-separated).
     65 *** isearch
     66 **** Transpose FROM & TO with =M-s t=
     67 ** Elisp
     68 *** So long /pure storage/ 🫡
     69 This release does away with pure space, removing one of these subtle
     70 bits of [[info:elisp#GNU Emacs Internals][{{{eldritch(the Internals)}}}]] that I usually ignore while
     71 noodling in the Lisp Happy Lands of Immediate Feedback, and get
     72 reminded of either when ~make bootstrap~ tuts at my patch, or when a
     73 reviewer does 🫤
     74 
     75 Nice that we no longer need to figure out which strings to ~purecopy~,
     76 that we can always use ~define-key~ and forget about
     77 ~bindings--define-key~, that ~defconst~ no longer causes pure-copying
     78 hazards…
     79 *** User Lisp directory
     80 I have always envied folks who conscientiously break their init file
     81 down into modular package-like files: at the time of writing, my own
     82 =init.el= is a bit over 1k lines, with a couple of ~require~ clauses
     83 awkwardly tucked in function bodies to avoid bloating startup.
     84 
     85 In this release, Emacs now processes =user-lisp-directory= like a
     86 package (or a collection of packages), complete with autoloads.
     87 Perhaps this feature will help me journey toward the promised land of
     88 modular init files.
     89 ** Programming
     90 *** eglot
     91 **** ~eglot-describe-connection~ and ~eglot-list-connections~
     92 **** ~jsonrpc-events-mode~
     93 New major mode for Eglot's event log buffers, accessed with ~M-x
     94 eglot-events-buffer~ or =e= in the connection list buffer.  =RET=
     95 pretty-prints the event at point with =jq=.
     96 *** lua-mode
     97 Imported from [[https://immerrr.github.io/lua-mode/][the historical thirdparty mode]]; an alternative to the
     98 built-in lua-ts-mode.
     99 
    100 (Unfortunately [[https://cgit.git.savannah.gnu.org/cgit/emacs.git/commit/?id=0d3504227a67b56a8d1edc4758c66a05718dbd5a][the VCS history was squashed]], despite [[https://debbugs.gnu.org/cgi/bugreport.cgi?bug=76650#90][efforts]] to
    101 preserve it)
    102 *** tree-sitter
    103 **** Finer sexp movement (bug#73404, bug#76676)
    104 Sexp commands no longer "overshoot" in tree-sitter modes.  For
    105 example, in previous releases, invoking =C-M-f= in c-ts-mode with
    106 point…
    107 
    108 - at the start of a function definition: point would jump to the end
    109   of the function (redundant with =C-M-e=),
    110 - at the start of a statement: point would jump to the end of the
    111   statement (redundant with =M-e=).
    112 
    113 Now:
    114 
    115 - tree-sitter modes can opt into the more familiar "atom"-based
    116   movement - in c-ts-mode, stopping over each identifier or keyword,
    117   still leaping over delimiter pairs (=([{}])=), by defining a =list=
    118   element in =treesit-thing-settings=.
    119 - users can invoke ~treesit-cycle-sexp-type~ to make =C-M= commands
    120   act on "treesit nodes" vs "syntax symbols".
    121 ** UI
    122 *** Completion
    123 **** ~completion-eager-display~
    124 **** ~completion-eager-update~
    125 **** ~completion-pcm-leading-wildcard~
    126 **** ~completion-styles~ bindings
    127 - to set completion-ignore-case
    128 *** Desktop integration
    129 **** ~system-taskbar-mode~
    130 Curious what this thing can achieve.  E.g. I'm already a happy user of
    131 ~compilation-finish-functions~ to send a desktop notification using
    132 ~notifications-notify~; wondering what other information this taskbar
    133 integration can expose.  Also anxious to know whether & how badges
    134 from multiple Emacs instances will share the taskbar space.
    135 *** Help
    136 **** =C-h u= bound to ~apropos-user-option~
    137 *** Hideshow
    138 Lots of quality-of-life improvements mirroring similar enhancements in
    139 =outline.el= from past releases; personally happy about
    140 =hs-cycle-filter=:
    141 
    142 - ≈ =outline-minor-mode-cycle=, in that it allows =TAB= to be the
    143   one-stop binding for toggling visibility;
    144 - more flexible though: either a boolean, or a predicate to control
    145   /where/ the =TAB= key should "hideshow" (vs other actions like
    146   indent).
    147 *** Input
    148 **** =repeat-continue=
    149 Users can tell ~repeat-mode~ that some commands should not interrupt
    150 repeat maps:
    151 
    152 #+begin_src elisp
    153 ;; Allow C-l in the middle of a repeating sequence.  Useful when
    154 ;; e.g. `next-error' shows point at the bottom of the window, and
    155 ;; recentering to the top will show more context that will let me
    156 ;; decide whether to keep searching or not.
    157 (put 'recenter-top-bottom 'repeat-continue t)
    158 #+end_src
    159 
    160 Other ways to set the property:
    161 
    162 - ~use-package~'s =:continue-only= keyword;
    163 - ~defvar-keymap~'s =:continue= keyword.
    164 *** Windows
    165 **** New window layout commands (=window-x.el=)
    166 With bindings under =C-x w=, complete with repeat maps.  Looking
    167 forward to ~flip~ and ~rotate~ and ~transpose~ 🫨
    168 **** =split-window-preferred-direction=
    169 By default, when splits are possible in either direction according to
    170 =split-{height,width}-threshold=, Emacs was biased toward splitting
    171 vertically.  This new option defaults to ='longest=, reducing that
    172 bias by making Emacs consider the window layout: "landscape" windows
    173 (such as a single window in a maximized frame) will be split
    174 horizontally.
    175 ** Honorable mentions
    176 *** ~whitespace-page-delimiters-mode~ for better =^L= display
    177 Emacs's =FORM FEED= display is [[file:../../itches/emacs/form-feed.md][one of my oldest peeve]], so I was
    178 excited to see it addressed.  I do not think I will be using this mode
    179 however; I would have preferred something independent of
    180 ~whitespace-mode~.
    181 * 30
    182 ** =:core= promotions
    183 *** visual-wrap (was adaptive-wrap): soft & mode-sensitive wrap prefixes
    184 This package enhances the way Emacs displays continuation lines.
    185 Unpacking that word salad of a heading:
    186 
    187 - wrap prefixes :: strings that Emacs prepends to continuation lines;
    188 - soft :: these strings are intangible decoration, not actual buffer
    189   content;
    190 - mode-sensitive :: leverages the mode's [[info:emacs#Adaptive Fill][adaptive-fill settings]] to
    191   determine the "proper" prefix, i.e. the same prefix you would get by
    192   hard-wrapping with =M-q=.
    193 *** which-key: key binding discovery (bug#68929)
    194 ** Applications
    195 *** ERC
    196 **** ~visual-line-mode~ integration
    197 In previous versions, I would take =fill= off ~erc-modules~ and enable
    198 ~visual-line-mode~ in order to get reflowable windows; this would [[file:~/memory-leaks/itches/emacs/tracker.org::*+Make timestamps robust vs window width changes+][mess
    199 with right-aligned timestamps]], however.
    200 
    201 As of ERC 5.6, setting ~erc-fill-function~ to ~'erc-fill-wrap~ enables
    202 ~visual-line-mode~ and sets up all sorts of =line-prefix=,
    203 =wrap-prefix= & margin trickery to (a) align nicks and messages (b)
    204 make messages reflowable (c) keep timestamps firmly stuck to the right
    205 margin.
    206 *** shr
    207 **** bug#66676 ~shr-fill-text~
    208 Set to nil to completely disable shr's line-wrapping.  This lets users
    209 leverage ~visual-line-mode~ to get all the benefits of
    210 display-engine-backed wrapping: text is reflowed on the fly as windows
    211 are resized or text is rescaled.
    212 
    213 Tables still use rigid wrapping though; this can be circumvented by
    214 remapping =<table>= tags:
    215 
    216 #+begin_src elisp
    217 (pcase-dolist (`(,tag . ,shr-function)
    218                '((table . shr-tag-div)
    219                  (thead . shr-tag-div)
    220                  (tbody . shr-tag-div)
    221                  (tr    . shr-tag-ul)
    222                  (th    . shr-tag-li)
    223                  (td    . shr-tag-li)))
    224   (setf (alist-get tag shr-external-rendering-functions) shr-function))
    225 #+end_src
    226 
    227 Eww automatically enables ~visual-line-mode~ when it detects that
    228 ~shr-fill-text~ is =nil=; Gnus does not yet, and so requires some
    229 hand-holding to take full-advantage of ~visual-line-mode~:
    230 
    231 #+begin_src elisp
    232 ;; Enable visual-line-mode after rendering an article:
    233 (add-hook 'gnus-article-prepare-hook 'visual-line-mode)
    234 
    235 ;; This is to go e v e n f u r t h e r b e y o n d.
    236 (setopt
    237  ;; Never hard-wrap any lines.
    238  gnus-treat-fill-article          nil
    239  gnus-treat-fill-long-lines       nil
    240  ;; Re-assemble headers into a single line.
    241  gnus-article-unfold-long-headers t
    242  gnus-treat-fold-headers          nil
    243  ;; Unfurl format=flowed emails by "filling" them to an absurd width.
    244  fill-flowed-display-column       most-positive-fixnum
    245  mm-fill-flowed                   t)
    246 #+end_src
    247 
    248 ** Programming
    249 *** imenu
    250 **** bug#70846 imenu-flatten
    251 See also emacs-devel:<m1bk5adq1z.fsf@eshelyaron.com> for follow-up
    252 work to make completions preserve text properties, allowing
    253 ~completing-read~ callers to distinguish multiple candidates with the
    254 same string value.
    255 *** tags
    256 **** ~etags-regen-mode~
    257 Not sure how straightforward it is to set up for complex projects,
    258 e.g. binutils-gdb where ~make TAGS~ generates TAGS files in multiple
    259 subdirectories, and one source file uses symbols from multiple TAGS
    260 files.
    261 
    262 Sounds useful though.
    263 ** UI
    264 *** Completion
    265 **** ~completion-preview-mode~
    266 *** Customization
    267 **** ~customize-toggle-option~
    268 *** Minibuffer
    269 **** ~read-passwd-toggle-visibility~
    270 *** Outline
    271 **** bug#49731 outline-{show,hide}-by-heading-regexp
    272 **** bug#66676 SHR & EWW integration
    273 **** bug#68824 tree-sitter integration
    274 **** bug#69305 buffer-menu & tabulated-list-mode integration
    275 *** Windows
    276 **** ~toggle-window-dedicated~ (=C-x w d=)
    277 Matches my "opportunistic" window "management" perfectly; I generally
    278 do not mind Emacs popping buffers left and right, but on occasion I'll
    279 be…
    280 
    281 - working on window (a),
    282 - about to run a command 𝒳 that shows results in another window,
    283 - having a window (b) displaying notes I want to keep visible,
    284 - having a window (c) I consider disposable,
    285 
    286 But 𝒳 would clobber (b) to display its results.  Being able to
    287 "freeze" (b) and ensure commands in (a) dump their results in (c) is
    288 neat.  =M-: (set-window-dedicated-p nil t)= is a thing I've actually
    289 run on occasion.
    290 
    291 Also, the mode-line indicator has the nice side-effect of making the
    292 behavior of rigid interfaces à la ~gdb-many-windows~ less suprising.
    293 * 29
    294 ** =:core= promotions
    295 A couple of ELPA packages have moved to emacs.git, making them
    296 available out of the box.
    297 *** eglot ("Emacs Polyglot"): LSP client
    298 Lets Emacs leverage language servers to boost completion-at-point,
    299 eldoc, flymake, imenu, project, xref.
    300 *** use-package: init-file management
    301 A utility macro for configuring packages that makes init-file
    302 management more pleasant (and efficient to boot):
    303 
    304 - OT1H, brings some amount of structure and order when compared to a
    305   fully free-form DYI =.emacs=,
    306 - OTOH, allows more leeway on how to organize things, when compared to
    307   Custom's rigid auto-generated forms (e.g. using regular code
    308   comments, computing option values, sorting options arbitrarily),
    309 - takes care of setting up the ~eval-after-load~ wizardry to keep
    310   startup snappy.
    311 
    312 A tedious aspect of porting a ~custom-file~ to ~use-package~
    313 declarations is tracking down what package defines which variables,
    314 since not every variable is named after the package it belongs to.
    315 I wrote [[file:~/memory-leaks/guides/emacs/use-package.org::*Porting from ~custom-file~][some code to make the process faster]].
    316 ** Elisp
    317 *** ~setopt~ sets variables and runs their Custom setters
    318 ** Programming
    319 *** eglot
    320 **** better composition of doc & lint messages
    321 Eglot now sets ~eldoc-documentation-strategy~ to
    322 ~eldoc-documentation-compose~, so linter warnings are no longer hidden
    323 by symbol documentation.
    324 
    325 It used to be that a flymake warning would flash briefly in the echo
    326 area before e.g. a function signature would clobber it and I would
    327 have to resort to ~M-x flymake-show-buffer-diagnostics~, but no
    328 longer: Eglot now sets things up so that both are visible in the echo
    329 area.
    330 *** imenu
    331 **** now bound to =M-g i=
    332 Turns out that lots of modes define an imenu.
    333 *** Languages
    334 *** Python
    335 **** ~python-indent-def-block-scale~
    336 Bumping that new option down to =1= ensures =python.el= and I remain
    337 on good terms whenever I open lines inside parentheses.
    338 ** UI
    339 *** Buffers
    340 **** ~rename-visited-file~
    341 Instead of =C-x C-w NEWNAME RET M-! rm OLDNAME RET=.
    342 *** Fonts
    343 **** ~global-text-scale-adjust~
    344 ~text-scale-adjust~ (bound to =C-x C-X= ∀ =X= ∈ =[=+-0]=) only scales
    345 the font size in the current buffer; more often than not, one may want
    346 to increase the default font size everywhere (e.g. when projecting
    347 their screen).
    348 
    349 To that end, users had to =M-x customize-face RET default= or =M-:=
    350 ~(set-face-attribute 'default nil :height …)~; now they can use the
    351 new =C-x C-M-X= bindings to invoke ~global-text-scale-adjust~.
    352 *** Outline
    353 **** "fold hints" for outlines
    354 ~outline-minor-mode-use-buttons~ can be set to either
    355 
    356 - =in-margins=: magit-section-like indicators,
    357 - =t=: in-buffer buttons.
    358 
    359 Initially the latter used arguably "garish" color emoji; with the
    360 addition of the =icons.el= library, the way these buttons are
    361 displayed can now be controlled with ~icon-preference~, which defaults
    362 to more sober SVG images.
    363 *** Windows
    364 **** ~split-root-window-{below,right}~
    365 E.g. when you already have a vertical split, and you'd like to spawn a
    366 full-height window to the side (instead of splitting either the top or
    367 bottom window horizontally and keeping the other full-width).
    368 
    369 Been missing this in both Emacs and Terminator; glad Emacs now has a
    370 solution.
    371 
    372 Part of the new window keymap on =C-x w=.
    373 ** Honorable mentions
    374 These have me excited too, but I have nits to pick with the current
    375 incarnation.
    376 *** "Pure GTK" Emacs
    377 Some brave souls took it upon themselves to drag Emacs kicking and
    378 screaming into The Wayland Future™: "pure GTK" means that Emacs will
    379 only rely on GTK APIs, instead of a mix of GTK and X.
    380 
    381 Try it out by giving =--with-pgtk= to =./configure=.  One caveat is
    382 that GTK input methods… [[https://debbugs.gnu.org/56653][eat modifiers]] or something?  E.g. =S-SPC=
    383 degrades to =SPC=.  Apparently Emacs users are the only ones to care
    384 about that? 🤷
    385 
    386 Note 1: this problem can be reproduced on the X+GTK build by setting
    387 ~x-gtk-use-native-input~.
    388 
    389 Note 2: debugging notes in [[file:~/memory-leaks/itches/emacs/tracker.org::*bug:56653][this itches tracker entry]].
    390 
    391 Note 3: The Wayland Future™ seems more tolerant of X+GTK builds than I
    392 anticipated, thanks to Xwayland.
    393 *** ~pixel-scroll-precision-mode~
    394 Setting that minor mode with ~pixel-scroll-precision-interpolate-page~
    395 makes =PageUp= and =PageDown= much smoother.  Would love for =M-v= and
    396 =C-v= to use that as well…  Heck, would love for all scrolling,
    397 jumping and recentering commands to use that.
    398 *** Picking completions from the minibuffer
    399 =M-<up>= and =M-<down>= in the minibuffer cycle through completion
    400 candidates.  Would love for these to have non-arrow bindings
    401 (e.g. =C-c C-[pn]= with a repeat map?).
    402 
    403 Unsetting ~minibuffer-completion-auto-choose~ also lets the user
    404 choose when to insert candidates in the minibuffer: =C-u M-RET= to
    405 just insert, or =M-RET= to insert and immediately exit the minibuffer.
    406 *** =C-x 8 e= keymap to search & insert emoji
    407 Less hassle than =C-x 8 RET err what was the name again=, especially
    408 for composed emoji 😵‍💫
    409 
    410 Uses transient 👍 but relies on auto-generated, non-mnemonic =a-z=
    411 suffixes to pick gender/color variations 👎 rather than taking
    412 advantage of transient prefixes (e.g. =-g= for gender and =-s= for
    413 skin tone), which
    414 
    415 1. don't add an unecessary step for the common "ungendered Lego" case,
    416 2. can remember a user's preferred values with ~transient-save~.
    417 
    418 Upstream considers this idea "[[https://yhetil.org/emacs-devel/87ilxfx1ku.fsf@gnus.org/][fraught politically]]" 🤷
    419 
    420 Others agree it would be [[https://yhetil.org/emacs-devel/87r1bx9pwo.fsf@bernoul.li/][nice-to-have, though not must-have]]; maybe
    421 I'll take a stab at implementing it (making it opt-in, keeping the
    422 alphabetical suffixes by default).
    423 * 28
    424 ** Applications
    425 *** Dired
    426 **** ~dired-kill-when-opening-new-dired-buffer~
    427 With this option, =RET= and =^= no longer make Dired buffers pile up 🎉
    428 
    429 Previously, =a= (~dired-find-alternate-file~) could be used instead of
    430 =RET=, but one had to write a custom command for =^=.
    431 *** Gnus
    432 **** =#= now toggles the process mark by default
    433 No need for =M-#= anymore.
    434 ** Editing
    435 *** Transient input methods
    436 **** Background
    437 Input methods make it easier to type in certain classes of characters.
    438 Emacs includes different kinds of methods:
    439 
    440 - alternative keyboard layouts :: if you are familiar with specific
    441   layouts, e.g. Dvorak, French AZERTY, Russian, you can ask Emacs to
    442   switch to this layout;
    443 
    444 - composition :: some methods let you specify characters by typing in
    445   short sequences of other symbols:
    446   - =french-prefix= provides easy access to diacritics with e.g. ='e=
    447     for =é=, =,c= for =ç=;
    448   - =TeX= turns TeX macros such as =\alpha=, =\pi=, =\le=, =\ne=,
    449     =\wedge= into their corresponding characters, i.e. α, π, ≤, ≠, ∧.
    450 
    451 Input methods can be toggled with =C-\=; prefix that with =C-u= to
    452 select a new method.  =C-h I <METHOD>= shows what characters
    453 =<METHOD>= supports.  =C-u C-x == on a character tells you how to
    454 input that character with the current input method ("to input: …").
    455 **** What's new
    456 The new =C-x \= command enables an input method temporarily, just for
    457 the next character, and disables it afterward.
    458 
    459 As an occasional user of the =TeX= method, I find this useful because
    460 I no longer need to choose between
    461 1. enabling =TeX=, typing a sequence, disabling =TeX=, or
    462 2. enabling =TeX=, typing a sequence, keeping =TeX= enabled, getting
    463    bitten by it whenever I type in =oh_no= and that turns into =ohₙo=.
    464 
    465 =C-x \= seems to follow the same rules as =C-\=:
    466 - the first time you call it, it prompts for a method,
    467 - subsequent calls do not prompt,
    468 - add =C-u= to get a prompt back.
    469 *** ~yank-from-kill-ring~
    470 I've always been somewhat ambivalent about Emacs's ~kill-ring~:
    471 
    472 1. Everything I ever copied is saved forever!  This is a revolutionary
    473    feature on par with the undo system 🙌
    474 
    475 2. … Surely we can find a more ergonomic UI than =C-y M-y M-y M-y=
    476    /dammit/ =C-_ C-_= /ah screw it/ =C-h v kill-ring RET C-s= 🤔
    477 
    478 And lo!  =M-y= now prompts for the ~kill-ring~ item to yank, with
    479 completion.  This makes the ~kill-ring~ much more accessible IMO.
    480 ** Elisp
    481 *** New commands for ~describe-{function,variable}~:
    482 - =c= :: for variables, bring up the *Customize* UI,
    483 - =i= :: bring up the relevant *Info* page,
    484 - =s= :: jump to the *source* definition.
    485 *** ~shortdoc-display-group~
    486 Concise reference docs for specific topics.
    487 ** UI
    488 *** Input
    489 **** ~repeat-mode~
    490 =C-x o o o=!
    491 *** Minibuffer
    492 **** ~completions-group~, ~read-char-by-name-sort~
    493 Some very welcome quality-of-life tweaks to =C-x 8 RET=.
    494 **** Vertical icomplete
    495 ***** Settings
    496 - ~completions-detailed~
    497 - ~icomplete-scroll~
    498 - ~icomplete-vertical-mode~
    499 ***** Advantages over plain icomplete
    500 - annotations
    501 - completion candidates are easier to tell apart
    502 - =C-n= and =C-p= (=C-.= is awkward on AZERTY)
    503 ***** Advantages over Ivy and Vertico
    504 - regular minibuffer bindings work:
    505   - =SPC= completes
    506   - =RET= yields current input, disregarding completion candidates
    507   - =C-j= yields selected completion candidate
    508 - regular icomplete bindings work:
    509   - =C-M-i= inserts selected completion candidate
    510 *** Outline
    511 **** ~describe-bindings~ integration
    512 ~describe-bindings-outline~ makes =C-h b='s output less overwhelming.
    513 **** Visibility-cycling with =TAB= in outline.el
    514 =TAB= and =S-TAB= now work in Outline mode like they do in Org.  Look
    515 at e.g. NEWS (=C-h N=) to see them in action.  Customize
    516 ~outline-minor-mode-cycle~ to enable this in ~outline-minor-mode~.
    517 
    518 One small, /tiny/ step toward chipping good features out of Org in
    519 order to generalize them.
    520 *** Tabs
    521 For a long time I did not bother to check out the new tab bar, since I
    522 did not expect to find a way to make tabs work in my rather byzantine
    523 buffer management.
    524 
    525 Then one day I started playing with the =C-x t= prefix on a whim, and
    526 I was surprised by how much mileage I got out of forking off to a new
    527 tab in order to "tuck away" the current window layout.
    528 *** Windows
    529 **** ~same-window-prefix~, ~other-window-prefix~, ~other-frame-prefix~
    530 The rules which govern how Emacs manages windows are beyond my
    531 reckoning.  I know [[https://protesilaos.com/codelog/2020-01-07-emacs-display-buffer/][it is possible to tame them]] with patience and
    532 discipline; still, these new commands appeal to my humble caveman
    533 brain.
    534 
    535 Assuming the command run by key sequence =KEYSEQ= will display its own
    536 buffer =BUF=,
    537 
    538 - =C-x 4 1 KEYSEQ= says "please display =BUF= right here, in this
    539   window";
    540 - =C-x 4 4 KEYSEQ= says "please display =BUF= in another window";
    541 - =C-x 5 5 KEYSEQ= says "please display =BUF= in another frame".
    542 
    543 These new ~other-…-prefix~ commands can be seen as generalizations of
    544 specialized shorthands such as =C-x 4 f= or =C-x 5 b=.
    545 * 27
    546 ** UI
    547 *** Inspection
    548 **** ~what-cursor-show-names~
    549 I sometimes use =C-u C-x == to (re)discover how the Unicode consortium
    550 decided some character should be called; having plain =C-x == give me
    551 that information without popping an extra buffer is neat.