unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Vitalie Spinu'" <spinuvit@gmail.com>
Cc: 13273@debbugs.gnu.org
Subject: bug#13273: 24.3.50; [PATCH] enhancement request: repeatable `visual-line-mode' line	movements
Date: Thu, 27 Dec 2012 11:35:41 -0800	[thread overview]
Message-ID: <80E0E0D28CDA4694A1A312C667199336@us.oracle.com> (raw)
In-Reply-To: <87623nxq8u.fsf@gmail.com>

Again, so I can better understand your messages, did you try the patch?

> Yet, another pattern: repeated invocations of C-a cycle between visual
> and logical bols.

Is that a suggestion of something you want or a complaint about what you see
happening with the patch?

>   > Maybe I'm missing something, but I think that with the 
>   > key bindings the patch makes, `home' and `end' should do what you
>   > are requesting.
> 
> Indeed they do, but home/end are inconvenient keys. 

I agree.  But the idea was to (a) make the home/end bindings compatible with
what some users expect from outside Emacs, but also (b) make them repeatable.

My only request is that we give repeatable commands to all of `C-a', `C-e',
`home', and `end' for visual line mode and also globally.  Which keys get which
bindings is less important to me.  But I happen to agree with you, personally,
that I would use `C-a' and `C-e', not `home' and `end'.

> I very much like the idea of the repeated invocation of C-a doing something
> more than just staying at the beginning of line.

Right.  That's the idea.

> The point is that I don't find moving to the next/previous line a very
> useful feature. C-p/C-n do just that.

They do not track bol/eol.  If you mean first do `C-a' then `C-p C-p ...', then
OK.  I personally find that less convenent than just holding down `C-a'.   And
for eol it doesn't work at all, because of different line lengths.

> What I propose is to be able to use the same key (C-a) for jumping to
> both, visual and logical bols according to some user specified rule
> (cycling for example). And your patch is very close to making that
> possible.

Feel free to make a concrete suggestion (code).

What I agree with you on (so far) are:

a. Users should be able to do repeated bol/eol for both visual and logical
lines, in visual line mode.

b. For my personal use, at least, I will favor `C-a'/`C-e' over `home'/`end'.

I've used the same repeatable `C-a'/`C-e' thingie for non visual-line mode for a
long time.  I wouldn't be without it.  Some reasonable extension to visual-line
mode should be similarly helpful.  And we should be able to accommodate the
"conventional" use of `home'/`end' as well, just making their actions
repeatable.






  reply	other threads:[~2012-12-27 19:35 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-24 22:27 bug#13273: 24.3.50; [PATCH] enhancement request: repeatable `visual-line-mode' line movements Drew Adams
2012-12-25 17:41 ` Eli Zaretskii
2012-12-26  5:59   ` Drew Adams
2012-12-26  6:32   ` Drew Adams
2012-12-27 10:08     ` Vitalie Spinu
2012-12-27 16:16       ` Drew Adams
2012-12-27 19:13         ` Vitalie Spinu
2012-12-27 19:35           ` Drew Adams [this message]
2012-12-28 18:06 ` Vitalie Spinu
2012-12-28 18:51   ` Drew Adams
2012-12-28 19:22     ` Vitalie Spinu
2012-12-28 19:36       ` Eli Zaretskii
2012-12-28 19:55         ` Vitalie Spinu
2012-12-28 20:13           ` Eli Zaretskii
2012-12-28 20:04       ` Drew Adams
2012-12-28 20:33         ` Vitalie Spinu
2012-12-28 21:05           ` Drew Adams
2019-06-27 12:04 ` Lars Ingebrigtsen

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=80E0E0D28CDA4694A1A312C667199336@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=13273@debbugs.gnu.org \
    --cc=spinuvit@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).