* Proposed additional scrolling functions
@ 2008-06-06 13:55 Adrian Robert
2008-06-06 15:33 ` Drew Adams
2008-06-06 19:25 ` Chong Yidong
0 siblings, 2 replies; 3+ messages in thread
From: Adrian Robert @ 2008-06-06 13:55 UTC (permalink / raw)
To: emacs- devel
Hi,
I have the following in the NS port lisp code:
;; alt-up/down scrolling a la Stuart.app
(defun up-one () (interactive) (scroll-up 1))
(defun down-one () (interactive) (scroll-down 1))
(global-set-key [M-up] 'down-one)
(global-set-key [M-down] 'up-one)
I've used these all the time for years -- nice way to see a few lines
more of a buffer w/o moving point or touching mouse. M-up and M-down
are unbound previously, except inside org-mode, when it would be fine
to override. What about incorporating these into emacs trunk, in (?)
simple.el and bindings.el?
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: Proposed additional scrolling functions
2008-06-06 13:55 Proposed additional scrolling functions Adrian Robert
@ 2008-06-06 15:33 ` Drew Adams
2008-06-06 19:25 ` Chong Yidong
1 sibling, 0 replies; 3+ messages in thread
From: Drew Adams @ 2008-06-06 15:33 UTC (permalink / raw)
To: 'Adrian Robert', 'emacs- devel'
> (defun up-one () (interactive) (scroll-up 1))
> (defun down-one () (interactive) (scroll-down 1))
> (global-set-key [M-up] 'down-one)
> (global-set-key [M-down] 'up-one)
>
> I've used these all the time for years -- nice way to see a
> few lines more of a buffer w/o moving point or touching mouse.
> M-up and M-down are unbound previously, except inside org-mode,
> when it would be fine to override. What about incorporating
> these into emacs trunk, in (?) simple.el and bindings.el?
FWIW, I use M-up/down/left/right to incrementally resize frames.
There are probably lots of other natural-seeming uses of such keys to
incrementally alter something. Why single out scrolling for a default binding?
These are the kind of bindings that we just should leave to users, IMO. It's not
hard to do what you or I have done.
Of course a user can always override a default binding. But when a key is
predefined by Emacs, its use tends to become standard practice. 3rd-party
libraries can then be more hesitant to redefine that key. There is always
someone who will complain that the library is overriding a sacrosanct standard
binding.
Hardly a week goes by that someone doesn't propose binding additional keys by
default. This week's candidates alone included C-+, C-=, C--, C-mouse-4,
C-mouse-5, C-mousewheel, C-x C+, C-x C--, C-x C-=, C-x C-0, C-v, next, M-v,
prior, M-up, and M-down. Four of these (so far) have been added to the default
bindings.
Why am I reminded of endangered species and depletion of fossil hydrocarbons?
;-)
Here are some practices that might reduce some of the pressure on our
diminishing global key resources and IOdiversity:
- Bind keys in minor-mode maps, instead of globally.
- Just suggest bindings, in a library Commentary.
- Suggest bindings on Emacs Wiki.
If a suggested key binding seems to be in widespread use after a couple of
years, then we can consider making it a default binding. We can take our cue
from the habits and preferences of real users.
"In wildness is the preservation of the keys." - apologies to
http://thoreau.eserver.org/walking2.html#wild
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Proposed additional scrolling functions
2008-06-06 13:55 Proposed additional scrolling functions Adrian Robert
2008-06-06 15:33 ` Drew Adams
@ 2008-06-06 19:25 ` Chong Yidong
1 sibling, 0 replies; 3+ messages in thread
From: Chong Yidong @ 2008-06-06 19:25 UTC (permalink / raw)
To: Adrian Robert; +Cc: emacs- devel
Adrian Robert <adrian.b.robert@gmail.com> writes:
> Hi,
>
> I have the following in the NS port lisp code:
>
> ;; alt-up/down scrolling a la Stuart.app
> (defun up-one () (interactive) (scroll-up 1))
> (defun down-one () (interactive) (scroll-down 1))
> (global-set-key [M-up] 'down-one)
> (global-set-key [M-down] 'up-one)
>
> I've used these all the time for years -- nice way to see a few lines
> more of a buffer w/o moving point or touching mouse. M-up and M-down
> are unbound previously, except inside org-mode, when it would be fine
> to override. What about incorporating these into emacs trunk, in (?)
> simple.el and bindings.el?
I'd prefer to leave this out of default Emacs. If a user care enough,
it's easy enough to set up.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-06-06 19:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-06 13:55 Proposed additional scrolling functions Adrian Robert
2008-06-06 15:33 ` Drew Adams
2008-06-06 19:25 ` Chong Yidong
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.