szermatt / emacs-bash-completion

Add programmable bash completion to Emacs shell-mode
GNU General Public License v2.0
279 stars 33 forks source link

suggestion for custom functions #38

Closed malijani closed 4 years ago

malijani commented 5 years ago

thank's for good work! <3 image there's no suggestion for my written functions (as you can see in the picture) but i can access to my variables in suggestions... how can i fix it? did you Developed any option for this?

szermatt commented 4 years ago

montag451 fixed this. Set:

 (setq bash-completion-use-separate-processes nil)

The root of the problem was that bash-completion.el ran in two different processes, so any functions you added in the current process wasn't seen in the completion process. It was tricky to change, but now, with bash-completion-use-separate-processes, there's only one process.