all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Artur Malabarba <bruce.connor.am@gmail.com>
To: Rasmus <rasmus@gmx.us>
Cc: emacs-devel@gnu.org
Subject: Re: Questioning the new behavior of `open-line'.
Date: Thu, 12 Nov 2015 16:09:42 +0000	[thread overview]
Message-ID: <8737wbw661.fsf@gmail.com> (raw)
In-Reply-To: <87pozfl2ut.fsf@gmx.us> (rasmus@gmx.us's message of "Thu, 12 Nov 2015 15:16:42 +0100")

Rasmus <rasmus@gmx.us> writes:

> In any case, to address you question.
>
> Picture 1; ’|’ is the cursor.
>
>       var svg = div.append("svg")
>       |            .attr("width", box_plot.w) 
>                    .attr("height", box_plot.h);
>
>       M-o result before
>
>       var svg = div.append("svg")
>       |
>                    .attr("width", box_plot.w) 
>                    .attr("height", box_plot.h);
>
>       Now,
>
>       var svg = div.append("svg")
>
>           .attr("width", box_plot.w)
>                    .attr("height", box_plot.h);

Thank you, Rasmus, that's very helpful.
Indeed, what I plan to do now is revert to the old behaviour on col 0,
which should address this case as well as other cases mentioned here.
Regardless of anything else, I agree this is the right thing to do on
col 0.

> When wanting to push something down from within the line, results are poor
> before and after patch
>
> Picture 2; ’|’ is the cursor
>
>     var svg = div.append("svg")|.classed("myclass", true)
>                  .attr("width", box_plot.w)
>                  .attr("height", box_plot.h);
>
>     Before,
>
>     var svg = div.append("svg")|
>     .classed("myclass", true)
>                  .attr("width", box_plot.w)
>                  .attr("height", box_plot.h);
>
>
>     Now,
>
>     var svg = div.append("svg")|
>         .classed("myclass", true)
>                  .attr("width", box_plot.w)
>                  .attr("height", box_plot.h);

Thanks for this clarification too.

“C-o at the middle of the line” is what my patch was meant to address
(the above effect was an accident). In this situation, if the
indentation engine works correctly, the old behaviour is something I
don’t think would ever be useful. That’s what motivated the change.

When the indentation engine does not work correctly, then my patch
doesn’t make things better, but I guess it doesn’t make them worse
either.

> I realize that I would probably be mostly OK if special behavior is
> adopted when point is a column zero.  I’m still not sure that M-o warrants
> such complexity, but I don’t feel too strongly about it.

The complexity here is very manageable, and the function isn’t long.
Besides, it’s a very frequently used command. It’s worth investing and
extra 4 or 5 lines to make it more natural.



  parent reply	other threads:[~2015-11-12 16:09 UTC|newest]

Thread overview: 65+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-11 18:08 Questioning the new behavior of `open-line' Karl Fogel
2015-11-11 18:51 ` John Wiegley
2015-11-11 18:58   ` Karl Fogel
2015-11-11 19:07     ` Eli Zaretskii
2015-11-11 19:13       ` John Wiegley
2015-11-11 19:39         ` Karl Fogel
2015-11-11 20:11           ` Eli Zaretskii
2015-11-11 20:17             ` John Wiegley
2015-11-11 20:33               ` Karl Fogel
2015-11-11 20:37               ` Alan Mackenzie
2015-11-11 20:46               ` Eli Zaretskii
2015-11-11 20:58                 ` John Wiegley
2015-11-11 21:08                   ` Karl Fogel
2015-11-11 21:13                     ` John Wiegley
2015-11-12  7:59                       ` Karl Fogel
2015-11-11 21:53                     ` David Kastrup
2015-11-11 21:52               ` David Kastrup
2015-11-12  0:08                 ` Rasmus
2015-11-12  8:06                   ` Karl Fogel
2015-11-12 10:00                     ` Artur Malabarba
2015-11-12 11:08                       ` Rasmus
2015-11-12 11:18                         ` Andreas Schwab
2015-11-12 13:11                         ` Artur Malabarba
2015-11-12 14:16                           ` Rasmus
2015-11-12 14:44                             ` Yuri Khan
2015-11-12 14:52                               ` Rasmus
2015-11-12 14:54                                 ` Yuri Khan
2015-11-12 15:38                                   ` David Kastrup
2015-11-12 16:20                                     ` Karl Fogel
2015-11-12 16:33                                       ` Pierpaolo Bernardi
     [not found]                                         ` <CAAdUY-LVoXm-c+Cv8Gx6h+d40YDoK4rJp1U6Tw+Gc+yCOVee=g@mail.gmail.com>
2015-11-13  1:17                                           ` Artur Malabarba
2015-11-13  6:04                                             ` Pierpaolo Bernardi
2015-11-14 12:34                                               ` Artur Malabarba
2015-11-14 19:39                                                 ` David Kastrup
2015-11-17  0:42                                                   ` Karl Fogel
2015-11-17  0:53                                                     ` Karl Fogel
2015-11-17  3:46                                                     ` John Wiegley
2015-11-17 22:57                                                       ` Richard Stallman
2015-11-17 23:16                                                         ` John Wiegley
2015-11-18 17:25                                                           ` Andreas Röhler
2015-11-17 23:20                                                     ` Artur Malabarba
2015-11-18 20:32                                                       ` Karl Fogel
2015-11-18 21:03                                                         ` Artur Malabarba
2015-11-19 23:34                                                           ` Karl Fogel
2015-11-19 23:57                                                             ` Artur Malabarba
2015-11-14 21:59                                                 ` Karl Fogel
2015-11-12 14:57                                 ` David Kastrup
2015-11-12 16:09                             ` Artur Malabarba [this message]
2015-11-12 15:26                               ` Rasmus
2015-11-11 20:15         ` Eli Zaretskii
2015-11-11 20:28           ` John Wiegley
2015-11-11 20:55             ` Eli Zaretskii
2015-11-11 21:00               ` John Wiegley
2015-11-11 21:16                 ` Eli Zaretskii
2015-11-11 21:17                 ` Alan Mackenzie
2015-11-11 21:30                   ` John Wiegley
2015-11-11 22:40                 ` Artur Malabarba
2015-11-11 19:20       ` Paul Eggert
2015-11-11 19:25         ` John Wiegley
2015-11-11 20:13         ` Eli Zaretskii
2015-11-11 21:50 ` David Kastrup
2015-11-11 22:24 ` Artur Malabarba
2015-11-11 21:31   ` John Wiegley
2015-11-11 21:46     ` Karl Fogel
2015-11-12  7:38 ` Andreas Röhler

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=8737wbw661.fsf@gmail.com \
    --to=bruce.connor.am@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=rasmus@gmx.us \
    /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.