[lug] Emacs won't type "["

Tkil tkil at scrye.com
Fri Jun 15 14:59:47 MDT 2001


fwiw, it looks like you're confusing the function-key method of
binding keys, with the string methods.  in xemacs, you can say either:

	(define-key global-map "\^X\^I" 'command-1)
	(define-key global-map [(control x) (control i)] 'command-2)

more examples from info:

     ;;;  Bind `my-command' to <f1>
     (global-set-key 'f1 'my-command)
     
     ;;;  Bind `my-command' to Shift-f1
     (global-set-key '(shift f1) 'my-command)
     
     ;;; Bind `my-command' to C-c Shift-f1
     (global-set-key '[(control c) (shift f1)] 'my-command)
     
     ;;; Bind `my-command' to the middle mouse button.
     (global-set-key 'button2 'my-command)
     
     ;;; Bind `my-command' to <META> <CTL> <Right Mouse Button>
     ;;; in the keymap that is in force when you are running `dired'.
     (define-key dired-mode-map '(meta control button3) 'my-command)

it looks like you're putting some of these in actual quotes somewhere,
and that's a bad thing (unless you're pretty carefula bout it).

note that gnu emacs (which is also the basis for ntemacs) might differ
from xemacs on this score.

t.



More information about the LUG mailing list