emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: HTML-Info design


From: Yuri Khan
Subject: Re: HTML-Info design
Date: Mon, 29 Dec 2014 23:49:46 +0700

On Mon, Dec 29, 2014 at 6:20 PM, Ivan Shmakov <address@hidden> wrote:

>     This is the sidebar, which          This is the page content proper.
>     is placed to the left of the        Emacs may apply its usual
>     “payload” content in the            facilities to flow it as
>     browsers implementing (a            necessary, without any trouble
>     larger subset of) CSS.              whatsoever.  For one thing, many
>     Unless being tweaked by the         MediaWiki instances use exactly
>     user to his or her own              this layout.
>     taste, that is.

>         Now, what’s the easy way to put the second sentence of the right
>         column into the kill ring?

Depends.

Currently, Emacs supports right-to-left scripts. It provides a set of
commands that move the point in logical order
({forward|backward}-{char|word|symbol|line|sentence|paragraph|page})
and a separate set of commands that move in visual order
({left|right}-{char|word}, {previous|next}-line).

Let’s assume Emacs will advance to be able to display multicolumn
layouts while keeping these concepts of logical and visual order
separate.

Assuming best current practices for HTML, the main column precedes the
sidebar in the document order. Therefore, M-< moves to the T in “This
is the page content”. Then, “forward-sentence” moves the point after
the period. After that, you set the mark and use “forward-sentence” to
move point after “whatsoever.”. Now “copy-region-as-kill” puts the
sentence on the kill ring.

At the same time, moving with arrow keys would give the user intuitive
visual-order movement, where pressing <left> while the point is before
E in “Emacs may apply” moves the point all the way forward to after
“left of the”.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]