stan-dev / stan-mode

Emacs mode for Stan.
GNU General Public License v3.0
71 stars 15 forks source link

Future of `ac-stan` ? #63

Open EmmanuelCharpentier opened 3 years ago

EmmanuelCharpentier commented 3 years ago

Do you plan to maintain an auto-complete feature for stan-mode in the future ?

If not, what alternatives do you recommend (and why...) ?

kaz-yos commented 3 years ago

‘company-stan’ is the current completion tool.

ac-stan as far as I know has never been on MELPA. I am not an active auto-complete user so I cannot really maintain it in a meaningful way.

I did try to bring it to MELPA, but I didn't manage to fix some issues. If you can address these issues in a PR to this repo. We could try to bring it MELPA again. https://github.com/melpa/melpa/pull/6448

But please be aware auto-complete itself is unmaintained: https://github.com/auto-complete/auto-complete#looking-for-new-maintainer

EmmanuelCharpentier commented 3 years ago

Thanks for a prompt answer !

‘company-stan’

Why ?

My "muscle memory" is well-tuned to auto-complete (which I use for other modes, such as sage-shell-mode).

Do you plan to maintain (even minimally) ac-stan, or deprecate it ?

EmmanuelCharpentier commented 3 years ago

FWIW, the current version of ac-stan (cloned about 1 hour ago) needs a small patch :

charpent@zen-book-flip:~/Dev/stan-mode$ git diff
diff --git a/ac-stan/ac-stan.el b/ac-stan/ac-stan.el
index bcccf32..f4b7c2c 100644
--- a/ac-stan/ac-stan.el
+++ b/ac-stan/ac-stan.el
@@ -58,6 +58,8 @@
                     ac-source-yasnippet
                     ac-source-dictionary)))

+(defalias 'stan-ac-mode-setup 'ac-stan-ac-mode-setup "A handy alias...")
+
 (add-to-list 'ac-modes 'stan-mode)

 (provide 'ac-stan)

I'll look into company mode and see if I can adapt.

Thanks again for your answer !

kaz-yos commented 3 years ago

I forgot to mention above, my company-mode configurations are here. I think I set some of the key bindings to emulate auto-complete.

https://github.com/kaz-yos/emacs/blob/master/init.d/500_auto-completion-related.el#L131