Alexander Adolf <alexander.adolf@condition-alpha.com> writes: > Hello David, > > thanks for your comments and questions. > > David Bremner <david@tethera.net> writes: > >> Alexander Adolf <alexander.adolf@condition-alpha.com> writes: >> >>> As I wanted email address completion via completion-at-point in >>> message-mode too, I implemented a new EUDC function to go into >>> completion-at-point-functions [3]. >>> >>> [1] https://company-mode.github.io >>> [2] https://github.com/minad/corfu >>> [3] https://github.com/emacs-mirror/emacs/blob/master/lisp/net/eudc-capf.el >>> >> >> I will have to leave to others to test this, since I'm personally still >> running emacs 27 (and that is likely to continue for a while, at least >> on some machines). > > You could do > > (require 'eudcb-notmuch-address) > (eudc-notmuch-address-set-server "localhost") > > and bind the function eudc-expand-inline to a key chord of your choice > in message-mode-map. > > Then you'd no longer have to tweak message-completion-alist. I stopped my investigations at the point it looked like I needed to edit notmuch-address.el. I guess another patch or two is needed to do notmuch integration. And of course we would need tests (in the notmuch test suite) and documentation before actually merging the functionality, but those can probably wait until we have a clearer idea what benefits the change would bring. > This assumes that eudc-expand-inline is present in Emacs 27, of course, > which I admittedly haven't checked. The function exists here in Emacs 27.1. > What you'd probably lose (or no longer need, whichever way you view it) > is any company-mode integration. Unless the UX is very close, some people will strongly prefer to stay with the existing completion, so I guess we'd need to make it opt-in. Unfortunately as Tomi already pointed out the configuration is already a bit of a confusing mess. _______________________________________________ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-leave@notmuchmail.org