Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug on constant C-M-%

2 views
Skip to first unread message

Eivind Eklund

unread,
Nov 22, 1995, 3:00:00 AM11/22/95
to
In GNU Emacs 19.29.2 (mips-sgi-irix5.3, X toolkit) of Tue Oct 31 1995 on odin
configured using --with-x-toolkit=lucid

This extract from my .emacs file should demonstrate the bug. It is a
reference to the constant C-M-% not being correct, which make it close
to impossible to set that key. Making a macro using global-set-key
convert the key index to that constant, which make even that
fail. (Example follows - the global-set-key with the constants work,
for the indicated versions, while all the ones that are commented out
do NOT work.)

;; EMACS is BUGGED! This key can only be set interactively, or by
;; specifying the event number (which is real hard to get; it is
;; almost always translated into a 'pretty description' before being
;; displayed) (Only the uncommented of the below work)

;(global-set-key [C-M-%] 'query-replace-regexp)
;(global-set-key [ESC C-%] 'query-replace-regexp)
;(global-set-key [ESC 5] 'query-replace-regexp)
;(global-set-key [27 C-%] 'query-replace-regexp)
;(global-set-key [27 5] 'query-replace-regexp)
;(read-kbd-macro "<<global-set-key>> C-M-% query-replace-regexp RET")

; The constant below (which is C-M-%) was found by using
; global-unset-key interactively, then repeat-complex-command.
; key-description calls this constant C-M-% (which is what I pressed).
; Using C-M-% and this constant in a LISP program yield different
; results.

(global-set-key [-4194267] 'query-replace-regexp) ; For 19.28
(global-set-key [-67108827] 'query-replace-regexp) ; For 19.29

0 new messages