unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* C-i and tab problem persists in 21.2
@ 2002-12-09 14:06 Boris H.
  2002-12-09 15:01 ` Kai Großjohann
  0 siblings, 1 reply; 2+ messages in thread
From: Boris H. @ 2002-12-09 14:06 UTC (permalink / raw)


Now I've installed Emacs 21.2 from a RH rpm (installation from tarball 
failed). Still Emacs can't distinguish C-i from tab:

(progn
(global-set-key [tab] (global-key-binding "\C-i"))
(global-set-key "\C-i" 'ispell-word))

When I press C-h k C-i, Emacs tells "TAB runs the command lisp-indent-line". 
The above code with local-set-key does not work either.

Also, I still haven't found out how to make the left mouse button act like 
the middle one in the speedbar (without changing buttons globally).

Boris
b0ris At gmx Dot de

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

* Re: C-i and tab problem persists in 21.2
  2002-12-09 14:06 C-i and tab problem persists in 21.2 Boris H.
@ 2002-12-09 15:01 ` Kai Großjohann
  0 siblings, 0 replies; 2+ messages in thread
From: Kai Großjohann @ 2002-12-09 15:01 UTC (permalink / raw)


"Boris H." <nosp@m.de> writes:

> (progn
> (global-set-key [tab] (global-key-binding "\C-i"))
> (global-set-key "\C-i" 'ispell-word))
>
> When I press C-h k C-i, Emacs tells "TAB runs the command lisp-indent-line". 

That's because the initial buffer is *scratch* which is in a special
mode.  What happens when you C-x b foo RET to create a new buffer
foo?  This should be in fundamental mode.

If this was it, then you just need to repeat the global-set-key for
C-i for all modes.  For example:

(define-key lisp-interaction-mode-map "\C-i" 'ispell-word)

> The above code with local-set-key does not work either.

It would be local to the wrong buffer, if executed from .emacs, I
guess.

> Also, I still haven't found out how to make the left mouse button act like 
> the middle one in the speedbar (without changing buttons globally).

This is a little involved...  Hm.

-- 
~/.signature is: umop ap!sdn    (Frank Nobis)

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

end of thread, other threads:[~2002-12-09 15:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-09 14:06 C-i and tab problem persists in 21.2 Boris H.
2002-12-09 15:01 ` Kai Großjohann

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