* "Book-like" text rendering
@ 2013-09-25 13:42 Dmitry Antipov
2013-09-25 14:00 ` David Engster
2013-09-25 14:00 ` Teemu Likonen
0 siblings, 2 replies; 6+ messages in thread
From: Dmitry Antipov @ 2013-09-25 13:42 UTC (permalink / raw)
To: Emacs development discussions
With modern wide (16:9 or 16:10) screens, there is the following question:
is it reasonable/usable to have a feature to render the text in two horizontally
adjacent windows like it's "rendered" in the book?
I.e. with the following window layout (both A and B has, say, 50 lines):
+-----------+-----------+
| A | B |
| | |
| | |
| | |
| | |
| | |
+-----------+-----------+
1000-lines text is initially 1..50 lines in A and 51..100 lines in B, with
current window A. When the cursor is at line 50 of A and moved to next line,
it goes to window B, line 1 (of window B and so line 51 of the text); when
the cursor is at line 50 of window B and moved to next line, it goes back to
line 1 of window A, and text is scrolled in both windows so A shows lines
101..150 and B shows lines 151..200, etc.
Dmitry
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: "Book-like" text rendering
2013-09-25 13:42 "Book-like" text rendering Dmitry Antipov
@ 2013-09-25 14:00 ` David Engster
2013-09-25 14:29 ` Dmitry Antipov
2013-09-25 14:00 ` Teemu Likonen
1 sibling, 1 reply; 6+ messages in thread
From: David Engster @ 2013-09-25 14:00 UTC (permalink / raw)
To: Dmitry Antipov; +Cc: Emacs development discussions
Dmitry Antipov writes:
> With modern wide (16:9 or 16:10) screens, there is the following question:
> is it reasonable/usable to have a feature to render the text in two horizontally
> adjacent windows like it's "rendered" in the book?
Have a look at `follow-mode'.
-David
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: "Book-like" text rendering
2013-09-25 13:42 "Book-like" text rendering Dmitry Antipov
2013-09-25 14:00 ` David Engster
@ 2013-09-25 14:00 ` Teemu Likonen
1 sibling, 0 replies; 6+ messages in thread
From: Teemu Likonen @ 2013-09-25 14:00 UTC (permalink / raw)
To: Dmitry Antipov; +Cc: emacs-devel
[-- Attachment #1: Type: text/plain, Size: 1465 bytes --]
Dmitry Antipov [2013-09-25 17:42:29 +04:00] wrote:
> With modern wide (16:9 or 16:10) screens, there is the following
> question: is it reasonable/usable to have a feature to render the text
> in two horizontally adjacent windows like it's "rendered" in the book?
> +-----------+-----------+
> | A | B |
> | | |
> | | |
> | | |
> | | |
> | | |
> +-----------+-----------+
Like follow-mode?
follow-mode is an interactive autoloaded compiled Lisp function in
`follow.el'.
[...]
Follow mode is a minor mode that combines windows into one tall
virtual window. This is accomplished by two main techniques:
* The windows always displays adjacent sections of the buffer.
This means that whenever one window is moved, all the
others will follow. (Hence the name Follow mode.)
* Should the point (cursor) end up outside a window, another
window displaying that point is selected, if possible. This
makes it possible to walk between windows using normal cursor
movement commands.
Follow mode comes to its prime when used on a large screen and two
side-by-side windows are used. The user can, with the help of Follow
mode, use two full-height windows as though they would have been
one. Imagine yourself editing a large function, or section of text,
and being able to use 144 lines instead of the normal 72... (your
mileage may vary).
[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: "Book-like" text rendering
2013-09-25 14:00 ` David Engster
@ 2013-09-25 14:29 ` Dmitry Antipov
2013-09-25 17:04 ` Stefan Monnier
2013-09-27 15:16 ` William Xu
0 siblings, 2 replies; 6+ messages in thread
From: Dmitry Antipov @ 2013-09-25 14:29 UTC (permalink / raw)
To: deng; +Cc: tlikonen, Emacs development discussions
[-- Attachment #1: Type: text/plain, Size: 629 bytes --]
On 09/25/2013 06:00 PM, David Engster wrote:
> Have a look at `follow-mode'.
0) Yes, this is quite similar (although cursor movement is not quite similar
to what human eye does while reading the book).
1) The name looks totally misleading; I suspected that such a feature was
implemented long time ago, but it didn't come to my mind to look around
`follow' keyword. IMHO the name should include the word `text' at least.
2) (Sorry for the huge image) This happens when I tried to search for
`Lisp_Object' string: matches are highlighted in left window, but not
in the right one. Isn't it a bug?
Dmitry
[-- Attachment #2: xdisp.png --]
[-- Type: image/png, Size: 35470 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: "Book-like" text rendering
2013-09-25 14:29 ` Dmitry Antipov
@ 2013-09-25 17:04 ` Stefan Monnier
2013-09-27 15:16 ` William Xu
1 sibling, 0 replies; 6+ messages in thread
From: Stefan Monnier @ 2013-09-25 17:04 UTC (permalink / raw)
To: Dmitry Antipov; +Cc: tlikonen, deng, Emacs development discussions
> 2) (Sorry for the huge image) This happens when I tried to search for
> `Lisp_Object' string: matches are highlighted in left window, but not
> in the right one. Isn't it a bug?
follow-mode is a very old package, and it hasn't seen much development
over the years, so yes that's a bug, among probably many others that can
show up because follow-mode was not adapted for (or taken into account
by) some new feature/package.
Patches welcome,
Stefan
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: "Book-like" text rendering
2013-09-25 14:29 ` Dmitry Antipov
2013-09-25 17:04 ` Stefan Monnier
@ 2013-09-27 15:16 ` William Xu
1 sibling, 0 replies; 6+ messages in thread
From: William Xu @ 2013-09-27 15:16 UTC (permalink / raw)
To: emacs-devel
Dmitry Antipov <dmantipov@yandex.ru> writes:
> On 09/25/2013 06:00 PM, David Engster wrote:
>
>> Have a look at `follow-mode'.
>
> 0) Yes, this is quite similar (although cursor movement is not quite similar
> to what human eye does while reading the book).
>
> 1) The name looks totally misleading; I suspected that such a feature was
> implemented long time ago, but it didn't come to my mind to look around
> `follow' keyword. IMHO the name should include the word `text' at least.
>
> 2) (Sorry for the huge image) This happens when I tried to search for
> `Lisp_Object' string: matches are highlighted in left window, but not
> in the right one. Isn't it a bug?
>
3) Perhaps it can also be made more like reading a book. e.g, when C-v, i
would expect it scroll up 2 pages:
| page 1 | page 2 | => | page 3 | page 4 |
But currently it gives you:
| page 2 | page 3 |
which sounds odd.
--
William
http://xwl.appspot.com
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2013-09-27 15:16 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-25 13:42 "Book-like" text rendering Dmitry Antipov
2013-09-25 14:00 ` David Engster
2013-09-25 14:29 ` Dmitry Antipov
2013-09-25 17:04 ` Stefan Monnier
2013-09-27 15:16 ` William Xu
2013-09-25 14:00 ` Teemu Likonen
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.