unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* speedbar: how can I open a file with the keyboard ?
@ 2007-12-18 15:00 Markus Grunwald
  2007-12-18 20:02 ` Stephen Berman
       [not found] ` <mailman.5173.1198008386.18990.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 11+ messages in thread
From: Markus Grunwald @ 2007-12-18 15:00 UTC (permalink / raw)
  To: help-gnu-emacs

Hello,

seems like a dumb question to me, but: How can I open a file using
speedbar with the keyboard ? With xemacs, <enter> worked fine but in 
emacs "RET runs the command View-scroll-line-forward". Hmmm.

I read C-h b but can find nothing. Is emacs speedbar only for mouse users ???

Thanks for your help,

Markus

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: speedbar: how can I open a file with the keyboard ?
  2007-12-18 15:00 speedbar: how can I open a file with the keyboard ? Markus Grunwald
@ 2007-12-18 20:02 ` Stephen Berman
       [not found] ` <mailman.5173.1198008386.18990.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 11+ messages in thread
From: Stephen Berman @ 2007-12-18 20:02 UTC (permalink / raw)
  To: help-gnu-emacs

On 18 Dec 2007 15:00:53 GMT Markus Grunwald <markus.grunwald@gmx.de> wrote:

> seems like a dumb question to me, but: How can I open a file using
> speedbar with the keyboard ? With xemacs, <enter> worked fine but in 
> emacs "RET runs the command View-scroll-line-forward". Hmmm.

For me RET in speedbar runs the command speedbar-edit-line and it opens
files.  This is both with the speedbar that comes with Emacs 22.1 and
with the speedbar from CVS CEDET.  What Emacs and what speedbar are you
using?

Steve Berman

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: speedbar: how can I open a file with the keyboard ?
       [not found] ` <mailman.5173.1198008386.18990.help-gnu-emacs@gnu.org>
@ 2007-12-19  8:43   ` Markus Grunwald
  2007-12-19 10:07     ` Nick Roberts
                       ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Markus Grunwald @ 2007-12-19  8:43 UTC (permalink / raw)
  To: help-gnu-emacs

On Tue, 18 Dec 2007 21:02:42 +0100, Stephen Berman wrote:

> On 18 Dec 2007 15:00:53 GMT Markus Grunwald <markus.grunwald@gmx.de> wrote:
> 
>> seems like a dumb question to me, but: How can I open a file using
>> speedbar with the keyboard ? With xemacs, <enter> worked fine but in 
>> emacs "RET runs the command View-scroll-line-forward". Hmmm.
> 
> For me RET in speedbar runs the command speedbar-edit-line and it opens
> files.  This is both with the speedbar that comes with Emacs 22.1 and
> with the speedbar from CVS CEDET.  What Emacs and what speedbar are you
> using?

That't what I'm using:

> dpkg -l emacs21 \*speedbar\* | egrep '^ii'
ii  emacs21        21.4a+1-3      The GNU Emacs editor
ii  speedbar       1.0pre3-6      Everything browser, or Dired on steroids

After I read your message I tried to correct some keybindings in the
speedbar-mode-hook, but it seems it is not called:

(add-hook 'speedbar-load-hook
 '(lambda ()
    (ska-speedbar-keys))
    (message "==================== speedbar-mode-hook ====================")
)

This is my *messages* buffer after starting speedbar
with speedbar-get-focus:

Loading speedbar...done
Loading view...done
Type C-h for help, h for commands, q to quit.

I tried "speedbar-load-hook" as well but it doesn't work. All the other
hooks which are configured in the same file get called. I have no Idea
what's going on...

I hope you can help. I am using the keyboard a lot ...

Thanks,
Markus

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: speedbar: how can I open a file with the keyboard ?
  2007-12-19  8:43   ` Markus Grunwald
@ 2007-12-19 10:07     ` Nick Roberts
  2007-12-19 10:13     ` Markus Grunwald
       [not found]     ` <mailman.5206.1198058886.18990.help-gnu-emacs@gnu.org>
  2 siblings, 0 replies; 11+ messages in thread
From: Nick Roberts @ 2007-12-19 10:07 UTC (permalink / raw)
  To: Markus Grunwald; +Cc: help-gnu-emacs

 > > For me RET in speedbar runs the command speedbar-edit-line and it opens
 > > files.  This is both with the speedbar that comes with Emacs 22.1 and
 > > with the speedbar from CVS CEDET.  What Emacs and what speedbar are you
 > > using?
 > 
 > That't what I'm using:
 > 
 > > dpkg -l emacs21 \*speedbar\* | egrep '^ii'
 > ii  emacs21        21.4a+1-3      The GNU Emacs editor
 > ii  speedbar       1.0pre3-6      Everything browser, or Dired on steroids

I don't think so.  Stephen is using Emacs 22.1 while you're using Emacs 21.4.
Also you don't appear to be using either the speedbar that comes with Emacs
or the speedbar from CVS CEDET.  I suggest that you upgrade, no-one will be
interested in debugging an old version of Emacs.

-- 
Nick                                           http://www.inet.net.nz/~nickrob

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: speedbar: how can I open a file with the keyboard ?
  2007-12-19  8:43   ` Markus Grunwald
  2007-12-19 10:07     ` Nick Roberts
@ 2007-12-19 10:13     ` Markus Grunwald
  2007-12-19 13:14       ` Stephen Berman
       [not found]       ` <mailman.5216.1198070134.18990.help-gnu-emacs@gnu.org>
       [not found]     ` <mailman.5206.1198058886.18990.help-gnu-emacs@gnu.org>
  2 siblings, 2 replies; 11+ messages in thread
From: Markus Grunwald @ 2007-12-19 10:13 UTC (permalink / raw)
  To: help-gnu-emacs

On Wed, 19 Dec 2007 08:43:50 +0000, Markus Grunwald wrote:

> After I read your message I tried to correct some keybindings in the
> speedbar-mode-hook, but it seems it is not called:

It seems I did something wrong: the hooks are called now, but the keymap
stays the same :( This is what I do:


;;{{{ Speedbar
;;------------
(defun ska-speedbar-keys ( map )
  "Set keybindings in major navigation tool Speedbar."
  (define-key map '[(g)]    'speedbar-update-contents)
  (define-key map '[(kbd "SPC")]    'ska-speedbar-toggle-expand)
  )
;;}}}

(add-hook 'speedbar-mode-hook
 '(lambda()
  (message "==================== speedbar-mode-hook start ====================")
  ( ska-speedbar-keys speedbar-key-map )
  (message "==================== speedbar-mode-hook end ====================")
))

;; Maybe the wrong hook ???
(add-hook 'speedbar-reconfigure-keymaps-hook
  '(lambda()
  (message "==================== speedbar-reconfigure-keymaps-hook start ====================")
  ( ska-speedbar-keys speedbar-key-map )
  (message "==================== speedbar-reconfigure-keymaps-hook end ====================")
))

When I start speedbar, this is what I get in the *messages*:

Loading speedbar...done
Loading view...done
Type C-h for help, h for commands, q to quit.
==================== speedbar-mode-hook start ====================
==================== speedbar-mode-hook end ====================
==================== speedbar-reconfigure-keymaps-hook start ====================
==================== speedbar-reconfigure-keymaps-hook end ====================
==================== speedbar-reconfigure-keymaps-hook start ====================
==================== speedbar-reconfigure-keymaps-hook end ====================


So the hooks are called. What's with my keys ? I call C-h c g and C-h c
space from the speedbar buffer:

g runs the command View-goto-line
SPC runs the command View-scroll-page-forward

ARGH. I have no Idea, why speedbar behaves so differently compared to all
the other modes I have customized...

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: speedbar: how can I open a file with the keyboard ?
       [not found]     ` <mailman.5206.1198058886.18990.help-gnu-emacs@gnu.org>
@ 2007-12-19 12:26       ` Markus Grunwald
  2007-12-19 13:57         ` David Kastrup
  0 siblings, 1 reply; 11+ messages in thread
From: Markus Grunwald @ 2007-12-19 12:26 UTC (permalink / raw)
  To: help-gnu-emacs

On Wed, 19 Dec 2007 23:07:39 +1300, Nick Roberts wrote:

>  > That't what I'm using:
>  > 
>  > > dpkg -l emacs21 \*speedbar\* | egrep '^ii'
>  > ii  emacs21        21.4a+1-3      The GNU Emacs editor
>  > ii  speedbar       1.0pre3-6      Everything browser, or Dired on steroids
> 
> I don't think so.  Stephen is using Emacs 22.1 while you're using Emacs
> 21.4. [...]
> I suggest that you upgrade, no-one will be interested in
> debugging an old version of Emacs.

Ah. So debian stable users, you're on your own. :(

> Also you don't appear to be using either the speedbar that comes with Emacs
> or the speedbar from CVS CEDET. 

I can't see why. I didn't install anything but the debian packages. Is
there a way to check which speedbar.el (or other) is used by emacs ?

cu
Markus

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: speedbar: how can I open a file with the keyboard ?
  2007-12-19 10:13     ` Markus Grunwald
@ 2007-12-19 13:14       ` Stephen Berman
       [not found]       ` <mailman.5216.1198070134.18990.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 11+ messages in thread
From: Stephen Berman @ 2007-12-19 13:14 UTC (permalink / raw)
  To: help-gnu-emacs

On 19 Dec 2007 10:13:10 GMT Markus Grunwald <markus.grunwald@gmx.de> wrote:

> When I start speedbar, this is what I get in the *messages*:
>
> Loading speedbar...done
> Loading view...done
> Type C-h for help, h for commands, q to quit.
> ==================== speedbar-mode-hook start ====================
> ==================== speedbar-mode-hook end ====================
> ==================== speedbar-reconfigure-keymaps-hook start ====================
> ==================== speedbar-reconfigure-keymaps-hook end ====================
> ==================== speedbar-reconfigure-keymaps-hook start ====================
> ==================== speedbar-reconfigure-keymaps-hook end ====================
>
>
> So the hooks are called. What's with my keys ? I call C-h c g and C-h c
> space from the speedbar buffer:
>
> g runs the command View-goto-line
> SPC runs the command View-scroll-page-forward
>
> ARGH. I have no Idea, why speedbar behaves so differently compared to all
> the other modes I have customized...

The messages show the view library being loaded after speedbar, perhaps
something there is overriding your key bindings.  Does this happen with
emacs -q --no-site-file ?  If not, then something in your or your site's
initializations is responsible.  In any case, I second Nick Roberts'
advice to update to Emacs 22.1 and use its speedbar, which should solve
this issue if it is not due to your initializations.

Steve Berman

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: speedbar: how can I open a file with the keyboard ?
  2007-12-19 12:26       ` Markus Grunwald
@ 2007-12-19 13:57         ` David Kastrup
  0 siblings, 0 replies; 11+ messages in thread
From: David Kastrup @ 2007-12-19 13:57 UTC (permalink / raw)
  To: help-gnu-emacs

Markus Grunwald <markus.grunwald@gmx.de> writes:

> On Wed, 19 Dec 2007 23:07:39 +1300, Nick Roberts wrote:
>
>>  > That't what I'm using:
>>  > 
>>  > > dpkg -l emacs21 \*speedbar\* | egrep '^ii'
>>  > ii  emacs21        21.4a+1-3      The GNU Emacs editor
>>  > ii  speedbar       1.0pre3-6      Everything browser, or Dired on steroids
>> 
>> I don't think so.  Stephen is using Emacs 22.1 while you're using Emacs
>> 21.4. [...]
>> I suggest that you upgrade, no-one will be interested in
>> debugging an old version of Emacs.
>
> Ah. So debian stable users, you're on your own. :(

Uh, what is there to be surprised about?  If you stay with one version
of software, it will stay as it is.  How could it do anything else?

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

^ permalink raw reply	[flat|nested] 11+ messages in thread

* solved: Re: speedbar: how can I open a file with the keyboard ?
       [not found]       ` <mailman.5216.1198070134.18990.help-gnu-emacs@gnu.org>
@ 2007-12-19 15:54         ` Markus Grunwald
  2007-12-19 19:38           ` Stephen Berman
  2007-12-24 13:44           ` cmr.Pent
  0 siblings, 2 replies; 11+ messages in thread
From: Markus Grunwald @ 2007-12-19 15:54 UTC (permalink / raw)
  To: help-gnu-emacs

Hello,

> The messages show the view library being loaded after speedbar, perhaps
> something there is overriding your key bindings.

That was it. I used "view-read-only == 1" so that the speedbar buffer was
in "view" mode. When throwing that out, it behaves as usual.

Thanks for your help !

I won't switch to emacs22 before debian lenny becomes stable. I have to
support a stable environment here and don't want to mix up things. So I'll
have to live with emacs21 which is good enough for me.

IMHO my problem was not emacs21 related. As a developer, I can completely
understand that you don't want to hassle with "old" software. As an admin
for a few servers, I see the need for a stable environment. I just hope,
both goals can live together...

Thanks again,

Markus

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: solved: Re: speedbar: how can I open a file with the keyboard ?
  2007-12-19 15:54         ` solved: " Markus Grunwald
@ 2007-12-19 19:38           ` Stephen Berman
  2007-12-24 13:44           ` cmr.Pent
  1 sibling, 0 replies; 11+ messages in thread
From: Stephen Berman @ 2007-12-19 19:38 UTC (permalink / raw)
  To: help-gnu-emacs

On 19 Dec 2007 15:54:21 GMT Markus Grunwald <markus.grunwald@gmx.de> wrote:

> Hello,
>
>> The messages show the view library being loaded after speedbar, perhaps
>> something there is overriding your key bindings.
>
> That was it. I used "view-read-only == 1" so that the speedbar buffer was
> in "view" mode. When throwing that out, it behaves as usual.
>
> Thanks for your help !

I'm glad it helped you.

> I won't switch to emacs22 before debian lenny becomes stable. I have to
> support a stable environment here and don't want to mix up things. So I'll
> have to live with emacs21 which is good enough for me.

Your reasoning implies that you install no software that is not packaged
for Debian stable.  If so, then it is consistent not to install Emacs
22.  But if you do have any non-Debian-stable software in your
environment, then installing Emacs 22 would be no different; after all,
it was deemed by its developers stable enough to be released (and by the
way, a number of bugs in Emacs 21 were fixed in Emacs 22).

Steve Berman

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: solved: Re: speedbar: how can I open a file with the keyboard ?
  2007-12-19 15:54         ` solved: " Markus Grunwald
  2007-12-19 19:38           ` Stephen Berman
@ 2007-12-24 13:44           ` cmr.Pent
  1 sibling, 0 replies; 11+ messages in thread
From: cmr.Pent @ 2007-12-24 13:44 UTC (permalink / raw)
  To: help-gnu-emacs

On 19 дек, 18:54, Markus Grunwald <markus.grunw...@gmx.de> wrote:
> I won't switch to emacs22 before debian lenny becomes stable. I have to
> support a stable environment here and don't want to mix up things. So I'll
> have to live with emacs21 which is good enough for me.

Well, there are Backports repositories for Etch, and they have
Emacs22. Consider using one of the Backports repositories. I did use
it for some time, until I switched to Testing.

By the way, Testing actually is sometimes more stable than Etch
(because many bugfixes are not backported to Etch).

Andrey

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2007-12-24 13:44 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-18 15:00 speedbar: how can I open a file with the keyboard ? Markus Grunwald
2007-12-18 20:02 ` Stephen Berman
     [not found] ` <mailman.5173.1198008386.18990.help-gnu-emacs@gnu.org>
2007-12-19  8:43   ` Markus Grunwald
2007-12-19 10:07     ` Nick Roberts
2007-12-19 10:13     ` Markus Grunwald
2007-12-19 13:14       ` Stephen Berman
     [not found]       ` <mailman.5216.1198070134.18990.help-gnu-emacs@gnu.org>
2007-12-19 15:54         ` solved: " Markus Grunwald
2007-12-19 19:38           ` Stephen Berman
2007-12-24 13:44           ` cmr.Pent
     [not found]     ` <mailman.5206.1198058886.18990.help-gnu-emacs@gnu.org>
2007-12-19 12:26       ` Markus Grunwald
2007-12-19 13:57         ` David Kastrup

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).