VM

Improving completion on mailboxes

Bug #773569 reported by Anthony Mallet
6
This bug affects 1 person
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.

Tags: 8.1 imap

Related branches

Revision history for this message
Anthony Mallet (anthony-mallet) wrote :
Revision history for this message
Uday Reddy (reddyuday) wrote : Re: [Bug 773569] [NEW] Improving completion on mailboxes

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

Revision history for this message
Uday Reddy (reddyuday) wrote :

The patch applied in revision 1208. But strangely, this fix breaks the compleition for <SPC>. Needs to be looked at.

Changed in vm:
status: New → In Progress
importance: Undecided → Low
assignee: nobody → Uday Reddy (reddyuday)
milestone: none → 8.2.0a
milestone: 8.2.0a → 8.2.0
Revision history for this message
Anthony Mallet (anthony-mallet) wrote :

Here is a new patch against 1208 that restore SPC completion.

All what it does is to remove a trailing " " from the current completion string, and some emacs magic does the rest. I'm actually not sure why it works ... (and I think it worked by "accident" before, the (string= " " folder) test was actually never true).

Anyway ... :)

Revision history for this message
Uday Reddy (reddyuday) wrote :

Committed the second patch in revision 1229.

Changed in vm:
status: In Progress → Fix Committed
milestone: 8.2.0 → 8.2.0a
Uday Reddy (reddyuday)
Changed in vm:
status: Fix Committed → Fix Released
status: Fix Released → Fix Committed
Revision history for this message
Uday Reddy (reddyuday) wrote :

See Bug 283761 for a related problem.

Revision history for this message
Uday Reddy (reddyuday) wrote :

Grrr. That should have been Bug 783761.

Revision history for this message
Uday Reddy (reddyuday) wrote :

Try again. It is bug 783671.

Uday Reddy (reddyuday)
tags: added: 8.1 imap
Uday Reddy (reddyuday)
Changed in vm:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.