refers to TAB completions (or other keystroke shortcuts) to selecting the target element from a list of many. Often useful for menus, navigations, searching, jumping, folding, and other forms of "narrowing" the list of available choices.
Questions tagged [completion]
306 questions
9
votes
2 answers
Change *Completions* list to sort vertically?
When you trigger minibuffer completion for a partial command/filename/etc., the *Completions* buffer lists possible completions aligned vertically (in columns) but sorted horizontally.
../ ./ ajax-proj/ …

ivan
- 1,948
- 10
- 20
8
votes
2 answers
How to force completions buffer to appear in a side window?
I normally have my main Emacs frame split vertically into two side-by-side windows (as one gets with split-window-right, better known as C-x 3).
For as long as I can remember, whenever the need arose for a temporary *Completions* buffer, the…

kjo
- 3,247
- 17
- 48
5
votes
4 answers
Show the *Completions* buffer automatically when starting completing-read
I want to do a completing read with the *Completions* buffer already shown (because I'm providing initial input that I already know is an ambiguous prefix). How can I do it?
I don't see an option for this in completing-read. I want a method that…

Gilles 'SO- stop being evil'
- 22,318
- 4
- 56
- 92
4
votes
1 answer
How to return the selected cons cell using completing-read?
I have a set of directories. For each directory I have a set of relative file names. I would like to select any of these relative filenames using completion, and then later reconstruct the absolute path of the filename. (The relative filenames can…

Håkon Hægland
- 3,648
- 1
- 22
- 51
3
votes
1 answer
Hide Completions Matching Against Regexp
12.6 Tips for Defining Variables Robustly:
‘prefix--…’
: The variable is intended for internal use and is defined in the file prefix.el.
‘…-internal’
: The variable is intended for internal use and is defined in C code.
These variables that appear…

shynur
- 5,253
- 1
- 4
- 25
3
votes
1 answer
Programmed completion in minibuffer
I can read a string in the minibuffer, with completion, using completing-read:
(completing-read "Chose one: " '("Han Solo" "Chewbacca" "Lando Calrissian"))
I would like to use my own completion function, which searches some of my files, instead of…

kotchwane
- 513
- 2
- 12
3
votes
1 answer
ido-like restrict to matches while completing
When using ido, the command ido-restrict-to-matches (bound to C-SPC) is one of my favourite. What it does: instead of completing input against the initial collection of things, it will:
restrict that collection to the list of those things that…

YoungFrog
- 3,526
- 18
- 28
2
votes
2 answers
flex and initials with completion-styles
I am using completion-styles and cannot decipher the difference between flex and initials.

Dilna
- 1
- 3
- 11
2
votes
0 answers
How to merge the completions of two completion-at-point-functions?
In company-mode, you can merge completions by listing them together in a list. I would like to do a similar thing, where if I have two completion-at-list-functions setup, instead of trying one after the other, I'd like their candidates to get merged…

Didier A.
- 268
- 2
- 8
2
votes
2 answers
completion of a sentence rather than word
I use emacs-org for my "non-programming" work. I need a completion framework. Present completion framework like completion.el, dabbreav, pabbrev and company provide single word completion.
I need something to complete a sentence like
--…

Vaibhav
- 583
- 3
- 16
2
votes
2 answers
Autocomplete files/paths while typing in any mode or fundamental mode, like bash does at prompt
After opening up an empty file named
~/work/aback
using emacsclient -nw ... .
I type in
~/huTAB
in the body of the file.
how can I get autocompletion candidates shown? In this case,
any files/folders starting with the name hu

american-ninja-warrior
- 3,903
- 2
- 24
- 44
2
votes
3 answers
Can I do vim-like completions in emacs?
For example, I can open a bare vim (without plugin) and input some_long_object and then hit Enter to open a new line, and input a s, hit C-x C-p, it will complete some_long_object for me. If I input some_long_object.some_method_really_long on a new…

cmal
- 775
- 3
- 14
1
vote
1 answer
How do I skip minibuffer completion in `completing-read`?
In a function X that calls completing-read, I'd like to be able to call X and pass in a constant input without invoking the minibuffer. From the emacs manual, it seems I'm supposed to flet completing-read-function, but I'm not sure the correct way…

extremeaxe5
- 659
- 3
- 11
1
vote
1 answer
Completion for Emacs?
It's become a standard feature of most (all?) software the past decade or two to have predictive text completion. By predictive completion I mean, when you type into the url field of a web browser it offers completion suggestions, or pretty much any…

Addlai
- 113
- 5
1
vote
0 answers
How to show `*Completions*` buffer if input is successfully completed?
I imagine this is a simple question, but I have been unable to find an answer.
C-x C-f, as you know, brings up a find file minibuffer. Entering a few characters afterward and pressing TAB will autocomplete if there is only one valid option, or bring…

ygtozc
- 53
- 6