all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Adrian Robert'" <adrian.b.robert@gmail.com>,
	"'emacs- devel'" <emacs-devel@gnu.org>
Subject: RE: Proposed additional scrolling functions
Date: Fri, 6 Jun 2008 08:33:55 -0700	[thread overview]
Message-ID: <002301c8c7ea$bbacd540$0200a8c0@us.oracle.com> (raw)
In-Reply-To: <A96287EC-7EE2-4DE9-B29F-87BFF5A99672@gmail.com>

> (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






  reply	other threads:[~2008-06-06 15:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-06 13:55 Proposed additional scrolling functions Adrian Robert
2008-06-06 15:33 ` Drew Adams [this message]
2008-06-06 19:25 ` Chong Yidong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='002301c8c7ea$bbacd540$0200a8c0@us.oracle.com' \
    --to=drew.adams@oracle.com \
    --cc=adrian.b.robert@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.