* regression in key handling
@ 2007-11-20 20:42 Paul Pogonyshev
2007-11-22 2:26 ` Richard Stallman
2007-11-26 5:34 ` Richard Stallman
0 siblings, 2 replies; 10+ messages in thread
From: Paul Pogonyshev @ 2007-11-20 20:42 UTC (permalink / raw)
To: emacs-devel
Hi,
I compiled and installed Emacs from CVS today and found that
S-backspace no longer works as just backspace. Instead, I get
`S-backspace is not defined'. This is very annoying during
editing text. Please fix it.
I really think Emacs would benifit from some automated system
of regression testing, like unit tests or sth. like that.
Paul
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: regression in key handling
2007-11-20 20:42 regression in key handling Paul Pogonyshev
@ 2007-11-22 2:26 ` Richard Stallman
2007-11-22 21:29 ` Paul Pogonyshev
2007-11-26 5:34 ` Richard Stallman
1 sibling, 1 reply; 10+ messages in thread
From: Richard Stallman @ 2007-11-22 2:26 UTC (permalink / raw)
To: Paul Pogonyshev; +Cc: emacs-devel
I really think Emacs would benifit from some automated system
of regression testing, like unit tests or sth. like that.
It isn't trivial do that for keyboard input.
Would you like to work on that?
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: regression in key handling
2007-11-22 2:26 ` Richard Stallman
@ 2007-11-22 21:29 ` Paul Pogonyshev
2007-11-22 21:44 ` Lennart Borgman (gmail)
0 siblings, 1 reply; 10+ messages in thread
From: Paul Pogonyshev @ 2007-11-22 21:29 UTC (permalink / raw)
To: emacs-devel, rms
Richard Stallman wrote:
> I really think Emacs would benifit from some automated system
> of regression testing, like unit tests or sth. like that.
>
> It isn't trivial do that for keyboard input.
> Would you like to work on that?
I'm not following Emacs development closely, but I noticed some
discussion about automated test framework recently. Didn't see
what it came too, though.
But given that such a framework is in place, I could write
something like this test:
;; Test that S-backspace deletes exactly one char.
(with-temp-buffer
(insert "XY")
; Dispatch S-backspace key somehow...
(assert (= (buffer-size) 1)))
The problem is I don't know how to emulate a key press. Ideally,
it should work exactly the same way as if user pressed the key.
So, we'd need 1) a testing framework (I assume someone wrote
something already, given the discussion) and 2) a way to emulate
key presses. Is there a way to do point 2) in Emacs already?
Paul
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: regression in key handling
2007-11-22 21:29 ` Paul Pogonyshev
@ 2007-11-22 21:44 ` Lennart Borgman (gmail)
0 siblings, 0 replies; 10+ messages in thread
From: Lennart Borgman (gmail) @ 2007-11-22 21:44 UTC (permalink / raw)
To: Paul Pogonyshev; +Cc: rms, emacs-devel
Paul Pogonyshev wrote:
> Richard Stallman wrote:
>> I really think Emacs would benifit from some automated system
>> of regression testing, like unit tests or sth. like that.
>>
>> It isn't trivial do that for keyboard input.
>> Would you like to work on that?
>
> I'm not following Emacs development closely, but I noticed some
> discussion about automated test framework recently. Didn't see
> what it came too, though.
>
> But given that such a framework is in place, I could write
> something like this test:
>
> ;; Test that S-backspace deletes exactly one char.
> (with-temp-buffer
> (insert "XY")
> ; Dispatch S-backspace key somehow...
> (assert (= (buffer-size) 1)))
>
> The problem is I don't know how to emulate a key press. Ideally,
> it should work exactly the same way as if user pressed the key.
>
> So, we'd need 1) a testing framework (I assume someone wrote
> something already, given the discussion) and 2) a way to emulate
> key presses. Is there a way to do point 2) in Emacs already?
You can use uread-command-events to simulate events, see for example
isearch-unread.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: regression in key handling
2007-11-20 20:42 regression in key handling Paul Pogonyshev
2007-11-22 2:26 ` Richard Stallman
@ 2007-11-26 5:34 ` Richard Stallman
2007-11-26 21:18 ` Paul Pogonyshev
1 sibling, 1 reply; 10+ messages in thread
From: Richard Stallman @ 2007-11-26 5:34 UTC (permalink / raw)
To: Paul Pogonyshev; +Cc: emacs-devel
I compiled and installed Emacs from CVS today and found that
S-backspace no longer works as just backspace. Instead, I get
`S-backspace is not defined'.
Has anyone fixed this?
Can you see which change caused the problem?
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: regression in key handling
2007-11-26 5:34 ` Richard Stallman
@ 2007-11-26 21:18 ` Paul Pogonyshev
2007-11-27 5:30 ` Richard Stallman
0 siblings, 1 reply; 10+ messages in thread
From: Paul Pogonyshev @ 2007-11-26 21:18 UTC (permalink / raw)
To: emacs-devel, rms
Richard Stallman wrote:
> I compiled and installed Emacs from CVS today and found that
> S-backspace no longer works as just backspace. Instead, I get
> `S-backspace is not defined'.
>
> Has anyone fixed this?
Don't know, I don't recompile Emacs daily.
> Can you see which change caused the problem?
I don't know, but I'd presume something touching `keyboard.c'. At
home I have an older build, which print this after C-h k S-backspace:
DEL (translated from <S-backspace>) runs the command delete-backward-char
...
As I remember, newer build doesn't translate S-backspace to DEL
(i.e. plain backspace) and that is causing the problem for me.
Paul
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: regression in key handling
2007-11-26 21:18 ` Paul Pogonyshev
@ 2007-11-27 5:30 ` Richard Stallman
2007-11-27 15:40 ` Stefan Monnier
2007-11-28 4:49 ` Stefan Monnier
0 siblings, 2 replies; 10+ messages in thread
From: Richard Stallman @ 2007-11-27 5:30 UTC (permalink / raw)
To: monnier; +Cc: emacs-devel, Paul Pogonyshev
As I remember, newer build doesn't translate S-backspace to DEL
(i.e. plain backspace) and that is causing the problem for me.
Stefan, could your changes in key translations be responsible?
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: regression in key handling
2007-11-27 5:30 ` Richard Stallman
@ 2007-11-27 15:40 ` Stefan Monnier
2007-11-28 4:49 ` Stefan Monnier
1 sibling, 0 replies; 10+ messages in thread
From: Stefan Monnier @ 2007-11-27 15:40 UTC (permalink / raw)
To: rms; +Cc: emacs-devel, Paul Pogonyshev
> As I remember, newer build doesn't translate S-backspace to DEL
> (i.e. plain backspace) and that is causing the problem for me.
> Stefan, could your changes in key translations be responsible?
It would surprise me, but I guess yes it's possible.
I can reproduce the problem here, so I'll investigate.
Stefan
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: regression in key handling
2007-11-27 5:30 ` Richard Stallman
2007-11-27 15:40 ` Stefan Monnier
@ 2007-11-28 4:49 ` Stefan Monnier
2007-11-29 1:03 ` Richard Stallman
1 sibling, 1 reply; 10+ messages in thread
From: Stefan Monnier @ 2007-11-28 4:49 UTC (permalink / raw)
To: rms; +Cc: emacs-devel, Paul Pogonyshev
> As I remember, newer build doesn't translate S-backspace to DEL
> (i.e. plain backspace) and that is causing the problem for me.
> Stefan, could your changes in key translations be responsible?
Well, I was surprised. It should be fixed now,
Stefan
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2007-11-29 1:03 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-20 20:42 regression in key handling Paul Pogonyshev
2007-11-22 2:26 ` Richard Stallman
2007-11-22 21:29 ` Paul Pogonyshev
2007-11-22 21:44 ` Lennart Borgman (gmail)
2007-11-26 5:34 ` Richard Stallman
2007-11-26 21:18 ` Paul Pogonyshev
2007-11-27 5:30 ` Richard Stallman
2007-11-27 15:40 ` Stefan Monnier
2007-11-28 4:49 ` Stefan Monnier
2007-11-29 1:03 ` 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.