First steps after activating ECB first time
Asked Answered
G

2

6

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.

Gibbous answered 3/4, 2012 at 17:18 Comment(1)
works also by putting in custom.el: '(ecb-source-path (quote (("/home/boris/its/plts" "plts"))))Zerline
B
3

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.

Beanery answered 7/4, 2012 at 12:11 Comment(0)
B
0

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"))))
Balmung answered 2/3, 2014 at 0:43 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.