summaryrefslogtreecommitdiff
path: root/orderless-kwd.el
diff options
context:
space:
mode:
authorDaniel Mendler <mail@daniel-mendler.de>2025-11-21 17:54:52 +0100
committerDaniel Mendler <mail@daniel-mendler.de>2025-11-21 18:13:24 +0100
commitecf6a94df717791f85be6449f953ddef29244a15 (patch)
treec3ad1bfb8009cbd0334947a0ac55e3d077db97a5 /orderless-kwd.el
parent9cf1c90e2501566ceba59f3220b4630995004efd (diff)
orderless-compile, orderless-escapable-split-on-space: Preserve empty components
Fix #55 Only drop the last empty component. The new behavior has the following effects: 1. The first empty component is preserved and can be treated specifically as requested in #55. The assumption is that a separator at the beginning is intentional. (cdr (orderless-compile " ")) => ("") (cdr (orderless-compile " foo")) => ("" "foo") 2. Completely blank input will compile to an empty regexp list. This is important for completion command startup performance: (cdr (orderless-compile "")) => nil 3. When separating components, the last separator will not lead to an intermediate artificial empty component, as long as the user has not finished typing. For example the user types the words "foo bar": (cdr (orderless-compile "foo")) => ("foo") (cdr (orderless-compile "foo ")) => ("foo") (cdr (orderless-compile "foo bar")) => ("foo" "bar")
Diffstat (limited to 'orderless-kwd.el')
0 files changed, 0 insertions, 0 deletions