summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-03-05Use window-buffer or current-bufferDaniel Mendler
2024-03-05orderless-kwd--buffer: Check category=bufferDaniel Mendler
2024-03-05orderless-kwd-key: Perform lookup in minibuffer-selected-windowDaniel Mendler
2024-03-05Add orderless-kwd.elDaniel Mendler
2024-03-05Change default syntax for annotation matching to &Omar Antolin Camarena
The @ sign is used for several other thing like user names on many services which have Emacs clients, and is also used to add words to local dictionaries in Jinx.
2024-03-04Merge pull request #167 from minad/minor-additionsOmar Antolín Camarena
Two minor additions & bugfixes
2024-03-03Rename orderless--anchored-quoted-regexp to orderless--literal-prefix-pDaniel Mendler
Clarify the relation to orderless-literal-prefix.
2024-03-03Rename orderless-prefix to orderless-literal-prefix and registerDaniel Mendler
Avoid confusion with orderless-prefixes. Registering orderless-literal-prefix with the ^ character has a modest advantage - it makes sure that the prefix optimization sets in.
2024-03-03Fix orderless--anchored-quoted-regexp: Detect \` instead of ^Daniel Mendler
This makes a difference for multi-line candidates. Multi-line candidates are uncommon, but they exist, e.g., for read-from-kill-ring.
2024-03-03Fix orderless--metadata: Always return non-nil metadata inside minibufferDaniel Mendler
Otherwise completion-extra-properties may not be taken into account if the metadata returned by the completion table is nil.
2024-03-03README: Document orderless-prefixDaniel Mendler
2024-03-03Extract orderless--metadata helper functionDaniel Mendler
The helper function can be reused for other style modifiers, for example a style matching against the group title returned by the `group-function', which is also specified by the completion metadata.
2024-03-03Add orderless-prefix matching styleDaniel Mendler
This matching style is useful as a return value of a style dispatcher like orderless-affix-dispatch. It matches literals as a prefix and triggers the prefix filter optimization, see `orderless--anchored-quoted-regexp'.
2024-02-29Merge pull request #166 from minad/fix-affix-dispatchOmar Antolín Camarena
orderless-affix-dispatch: Do not error on empty string
2024-02-29orderless-affix-dispatch: Do not error on empty stringDaniel Mendler
2024-02-25Work around bug in GitHub's org parserfix-github-orgOmar Antolin Camarena
Sadly neither =verbatim= nor ~code~ syntax seems to work in all cases, in particular, neither =,= nor ~,~ display a fixed-width comma. This fixes #155.
2024-02-23README: Add section for style modifiersDaniel Mendler
2024-02-23Add orderless--match-p helperDaniel Mendler
2024-02-21Merge pull request #162 from minad/annotation-matchingOmar Antolín Camarena
Annotation matching
2024-02-17Break long linesDaniel Mendler
2024-02-17README: Fix language after renaming of orderless-pattern-compilerDaniel Mendler
2024-02-17orderless-compile: Expand docstringDaniel Mendler
2024-02-17Simplify orderless--compile-componentDaniel Mendler
2024-02-17Update commentary, recommend (setq completion-styles '(orderless basic))Daniel Mendler
2024-02-17Rename orderless-without to orderless-notDaniel Mendler
2024-02-17Turn orderless-annotation/without into a "pattern transformer"Daniel Mendler
orderless-annotation and orderless-without take a PRED and a REGEXP argument and turn it into a new predicate. This looks like a good solution. The complexity is pushed to orderless--compile-component and orderless-without is as simple as possible.
2024-02-17Alternative 2: Compile component before passing it to orderless-annotationDaniel Mendler
2024-02-16Alternative approach: Add COMPILE arg to orderless-annotation/withoutDaniel Mendler
This way the index and total are preserved even for the recursive matchers.
2024-02-16Add comment regarding the orderless--component-compiler callsDaniel Mendler
2024-02-16orderless--dispatch: Explicitly specify the argumentsDaniel Mendler
- The dispatchers have a fixed calling convention. - Explicitly specifying the arguments is both safer and more efficient.
2024-02-16Use orderless--dispatch in orderless--compile-componentDaniel Mendler
2024-02-16orderless-without: orderless--compile-component can return nilDaniel Mendler
2024-02-16Update documentation of orderless-style-dispatchersDaniel Mendler
2024-02-16orderless-affix-dispatch: Ignore single dispatcher characterDaniel Mendler
2024-02-16Rename orderless-pattern-compiler to orderless-compileDaniel Mendler
orderless-compile returns a predicate and a list of regexps. Keep orderless-pattern-compiler as obsolete function.
2024-02-16Rename orderless-dispatch to orderless--dispatchDaniel Mendler
The function is internal.
2024-02-16Add orderless--component-compiler and use it in orderless-without/annotationDaniel Mendler
2024-02-16orderless-pattern-compiler: Simplify slightly, remove variable predDaniel Mendler
2024-02-16Remove orderless--predicate-orOmar Antolín Camarena
This simplifies the semantics: all predicates are and-ed together.
2024-02-16Extend orderless-without-literal commentDaniel Mendler
2024-02-15orderless-annotation: Also check completion-extra-propertiesDaniel Mendler
2024-02-15orderless-annotation, orderless-without-regexp: Check validityDaniel Mendler
2024-02-15Pattern compiler: Compile to regexps and a predicate functionDaniel Mendler
Compiling to predicate functions makes it possible to implement a wide range of additional matching styles. Two of them are implemented here: - orderless-annotation: Match on candidate annotations with a regexp. - orderless-without-regexp: Exclude candidates matching a regexp (Fix #88). One could imagine creating additional matchers. Many completion category specific ideas had been mentioned in #30. A regexp could match against the content of a buffer or the buffer major mode. Such a matcher would only apply to the buffer completon category.
2024-02-15Document the new rx format for matching stylesOmar Antolín Camarena
2024-02-15Merge pull request #161 from minad/optimize-predicateOmar Antolín Camarena
Optimizations and refactoring
2024-02-15Drop support for Emacs 26.1 because rx does not support (literal ...)Daniel Mendler
2024-02-15orderless-literal: Use (literal string) instead of regexp-quoteDaniel Mendler
2024-02-15Support rx sepxs as return values of matching style functionsDaniel Mendler
2024-02-15Revert "orderless-pattern-compiler: Create fewer intermediate data structures"Daniel Mendler
This reverts commit ebd2b841de857c568b547446a27ed9e58e1354eb.
2024-02-15orderless-try-completion: Use or instead of ifDaniel Mendler