[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: C-m mapping fails occasionally
From: |
Matt Knowles |
Subject: |
RE: C-m mapping fails occasionally |
Date: |
Wed, 29 May 2002 12:58:04 -0500 |
emacs-version:
GNU Emacs 18.57.1 of Mon Apr 22 1991 on server (hpux)
emacs invoked by:
emacs -nw
in *scratch* buffer:
test<Return>
<Return> /* 40 or 41 times */
at this point, my mapping fails.
(key-binding "\C-m")
mat-newline
(mapcar (lambda (map) (cons map (lookup-key map "\C-m")))
(current-active-maps))
(mini-buffer output):
Symbol's function definition is void: lambda
M-xdescribe-key<Return><Return>
Invalid function: #<EMACS BUG: INVALID DATATYPE (#o37777777743) Save your
buffers immediately and please report this bug>
relevant lines from .emacs file:
(fset 'mat-newline
"address@hidden")
(global-unset-key "\C-m")
(global-set-key "\C-m" 'mat-newline)
The problem exists when these are the only contents of my .emacs file.
If there is any more information I can provide, please ask.
Matt
-----Original Message-----
From: Richard Stallman [mailto:address@hidden
Sent: Wednesday, May 29, 2002 11:26 AM
To: address@hidden
Cc: address@hidden; address@hidden
Subject: Re: C-m mapping fails occasionally
Yeah, the whole point was that my re-mapping would only work for a
while,
then would quit working.
It looks like the global binding that you set up still exists.
How about evaluating
(key-binding "\C-m")
which will show which binding Emacs actually sees for C-m?
Also try
(mapcar (lambda (map) (cons map (lookup-key map "\C-m")))
(current-active-maps))