Improving completion on mailboxes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
VM |
Fix Released
|
Low
|
Uday Reddy |
Bug Description
The completing-read on the list of available mailboxes in the minibuffer is weird:
- on any invalid input, it will reset to the empty string what was already typed. It should keep the current input with the usual "no completions" message (allowing to easily correct the input if e.g. only the last char was wrong).
- with a valid but not unique input, when hitting <tab>, it will still display the whole mailbox list instead of just the valid matches, preventing to easily spot the available mailboxes with the current prefix typed so far.
In case you also agree with the above remarks, I attach a patch against vm-imap.el rev 1205 (current rev) that implements this. Note that the patch was tested against emacs-23.2, and uses 'string-prefix-p which may not be available on earlier emacs. 'string-prefix-p is easily implemented with 'compare-strings, though.
Related branches
Changed in vm: | |
status: | Fix Committed → Fix Released |
status: | Fix Released → Fix Committed |
tags: | added: 8.1 imap |
Changed in vm: | |
status: | Fix Committed → Fix Released |
Thanks for this Anthony. My recollection is that I left the autocompletion
stuff half-finished because there were some irritation or other with the
Elisp primitives. I will take a look again.
Cheers,
Uday