From: Jambunathan K <kjambunathan@gmail.com>
To: 14436@debbugs.gnu.org
Subject: bug#14436: 24.3.50; cscope + compilation-mode
Date: Sat, 25 May 2013 22:18:05 +0530 [thread overview]
Message-ID: <87sj1batve.fsf@gmail.com> (raw)
In-Reply-To: <87ppwj7cnc.fsf@gmail.com> (Jambunathan K.'s message of "Wed, 22 May 2013 11:57:03 +0530")
Jambunathan K <kjambunathan@gmail.com> writes:
> Being a C programmer, I always missed not having support for cscope "out
> of the box" in my vanilla Emacs. It is unfortunate that xcscope.el is
> not part of Emacs proper.
Above statement is no longer true, now that cedet-cscope.el is part of
Emacs. Here is a small recipe to search for C symbols outside of cedet
framework.
(require 'cedet-cscope)
(defun cscope-find-c-symbol (&optional tag)
(interactive
(list (let ((tag (find-tag-default)))
(read-string (format "Search for (default \"%s\"): " (or tag ""))
nil nil tag))))
;; If "*CEDET CScope*" is put in `compilation-mode', `erase-buffer'
;; (called from within `cedet-cscope-search') may complain. Just
;; kill the results buffer before initiating a new search.
(let ((cscope-buffer "*CEDET CScope*"))
(when (get-buffer cscope-buffer)
(kill-buffer cscope-buffer)))
(with-current-buffer (cedet-cscope-search tag 'tagregexp 'line 'project)
;; FIXME: Add cscope pattern to `compilation-error-regexp-alist'
;; or `compilation-error-regexp-alist-alist'.
;; (compilation-mode)
(display-buffer (current-buffer))))
next prev parent reply other threads:[~2013-05-25 16:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-22 6:27 bug#14436: 24.3.50; cscope + compilation-mode Jambunathan K
2013-05-22 20:12 ` Glenn Morris
2013-05-25 16:48 ` Jambunathan K [this message]
2013-11-15 4:48 ` Jambunathan K
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=87sj1batve.fsf@gmail.com \
--to=kjambunathan@gmail.com \
--cc=14436@debbugs.gnu.org \
/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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).