syl20bnr / spacemacs

A community-driven Emacs distribution - The best editor is neither Emacs nor Vim, it's Emacs *and* Vim!
http://spacemacs.org
GNU General Public License v3.0
23.69k stars 4.89k forks source link

Gnus: auto-complete of email addresess does not work without manually opening org-contacts then close it #15480

Closed DrWaleedAYousef closed 2 years ago

DrWaleedAYousef commented 2 years ago

Description :octocat:

In gnus, at the "To" field writing an email address and pressing Tab to complete does not work unless I manually open org-contacts then close it

reproduction guide :beetle:

Observed behaviour: :eyes: :broken_heart: <>

Expected behaviour: :heart: :smile: <>

System Info :computer:

Backtrace :paw_prints:

<<BACKTRACE IF RELEVANT>>
lebensterben commented 2 years ago

we haven't changed anything for gnus.

arifer612 commented 2 years ago

https://github.com/syl20bnr/spacemacs/blob/b3e67aafe2451ca91e2d310d29879616e10981d0/layers/%2Bemail/gnus/packages.el#L24-L28

gnus does not load up org-contact to begin with. You'll have to make sure org-contacts gets loaded at the start of gnus. A cheap and dirty way I guess would be

(with-eval-after-load 'gnus
  (require 'org-contacts))
DrWaleedAYousef commented 2 years ago

@lebensterben it is not only this issue, many other binding keys do not work normally in the message buffer, e.g., the navigation key b, w, etc.

lebensterben commented 2 years ago

@DrWaleedAYousef please open another issue with details. or modify this issue accordingly (needs more details)

DrWaleedAYousef commented 2 years ago

@lebensterben This issue was solvd. Now, I can auto-complete the email address anytime. Can I know what the bug was? I will close the issue as well. Thanks.