emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Proposal to improve the nomenclature of scrolling directions


From: Bastien
Subject: Re: Proposal to improve the nomenclature of scrolling directions
Date: Tue, 13 Nov 2012 10:05:14 +0100
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux)

Hi Harald,

Harald Hanche-Olsen <address@hidden> writes:

> I don't use C-x < and C-x > very often, but when I do, I *always* get
> the direction wrong. Surely, the same issue is at play here.

Me too.  

But here, the issue is not only about the names of these commands but
also about the choice of '<' and '>' wrt the consistency with M-< and
M->.  With M-< going at the beginning of the buffer, C-x < suggests
scrolling toward the beginning of the left margin (at least to me), 
which is... the opposite of the current behavior.

> But I'll stop whining right now and just insert code in .emacs to swap
> the two key bindings. I just couldn't resist this opportunity to
> participate in some good bike shedding.

:)

I'm attaching a trivial patch in case.

=== modified file 'src/window.c'
--- src/window.c        2012-11-12 04:00:55 +0000
+++ src/window.c        2012-11-13 09:00:54 +0000
@@ -6912,8 +6912,8 @@
 void
 keys_of_window (void)
 {
-  initial_define_key (control_x_map, '<', "scroll-left");
-  initial_define_key (control_x_map, '>', "scroll-right");
+  initial_define_key (control_x_map, '>', "scroll-left");
+  initial_define_key (control_x_map, '<', "scroll-right");
 
   initial_define_key (global_map, Ctl ('V'), "scroll-up-command");
   initial_define_key (meta_map, Ctl ('V'), "scroll-other-window");

-- 
 Bastien

reply via email to

[Prev in Thread] Current Thread [Next in Thread]