nflath / c-eldoc

eldoc-mode plugin for C source code
33 stars 15 forks source link

Added c-eldoc-get-buffer-hook. #11

Closed tisannai closed 6 years ago

tisannai commented 6 years ago

I have introduced c-eldoc-get-buffer-hook hook-variable. The hooks are run at the start of c-eldoc-get-buffer function. The use case for this is for example, if you want be able to change the content of c-eldoc-includes variable for each source file. Different projects use different include locations.

If you are not able to do this, then all projects have to have the same directory structure or you at least you have to put all possible include location combinations there.

This feature would enable to update the include info so that only relevant include dirs are listed.

nflath commented 6 years ago

Thanks!