abo-abo / function-args

C++ completion for GNU Emacs
120 stars 10 forks source link

conflict with global-srecode-minor-mode #18

Closed zijianyue closed 9 years ago

zijianyue commented 9 years ago

In a C++ project of about 100K lines , turn on global-srecode-minor-mode (cedet official),or (require 'srecode/mode ) and turn on global-srecode-minor-mode, then in a cpp file after I executed helm-gtags-find-pattern ,some error displayed as below: image use below conf can reproduce this issue more easily (setq (helm-gtags-display-style (quote detail)))

abo-abo commented 9 years ago

How is this related to function-args?

zijianyue commented 9 years ago

I try to delete below codes in function-args.el ,then it works well . (if function-args-mode (semantic-mode 1))

abo-abo commented 9 years ago

The code above just enables semantic-mode, which is an essential part of both function-args and CEDET.

Your issue seems to be that helm-gtags breaks when either semantic-mode or global-srecode-minor-mode is on.

So this is not related to function-args and is a bug either in CEDET or in helm-gtags. More likely helm-gtags, since CEDET is part of Emacs and helm-gtags should adapt to it.

tuhdo commented 9 years ago

Weird. I enable semantic-mode, function-args, global-srecode-minormode and helm-gtags together without any problem. helm-gtags-find-pattern works without any problem.

When I tried to your setting, it returned this error:

Debugger entered--Lisp error: (wrong-type-argument symbolp (helm-gtags-display-style (quote detail)))
  (setq (helm-gtags-display-style (quote detail)))
  eval((setq (helm-gtags-display-style (quote detail))) nil)
  eval-expression((setq (helm-gtags-display-style (quote detail))) nil)
  call-interactively(eval-expression nil nil)
  command-execute(eval-expression)

Are you using latest helm and helm-gtags?

zijianyue commented 9 years ago

@tuhdo the setting should be (setq helm-gtags-display-style (quote detail)),please try again

tuhdo commented 9 years ago

Just tried it. I did not have any problem. Maybe you could try with the CEDET from bzr to see if the error persists?

bzr checkout bzr://cedet.bzr.sourceforge.net/bzrroot/cedet/code/trunk cedet

However, helm-gtags-find-pattern really takes a long time to see the result list if . If I want to to search for some tag, I use helm-gtags-select that instatly lists all tags in a project (even in large projects where tag database is larger than 100MB) and select with Helm. If you want to search for references, use helm-gtags-find-rtags; you can use regex patterns with it as well.

zijianyue commented 9 years ago

thanks ,I'll ignore this issue.