473,414 Members | 1,692 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

etags and inner functions

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

Mar 26 '06 #1
9 1889
cognominal wrote:
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?


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
Mar 26 '06 #2
> PointedEars wrote:

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?
Do not use prototype.js.

("Doctor, my arm hurts when I move it!" -- "Don't move it then.")
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?

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

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


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

Mar 27 '06 #3
cognominal wrote:
PointedEars wrote:
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?


Do not use prototype.js.

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


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


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
Mar 27 '06 #4
VK

cognominal wrote:
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?


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.

Mar 27 '06 #5
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

Mar 27 '06 #6
"cognominal" <co********@gmail.com> writes:
But I did not realize that the majority of this forum population is
using windows.
So they are probaby not using emacs.


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 - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
Mar 27 '06 #7
cognominal wrote:
But I did not realize that the majority of this forum population is
using windows.
Nonsense. Watch my headers, for example.
[...]
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.
Such a question should be posted to comp.lang.misc and the like.
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".


This newsgroup is not your Crystal Ball. Go away.
PointedEars
Mar 27 '06 #8
Thomas 'PointedEars' Lahn said the following on 3/27/2006 6:08 PM:
cognominal wrote:
But I did not realize that the majority of this forum population is
using windows.


Nonsense. Watch my headers, for example.


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/ >

Mar 28 '06 #9
> 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

Apr 5 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Wolfgang Jeltsch | last post by:
Hello, I want to write a list class with an iterator class as an inner class. The iterator class must have access to certain private members of the list class in order to do its job. Here is a...
1
by: Oplec | last post by:
Hi, I'm learning C++ as a hobby using The C++ Programming Language : Special Edition by Bjarne Stroustrup. I'm working on chpater 13 exercises that deal with templates. Exercise 13.9 asks for me...
8
by: olov.johansson | last post by:
Hi, given two nested functions: function outer() { function inner() { } } Is it determined by the ECMAScript standard that inner should be a property of outer, thus a...
6
by: Philip Potter | last post by:
I have a graph data structure. It goes something like this: class GraphNode { private: friend class Graph; // successor GraphNodes stored as indices of the Graph's array int value; int next1,...
4
by: trevor_morgan | last post by:
The following code: def functions(): l=list() for i in range(5): def inner(): return i l.append(inner) return l
1
by: Peter Michaux | last post by:
Hi, I saw Brendan Eich in an online conference video say that in JavaScript 2 that they will lexically bind the "this" keyword of inner functions. He said that currently the execution-time...
9
by: Matthias Buelow | last post by:
Hi folks, I've got something like: class Outer { int f(); friend class Inner; class Inner { int g() {
9
by: Gabriel Rossetti | last post by:
Hello, I can't get getattr() to return nested functions, I tried this : .... def titi(): .... pass .... f = getattr(toto, "titi") .... print str(f) .... Traceback...
0
by: Gabriel Genellina | last post by:
En Wed, 20 Aug 2008 05:34:38 -0300, Gabriel Rossetti <gabriel.rossetti@arimaz.comescribi�: Yes, functions are objects, but inner functions aren't attributes of the outer; they live in its...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.