* Speedbar question
@ 2003-03-20 16:57 John Wilde
2003-03-20 19:39 ` Eric Ludlam
0 siblings, 1 reply; 28+ messages in thread
From: John Wilde @ 2003-03-20 16:57 UTC (permalink / raw)
I would like to use the speedbar for a custom file type and define a
regular expression that determines the line in the file to jump to. i
am able to run etags to create the TAGS file that I want, but how do I
make this work with speedbar so that it will expand into a list?
(Like, for example, the way functions are listed when a .cpp file is
opened)
thank you!
-john
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Speedbar question
2003-03-20 16:57 John Wilde
@ 2003-03-20 19:39 ` Eric Ludlam
2003-03-21 16:03 ` John Wilde
0 siblings, 1 reply; 28+ messages in thread
From: Eric Ludlam @ 2003-03-20 19:39 UTC (permalink / raw)
>>> jwilde@draper.com (John Wilde) seems to think that:
>I would like to use the speedbar for a custom file type and define a
>regular expression that determines the line in the file to jump to. i
>am able to run etags to create the TAGS file that I want, but how do I
>make this work with speedbar so that it will expand into a list?
>(Like, for example, the way functions are listed when a .cpp file is
>opened)
The easiest way to do this is to support imenu. Imenu has it's own
documentation in Emacs. You can read on how to accomplish this.
Once you have done this, you can add this to your .emacs or imenu
support file:
(speedbar-add-supported-extension ".foo")
to tell speedbar to try and expand tags in this file.
Good Luck
Eric
--
Eric Ludlam "Photonic Doodler" The MathWorks x 7556
eludlam@mathworks.com (work) http://www.mathworks.com
eric@siege-engine.com (home) http://www.siege-engine.com
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Speedbar question
2003-03-20 19:39 ` Eric Ludlam
@ 2003-03-21 16:03 ` John Wilde
2003-03-24 14:00 ` Eric Ludlam
0 siblings, 1 reply; 28+ messages in thread
From: John Wilde @ 2003-03-21 16:03 UTC (permalink / raw)
thanks.
i am trying to add imenu support for the text-mode such that it
accomplishes this, looking at how other modes (eg fortran.el) do
this, i defined the appropriate 'text-mode-imenu-generic-expression'
variable in my text-mode.el file, but the text mode still does not
support imenu. any suggestions on what i'm missing and where i can
look for more help on this?
thanks, john
Eric Ludlam <eludlam@mathworks.com> wrote in message news:<koptolx1xm.fsf@ludlame-mac.dhcp.mathworks.com>...
> >>> jwilde@draper.com (John Wilde) seems to think that:
> >I would like to use the speedbar for a custom file type and define a
> >regular expression that determines the line in the file to jump to. i
> >am able to run etags to create the TAGS file that I want, but how do I
> >make this work with speedbar so that it will expand into a list?
> >(Like, for example, the way functions are listed when a .cpp file is
> >opened)
>
> The easiest way to do this is to support imenu. Imenu has it's own
> documentation in Emacs. You can read on how to accomplish this.
>
> Once you have done this, you can add this to your .emacs or imenu
> support file:
>
> (speedbar-add-supported-extension ".foo")
>
> to tell speedbar to try and expand tags in this file.
>
> Good Luck
> Eric
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Speedbar question
2003-03-21 16:03 ` John Wilde
@ 2003-03-24 14:00 ` Eric Ludlam
2003-03-25 1:03 ` John Wilde
0 siblings, 1 reply; 28+ messages in thread
From: Eric Ludlam @ 2003-03-24 14:00 UTC (permalink / raw)
You also need to set imenu-generic-expression in test-mode, probably
like this:
(make-local-variable 'imenu-generic-expression)
(setq imenu-generic-expression text-mode-imenu-generic-expression)
Eric
>>> jwilde@draper.com (John Wilde) seems to think that:
>thanks.
>
>i am trying to add imenu support for the text-mode such that it
>accomplishes this, looking at how other modes (eg fortran.el) do
>this, i defined the appropriate 'text-mode-imenu-generic-expression'
>variable in my text-mode.el file, but the text mode still does not
>support imenu. any suggestions on what i'm missing and where i can
>look for more help on this?
>
>thanks, john
>
>
>Eric Ludlam <eludlam@mathworks.com> wrote in message news:<koptolx1xm.fsf@ludlame-mac.dhcp.mathworks.com>...
>> >>> jwilde@draper.com (John Wilde) seems to think that:
>> >I would like to use the speedbar for a custom file type and define a
>> >regular expression that determines the line in the file to jump to. i
>> >am able to run etags to create the TAGS file that I want, but how do I
>> >make this work with speedbar so that it will expand into a list?
>> >(Like, for example, the way functions are listed when a .cpp file is
>> >opened)
>>
>> The easiest way to do this is to support imenu. Imenu has it's own
>> documentation in Emacs. You can read on how to accomplish this.
>>
>> Once you have done this, you can add this to your .emacs or imenu
>> support file:
>>
>> (speedbar-add-supported-extension ".foo")
>>
>> to tell speedbar to try and expand tags in this file.
>>
>> Good Luck
>> Eric
--
Eric Ludlam "Photonic Doodler" The MathWorks x 7556
eludlam@mathworks.com (work) http://www.mathworks.com
eric@siege-engine.com (home) http://www.siege-engine.com
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Speedbar question
2003-03-24 14:00 ` Eric Ludlam
@ 2003-03-25 1:03 ` John Wilde
2003-03-25 10:45 ` Kai Großjohann
2003-03-25 15:14 ` Kevin Rodgers
0 siblings, 2 replies; 28+ messages in thread
From: John Wilde @ 2003-03-25 1:03 UTC (permalink / raw)
thanks eric,
i had the imenu-generic-expression variable set, but still no luck.
i notice that no changes i make to the text-mode.el file seem to have
any effect. in fact i can take it out of the directory tree and my
text-mode loads up just fine. am i modifying the wrong file??
-john
Eric Ludlam <eludlam@mathworks.com> wrote in message news:<koy934vp8q.fsf@ludlame-mac.dhcp.mathworks.com>...
> You also need to set imenu-generic-expression in test-mode, probably
> like this:
>
> (make-local-variable 'imenu-generic-expression)
> (setq imenu-generic-expression text-mode-imenu-generic-expression)
>
> Eric
>
> >>> jwilde@draper.com (John Wilde) seems to think that:
> >thanks.
> >
> >i am trying to add imenu support for the text-mode such that it
> >accomplishes this, looking at how other modes (eg fortran.el) do
> >this, i defined the appropriate 'text-mode-imenu-generic-expression'
> >variable in my text-mode.el file, but the text mode still does not
> >support imenu. any suggestions on what i'm missing and where i can
> >look for more help on this?
> >
> >thanks, john
> >
> >
> >Eric Ludlam <eludlam@mathworks.com> wrote in message news:<koptolx1xm.fsf@ludlame-mac.dhcp.mathworks.com>...
> >> >>> jwilde@draper.com (John Wilde) seems to think that:
> >> >I would like to use the speedbar for a custom file type and define a
> >> >regular expression that determines the line in the file to jump to. i
> >> >am able to run etags to create the TAGS file that I want, but how do I
> >> >make this work with speedbar so that it will expand into a list?
> >> >(Like, for example, the way functions are listed when a .cpp file is
> >> >opened)
> >>
> >> The easiest way to do this is to support imenu. Imenu has it's own
> >> documentation in Emacs. You can read on how to accomplish this.
> >>
> >> Once you have done this, you can add this to your .emacs or imenu
> >> support file:
> >>
> >> (speedbar-add-supported-extension ".foo")
> >>
> >> to tell speedbar to try and expand tags in this file.
> >>
> >> Good Luck
> >> Eric
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Speedbar question
2003-03-25 1:03 ` John Wilde
@ 2003-03-25 10:45 ` Kai Großjohann
2003-03-25 15:14 ` Kevin Rodgers
1 sibling, 0 replies; 28+ messages in thread
From: Kai Großjohann @ 2003-03-25 10:45 UTC (permalink / raw)
jwilde@draper.com (John Wilde) writes:
> i had the imenu-generic-expression variable set, but still no luck.
> i notice that no changes i make to the text-mode.el file seem to have
> any effect. in fact i can take it out of the directory tree and my
> text-mode loads up just fine. am i modifying the wrong file??
Never modify files that come with Emacs. While there is a way to
work around the problem that you're having, I don't think it's good
to fight Emacs needlessly.
I suggest to use define-derived-mode to define a mode based on text
mode. In that mode you can set imenu-generic-expression and things
will work out nicely.
--
A preposition is not a good thing to end a sentence with.
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Speedbar question
2003-03-25 1:03 ` John Wilde
2003-03-25 10:45 ` Kai Großjohann
@ 2003-03-25 15:14 ` Kevin Rodgers
2003-03-25 19:40 ` John Wilde
1 sibling, 1 reply; 28+ messages in thread
From: Kevin Rodgers @ 2003-03-25 15:14 UTC (permalink / raw)
John Wilde wrote:
> i had the imenu-generic-expression variable set, but still no luck.
> i notice that no changes i make to the text-mode.el file seem to have
> any effect. in fact i can take it out of the directory tree and my
> text-mode loads up just fine. am i modifying the wrong file??
Yes. text-mode.el is byte-compiled to text-mode.elc, which is dumped into the
emacs executable.
--
<a href="mailto:<kevin.rodgers@ihs.com>">Kevin Rodgers</a>
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Speedbar question
2003-03-25 15:14 ` Kevin Rodgers
@ 2003-03-25 19:40 ` John Wilde
0 siblings, 0 replies; 28+ messages in thread
From: John Wilde @ 2003-03-25 19:40 UTC (permalink / raw)
thanks everyone for your help.
i've got it working now.
Kevin Rodgers <ihs_4664@yahoo.com> wrote in message news:<3E80725F.1070305@yahoo.com>...
> John Wilde wrote:
>
> > i had the imenu-generic-expression variable set, but still no luck.
> > i notice that no changes i make to the text-mode.el file seem to have
> > any effect. in fact i can take it out of the directory tree and my
> > text-mode loads up just fine. am i modifying the wrong file??
>
> Yes. text-mode.el is byte-compiled to text-mode.elc, which is dumped into the
> emacs executable.
^ permalink raw reply [flat|nested] 28+ messages in thread
* Speedbar question
@ 2005-02-11 20:39 Javier Oviedo
2005-02-12 11:09 ` Eli Zaretskii
` (2 more replies)
0 siblings, 3 replies; 28+ messages in thread
From: Javier Oviedo @ 2005-02-11 20:39 UTC (permalink / raw)
Hello all.
I just started using speedbar and like it very much, but I have found one
rather annoying behavior(or at least I think so). When I click on a file in
the speedbar window, in order to open it in the main frame, the mouse
pointer gets automatically moved to the top right corner of my emacs frame.
Why does this happen? Is there a way to disable this feature? I would like
the mouse pointer to remain exactly where it was when I clicked on the file
name.
Any help? Thoughts?
Thanks!
--
Javier
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Speedbar question
2005-02-11 20:39 Javier Oviedo
@ 2005-02-12 11:09 ` Eli Zaretskii
[not found] ` <mailman.1861.1108208577.2841.help-gnu-emacs@gnu.org>
2005-02-14 21:33 ` Eric Ludlam
2 siblings, 0 replies; 28+ messages in thread
From: Eli Zaretskii @ 2005-02-12 11:09 UTC (permalink / raw)
> From: "Javier Oviedo" <email_joviedo@yahoo.com>
> Date: Fri, 11 Feb 2005 15:39:45 -0500
>
> I just started using speedbar and like it very much, but I have found one
> rather annoying behavior(or at least I think so). When I click on a file in
> the speedbar window, in order to open it in the main frame, the mouse
> pointer gets automatically moved to the top right corner of my emacs frame.
Does that happen in "emacs -q"? If not, perhaps you have
mouse-avoidance mode turned on in your ~/.emacs or some other init
file.
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Speedbar question
[not found] ` <mailman.1861.1108208577.2841.help-gnu-emacs@gnu.org>
@ 2005-02-14 15:30 ` Javier Oviedo
0 siblings, 0 replies; 28+ messages in thread
From: Javier Oviedo @ 2005-02-14 15:30 UTC (permalink / raw)
Hello Eli,
I opened emacs without any init file or custom configuration(simply launched
emacs.exe). I then started speedbar and still saw the same behavior.
Thoughts? Suggestions? Thanks.
--
Javier
"Eli Zaretskii" <eliz@gnu.org> wrote in message
news:mailman.1861.1108208577.2841.help-gnu-emacs@gnu.org...
> > From: "Javier Oviedo" <email_joviedo@yahoo.com>
> > Date: Fri, 11 Feb 2005 15:39:45 -0500
> >
> > I just started using speedbar and like it very much, but I have found
one
> > rather annoying behavior(or at least I think so). When I click on a file
in
> > the speedbar window, in order to open it in the main frame, the mouse
> > pointer gets automatically moved to the top right corner of my emacs
frame.
>
> Does that happen in "emacs -q"? If not, perhaps you have
> mouse-avoidance mode turned on in your ~/.emacs or some other init
> file.
>
>
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Speedbar question
2005-02-11 20:39 Javier Oviedo
2005-02-12 11:09 ` Eli Zaretskii
[not found] ` <mailman.1861.1108208577.2841.help-gnu-emacs@gnu.org>
@ 2005-02-14 21:33 ` Eric Ludlam
2005-02-15 18:34 ` Javier Oviedo
2005-02-15 20:54 ` Javier Oviedo
2 siblings, 2 replies; 28+ messages in thread
From: Eric Ludlam @ 2005-02-14 21:33 UTC (permalink / raw)
>>> "Javier Oviedo" <email_joviedo@yahoo.com> seems to think that:
>Hello all.
>
>I just started using speedbar and like it very much, but I have found one
>rather annoying behavior(or at least I think so). When I click on a file in
>the speedbar window, in order to open it in the main frame, the mouse
>pointer gets automatically moved to the top right corner of my emacs frame.
>Why does this happen? Is there a way to disable this feature? I would like
>the mouse pointer to remain exactly where it was when I clicked on the file
>name.
Hi,
Depending on what version of speedbar you may have, you can modify
either `speedbar-activity-change-focus-flag', or
`dframe-activity-change-focus-flag'. They should be "nil", meaning
don't change focus, though some activities always change focus. See
`speedbar-maybee-jump-to-attached-frame' for details.
I don't remember the specifics of the problem, but there may be a
couple places that don't go through that mechanism.
Eric
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Speedbar question
2005-02-14 21:33 ` Eric Ludlam
@ 2005-02-15 18:34 ` Javier Oviedo
2005-02-15 20:54 ` Javier Oviedo
1 sibling, 0 replies; 28+ messages in thread
From: Javier Oviedo @ 2005-02-15 18:34 UTC (permalink / raw)
Thanks. I'm using the speed bar that comes with cedet-1.0beta3b. I believe
the version is 0.15beta2. I will try these suggestions out. Thanks!
--
Javier
"Eric Ludlam" <eludlam@mathworks.com> wrote in message
news:kois4u968i.fsf@ludlamelinux.mathworks.com...
> >>> "Javier Oviedo" <email_joviedo@yahoo.com> seems to think that:
> >Hello all.
> >
> >I just started using speedbar and like it very much, but I have found one
> >rather annoying behavior(or at least I think so). When I click on a file
in
> >the speedbar window, in order to open it in the main frame, the mouse
> >pointer gets automatically moved to the top right corner of my emacs
frame.
> >Why does this happen? Is there a way to disable this feature? I would
like
> >the mouse pointer to remain exactly where it was when I clicked on the
file
> >name.
>
> Hi,
>
> Depending on what version of speedbar you may have, you can modify
> either `speedbar-activity-change-focus-flag', or
> `dframe-activity-change-focus-flag'. They should be "nil", meaning
> don't change focus, though some activities always change focus. See
> `speedbar-maybee-jump-to-attached-frame' for details.
>
> I don't remember the specifics of the problem, but there may be a
> couple places that don't go through that mechanism.
>
> Eric
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Speedbar question
2005-02-14 21:33 ` Eric Ludlam
2005-02-15 18:34 ` Javier Oviedo
@ 2005-02-15 20:54 ` Javier Oviedo
1 sibling, 0 replies; 28+ messages in thread
From: Javier Oviedo @ 2005-02-15 20:54 UTC (permalink / raw)
dframe-activity-change-focus-flag is set to nil and I can't find any
reference to speedbar-activity-change-focus-flag.
I will have to investigate further. I'll report back soon. Thanks.
--
Javier
"Eric Ludlam" <eludlam@mathworks.com> wrote in message
news:kois4u968i.fsf@ludlamelinux.mathworks.com...
> >>> "Javier Oviedo" <email_joviedo@yahoo.com> seems to think that:
> >Hello all.
> >
> >I just started using speedbar and like it very much, but I have found one
> >rather annoying behavior(or at least I think so). When I click on a file
in
> >the speedbar window, in order to open it in the main frame, the mouse
> >pointer gets automatically moved to the top right corner of my emacs
frame.
> >Why does this happen? Is there a way to disable this feature? I would
like
> >the mouse pointer to remain exactly where it was when I clicked on the
file
> >name.
>
> Hi,
>
> Depending on what version of speedbar you may have, you can modify
> either `speedbar-activity-change-focus-flag', or
> `dframe-activity-change-focus-flag'. They should be "nil", meaning
> don't change focus, though some activities always change focus. See
> `speedbar-maybee-jump-to-attached-frame' for details.
>
> I don't remember the specifics of the problem, but there may be a
> couple places that don't go through that mechanism.
>
> Eric
^ permalink raw reply [flat|nested] 28+ messages in thread
* Speedbar question
@ 2007-10-10 13:30 Ke Lu
0 siblings, 0 replies; 28+ messages in thread
From: Ke Lu @ 2007-10-10 13:30 UTC (permalink / raw)
To: help-gnu-emacs
When I press space key speedbar-toggle-line-expansion at a java file,
It expand and show classes,imports and packages which looks like following.
[-] ActionDispatcherExample.java
+> ActionDispatcherExample{}
{+} Imports
=> org.apache.struts.webapp.dispatch
When I press space key speedbar-toggle-line-expansion at class,
It expand and show veriables and methods.
[-] ActionDispatcherExample.java
-> ActionDispatcherExample{}
{+} Variables
{+} Methods
{+} Imports
=> org.apache.struts.webapp.dispatch
When I press space key speedbar-toggle-line-expansion at methods,
It expand and show methods which I realy want to see.
[-] ActionDispatcherExample.java
-> ActionDispatcherExample{}
{+} Variables
{-} Methods
+> execute()
+> doFoo()
+> doBar()
{+} Imports
=> org.apache.struts.webapp.dispatch
Is there any way to expand until fuctions when I
press space key speedbar-toggle-line-expansion at a java file?
^ permalink raw reply [flat|nested] 28+ messages in thread
* Tracing what is loading
@ 2008-12-07 0:34 Harry Putnam
2008-12-07 9:58 ` Juanma Barranquero
0 siblings, 1 reply; 28+ messages in thread
From: Harry Putnam @ 2008-12-07 0:34 UTC (permalink / raw)
To: help-gnu-emacs
I hope I've used good judgement here. I'm running 23 but the question
is so basic I thought better to keep the line noise off the devel list
and ask here.
How can I ensure that some specific code of my choosing is loaded at
the earliest possible point when emacs starts.
What I want to do is load something like this:
;;[Tip from Kai G] make loaded files give a message
(defadvice load (before debug-log activate)
(message "Now loading: %s" (locate-library (ad-get-arg 0))))
That will tell exactly what is loading and in what order.
Maybe there is a better or hopefully simpler way like possibly
compiling something directly into the binary when it is compiled.
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Tracing what is loading
2008-12-07 0:34 Tracing what is loading Harry Putnam
@ 2008-12-07 9:58 ` Juanma Barranquero
2008-12-07 11:22 ` speedbar question Maindoor
2008-12-07 23:09 ` Tracing what is loading Harry Putnam
0 siblings, 2 replies; 28+ messages in thread
From: Juanma Barranquero @ 2008-12-07 9:58 UTC (permalink / raw)
To: Harry Putnam; +Cc: help-gnu-emacs
On Sun, Dec 7, 2008 at 00:34, Harry Putnam <reader@newsguy.com> wrote:
> ;;[Tip from Kai G] make loaded files give a message
> (defadvice load (before debug-log activate)
> (message "Now loading: %s" (locate-library (ad-get-arg 0))))
>
> That will tell exactly what is loading and in what order.
That will skip calls to Fload from C code (defadvice does not work for
calls from C).
> Maybe there is a better or hopefully simpler way like possibly
> compiling something directly into the binary when it is compiled.
Not necessarily simpler. If you want to do that on a permanent basis,
you can add code to Fload to show a message. If it is just once for
some debugging, you can use the trace facilities of GDB.
Juanma
^ permalink raw reply [flat|nested] 28+ messages in thread
* speedbar question
2008-12-07 9:58 ` Juanma Barranquero
@ 2008-12-07 11:22 ` Maindoor
2008-12-07 15:21 ` Drew Adams
2008-12-07 23:09 ` Tracing what is loading Harry Putnam
1 sibling, 1 reply; 28+ messages in thread
From: Maindoor @ 2008-12-07 11:22 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 491 bytes --]
I wanted to use mouse-1 single click to do all i want in
speedbar instead of use mouse-2 ( scroll button ) click.
I couldn't find an easy way so I edited dframe.el and
swapped down-mouse-1 event and mouse-2 event.
Now I got exactly what I want but the problem is
that everytime i move the mouse in speedbar, i always
get some highlight as if i am trying to copy something.
Is there anyway to get around this or is there a way to
solve this correctly ?
Thanks,
[-- Attachment #2: Type: text/html, Size: 636 bytes --]
^ permalink raw reply [flat|nested] 28+ messages in thread
* RE: speedbar question
2008-12-07 11:22 ` speedbar question Maindoor
@ 2008-12-07 15:21 ` Drew Adams
2008-12-07 15:34 ` Maindoor
0 siblings, 1 reply; 28+ messages in thread
From: Drew Adams @ 2008-12-07 15:21 UTC (permalink / raw)
To: sanjeevfiles, help-gnu-emacs
> I wanted to use mouse-1 single click to do all i want in
> speedbar instead of use mouse-2 ( scroll button ) click.
> I couldn't find an easy way so I edited dframe.el and
> swapped down-mouse-1 event and mouse-2 event.
> Now I got exactly what I want but the problem is
> that everytime i move the mouse in speedbar, i always
> get some highlight as if i am trying to copy something.
> Is there anyway to get around this or is there a way to
> solve this correctly ?
[Plain text, not HTML mail, please.]
What Emacs version are you using? In Emacs 22 or later `mouse-1' should do what
you want by default, and the behavior is controlled by option
`mouse-1-click-follows-link'.
^ permalink raw reply [flat|nested] 28+ messages in thread
* RE: speedbar question
2008-12-07 15:21 ` Drew Adams
@ 2008-12-07 15:34 ` Maindoor
2008-12-07 17:10 ` Drew Adams
0 siblings, 1 reply; 28+ messages in thread
From: Maindoor @ 2008-12-07 15:34 UTC (permalink / raw)
To: help-gnu-emacs, Drew Adams
[-- Attachment #1: Type: text/plain, Size: 1615 bytes --]
I'm using 23.0.60.1 which would be the very latest, I'm running ubuntu 8.04.
mouse-1 doesn't do anything in speedbar, while clicking the button in scroll wheel( mouse-2) or the middle button in thinkpad selects the buffer or expands etc.
I think its a trivial bug. But by customizing i should be able to change it, I'm wondering how.
The reason I'm saying its a trivial bug is because, it is not intuitive and because, if you
are familiar with dframe.el in speedbar, middle button is mapped to dframe-click event
and mouse-1 is mapped to dframe-double-click event in dframe.el which is kind of
inverse. Please let me know if you have any ideas on how to customize it.
Thanks.
--- On Sun, 12/7/08, Drew Adams <drew.adams@oracle.com> wrote:
From: Drew Adams <drew.adams@oracle.com>
Subject: RE: speedbar question
To: sanjeevfiles@yahoo.com, help-gnu-emacs@gnu.org
Date: Sunday, December 7, 2008, 8:51 PM
> I wanted to use mouse-1 single click to do all i want in
> speedbar instead of use mouse-2 ( scroll button ) click.
> I couldn't find an easy way so I edited dframe.el and
> swapped down-mouse-1 event and mouse-2 event.
> Now I got exactly what I want but the problem is
> that everytime i move the mouse in speedbar, i always
> get some highlight as if i am trying to copy something.
> Is there anyway to get around this or is there a way to
> solve this correctly ?
[Plain text, not HTML mail, please.]
What Emacs version are you using? In Emacs 22 or later `mouse-1' should do
what
you want by default, and the behavior is controlled by option
`mouse-1-click-follows-link'.
[-- Attachment #2: Type: text/html, Size: 2029 bytes --]
^ permalink raw reply [flat|nested] 28+ messages in thread
* RE: speedbar question
2008-12-07 15:34 ` Maindoor
@ 2008-12-07 17:10 ` Drew Adams
2008-12-08 5:42 ` Maindoor
2008-12-08 5:46 ` speedbar question Maindoor
0 siblings, 2 replies; 28+ messages in thread
From: Drew Adams @ 2008-12-07 17:10 UTC (permalink / raw)
To: sanjeevfiles, help-gnu-emacs
> > > I wanted to use mouse-1 single click to do all i want in
> > > speedbar instead of use mouse-2 ( scroll button ) click.
> > > I couldn't find an easy way so I edited dframe.el and
> > > swapped down-mouse-1 event and mouse-2 event.
> > > Now I got exactly what I want but the problem is
> > > that everytime i move the mouse in speedbar, i always
> > > get some highlight as if i am trying to copy something.
> > > Is there anyway to get around this or is there a way to
> > > solve this correctly ?
> >
> > What Emacs version are you using? In Emacs 22 or later `mouse-1' should
> > do what you want by default, and the behavior is controlled by option
> > `mouse-1-click-follows-link'.
>
> I'm using 23.0.60.1 which would be the very latest, I'm running ubuntu
> 8.04. mouse-1 doesn't do anything in speedbar, while clicking the
> button in scroll wheel( mouse-2) or the middle button in thinkpad
> selects the buffer or expands etc. I think its a trivial bug. But by
> customizing i should be able to change it, I'm wondering how.
>
> The reason I'm saying its a trivial bug is because, it is not
> intuitive and because, if you are familiar with dframe.el in speedbar,
> middle button is mapped to dframe-click event and mouse-1 is mapped to
> dframe-double-click event in dframe.el which is kind of
> inverse. Please let me know if you have any ideas on how to customize it.
[Please don't top-post. Use plain text, not HTML, for this mailing list.]
Are you using emacs -Q? If not, perhaps something in your .emacs is
causing the problem. What is your value of `mouse-1-click-follows-link'?
I don't see the problem, with emacs -Q in this build:
In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600)
of 2008-11-24 on LENNART-69DE564
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4) --no-opt --cflags
-Ic:/g/include -fno-crossjumping'
If your version is more recent than that, check Emacs NEWS (`C-h n')
to see if this change was intentional. If it was not, please file an
Emacs bug: `M-x report-emacs-bug'.
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Tracing what is loading
2008-12-07 9:58 ` Juanma Barranquero
2008-12-07 11:22 ` speedbar question Maindoor
@ 2008-12-07 23:09 ` Harry Putnam
2008-12-08 0:41 ` Juanma Barranquero
1 sibling, 1 reply; 28+ messages in thread
From: Harry Putnam @ 2008-12-07 23:09 UTC (permalink / raw)
To: help-gnu-emacs
"Juanma Barranquero" <lekktu@gmail.com> writes:
> On Sun, Dec 7, 2008 at 00:34, Harry Putnam <reader@newsguy.com> wrote:
>
>> ;;[Tip from Kai G] make loaded files give a message
>> (defadvice load (before debug-log activate)
>> (message "Now loading: %s" (locate-library (ad-get-arg 0))))
>>
>> That will tell exactly what is loading and in what order.
>
> That will skip calls to Fload from C code (defadvice does not work for
> calls from C).
>
>> Maybe there is a better or hopefully simpler way like possibly
>> compiling something directly into the binary when it is compiled.
>
> Not necessarily simpler. If you want to do that on a permanent basis,
> you can add code to Fload to show a message. If it is just once for
> some debugging, you can use the trace facilities of GDB.
google on `emacs Fload' turns of a big mess of nothing
A search on gmane in emacs.help group on `fload' turns up one hit and
its just a gush of output from some kind of compile command.
find /usr/share/emacs -iname '*fload*'
<no hits>
I've been using emacs for 10 yrs now (Probably should not admit
that..) and I've never heard of `Fload'.
So ok, I'll bite.. what is `Fload'?
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Tracing what is loading
2008-12-07 23:09 ` Tracing what is loading Harry Putnam
@ 2008-12-08 0:41 ` Juanma Barranquero
2008-12-08 4:46 ` Harry Putnam
0 siblings, 1 reply; 28+ messages in thread
From: Juanma Barranquero @ 2008-12-08 0:41 UTC (permalink / raw)
To: Harry Putnam; +Cc: help-gnu-emacs
On Sun, Dec 7, 2008 at 23:09, Harry Putnam <reader@newsguy.com> wrote:
> So ok, I'll bite.. what is `Fload'?
Sorry.
Fload is the `load' function. If you search the C code, you'll see
that emacs lisp functions defined in C are called F + name of
function.
What I wanted to say is that the load function is defined in C (and
called Fload in the C code), so if you advise it you won't get
information about the times it is called from other C code (search
Fload in the src/ directory to see where does that happen). But you
can modify Fload and add code to show what it is loading.
Juanma
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Tracing what is loading
2008-12-08 0:41 ` Juanma Barranquero
@ 2008-12-08 4:46 ` Harry Putnam
0 siblings, 0 replies; 28+ messages in thread
From: Harry Putnam @ 2008-12-08 4:46 UTC (permalink / raw)
To: help-gnu-emacs
"Juanma Barranquero" <lekktu@gmail.com> writes:
> Fload is the `load' function. If you search the C code, you'll see
> that emacs lisp functions defined in C are called F + name of
> function.
>
> What I wanted to say is that the load function is defined in C (and
> called Fload in the C code), so if you advise it you won't get
> information about the times it is called from other C code (search
> Fload in the src/ directory to see where does that happen). But you
> can modify Fload and add code to show what it is loading.
I see, so the more I think about this the more it looks pretty
daunting. One thing that should make it easier though is that I don't
really need to track the c code..
What I'm after is to get something into the init process ahead of
everything else. Something that reports what is loading... (except c
code). My aim is to get one jump ahead of the OS developers who think
they need to interfere or `direct' emacs for me. To me it can be
pretty confusing to determine what is happening as emacs starts up.
I'm just trying to see what files get loaded before my own `site-start'
file, So I can either head it off or leave it alone depending on what
it seems to try to do. The `site' in this case is just a single user
machine so no problems dealing with disgruntled users if I do stuff in
site-start.el in order to keep .emacs to some sensible size.
From Dmitrys' post I got the URL:
(info "(elisp) Standard Hooks")
And tracked it into this section where I found this:
(info "(elisp) Init File")
-- Variable: before-init-hook
This normal hook is run, once, just before loading all the init
files (the user's init file, `default.el', and/or `site-start.el').
(The only way to change it with real effect is before dumping
Emacs.)
Its not at all clear what it means to say it is `run' once but it
doesn't really sound like it can be taken advantage of.
If so; Would this involve just a text edit? I'm not at all sure how
to take advantage of a `hook'. I have a few in my init files but they
are blatantly plagerized here or some other group like the gnus
groups.
^ permalink raw reply [flat|nested] 28+ messages in thread
* RE: speedbar question
2008-12-07 17:10 ` Drew Adams
@ 2008-12-08 5:42 ` Maindoor
2008-12-08 7:06 ` Speedbar is messed up Maindoor
2008-12-08 5:46 ` speedbar question Maindoor
1 sibling, 1 reply; 28+ messages in thread
From: Maindoor @ 2008-12-08 5:42 UTC (permalink / raw)
To: help-gnu-emacs, Drew Adams
[-- Attachment #1: Type: text/plain, Size: 2500 bytes --]
I tried emacs -Q but the behavior is the same. and some
version on windows works fine too. I think this is a bug
and I've filed a bug report too.
Thanks.
--- On Sun, 12/7/08, Drew Adams <drew.adams@oracle.com> wrote:
From: Drew Adams <drew.adams@oracle.com>
Subject: RE: speedbar question
To: sanjeevfiles@yahoo.com, help-gnu-emacs@gnu.org
Date: Sunday, December 7, 2008, 10:40 PM
> > > I wanted to use mouse-1 single click to do all i want in
> > > speedbar instead of use mouse-2 ( scroll button ) click.
> > > I couldn't find an easy way so I edited dframe.el and
> > > swapped down-mouse-1 event and mouse-2 event.
> > > Now I got exactly what I want but the problem is
> > > that everytime i move the mouse in speedbar, i always
> > > get some highlight as if i am trying to copy something.
> > > Is there anyway to get around this or is there a way to
> > > solve this correctly ?
> >
> > What Emacs version are you using? In Emacs 22 or later `mouse-1'
should
> > do what you want by default, and the behavior is controlled by option
> > `mouse-1-click-follows-link'.
>
> I'm using 23.0.60.1 which would be the very latest, I'm running
ubuntu
> 8.04. mouse-1 doesn't do anything in speedbar, while clicking the
> button in scroll wheel( mouse-2) or the middle button in thinkpad
> selects the buffer or expands etc. I think its a trivial bug. But by
> customizing i should be able to change it, I'm wondering how.
>
> The reason I'm saying its a trivial bug is because, it is not
> intuitive and because, if you are familiar with dframe.el in speedbar,
> middle button is mapped to dframe-click event and mouse-1 is mapped to
> dframe-double-click event in dframe.el which is kind of
> inverse. Please let me know if you have any ideas on how to customize it.
[Please don't top-post. Use plain text, not HTML, for this mailing list.]
Are you using emacs -Q? If not, perhaps something in your .emacs is
causing the problem. What is your value of `mouse-1-click-follows-link'?
I don't see the problem, with emacs -Q in this build:
In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600)
of 2008-11-24 on LENNART-69DE564
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4) --no-opt --cflags
-Ic:/g/include -fno-crossjumping'
If your version is more recent than that, check Emacs NEWS (`C-h n')
to see if this change was intentional. If it was not, please file an
Emacs bug: `M-x report-emacs-bug'.
[-- Attachment #2: Type: text/html, Size: 3105 bytes --]
^ permalink raw reply [flat|nested] 28+ messages in thread
* RE: speedbar question
2008-12-07 17:10 ` Drew Adams
2008-12-08 5:42 ` Maindoor
@ 2008-12-08 5:46 ` Maindoor
1 sibling, 0 replies; 28+ messages in thread
From: Maindoor @ 2008-12-08 5:46 UTC (permalink / raw)
To: help-gnu-emacs, Drew Adams
[-- Attachment #1: Type: text/plain, Size: 2387 bytes --]
mouse-1-click-follows-link value is 450.
--- On Sun, 12/7/08, Drew Adams <drew.adams@oracle.com> wrote:
From: Drew Adams <drew.adams@oracle.com>
Subject: RE: speedbar question
To: sanjeevfiles@yahoo.com, help-gnu-emacs@gnu.org
Date: Sunday, December 7, 2008, 10:40 PM
> > > I wanted to use mouse-1 single click to do all i want in
> > > speedbar instead of use mouse-2 ( scroll button ) click.
> > > I couldn't find an easy way so I edited dframe.el and
> > > swapped down-mouse-1 event and mouse-2 event.
> > > Now I got exactly what I want but the problem is
> > > that everytime i move the mouse in speedbar, i always
> > > get some highlight as if i am trying to copy something.
> > > Is there anyway to get around this or is there a way to
> > > solve this correctly ?
> >
> > What Emacs version are you using? In Emacs 22 or later `mouse-1'
should
> > do what you want by default, and the behavior is controlled by option
> > `mouse-1-click-follows-link'.
>
> I'm using 23.0.60.1 which would be the very latest, I'm running
ubuntu
> 8.04. mouse-1 doesn't do anything in speedbar, while clicking the
> button in scroll wheel( mouse-2) or the middle button in thinkpad
> selects the buffer or expands etc. I think its a trivial bug. But by
> customizing i should be able to change it, I'm wondering how.
>
> The reason I'm saying its a trivial bug is because, it is not
> intuitive and because, if you are familiar with dframe.el in speedbar,
> middle button is mapped to dframe-click event and mouse-1 is mapped to
> dframe-double-click event in dframe.el which is kind of
> inverse. Please let me know if you have any ideas on how to customize it.
[Please don't top-post. Use plain text, not HTML, for this mailing list.]
Are you using emacs -Q? If not, perhaps something in your .emacs is
causing the problem. What is your value of `mouse-1-click-follows-link'?
I don't see the problem, with emacs -Q in this build:
In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600)
of 2008-11-24 on LENNART-69DE564
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4) --no-opt --cflags
-Ic:/g/include -fno-crossjumping'
If your version is more recent than that, check Emacs NEWS (`C-h n')
to see if this change was intentional. If it was not, please file an
Emacs bug: `M-x report-emacs-bug'.
[-- Attachment #2: Type: text/html, Size: 2981 bytes --]
^ permalink raw reply [flat|nested] 28+ messages in thread
* Speedbar is messed up
2008-12-08 5:42 ` Maindoor
@ 2008-12-08 7:06 ` Maindoor
2008-12-08 7:11 ` Maindoor
0 siblings, 1 reply; 28+ messages in thread
From: Maindoor @ 2008-12-08 7:06 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 3061 bytes --]
Looks like this issue is there for a while: who made it this
way ? Its awful. Thanks to Drew Adams for pointing me
in the right direction.
http://www.nabble.com/New-speedbar-version-td1003419.html
Some one fix this. I tried playing with the
mouse-1-click-follows-link variable, still nothing.
sanjeev.
--- On Mon, 12/8/08, Maindoor <sanjeevfiles@yahoo.com> wrote:
From: Maindoor <sanjeevfiles@yahoo.com>
Subject: RE: speedbar question
To: help-gnu-emacs@gnu.org, "Drew Adams" <drew.adams@oracle.com>
Date: Monday, December 8, 2008, 11:12 AM
I tried emacs -Q but the behavior is the same. and some
version on windows works fine too. I think this is a bug
and I've filed a bug report too.
Thanks.
--- On Sun, 12/7/08, Drew Adams <drew.adams@oracle.com> wrote:
From: Drew Adams <drew.adams@oracle.com>
Subject: RE: speedbar question
To: sanjeevfiles@yahoo.com, help-gnu-emacs@gnu.org
Date: Sunday, December 7, 2008, 10:40 PM
> > > I wanted to use mouse-1 single click to do all i want in
> > > speedbar instead of use mouse-2 ( scroll button ) click.
> > > I couldn't find an easy way so I edited dframe.el and
> > > swapped down-mouse-1 event and mouse-2 event.
> > > Now I got exactly
what I want but the problem is
> > > that everytime i move the mouse in speedbar, i always
> > > get some highlight as if i am trying to copy something.
> > > Is there anyway to get around this or is there a way to
> > > solve this correctly ?
> >
> > What Emacs version are you using? In Emacs 22 or later `mouse-1'
should
> > do what you want by default, and the behavior is controlled by option
> > `mouse-1-click-follows-link'.
>
> I'm using 23.0.60.1 which would be the very latest, I'm running
ubuntu
> 8.04. mouse-1 doesn't do anything in speedbar, while clicking the
> button in scroll wheel( mouse-2) or the middle button in thinkpad
> selects the buffer or expands etc. I think its a trivial bug. But by
> customizing i should be able to change it, I'm wondering how.
>
> The reason I'm saying its a trivial
bug is because, it is not
> intuitive and because, if you are familiar with dframe.el in speedbar,
> middle button is mapped to dframe-click event and mouse-1 is mapped to
> dframe-double-click event in dframe.el which is kind of
> inverse. Please let me know if you have any ideas on how to customize it.
[Please don't top-post. Use plain text, not HTML, for this mailing list.]
Are you using emacs -Q? If not, perhaps something in your .emacs is
causing the problem. What is your value of `mouse-1-click-follows-link'?
I don't see the problem, with emacs -Q in this build:
In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600)
of 2008-11-24 on LENNART-69DE564
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4) --no-opt --cflags
-Ic:/g/include -fno-crossjumping'
If your version is more recent than that, check Emacs NEWS (`C-h
n')
to see if this change was intentional. If it was not, please file an
Emacs bug: `M-x report-emacs-bug'.
[-- Attachment #2: Type: text/html, Size: 4217 bytes --]
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Speedbar is messed up
2008-12-08 7:06 ` Speedbar is messed up Maindoor
@ 2008-12-08 7:11 ` Maindoor
0 siblings, 0 replies; 28+ messages in thread
From: Maindoor @ 2008-12-08 7:11 UTC (permalink / raw)
To: help-gnu-emacs; +Cc: cyd, romain, dev.null
[-- Attachment #1: Type: text/plain, Size: 3332 bytes --]
Including some folks who seemed to have worked on this:
--- On Mon, 12/8/08, Maindoor <sanjeevfiles@yahoo.com> wrote:
From: Maindoor <sanjeevfiles@yahoo.com>
Subject: Speedbar is messed up
To: help-gnu-emacs@gnu.org
Date: Monday, December 8, 2008, 12:36 PM
Looks like this issue is there for a while: who made it this
way ? Its awful. Thanks to Drew Adams for pointing me
in the right direction.
http://www.nabble.com/New-speedbar-version-td1003419.html
Some one fix this. I tried playing with the
mouse-1-click-follows-link variable, still nothing.
sanjeev.
--- On Mon, 12/8/08, Maindoor <sanjeevfiles@yahoo.com> wrote:
From: Maindoor <sanjeevfiles@yahoo.com>
Subject: RE: speedbar question
To: help-gnu-emacs@gnu.org, "Drew Adams" <drew.adams@oracle.com>
Date: Monday, December 8, 2008, 11:12 AM
I tried emacs -Q but the behavior is the same. and some
version on windows works fine too. I think this is a bug
and I've filed a bug report too.
Thanks.
--- On Sun, 12/7/08, Drew Adams <drew.adams@oracle.com> wrote:
From: Drew Adams <drew.adams@oracle.com>
Subject: RE: speedbar question
To: sanjeevfiles@yahoo.com, help-gnu-emacs@gnu.org
Date: Sunday, December 7, 2008, 10:40 PM
> > > I wanted to use mouse-1 single click to do all i want in
> > > speedbar instead of use mouse-2 ( scroll button ) click.
> > > I couldn't find an easy way so I edited dframe.el and
> > >
swapped down-mouse-1 event and mouse-2 event.
> > > Now I got exactly
what I want but the problem is
> > > that everytime i move the mouse in speedbar, i always
> > > get some highlight as if i am trying to copy something.
> > > Is there anyway to get around this or is there a way to
> > > solve this correctly ?
> >
> > What Emacs version are you using? In Emacs 22 or later `mouse-1'
should
> > do what you want by default, and the behavior is controlled by option
> > `mouse-1-click-follows-link'.
>
> I'm using 23.0.60.1 which would be the very latest, I'm running
ubuntu
> 8.04. mouse-1 doesn't do anything in speedbar, while clicking the
> button in scroll wheel( mouse-2) or the middle button in thinkpad
> selects the buffer or expands etc. I think its a trivial bug. But by
> customizing i should be able
to change it, I'm wondering how.
>
> The reason I'm saying its a trivial
bug is because, it is not
> intuitive and because, if you are familiar with dframe.el in speedbar,
> middle button is mapped to dframe-click event and mouse-1 is mapped to
> dframe-double-click event in dframe.el which is kind of
> inverse. Please let me know if you have any ideas on how to customize it.
[Please don't top-post. Use plain text, not HTML, for this mailing list.]
Are you using emacs -Q? If not, perhaps something in your .emacs is
causing the problem. What is your value of `mouse-1-click-follows-link'?
I don't see the problem, with emacs -Q in this build:
In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600)
of 2008-11-24 on LENNART-69DE564
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4) --no-opt --cflags
-Ic:/g/include
-fno-crossjumping'
If your version is more recent than that, check Emacs NEWS (`C-h
n')
to see if this change was intentional. If it was not, please file an
Emacs bug: `M-x report-emacs-bug'.
[-- Attachment #2: Type: text/html, Size: 4985 bytes --]
^ permalink raw reply [flat|nested] 28+ messages in thread
end of thread, other threads:[~2008-12-08 7:11 UTC | newest]
Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-07 0:34 Tracing what is loading Harry Putnam
2008-12-07 9:58 ` Juanma Barranquero
2008-12-07 11:22 ` speedbar question Maindoor
2008-12-07 15:21 ` Drew Adams
2008-12-07 15:34 ` Maindoor
2008-12-07 17:10 ` Drew Adams
2008-12-08 5:42 ` Maindoor
2008-12-08 7:06 ` Speedbar is messed up Maindoor
2008-12-08 7:11 ` Maindoor
2008-12-08 5:46 ` speedbar question Maindoor
2008-12-07 23:09 ` Tracing what is loading Harry Putnam
2008-12-08 0:41 ` Juanma Barranquero
2008-12-08 4:46 ` Harry Putnam
-- strict thread matches above, loose matches on Subject: below --
2007-10-10 13:30 Speedbar question Ke Lu
2005-02-11 20:39 Javier Oviedo
2005-02-12 11:09 ` Eli Zaretskii
[not found] ` <mailman.1861.1108208577.2841.help-gnu-emacs@gnu.org>
2005-02-14 15:30 ` Javier Oviedo
2005-02-14 21:33 ` Eric Ludlam
2005-02-15 18:34 ` Javier Oviedo
2005-02-15 20:54 ` Javier Oviedo
2003-03-20 16:57 John Wilde
2003-03-20 19:39 ` Eric Ludlam
2003-03-21 16:03 ` John Wilde
2003-03-24 14:00 ` Eric Ludlam
2003-03-25 1:03 ` John Wilde
2003-03-25 10:45 ` Kai Großjohann
2003-03-25 15:14 ` Kevin Rodgers
2003-03-25 19:40 ` John Wilde
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).