Tu Do | 19 Dec 19:12 2014
Picon

Is it possible to support a language with Semantic without using Syntax Table?

Hi Eric,

As the title suggests, is it possible to add new language support with Semantic alone, including using Semantic tags for highlighting and indentation. I also wonder if Syntax Table can support Semantic and vice versa.

Thanks,

Tu.
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Cedet-devel mailing list
Cedet-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cedet-devel
Plutonium | 19 Dec 05:37 2014
Picon

ede-linux build directory


Hi,

I build my linux kernel on a different directory, i.e. not in the same
directory with the source tree, when I open file with emacs and with

(global-ede-mode t)

every time I try to open a file from the linux source tree, it always
ask me to set the linux build directory.

I try to use

(setq project-linux-build-directory-default
"/home/user/workspace/linux-build/")

this way, it always fails with error:

"eieio-validate-slot-value: Invalid slot type: ede-linux-project,
build-directory, string, nil"

Is there any way to set the linux build directory in my init.el file,
so that I don't have to select the directory every time?

Thanks!
Martin Stein | 16 Dec 23:45 2014
Picon
Picon

Overlay and actions/OLE

Hi,

I professionally work with Fortran and like to use cedet to help me with 
coding. To this end I have been playing with bovine and the existing 
f90-parser for the past weeks to see whether improving support for this 
language is feasible for me.

There are two things which eludes me. Any help is greatly appreciated.

(1) Overlay information:

   (a) Exactly for which actions does the parser add overlay information 
to a tag in raw [lower upper] format? (I have created tags, passed them 
up, put them into a list like :something (tag) and lost the overlay 
information.)

   (b) How is [lower upper] converted to the <#overlay ... in file.f90> 
format? It is clear that this happens after the semantic-expand-tag 
function. It is also clear that the top level tag gets its overlay 
information converted. Moreover, it seems that tags collected within 
certain attributes are converted as well (e.g. conversion is done for 
tags collected by (TAG ... :members (EXPANDFULL $x rule)), but not for 
(TAG ... :membersxyz (EXPANDFULL $x rule))).

(2) Actions in rules: I have a good background in Haskell, and I would 
love to see the typing for those (TAG ...) actions. I just do not 
understand for example when to use ( ) versus ( nil ), or ( ,$1 ) versus 
( $1 ). The documentation does not help me much there. I guess I would 
need to look at the by -> by.el conversion rules? As a mathematician any 
formal transformation rules (preferably typed) could help a lot I think.

Thanks a lot
Martin

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
Zhongwei Yao | 11 Dec 08:19 2014
Picon

Semantic macro parse problem

Hi, list,
When semantic parses one file with only following content:

#if (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__)
#define TEST_SEMANTICS
#endif

semantic will give following error:

eval: Wrong type argument: number-or-marker-p, "__ORDER_LITTLE_ENDIAN__"

Here is the backtrace:

Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p "__ORDER_LITTLE_ENDIAN__")
  hif-equal("__ORDER_LITTLE_ENDIAN__" 1234)
  eval((hif-equal (hif-lookup (quote __BYTE_ORDER__)) (hif-lookup (quote __ORDER_LITTLE_ENDIAN__))))
  semantic-c-do-lex-if()
  semantic-c-lexer(1 79 nil nil)
  semantic-lex(1 79 nil)
  semantic-parse-region-default(1 79 nil nil nil)
  semantic-parse-region-c-mode(1 79 nil nil nil)
  semantic-parse-region(1 79)
  semantic-fetch-tags()
  semantic-force-refresh()
  call-interactively(semantic-force-refresh nil nil)
  command-execute(semantic-force-refresh)

Anyone could help me figure how to solve this problem?

My emacs version is:
  GNU Emacs 24.4.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8)
And semantic is the stock version in Emacs.

--
Thanks,
Zhongwei
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Cedet-devel mailing list
Cedet-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cedet-devel
RJD | 11 Dec 00:34 2014
Picon

Issue with compiling latest snapshots or

I am quite surprised this has not been brought up yet, but - simply put - I
am unable to compile the latest CEDET from trunk without getting this issue:

*****
Debugger entered--Lisp error: (wrong-number-of-arguments #[(obsolete-name
current-name &optional when) "\30\304	;\203\305	!\202	\305
!B#\21\207" [obsolete-name current-name when put byte-obsolete-variable
purecopy] 6 1689208 (list (let ((str (completing-read "Make variable
obsolete: " obarray (quote boundp) t))) (if (equal str "") (error ""))
(intern str)) (car (read-from-string (read-string "Obsoletion replacement:
"))))] 4)
  make-obsolete-variable(semantic-idle-symbol-highlight-face "customize the
face `semantic-idle-symbol-highlight' instead" "24.4" set)
  eval-buffer(#<buffer  *load*≤2>> nil
"SOMEDIR"
nil t)  ; Reading at buffer position 31696

load-with-code-conversion("SOMEDIR"
"SOMEDIR"
nil t)
  require(semantic/idle)
  eval-buffer(#<buffer  *load*≥ nil
"SOMEDIR"
nil t)  ; Reading at buffer position 1141

load-with-code-conversion("SOMEDIR"
"SOMEDIR"
nil t)
  require(semantic/grammar)
  (progn (require (quote cedet-devel-load)) (require (quote cedet-compat))
(require (quote semantic/grammar)) (require (quote semantic/bovine/grammar))
(require (quote semantic/wisent/grammar)))
  eval((progn (require (quote cedet-devel-load)) (require (quote
cedet-compat)) (require (quote semantic/grammar)) (require (quote
semantic/bovine/grammar)) (require (quote semantic/wisent/grammar))))
  command-line-1(("--eval" "(setq debug-on-error t)" "-l"
"../../../cedet-remove-builtin.el" "--eval" "(setq max-specpdl-size 1500
max-lisp-eval-depth 700 cedet-minimum-setup t)" "-L" "../" "-L" "../" "-L"
"../../../" "-L" "../../eieio/" "--eval" "(progn (require (quote
cedet-devel-load)) (require (quote cedet-compat)) (require (quote
semantic/grammar)) (require (quote semantic/bovine/grammar)) (require (quote
semantic/wisent/grammar)))" "-f" "semantic-grammar-batch-build-packages"
"srt.wy"))
  command-line()
  normal-top-level()
*****

I know the version from the 26th of Sept this year works without issue.

Can we try and correct this please. There are some fixes put in recently
that I requested.

Thanks.

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
David Engster | 3 Dec 16:24 2014
Picon

Switch from bzr to git

Following Emacs, CEDET will switch its VCS from Bazaar to Git. I have
pushed a conversion from our current trunk, which you can clone by doing

 git clone http://git.code.sf.net/p/cedet/git cedet

I encourage everyone to inspect the new repository for errors. Note that
this is only a conversion of 'trunk'. If you have a Bazaar branch you'd
like to have transferred to the Git repository, please push it upstream
and let me know.

If there are no problems, I expect we'll do the switch over the coming
weekend.

Contrary to the conversion that was done for Emacs, this is a straight
conversion without any changes or cleanups, for which I don't really see
the need.

-David

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
Tu Do | 3 Dec 04:18 2014
Picon

semantic-format-tag-summarize does not return correct tag appearance

For example, if I have this single line in a C file:

const char** filename;

Running (semantic-fetch-tag) returns this list:

(("filename" variable (:pointer 1 :constant-flag t :type "char") nil #<overlay from 1 to 22 in 03-095759.c>))

It indicates the char pointer has 2 level of pointers. However, when running (semantic-format-tag-summarize), this is the result string returned:

Variables: const char filename

There's no pointer marking in char. This affect commands that use this function, like helm-semantic-or-imenu.

Thanks,

Tu.
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Cedet-devel mailing list
Cedet-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cedet-devel
Ashi | 2 Dec 05:13 2014
Picon

semantic-symref and global

Hi, there,

Semantic manual says

Variable: semantic-symref-tool
     The value of this variable is a symbol that determines the external
     symbol reference tool to use.

But I can't find this variable by running M-x describe-variable. And when I run semantic-symref-symbol on my project, it is very slow and emacs is blocked when "gather symref".

What I want to do is letting semantic gather symbol reference by GNU global. What can do to achieve this?

My emacs version is 24.4.1 running on Linux.

Thanks,
Zhongwei
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Cedet-devel mailing list
Cedet-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cedet-devel
Bix | 30 Nov 21:56 2014
Picon

Semanctic newbie

Hi All,
I'm looking for some information about how to use semantic to parse some
grammar and generate the relative AST. I'm using ANTLR in different context.
I start reading the manual but I'm a bit lost and probably I'm looking
for some simple example ( probably start with bovine would be better.)

Can you help me and give me some simple example? I'm also a newbie in
emacs so I need some guidance also how I can develop with semantic
within emacs.

Kindest Regards
Bix.

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
Tu Do | 28 Nov 09:22 2014
Picon

How do I load new template in current Emacs session

Hi Eric,

I started using Srecode recently and enjoying it. However, there's a little problem: how do I reload Srecode whenever I add new templates?

Thanks,

Tu.
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Cedet-devel mailing list
Cedet-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cedet-devel
Matthew Smith | 24 Nov 22:04 2014
Picon

Java, maven and mulitple classpaths

Hi all,

When a project is built using maven, there are actually 2 classpaths: the runtime one and the test one.  Which
classpath should be used depends on where in the source tree the file lives.  For example, files in the
source tree should not see classes in the test classpath as they will not compile.

In CEDET, is there a way to have 2 different classpaths for a given project?

I am, very sincerely and truly,
your Friend and Well-Wisher,                                

Matthew O. Smith
Programmer / Analyst - Senior
http://www.ferociousflirting.com

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk

Gmane