* RE: C-m mapping fails occasionally
@ 2002-05-27 13:51 Matt Knowles
2002-05-27 19:49 ` Andreas Schwab
2002-05-28 5:15 ` Richard Stallman
0 siblings, 2 replies; 13+ messages in thread
From: Matt Knowles @ 2002-05-27 13:51 UTC (permalink / raw)
Cc: emacs-devel
(lookup-key (current-local-map) "\C-m")
nil
(lookup-key (global-map) "\C-m")
*mini-buffer message:
Symbol's function definition is void: global-map
Hope this helps.
Matt
-----Original Message-----
From: Richard Stallman [mailto:rms@gnu.org]
Sent: Friday, May 24, 2002 4:12 PM
To: MattK@LacksValley.com
Cc: emacs-devel@gnu.org
Subject: Re: C-m mapping fails occasionally
I'm not sure how to evaluate (lookup-key ....),
Type the expression in *scratch* and then type C-j.
but when I attempted to
M-x
describe-key C-m I got the following message, perhaps it will be
helpful.
#<EMACS BUG: INVALID DATATYPE (#o37777777743) Save your buffers
immediately
and please report this bug>
That is really bizarre. It suggests that some data is not merely
wrong for where it is, but totally wrong for Emacs Lisp.
Can someone on emacs-devel work with MattK to investigate this with
GDB?
From: Matt Knowles <MattK@LacksValley.com>
To: "'rms@gnu.org'" <rms@gnu.org>
Subject: RE: C-m mapping fails occasionally
Date: Wed, 22 May 2002 17:35:00 -0500
Forgive my ignorance, and might I also say it's an honor to corresponde with
you...
I'm not sure how to evaluate (lookup-key ....), but when I attempted to M-x
describe-key C-m I got the following message, perhaps it will be helpful.
#<EMACS BUG: INVALID DATATYPE (#o37777777743) Save your buffers immediately
and please report this bug>
If you still would like the results of "evaluate (lookup-key...", please
send me instructions on how to do this directly while inside emacs.
Thanks for your response,
Matt Knowles
-----Original Message-----
From: Richard Stallman [mailto:rms@gnu.org]
Sent: Wednesday, May 22, 2002 5:28 PM
To: MattK@LacksValley.com
Cc: bug-gnu-emacs@gnu.org
Subject: Re: C-m mapping fails occasionally
Occasionally, C-m quits doing anything and I am forced to exit emacs and
run
it again to get C-m to work again.
When this happens, would you please evaluate
(lookup-key (global-map "\C-m")
(lookup-key (current-local-map) "\C-m")
and see if the binding of C-m is still as you set it up?
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: C-m mapping fails occasionally
2002-05-27 13:51 C-m mapping fails occasionally Matt Knowles
@ 2002-05-27 19:49 ` Andreas Schwab
2002-05-27 21:16 ` Kim F. Storm
2002-05-28 5:15 ` Richard Stallman
1 sibling, 1 reply; 13+ messages in thread
From: Andreas Schwab @ 2002-05-27 19:49 UTC (permalink / raw)
Cc: 'rms@gnu.org', emacs-devel
Matt Knowles <MattK@LacksValley.com> writes:
|> (lookup-key (current-local-map) "\C-m")
|> nil
|>
|> (lookup-key (global-map) "\C-m")
That should be
(lookup-key global-map "\C-m")
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE GmbH, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: C-m mapping fails occasionally
2002-05-27 19:49 ` Andreas Schwab
@ 2002-05-27 21:16 ` Kim F. Storm
0 siblings, 0 replies; 13+ messages in thread
From: Kim F. Storm @ 2002-05-27 21:16 UTC (permalink / raw)
Cc: emacs-devel
Matt sent me this:
> (lookup-key global-map "\C-m")
> mat-newline
>
> Anything else I can do to help? Are y'all able to recreate the problem?
> When I open a *scratch* buffer, type something on the first line to make
> indent-relative-maybe not automatically indent some (strange behavior it
> seems, to indent when the previous line is blank) and hold down the <Return>
> key, the problem appears before I scroll off the page...
>
> Matt
Matt,
This isn't the default global binding for C-m, so it is
no wonder it is hard to reproduce.
Can you look in your .emacs file for a line like this:
(define-key global-map ... 'mat-newline)
or
(global-set-key ... 'mat-newline)
Then uncomment that line (placing a ; at the beginning of the line)
and restart your emacs.
++kfs
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: C-m mapping fails occasionally
2002-05-27 13:51 C-m mapping fails occasionally Matt Knowles
2002-05-27 19:49 ` Andreas Schwab
@ 2002-05-28 5:15 ` Richard Stallman
1 sibling, 0 replies; 13+ messages in thread
From: Richard Stallman @ 2002-05-28 5:15 UTC (permalink / raw)
Cc: MattK, emacs-devel
(lookup-key (global-map) "\C-m")
*mini-buffer message:
Symbol's function definition is void: global-map
Sorry, the function is current-global-map.
^ permalink raw reply [flat|nested] 13+ messages in thread
* RE: C-m mapping fails occasionally
@ 2002-05-29 17:58 Matt Knowles
2002-05-31 7:04 ` Richard Stallman
0 siblings, 1 reply; 13+ messages in thread
From: Matt Knowles @ 2002-05-29 17:58 UTC (permalink / raw)
Cc: emacs-devel
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
"^[xnewline^M^[xindent-relative-maybe^M.^A^@^S.^B^[xuntabify^M^D")
(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:rms@gnu.org]
Sent: Wednesday, May 29, 2002 11:26 AM
To: MattK@LacksValley.com
Cc: MattK@LacksValley.com; emacs-devel@gnu.org
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))
^ permalink raw reply [flat|nested] 13+ messages in thread
* RE: C-m mapping fails occasionally
@ 2002-05-28 14:31 Matt Knowles
2002-05-29 16:26 ` Richard Stallman
0 siblings, 1 reply; 13+ messages in thread
From: Matt Knowles @ 2002-05-28 14:31 UTC (permalink / raw)
Cc: emacs-devel
Yeah, the whole point was that my re-mapping would only work for a while,
then would quit working.
(fset 'mat-newline
"^[xnewline^M^[xindent-relative-maybe^M.^A^@^S.^B^[xuntabify^M^D")
I will also be filing a Bug Report per Mr. Stallman's request.
Thanks,
Matt
-----Original Message-----
From: no-spam@cua.dk [mailto:no-spam@cua.dk]
Sent: Monday, May 27, 2002 4:16 PM
To: Matt Knowles
Cc: emacs-devel@gnu.org
Subject: Re: C-m mapping fails occasionally
Matt sent me this:
> (lookup-key global-map "\C-m")
> mat-newline
>
> Anything else I can do to help? Are y'all able to recreate the problem?
> When I open a *scratch* buffer, type something on the first line to make
> indent-relative-maybe not automatically indent some (strange behavior it
> seems, to indent when the previous line is blank) and hold down the
<Return>
> key, the problem appears before I scroll off the page...
>
> Matt
Matt,
This isn't the default global binding for C-m, so it is
no wonder it is hard to reproduce.
Can you look in your .emacs file for a line like this:
(define-key global-map ... 'mat-newline)
or
(global-set-key ... 'mat-newline)
Then uncomment that line (placing a ; at the beginning of the line)
and restart your emacs.
++kfs
^ permalink raw reply [flat|nested] 13+ messages in thread
* RE: C-m mapping fails occasionally
@ 2002-05-27 19:52 Matt Knowles
2002-05-28 5:19 ` Richard Stallman
0 siblings, 1 reply; 13+ messages in thread
From: Matt Knowles @ 2002-05-27 19:52 UTC (permalink / raw)
Cc: 'rms@gnu.org', emacs-devel
(lookup-key global-map "\C-m")
mat-newline
Anything else I can do to help? Are y'all able to recreate the problem?
When I open a *scratch* buffer, type something on the first line to make
indent-relative-maybe not automatically indent some (strange behavior it
seems, to indent when the previous line is blank) and hold down the <Return>
key, the problem appears before I scroll off the page...
Matt
-----Original Message-----
From: Andreas Schwab [mailto:schwab@suse.de]
Sent: Monday, May 27, 2002 2:50 PM
To: Matt Knowles
Cc: 'rms@gnu.org'; emacs-devel@gnu.org
Subject: Re: C-m mapping fails occasionally
Matt Knowles <MattK@LacksValley.com> writes:
|> (lookup-key (current-local-map) "\C-m")
|> nil
|>
|> (lookup-key (global-map) "\C-m")
That should be
(lookup-key global-map "\C-m")
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE GmbH, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: C-m mapping fails occasionally
2002-05-27 19:52 Matt Knowles
@ 2002-05-28 5:19 ` Richard Stallman
0 siblings, 0 replies; 13+ messages in thread
From: Richard Stallman @ 2002-05-28 5:19 UTC (permalink / raw)
Cc: schwab, MattK, emacs-devel
Anything else I can do to help? Are y'all able to recreate the problem?
When I open a *scratch* buffer, type something on the first line to make
indent-relative-maybe not automatically indent some (strange behavior it
seems, to indent when the previous line is blank) and hold down the <Return>
key, the problem appears before I scroll off the page...
How about if you send a precise bug report following the guidelines
in the Bugs chapter of the Emacs manual? That is what we need, in order
to reproduce the problem.
^ permalink raw reply [flat|nested] 13+ messages in thread
[parent not found: <9A30DB6D3384D311A73400C0F04065E9222BA2@lacks-exch.lacksvalley.com>]
* Re: C-m mapping fails occasionally
[not found] <9A30DB6D3384D311A73400C0F04065E9222BA2@lacks-exch.lacksvalley.com>
@ 2002-05-24 21:12 ` Richard Stallman
0 siblings, 0 replies; 13+ messages in thread
From: Richard Stallman @ 2002-05-24 21:12 UTC (permalink / raw)
Cc: emacs-devel
I'm not sure how to evaluate (lookup-key ....),
Type the expression in *scratch* and then type C-j.
but when I attempted to M-x
describe-key C-m I got the following message, perhaps it will be helpful.
#<EMACS BUG: INVALID DATATYPE (#o37777777743) Save your buffers immediately
and please report this bug>
That is really bizarre. It suggests that some data is not merely
wrong for where it is, but totally wrong for Emacs Lisp.
Can someone on emacs-devel work with MattK to investigate this with
GDB?
From: Matt Knowles <MattK@LacksValley.com>
To: "'rms@gnu.org'" <rms@gnu.org>
Subject: RE: C-m mapping fails occasionally
Date: Wed, 22 May 2002 17:35:00 -0500
Forgive my ignorance, and might I also say it's an honor to corresponde with
you...
I'm not sure how to evaluate (lookup-key ....), but when I attempted to M-x
describe-key C-m I got the following message, perhaps it will be helpful.
#<EMACS BUG: INVALID DATATYPE (#o37777777743) Save your buffers immediately
and please report this bug>
If you still would like the results of "evaluate (lookup-key...", please
send me instructions on how to do this directly while inside emacs.
Thanks for your response,
Matt Knowles
-----Original Message-----
From: Richard Stallman [mailto:rms@gnu.org]
Sent: Wednesday, May 22, 2002 5:28 PM
To: MattK@LacksValley.com
Cc: bug-gnu-emacs@gnu.org
Subject: Re: C-m mapping fails occasionally
Occasionally, C-m quits doing anything and I am forced to exit emacs and
run
it again to get C-m to work again.
When this happens, would you please evaluate
(lookup-key (global-map "\C-m")
(lookup-key (current-local-map) "\C-m")
and see if the binding of C-m is still as you set it up?
^ permalink raw reply [flat|nested] 13+ messages in thread
* C-m mapping fails occasionally
@ 2002-05-21 14:22 Matt Knowles
2002-05-22 22:27 ` Richard Stallman
0 siblings, 1 reply; 13+ messages in thread
From: Matt Knowles @ 2002-05-21 14:22 UTC (permalink / raw)
(fset 'mat-newline
"^[xnewline^M^[xindent-relative-maybe^M.^A^@^S.^B^[xuntabify^M^D")
(global-unset-key "\C-m")
(global-set-key "\C-m" 'mat-newline)
Occasionally, C-m quits doing anything and I am forced to exit emacs and run
it again to get C-m to work again.
Matt Knowles
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2002-05-31 7:04 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-27 13:51 C-m mapping fails occasionally Matt Knowles
2002-05-27 19:49 ` Andreas Schwab
2002-05-27 21:16 ` Kim F. Storm
2002-05-28 5:15 ` Richard Stallman
-- strict thread matches above, loose matches on Subject: below --
2002-05-29 17:58 Matt Knowles
2002-05-31 7:04 ` Richard Stallman
2002-05-28 14:31 Matt Knowles
2002-05-29 16:26 ` Richard Stallman
2002-05-27 19:52 Matt Knowles
2002-05-28 5:19 ` Richard Stallman
[not found] <9A30DB6D3384D311A73400C0F04065E9222BA2@lacks-exch.lacksvalley.com>
2002-05-24 21:12 ` Richard Stallman
2002-05-21 14:22 Matt Knowles
2002-05-22 22:27 ` Richard Stallman
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.