From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: axa Newsgroups: gmane.emacs.help Subject: showing argument list in mini-buffer of c/c++ func Date: Sun, 25 Apr 2004 02:25:09 +0200 (CEST) Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: sea.gmane.org 1082852891 21596 80.91.224.253 (25 Apr 2004 00:28:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 25 Apr 2004 00:28:11 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Apr 25 02:27:59 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BHXV1-0008TD-00 for ; Sun, 25 Apr 2004 02:27:59 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BHXTO-0004HT-AP for geh-help-gnu-emacs@m.gmane.org; Sat, 24 Apr 2004 20:26:18 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BHXSp-0004Gs-IH for help-gnu-emacs@gnu.org; Sat, 24 Apr 2004 20:25:43 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BHXSJ-0004EU-Bd for help-gnu-emacs@gnu.org; Sat, 24 Apr 2004 20:25:42 -0400 Original-Received: from [212.111.94.2] (helo=stargate1.agtel.net) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BHXSI-0004EP-IQ for help-gnu-emacs@gnu.org; Sat, 24 Apr 2004 20:25:10 -0400 Original-Received: from [195.252.80.214] (account axa@sendmail.ru [195.252.80.214] verified) by stargate1.agtel.net (CommuniGate Pro SMTP 4.0b8) with ESMTP id 19801045 for help-gnu-emacs@gnu.org; Sun, 25 Apr 2004 04:25:07 +0400 Original-Received: from axa by darkstar.example.net with esmtp (masqmail 0.2.20) id 1BHXSI-63e-00 for ; Sun, 25 Apr 2004 02:25:10 +0200 X-X-Sender: axa@darkstar.example.net Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:17966 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:17966 Hi, Ive switched from Win32 programming environment to Linux, and Ive had no problems writing small programs in either emacs or vim (preferably emacs) until now. But now, for a slightly bigger program, there are some big unpleasantness regarding emacs and (as others told me) CEDET (particularly semantic) package. Im new in working with emacs, however I think that, things Im trying to accomplish are not "so advanced and beyond new users need", and really hope, that with you'll help me to solve these problems easily, since I really don't feel like learning one programming language (elisp) so I could do programming in c/c++, using one well featured tool like emacs. So, to start. First, Ive been trying to _somehow_ make emacs show automatically (or at least one-shortcut_away) in mini-buffer, argument list of c/c++ function, when I type name of function (in .c file) and open first brace, or when cursor is over some c/c++ function name (but primarily first thing). For example, if in one .c file I type: printf( /* then emacs would show in mini-buffer, its (printf) argument list, something like the following: */ printf(char*, ...) Yes, maybe I get used to this feature in MSVC back when I was programming in Win32 environment, but anyway this is really big convenience for me, when writing more that 200 lines of code. I think many would agree to this. The second problem I have, which is slightly less important than first problem, to me) is to somehow get list of structure members. For example, if I have something like this in one .c file: struct timeval tv; /* and I type */ tv. /* then emacs in mini-buffer shows, something like the following comlpetition list */ time_t tv_sec; suseconds_t tv_usec; First I tried to solve this with with tags, but solution is not very efficient and not automatic. Then, someone, recommended me to download and install CEDET and ECB packages. Which I did but with no expected result. I installed these packages (cedet-1.0beta2a and ecb-2.23) just like INSTALL file suggests, that is, make (compile) and add some lines in my ~/.emacs file. The packages resides in my home tree (both cedet and ecb). So my ~/.emacs file looks like the following (its short): (setq-default transient-mark-mode t) (setq-default case-fold-search t) (setq c-default-style '((c-mode . "stroustrup") (c++-mode . "stroustrup") (other . "gnu"))) setq c-indent-level 3) (setq c-tab-always-indent nil) (global-font-lock-mode t) (setq font-lock-maximum-decoration '((c-mode . 2) (c++-mode . 2))) (setq tags-table-list '("~/TAGS")) (require 'eldoc) ;; Configuration variables here: (setq semantic-load-turn-useful-things-on t) ;; Load CEDET (load-file "~/test/emacs-tools/cedet-1.0beta2a/common/cedet.el") (add-to-list 'load-path "~/test/emacs-tools/ecb-2.23") (load-file "~/test/emacs-tools/cedet-1.0beta2a/semantic/semantic-load.el") (require 'ecb) (require 'semantic-sb) #--- EOF --- Ive also created TAGS file with the following command: find /usr/include -name "*.[chCH]" -print | etags - And later in emacs loaded it with 'M-x visit-tags-table', but after all this done, when I position cursor over (for example) 'printf' function name in some .c file, emacs doesn't show anything in mini-buffer. And when I type: printf I get the following message: Update Tag Table: main And, again, when I open first brace after function name, like: printf( I get, message in mini-buffer, saying: Buffer not currently parsable. I really hope that you will help me to solve these problem(s), with not too much effort from you. Henceforth, thank you Best regards, axa