unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Zachary Kanfer <zkanfer@gmail.com>
Cc: emacs-devel@gnu.org
Subject: RE: proposal: bind C-x r DEL to #'delete-rectangle
Date: Sun, 9 Oct 2016 22:03:09 -0700 (PDT)	[thread overview]
Message-ID: <d0d3ee67-e744-41e6-a4c8-54b82bf57f90@default> (raw)
In-Reply-To: <CAFXT+ROqrUEvFodYT1rHpnf5Zypqoh_4tMkSzxY6Jf0AcLu9ag@mail.gmail.com>

> >> Rectangle bindings are off `C-x r`. Currently, #'delete-rectangle can
> >> be ran with `C-x r d`. I think it's intuitive to bind `C-x r DEL` to
> >> #'delete-rectangle also. This patch does not touch `C-x r d`; that
> >> keybinding still calls #'delete-rectangle.
> >
> > I'd say no.  `C-x r' has a mix of different kinds of commands
> > (bookmarks, registers, rectangles), and it has had such a mix
> > since about forever.  `C-x r' is not the place to be defining
> > alternative keys for the same command, IMHO. ...
>
> Well, fair enough. I'll just keep it in my init file, then.

Just to be sure you know: I was giving my opinion - one opinion
only.  I don't speak for Emacs development, at all.  You need
not give up on your suggestion just because of my opinion. :-)
Sorry if my reply gave you an impression that your suggestion
was being shot down.

---

FWIW, I think it might be a good idea to split the key bindings
that are currently on prefix `C-x r'.  In my library Bookmark+,
I support the usual bookmark keys on `C-x r', but I also put
keymap `bookmark-map' on prefix key `C-x p', by default.

For example, these standard bookmark commands also have `C-x p'
bindings in Bookmark+, by default:

C-x p I         bookmark-insert-location
C-x p d         bookmark-delete
C-x p e         edit-bookmarks
C-x p g         bookmark-jump
C-x p l         bookmark-load
C-x p o         bookmark-jump-other-window
C-x p q         bookmark-jump-other-window
C-x p s         bookmark-save
C-x p w         bookmark-write
C-x p c M       bookmark-set

(By default, `C-x p c' is a prefix key for bookmark create/set
commands, and `C-x p t' is a prefix key for bookmark tagging
commands.)

Emacs could do reasonably do something similar.  And it could
similarly choose to move the register (alternatively, rectangle)
commands to a different prefix key from `C-x r'.  It really
makes little sense at this point (except for habit) to put
such different things on the same prefix key (IMO).



  reply	other threads:[~2016-10-10  5:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-06  5:02 proposal: bind C-x r DEL to #'delete-rectangle Zachary Kanfer
2016-10-06 16:18 ` Drew Adams
2016-10-10  4:20   ` Zachary Kanfer
2016-10-10  5:03     ` Drew Adams [this message]
2016-10-10  5:17       ` John Wiegley

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=d0d3ee67-e744-41e6-a4c8-54b82bf57f90@default \
    --to=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    --cc=zkanfer@gmail.com \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).