First steps after activating ECB first time

半城伤御伤魂 提交于 2019-12-08 19:53:41

问题


I have ECB installed and autostarted in emacs:

(require 'semantic/analyze)
(provide 'semantic-analyze)
(provide 'semantic-ctxt)
(provide 'semanticdb)
(provide 'semanticdb-find)
(provide 'semanticdb-mode)
(provide 'semantic-load)
(semantic-mode 1)

(setq stack-trace-on-error t)
(require 'ecb)
(require 'ecb-autoloads)
(setq ecb-auto-activate 1) 
(ecb-winman-winring-enable-support)

ECB shows its "First steps after activating ECB first time" info node each time. How do I stop it doing that?

Edit:

Of course brute force solves it:

(run-with-idle-timer 0.05 nil '(lambda () (kill-buffer "*info*")))

but I thought - may be there is a ECB variable that knows wither it activation of the ECB is for the first time or not.

Edit:

So one has to put for example:

 (setq ecb-source-path (quote (("/home/boris/its/plts" "plts"))))

This tell ECB that the project is at /home/boris/its/plts, and should be reffered to as plts.


回答1:


From looking at the source code, it seems that customising the variable ecb-source-path should prevent the info buffer being displayed. The relevant code is in the ecb-activate--impl function:

;; if we activate ECB first time then we display the node "First steps" of
;; the online-manual
(ignore-errors
    (when (null ecb-source-path)
        (let ((ecb-show-help-format 'info))
            (ecb-show-help)
            (Info-goto-node "First steps"))))

As you can see, the info buffer is displayed if ecb-source-path is nil.




回答2:


Edit ecb.el and comment the next 4 lines (around line 1590 in ecb-2.40):

    (ignore-errors
      (when (null ecb-source-path)
        (let ((ecb-show-help-format 'info))
          (ecb-show-help)
          (Info-goto-node "First steps"))))


来源:https://stackoverflow.com/questions/9998202/first-steps-after-activating-ecb-first-time

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!