From: axa <axa@sendmail.ru>
Subject: showing argument list in mini-buffer of c/c++ func
Date: Sun, 25 Apr 2004 02:25:09 +0200 (CEST) [thread overview]
Message-ID: <Pine.LNX.4.58.0404210022500.2324@darkstar.example.net> (raw)
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
next reply other threads:[~2004-04-25 0:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-25 0:25 axa [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-04-25 20:28 showing argument list in mini-buffer of c/c++ func axa
[not found] <mailman.1567.1082924943.1061.help-gnu-emacs@gnu.org>
2004-04-25 22:57 ` Stefan Monnier
2004-04-25 23:21 ` axa
[not found] ` <mailman.1579.1082935352.1061.help-gnu-emacs@gnu.org>
2004-04-29 7:38 ` Thorsten Bonow
[not found] <mailman.1464.1082852746.1061.help-gnu-emacs@gnu.org>
2004-04-29 7:08 ` Kai Grossjohann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.58.0404210022500.2324@darkstar.example.net \
--to=axa@sendmail.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).