-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix the problem that scroll-other-window raised an error #14
Conversation
scroll-other-window and similar functions raised an error when there is only one window. By this fix, scroll-other-window, scroll-up-other-window, scroll-down-other-window, scroll-up-both-window, and scroll-down-both-window don't raise an error.
また取るかどうか悩ましいfixをw |
暫定的に取り込んどきます。 |
fix the problem that scroll-other-window raised an error
個人的にこの修正には賛成できません。理由は以下の三点。
エラーダイアログが出るのはやりすぎだというのであればrange-errorではなく、ダイアログの出ないエラーを投げるようにすると良いと思います。 |
おお、自分もその変更がベターだと思いますよ。 |
ambi氏はいますか?個人的にはどうでもいいので、お二人で好きに決めてもらって良いかと。 自分としては1,3の理由は既存の動作がおかしいと思っているなら気にしなくて良いと思いますが、2はそれなりの理由が無いなら合わせた方が良いとは思ってます。 元の変更をrevertするべき、という結論ならその作業は私がやっても構いません。(PRくれた方が楽で嬉しいけど) |
なるほど、そんじゃあどちらかPRください。 |
southlyさんの方がxyzzyはよく理解しておられると思うので、 |
とりあえずやっておきましたが、テストも必要ですか? |
元に戻しているのに近いので、現状の削除、という対応で良いと思います>テスト |
fix issue #14 (fix the problem that scroll-other-window raised an error)
scroll-other-window and similar functions raised an error when there is only one window.
By this fix, scroll-other-window, scroll-up-other-window, scroll-down-other-window, scroll-up-both-window, and scroll-down-both-window don't raise an error.
I added unit tests for this fix.
なぜこの修正か?
scroll-other-windowなどはC-M-vやC-S-Up, C-S-Downでキーバインドされている。なので、押し間違いとかで「範囲外の値です」というエラーダイアログが出てしまうことがある。これはちょっとうざいし、一般ユーザはびっくりしてしまう。
問題
以前は、ウィンドウが1つだけのときにエラーが出ていた関数群が、エラーを出さなくなっているので、すっごい細かいけど仕様変更にはなってしまいます。なんで、議論の余地のある変更かも……。ご自由に。