GNU bug report logs -
#53800
29.0.50; pcomplete does not search completion function in parent major mode
Previous Next
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
hi,
Is there any reason that `pcomplete-find-completion-function' does not
search a completion function in parent major mode?
My use case is:
- In org-mode, I define some `org-link-abbrev-alist' enties.
I can complete LINK in org-mode buffers, because org-mode defines
`pcomplete/org-mode/link' in org-pcomplete.el.
- But, in org-journal-mode buffers, that derived from org-mode, LINK
completion fails. Nobody defines `pcomplete/org-journal-mode/link'.
org-journal-mode will be able to define those pcomplete functions by
itself as defalias to org-mode's counterpart. but if p-f-c-f searchs
parent, grand parent, ... major mode during find completion function,
p-f-c-f can find a completion function in parent major mode, and it
will work in derived mode buffers.
--
tkh
This bug report was last modified 3 years and 131 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.