all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

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.