Alex Ott | 3 Feb 18:54
Picon
Gravatar

newtrunk?

Hello all

I today switched to newtrunk and noticed that
semantic-ia-complete-symbol-menu function doesn't exist anymore. What
could be used instead of it?

P.S. I also committed 2 small fixes: in semantic/bovine/clang.el -
incorrect feature was provided & in contrib/eassist.el we need to
require 'cl when compile, otherwise it will fail on load, because `do'
isn't available

--

-- 
With best wishes,                    Alex Ott
http://alexott.net/
Tiwtter: alexott_en (English), alexott (Russian)
Skype: alex.ott

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
Dr Mark H Phillips | 3 Feb 00:47
Picon
Gravatar

latest emacs - no semantic tag folding mode?

Hi,

I'm somewhat new to CEDET and ECB, but I've managed to get them both 
working more or less by installing a very recent emacs (which includes 
CEDET I believe) and a recent ECB.

I want to get semantic tag folding to work, but when I followed 
instructions and put

   (global-semantic-tag-folding-mode 1)

in my .emacs, it failed, with emacs reporting:

   Symbol's function definition is void: global-semantic-tag-folding-mode

I'm using a very recent emacs (version 24.0.92.1) under Ubuntu (using 
the Damien Cassou PPA emacs-snapshot).  I'm also using a recent ECB 
(version 2.40.1) which I manually installed.

Has the method of activating semantic tag folding changed as part of 
integrating CEDET into the emacs distribution?

(Further info... A right mouse click brings up a "Highlight-Func Mode" 
context window which has a "Fold Tag" option, but this doesn't seem to 
do anything.)

Regards,

Mark.

(Continue reading)

Dr Mark H Phillips | 1 Feb 02:19
Picon
Gravatar

latest emacs - no semantic tag folding mode?

Hi,

I'm somewhat new to CEDET and ECB, but I've managed to get them both 
working more or less by installing a very recent emacs (which includes 
CEDET I believe) and a recent ECB.

I want to get semantic tag folding to work, but when I followed 
instructions and put

   (global-semantic-tag-folding-mode 1)

in my .emacs, it failed, with emacs reporting:

   Symbol's function definition is void: global-semantic-tag-folding-mode

I'm using a very recent emacs (version 24.0.92.1) under Ubuntu (using 
the Damien Cassou PPA emacs-snapshot).  I'm also using a recent ECB 
(version 2.40.1) which I manually installed.

Has the method of activating semantic tag folding changed as part of 
integrating CEDET into the emacs distribution?

(Further info... A right mouse click brings up a "Highlight-Func Mode" 
context window which has a "Fold Tag" option, but this doesn't seem to 
do anything.)

Regards,

Mark.

(Continue reading)

Thomas Bach | 31 Jan 18:56
Picon
Picon
Favicon
Gravatar

Help on tests needed

Hi there,

I tried to write my first test today for the python import statements
and couldn't get them to work. Here is what I did:

1) I created a new file semantic/tests/testpyimports.py:
   #+BEGIN_SRC python
############################################################
# -*- coding: utf-8 -*-
#
# Testing imports for Python

import codecs
import codeop

code# -1-
# #1# ( "codecs" "codeop" )
############################################################
   #+END_SRC

2) I added the string "tests/testpyimports.py" to
   `semantic-ia-utest-file-list' in semantic-ia-utest.el.
3) Restart Emacs (evaluating the new list didn't seem to add work).
4) run ~M-x semantic-ia-utest~.

The result is (among other, passed tests):

  ** Starting tests in testpyimports.py
    Failed 1.  Desired: ("codecs" "codeop") Actual nil
    Unit tests (completions) failed tests (1)
(Continue reading)

ZigZag Maguardo | 30 Jan 04:21
Picon

CEDET error.

I use Emacs 23.3 with no changes in internal structure.

I downloaded cedet from by this bzr checkout bzr://cedet.bzr.sourceforge.net/bzrroot/cedet/code/trunk cedet.
I use this: emacs -Q -l cedet-build.el -f cedet-build to build cedet.
Build was completed successfully.
In my .emacs I wrote this:
(load-file "~/.emacs.d/packages/cedet-1.0.1/common/cedet.el")
(global-ede-mode 1)                      ; Enable the Project management system
(semantic-load-enable-code-helpers)      ; Enable prototype help and smart completion 
(global-srecode-minor-mode 1) 
But I have an error: Symbol's function definition is void: semantic-load-enable-code-helpers.
Sincerely yours, Kron.
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Cedet-devel mailing list
Cedet-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cedet-devel
Favicon
Gravatar

[BUG] loading Semantic changing python mode preference


Hello list.,

I use python-mode.el for editing Python files not the one(python.el)
that comes with the GNU Emacs.

But if I load CEDET, my preference is being overwritten. I think the
following line in  "lisp/cedet/semantic/wisent/python.el" file causing this
problems.

,----
| ;; Try to load python support, but fail silently since it is only used
| ;; for optional functionality
| (require 'python nil t)
`----

possible fix?

diff --git a/lisp/cedet/semantic/wisent/python.el b/lisp/cedet/semantic/wisent/python.el
index 50ed45d..fe08b6c 100644
--- a/lisp/cedet/semantic/wisent/python.el
+++ b/lisp/cedet/semantic/wisent/python.el
@@ -32,7 +32,7 @@

 ;; Try to load python support, but fail silently since it is only used
 ;; for optional functionality
-(require 'python nil t)
+(load (symbol-file 'python-mode 'defun))

 (require 'semantic/wisent)
 (require 'semantic/wisent/python-wy)

--

-- 
YYR

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
Alex Ott | 30 Jan 10:34
Picon
Gravatar

problem with ede-project-autoload

Hi all

after last updates I have following problem: I have several projects
defined with ede-cpp-root-project - It started to produce errors when
I'm trying to load any file (also outside of directories, belonging to
EDE projects). Here is stack trace:

Debugger entered--Lisp error: (unbound-slot "#<class
ede-project-autoload>" "#<ede-project-autoload cpp-root>"
proj-root-dirmatch oref)
  signal(unbound-slot ("#<class ede-project-autoload>"
"#<ede-project-autoload cpp-root>" proj-root-dirmatch oref))
  eieio-default-superclass([object ede-project-autoload "cpp-root"
"CPP ROOT" ede-cpp-root ede-cpp-root-project-file-for-dir unbound
ede-cpp-root-project-root nil ede-cpp-root-load ede-cpp-root nil nil
t] ede-project-autoload proj-root-dirmatch oref)
  apply(eieio-default-superclass ([object ede-project-autoload
"cpp-root" "CPP ROOT" ede-cpp-root ede-cpp-root-project-file-for-dir
unbound ede-cpp-root-project-root nil ede-cpp-root-load ede-cpp-root
nil nil t] ede-project-autoload proj-root-dirmatch oref))
  eieio-generic-call-primary-only(slot-unbound ([object
ede-project-autoload "cpp-root" "CPP ROOT" ede-cpp-root
ede-cpp-root-project-file-for-dir unbound ede-cpp-root-project-root
nil ede-cpp-root-load ede-cpp-root nil nil t] ede-project-autoload
proj-root-dirmatch oref))
  slot-unbound([object ede-project-autoload "cpp-root" "CPP ROOT"
ede-cpp-root ede-cpp-root-project-file-for-dir unbound
ede-cpp-root-project-root nil ede-cpp-root-load ede-cpp-root nil nil
t] ede-project-autoload proj-root-dirmatch oref)
  eieio-barf-if-slot-unbound(unbound [object ede-project-autoload
"cpp-root" "CPP ROOT" ede-cpp-root ede-cpp-root-project-file-for-dir
unbound ede-cpp-root-project-root nil ede-cpp-root-load ede-cpp-root
nil nil t] proj-root-dirmatch oref)
  eieio-oref([object ede-project-autoload "cpp-root" "CPP ROOT"
ede-cpp-root ede-cpp-root-project-file-for-dir unbound
ede-cpp-root-project-root nil ede-cpp-root-load ede-cpp-root nil nil
t] proj-root-dirmatch)
  ede-project-autoload([object ede-project-autoload "cpp-root" "CPP
ROOT" ede-cpp-root ede-cpp-root-project-file-for-dir unbound
ede-cpp-root-project-root nil ede-cpp-root-load ede-cpp-root nil nil
t] "/home/ott/work/libs/OpenCV-2.3.1/modules/core/include/opencv2/core/")
  apply(ede-project-autoload ([object ede-project-autoload "cpp-root"
"CPP ROOT" ede-cpp-root ede-cpp-root-project-file-for-dir unbound
ede-cpp-root-project-root nil ede-cpp-root-load ede-cpp-root nil nil
t] "/home/ott/work/libs/OpenCV-2.3.1/modules/core/include/opencv2/core/"))
  eieio-generic-call-primary-only(ede-project-root-directory ([object
ede-project-autoload "cpp-root" "CPP ROOT" ede-cpp-root
ede-cpp-root-project-file-for-dir unbound ede-cpp-root-project-root
nil ede-cpp-root-load ede-cpp-root nil nil t]
"/home/ott/work/libs/OpenCV-2.3.1/modules/core/include/opencv2/core/"))
  ede-project-root-directory([object ede-project-autoload "cpp-root"
"CPP ROOT" ede-cpp-root ede-cpp-root-project-file-for-dir unbound
ede-cpp-root-project-root nil ede-cpp-root-load ede-cpp-root nil nil
t] "/home/ott/work/libs/OpenCV-2.3.1/modules/core/include/opencv2/core/")
  #[(this dir) "\306!\307\n	\"\310\n\311\"\211;\203

--

-- 
With best wishes,                    Alex Ott
http://alexott.net/
Tiwtter: alexott_en (English), alexott (Russian)
Skype: alex.ott

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
Brian | 30 Jan 07:02
Picon
Gravatar

CEDET w/OpenCV 2.3 C++ api

Hi!  I was referred here for help getting OpenCV C++ api working with
CEDET.  It seems like semantic is unable to parse the classes... like:

 Mat, Keypoint, DMatch, etc...

But function symbols for the most part are available - though some of
them do not have complete information (full declarations/parameters).

I'm running the latest dev version of CEDET with emacs24.0.92.  Here is
an example C++ file and my emacs cedet configuration.

I would appreciate any help in getting this working!  I am also confused
as to whether or not I *need to*/*should* use EDE to get this working.

Thanks,
Brian

**************


#include <stdio.h>
#include <vector>
#include <string>
#include <opencv2/opencv.hpp>
#include <opencv2/core/core.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/features2d/features2d.hpp>
#include <opencv2/highgui/highgui.hpp>

using namespace cv;
using namespace std;

int main(int argc, char **argv)
{
  Keypoint k;
  Mat m;  

  // m should have members like m.clone()
  // k has members like k.pt (Point2f pt)
  // CEDET says it cannot find types...
  // completion window pops up showing -every- symbol it knows

  return 0;
}

**************
;; Loads for CEDET 
(load-file "/home/terranpro/code/cedet/common/cedet.el")

(add-to-list 'Info-default-directory-list
             (expand-file-name "~/code/cedet/common"))
(add-to-list 'Info-directory-list
             (expand-file-name "~/code/cedet/common"))

(add-to-list 'Info-directory-list
             (expand-file-name "~/code/cedet/semantic/doc"))
(add-to-list 'Info-directory-list
             (expand-file-name "~/code/cedet/eieio"))
(add-to-list 'Info-directory-list
             (expand-file-name "~/code/cedet/speedbar"))
(add-to-list 'Info-directory-list
             (expand-file-name "~/code/cedet/cogre"))
(add-to-list 'Info-directory-list
             (expand-file-name "~/code/cedet/ede"))
(add-to-list 'Info-directory-list
             (expand-file-name "~/code/cedet/srecode"))

(require 'ede)

(global-ede-mode t)

;;(semantic-load-enable-minimum-features)
(semantic-load-enable-code-helpers)
;;(semantic-load-enable-gaudy-code-helpers)
(semantic-load-enable-excessive-code-helpers)
;;(semantic-load-enable-semantic-debugging-helpers)

(require 'semantic-ia)

(require 'semantic-gcc)

(require 'semantic-sb)
(require 'semanticdb)
(global-semanticdb-minor-mode 1)

(require 'semanticdb-global)
(semanticdb-enable-gnu-global-databases 'c-mode)
(semanticdb-enable-gnu-global-databases 'c++-mode)

(require 'semantic-c)

(setq semantic-load-turn-useful-things-on t)

(semantic-add-system-include "/usr/include/glib-2.0" 'c-mode)
(semantic-add-system-include "/usr/include/glib-2.0" 'c++-mode)
(semantic-add-system-include "/usr/include/gtk-3.0" 'c-mode)
(semantic-add-system-include "/usr/include/gtk-3.0" 'c++-mode)

(semantic-add-system-include "/usr/local/include/" 'c-mode)
(semantic-add-system-include "/usr/local/include/" 'c++-mode)

(semantic-add-system-include "/usr/local/include/opencv" 'c-mode)
(semantic-add-system-include "/usr/local/include/opencv2" 'c++-mode)
(semantic-add-system-include "/usr/local/include/opencv" 'c-mode)
(semantic-add-system-include "/usr/local/include/opencv2" 'c++-mode)

(add-to-list 'semantic-lex-c-preprocessor-symbol-file 
	     '"/usr/local/include/opencv2/core/types_c.h")
(add-to-list 'semantic-lex-c-preprocessor-symbol-file 
	     '"/usr/local/include/opencv2/imgproc/types_c.h")

(add-to-list 'semantic-lex-c-preprocessor-symbol-map '("CV_PROP_RW" . ""))
(add-to-list 'semantic-lex-c-preprocessor-symbol-map '("CV_EXPORTS" . ""))
(add-to-list 'semantic-lex-c-preprocessor-symbol-map '("CV_EXPORTS_W_SIMPLE" . ""))
(add-to-list 'semantic-lex-c-preprocessor-symbol-map '("CV_EXPORTS_W" . ""))
(add-to-list 'semantic-lex-c-preprocessor-symbol-map '("CV_EXPORTS_W_MAP" . ""))
(add-to-list 'semantic-lex-c-preprocessor-symbol-map '("CV_INLINE" . ""))

(defun my-cedet-hook ()
  (local-set-key [(control return)] 'semantic-ia-complete-symbol)
  (local-set-key "\C-c?" 'semantic-ia-complete-symbol-menu)
  (local-set-key "\C-c>" 'semantic-complete-analyze-inline)
  (local-set-key "\C-c=" 'semantic-decoration-include-visit)
  (local-set-key "\C-cj" 'semantic-ia-fast-jump)
  (local-set-key "\C-cq" 'semantic-ia-show-doc)
  (local-set-key "\C-cs" 'semantic-ia-show-summary)
  (local-set-key "\C-cp" 'semantic-analyze-proto-impl-toggle)
  (local-set-key "\C-c+" 'semantic-tag-folding-show-block)
  (local-set-key "\C-c-" 'semantic-tag-folding-fold-block)
  (local-set-key "\C-c\C-c+" 'semantic-tag-folding-show-all)
  (local-set-key "\C-c\C-c-" 'semantic-tag-folding-fold-all))
(add-hook 'c-mode-common-hook 'my-cedet-hook)
(add-hook 'emacs-lisp-mode-hook 'my-cedet-hook)
(add-hook 'lisp-interaction-mode-hook 'my-cedet-hook)

(global-semantic-tag-folding-mode 1)

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
Andrzej Pronobis | 29 Jan 10:59
Picon
Picon
Favicon
Gravatar

semantic-complete-self-insert not working

Hi,

I have recently switched to newtrunk which solved most of my previous
problems with CEDET. I experience one problem though.
semantic-complete-self-insert when bound to "." works properly for a
super simple case when the class is defined in the same file. However,
in more complex code, when "." is pressed emacs thinks for a while and
then no suggestions are shown. How can I debug this case?

Cheers,
Andrzej

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
Thomas Bach | 29 Jan 10:34
Picon
Picon
Favicon
Gravatar

[PATCH] Python 3 support

Hello there,

I'm German student of Philosophy and Computer Science (yes I know,
strange combination…) mainly developing in Python. I found myself
yesterday spending another three hours trying to get all kinds of
Python-tools-for-Emacs integrated, when I decided that this is just a
waste of time and CEDET should be the way to go.

So here I am! ;)

As a first thing I tweaked a bit on Python 3 integration:

$ bzr diff
=== modified file 'semantic/wisent/wisent-python.el'
--- semantic/wisent/wisent-python.el	2011-08-10 17:13:41 +0000
+++ semantic/wisent/wisent-python.el	2012-01-28 21:18:52 +0000
@@ -67,8 +67,15 @@
 	(accept-process-output (python-proc) 2)
 	(if python-preoutput-result
 	    (split-string python-preoutput-result "[\0\n]" t)
-	  (message "Timeout while querying Python for system include path.")
-	  nil))
+	  (progn
+	    ;; Try a second, Python3k compatible shot
+	    (python-send-string
+	     "import sys; print('_emacs_out ' + '\\0'.join(sys.path))")
+	    (accept-process-output (python-proc) 2)
+	    (if python-preoutput-result
+		(split-string python-preoutput-result "[\0\n]" t)
+	      (message "Timeout while querying Python for system include path.")
+	      nil))))
     (message "Python seems to be unavailable on this system.")))

 (defcustom-mode-local-semantic-dependency-system-include-path

This solution is not very elegant: I don't have much Emacs Lisp
programming experience and couldn't come up with a Python one-liner that
is compatible with both Python 2 and Python 3. But it seems to work…

As far as I understood it the next steps would be to have a better EDE
integration and the algorithm semantic uses to find imports doesn't seem
to be complete. Anyhow: I don't have no idea how to proceed in an
effective manner. That is, not to tweak the `.el' file, restart Emacs
and look if things worked out. Do you use some testing framework?

Regards,
        vince

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Cedet-devel mailing list
Cedet-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cedet-devel
Eric Ludlam | 28 Jan 02:32
Picon

Re: CEDET & QT issues

  On 01/26/2012 12:34 PM, Camden Narzt wrote:
> Ok I got a trace, and it's huge so I attached it. ( I had to redact any

Debugger entered--Lisp error: (wrong-type-argument stringp (((0) "qint8")))
   string=("functionName" (((0) "qint8")))
   (and (string= name (semantic-tag-name ...)) (setq result (cons ... result)))
   (while tags (and (string= name ...) (setq result ...)) (setq tags (cdr tags)))
   (let ((tags ...) (result nil)) (while tags (and ... ...) (setq tags ...)) (nreverse result))
   (semantic--find-tags-by-macro (string= name (semantic-tag-name ...)) (or tags
(semanticdb-get-tags table)))
   (let ((case-fold-search semantic-case-fold)) (semantic--find-tags-by-macro (string= name ...) (or
tags ...)))
   (semantic-find-tags-by-name name (or tags (semanticdb-get-tags table)))
   semanticdb-abstract-table([object semanticdb-table "qglobal.h" [object
semanticdb-project-database-file "Qt/"
"/home/cnarzt/workspaces/project/sw/3rdparty/qt-4.7.2/linux/include/Qt/" semanticdb-table
nil (#0 [object semanticdb-table "qconfig-large.h" #1 c++-mode ... unbound nil "qconfig-large.h" nil
nil nil 4290 4289 ... nil ...] [object semanticdb-table "qconfig.h" #1 c++-mode ... unbound nil
"qconfig.h" nil nil nil 4520 4519 ... nil ...] [object semanticdb-table "qmath.h" #1 c++-mode ...
[object semanticdb-find-search-index "#<semanticdb-table qmath.h>  index" #3 nil [object
semanticdb-typecache
"/home/cnarzt/workspaces/project/sw/3rdparty/qt-4.7.2/linux/include/Qt/qmath.h" nil nil nil
nil]] nil "qmath.h" nil nil nil 7154 7153 ... ... ...] [object semanticdb-table "QtTest" #1 c++-mode
  ... [object semanticdb-find-search-index "#<semanticdb-table QtTest>  index" #3 nil [object
semanticdb-typecache
"/home/cnarzt/workspaces/project/sw/3rdparty/qt-4.7.2/linux/include/Qt/QtTest" nil nil nil
nil]] nil "QtTest" nil nil ... 584 583 ... nil ...] [object

Howdy,

I looked up my copy of Qt/qglobal.h and looked for qint8 (defined 
therein) and everything looks correct to me, in terms of the placement 
of the string "quint8".  It looks like you have Qt 4.7.2 and I have 4.7.4.

The bit with ((0) "quint8") looks similar to c preprocessor macro 
expansion.  While there are plenty of interesting macros in qglobal.h, I 
didn't see any in relation to a quint8.

If you look into qglobal.h, and then use 'bovinate', can you find the 
tag with the (0) in it, and see where it is in the file, and find a 
short bit of code that will reproduce the odd condition?

For example, I go into qglobal.h, and type:

M-x bovinate RET

and it dumps out this big thing.  I searched for (0) but saw nothing.  I 
did see this though:

  ("qint8" type
   (:typedef
    ("signed char")
    :superclasses "signed char" :type "typedef")
   (unlink-copy-hook
    (semantic--tag-unlink-copy-secondary-overlays)
    link-hook
    (semantic--tag-link-secondary-overlays)
    secondary-overlays
    (#<overlay from 25949 to 26003 in qglobal.h>)
    unlink-hook
    (semantic--tag-unlink-secondary-overlays))
   #<overlay from 25949 to 25975 in qglobal.h>)
  ("quint8" type
   (:typedef
    ("unsigned char")
    :superclasses "unsigned char" :type "typedef")

so pretend the first tag found had the (0).  You can see the overlay has 
25949 as a start location.  Got there with:

M-x goto-char RET 25949 RET

and find the offending tag.

Eric

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2

Gmane