all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Markus Grunwald <markus.grunwald@gmx.de>
To: help-gnu-emacs@gnu.org
Subject: Re: speedbar: how can I open a file with the keyboard ?
Date: 19 Dec 2007 10:13:10 GMT	[thread overview]
Message-ID: <4768eeb6$0$13113$9b4e6d93@newsspool2.arcor-online.net> (raw)
In-Reply-To: 4768d9c5$0$13113$9b4e6d93@newsspool2.arcor-online.net

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

  parent reply	other threads:[~2007-12-19 10:13 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='4768eeb6$0$13113$9b4e6d93@newsspool2.arcor-online.net' \
    --to=markus.grunwald@gmx.de \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.