muffinmad / emacs-pdb-capf

Completion-at-point function for pdb (Python debugger)
GNU General Public License v3.0
12 stars 2 forks source link

support realgud? #3

Closed jgarte closed 2 years ago

jgarte commented 2 years ago

Does emacs-pdb-capf work with realgud or have you tested it before?

muffinmad commented 2 years ago

Looks like realgud is using pdb-track-mode minor mode for pdb debugger process.

So after evaluating this code and running M-x realgud:pdb

(add-hook 'pdb-track-mode-hook
      (lambda ()
        (add-hook 'completion-at-point-functions
              'pdb-capf nil t)))

The result is:

Screenshot 2022-08-09 at 22 57 33
jgarte commented 2 years ago

Awesome! Should we mention this in the README or link it to realgud somehow?

muffinmad commented 2 years ago

I don't think we need to list every comint mode that can be possibly used for pdb. The README contains general example and configuring specific modes is up to user.