These 2 patches improve how tmr--description-prompt asks for a
description by leaving the candidates in the user's order.
--
Damien Cassou
"Success is the ability to go from one failure to another without
losing enthusiasm." --Winston Churchill
> From: Damien Cassou <damien@cassou.me>> Date: Tue, 17 May 2022 08:52:48 +0200>> These 2 patches improve how tmr--description-prompt asks for a> description by leaving the candidates in the user's order.
Thank you!
> - (let ((def (or default (nth 0 tmr--description-hist))))> - (completing-read> - (if def> - (format "Description for this tmr [%s]: " def)> - "Description for this tmr: ")> - tmr-descriptions-list nil nil nil> - 'tmr--description-hist def)))> + (completing-read> + (if default> + (format "Description for this tmr [%s]: " default)> + "Description for this tmr: ")> + tmr-descriptions-list nil nil nil> + 'tmr--description-hist default))
Did you mean to remove the "def" which falls back to the completion
history?
--
Protesilaos Stavrou
https://protesilaos.com
> From: Protesilaos Stavrou <info@protesilaos.com>> Date: Tue, 17 May 2022 11:23:21 +0300>>> From: Damien Cassou <damien@cassou.me>>> Date: Tue, 17 May 2022 08:52:48 +0200>>>> These 2 patches improve how tmr--description-prompt asks for a>> description by leaving the candidates in the user's order.>> Thank you!>>> - (let ((def (or default (nth 0 tmr--description-hist))))>> - (completing-read>> - (if def>> - (format "Description for this tmr [%s]: " def)>> - "Description for this tmr: ")>> - tmr-descriptions-list nil nil nil>> - 'tmr--description-hist def)))>> + (completing-read>> + (if default>> + (format "Description for this tmr [%s]: " default)>> + "Description for this tmr: ")>> + tmr-descriptions-list nil nil nil>> + 'tmr--description-hist default))>> Did you mean to remove the "def" which falls back to the completion> history?
Oh sorry, just read the Vertico thread. We are good to go!
--
Protesilaos Stavrou
https://protesilaos.com