browse: forums | FAQ
Connecting Tech Pros Worldwide

Hey there! Do you need JavaScript / Ajax / DHTML help?

Get answers from our community of JavaScript / Ajax / DHTML experts on BYTES! It's free.

etags and inner functions

cognominal
Guest
 
Posts: n/a
#1: Mar 26 '06
I am trying to use etags to create a tag file for emacs.
It fails miserably with prototype.js.
It seems to work on simpler files.
Is there an alternative?

Thanks




Thomas 'PointedEars' Lahn
Guest
 
Posts: n/a
#2: Mar 26 '06

re: etags and inner functions


cognominal wrote:
[color=blue]
> I am trying to use etags to create a tag file for emacs.
> It fails miserably with prototype.js.
> It seems to work on simpler files.
> Is there an alternative?[/color]

Do not use prototype.js.

("Doctor, my arm hurts when I move it!" -- "Don't move it then.")

<URL:http://jibbering.com/faq/>

That said, this newsgroup is not the Prototype.js support.


PointedEars
cognominal
Guest
 
Posts: n/a
#3: Mar 27 '06

re: etags and inner functions


> PointedEars wrote:[color=blue][color=green]
>>
>> I am trying to use etags to create a tag file for emacs.
>> It fails miserably with prototype.js.
>> It seems to work on simpler files.
>> Is there an alternative?[/color][/color]
[color=blue]
> Do not use prototype.js.
>
> ("Doctor, my arm hurts when I move it!" -- "Don't move it then.")[/color]

Wrong answer but I can follow on the metaphor...

One sees a doctor to get help.
Hopefully real doctors helps people with broken arms instead of having
cheap fun at them.
Well. maybe not true anymore for more complex ailments.
You go to a generalist that refer you to a specialist that can help you
for the specific disease at the cost of you general health.
Many diseases are easily cured. Others are not. The rest are
psychosomatic.
They should be approached in concerted ways : a psychoanalytic way
because
the problem is rooted in troubles not solved in the early infancy,
a comportemental way because the person has acquired wrong habits
he should replace by saner ones, in a medical way because the problem m
anifests itself with medical illness and symptoms. May be sophrology
too,
so he can cope with the stress.
The problem is that these kinds of specialist don't want to talk
together.
Seing them alternatively is probably worse than finding the one that
will
be the most helpful.

Back to my problem which cross boundarries like the disease; should I
go to comp.lang.emacs, whatever support group
for prototype.js. or stay here to hope for an answer?
[color=blue]
>
> <URL:http://jibbering.com/faq/>
>
> That said, this newsgroup is not the Prototype.js support.[/color]

My question is not about prototype.js but about tag support by emacs
for complex javascript files; prototype.js being just an illustration.
Thx for pointing the faq but it is silent about emacs.
I suppose comp.lang.javascript is not so bad a choice to ask a
question about
tools to edit javascript.

Thx for you attention.
--
cognominal stef

Thomas 'PointedEars' Lahn
Guest
 
Posts: n/a
#4: Mar 27 '06

re: etags and inner functions


cognominal wrote:
[color=blue][color=green]
>> PointedEars wrote:[color=darkred]
>>> I am trying to use etags to create a tag file for emacs.
>>> It fails miserably with prototype.js.
>>> It seems to work on simpler files.
>>> Is there an alternative?[/color]
>>
>> Do not use prototype.js.
>>
>> ("Doctor, my arm hurts when I move it!" -- "Don't move it then.")[/color]
>
> Wrong answer but I can follow on the metaphor...
> [...][/color]

No, you cannot. You do not show us your arm (or at least a finger),
as recommended in the FAQ, so that we can see at least why it might
hurt.


PointedEars
VK
Guest
 
Posts: n/a
#5: Mar 27 '06

re: etags and inner functions



cognominal wrote:[color=blue]
> I am trying to use etags to create a tag file for emacs.
> It fails miserably with prototype.js.
> It seems to work on simpler files.
> Is there an alternative?[/color]

What in the name does it suppose to mean?

What does "use etags" mean? You mean HTTP's Etag header? Truthfully
this is the only one coming to my mind, but it has no relation to
JavaScript as such. I guess it's Etag though as you also mention some
obscure "tag file". But what emacs GNU project has to do with it?

"It fails miserably with prototype.js" You mean the crypted message
above? Sad to know, but without a key no one can help really - nor even
type in some meaningful consolation :-( :-)

Trying to be Mr.Holms I may guess (only guess) that you are using the
ajaxoid part of propotype.js to gather some server response headers and
it doesn't work for some reasons in the way you want.

Either I'm right or not: please do not crypt your messages anymore ;-)
Please simply post the minimum code (URL is the best), intended
behavior description and actual behavior description.

cognominal
Guest
 
Posts: n/a
#6: Mar 27 '06

re: etags and inner functions


Thanks, but you tried to solve the problem as a pure javascript one.
It is a really problem with the editor emacs and its tags mechanism
in the context of javascript files.
With etags one parse the file and build a tag file.
These tags are useful to find a function definition from
one of its call. It is a nive feature to navigate within source files.

I was not more expicit because I supposed that people who would not
undestand the question would not answer but because you did I owed
an explanation and a thanks.
I thought that the comp.lang.javascript forum would be appropriate
because the standard emacs did not support the request feature. So
a javascript programmer may have built it for emacs.

But I did not realize that the majority of this forum population is
using windows.
So they are probaby not using emacs. On the other hand, on gnu.emacs,
they
may have been confronted to the same problem, even if with another
language.
I will try there.

As I said to PointedEars when answering cheap shot and using his own
medical metaphor, I was not sure about what the kind of "specialist"
was
best to ask. As a typical specialist. PointedEars did not even tried to
parse a question that
was not totally formatted in his frame of mind.

Thanks to go, contrary to him, beyond the pavlovian answer "show me
the code".

--
cognominal stef

Lasse Reichstein Nielsen
Guest
 
Posts: n/a
#7: Mar 27 '06

re: etags and inner functions


"cognominal" <cognominal@gmail.com> writes:
[color=blue]
> But I did not realize that the majority of this forum population is
> using windows.
> So they are probaby not using emacs.[/color]

Non-sequitor :)
I'm quite happily using Emacs on Windows. Not a very advanced user,
though, so I can't help with etags :)

/L
--
Lasse Reichstein Nielsen - lrn@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
Thomas 'PointedEars' Lahn
Guest
 
Posts: n/a
#8: Mar 27 '06

re: etags and inner functions


cognominal wrote:
[color=blue]
> But I did not realize that the majority of this forum population is
> using windows.[/color]

Nonsense. Watch my headers, for example.
[color=blue]
> [...]
> As I said to PointedEars when answering cheap shot and using his own
> medical metaphor, I was not sure about what the kind of "specialist"
> was best to ask.[/color]

Such a question should be posted to comp.lang.misc and the like.
[color=blue]
> As a typical specialist. PointedEars did not even tried to parse a
> question that was not totally formatted in his frame of mind.
> Thanks to go, contrary to him, beyond the pavlovian answer "show me
> the code".[/color]

This newsgroup is not your Crystal Ball. Go away.


PointedEars
Randy Webb
Guest
 
Posts: n/a
#9: Mar 28 '06

re: etags and inner functions


Thomas 'PointedEars' Lahn said the following on 3/27/2006 6:08 PM:[color=blue]
> cognominal wrote:
>[color=green]
>> But I did not realize that the majority of this forum population is
>> using windows.[/color]
>
> Nonsense. Watch my headers, for example.[/color]

What is Nonsense is your BS reply. Do you understand what "majority of
this forum population" means? (Not that comp.lang.javascript is a
forum). Let me explain it to you because it is obvious that one of two
things is true:

1) You did not comprehend what you read.
2) You do not know what "majority" means.

majority: a number greater than half of a total.


Now, over half of the people in this group use Windows (probably closer
to 90% or better). And that my friend makes the "majority of this forum
population using windows)" a 100% true statement.

You missed the boat on this one.....


--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Answer:It destroys the order of the conversation
Question: Why?
Answer: Top-Posting.
Question: Whats the most annoying thing on Usenet?

Please quote what you are replying to.

If you want to post a followup via groups.google.com, don't use the
"Reply" link at the bottom of the article. Click on "show options" at
the top of the article, then click on the "Reply" at the bottom of the
article headers. <URL: http://www.safalra.com/special/googlegroupsreply/ >

jussij@zeusedit.com
Guest
 
Posts: n/a
#10: Apr 5 '06

re: etags and inner functions


> Is there an alternative?

You could try using Exuberant Ctags:

http://ctags.sourceforge.net

The Zeus for Windows IDE makes use of Exuberant Ctags
to drive the class browsing and intellisensing features
and it works very well.

Jussi Jumppanen
Author: Zeus for Windows IDE
http://www.zeusedit.com

Closed Thread