all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alexander Shukaev <haroogan@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: Something like `without-redisplay'?
Date: Tue, 1 Sep 2015 19:24:09 +0200	[thread overview]
Message-ID: <CAKu-7WwEM-sOuqPsm3nzLTByMmUjUj4pvv9o00FEBw3mdpr5tQ@mail.gmail.com> (raw)
In-Reply-To: <83wpwaaxd6.fsf@gnu.org>

>> >> > Horizontal scrolling doesn't move point, AFAIR.
>> >>
>> >> Even if `auto-hscroll-mode' is on (which it is by default)?
>> >
>> > auto-hscroll-mode does the opposite: it scrolls the display to move
>> > point into the view.  It doesn't move point.
>>
>> Does it mean that
>>
>> (save-excursion
>>   (end-of-visual-line)
>>   (current-column))
>>
>> has potential to cause unintentional viewport movement?
>
> Only if you force redisplay, or change the window width, as part of
> the save-excursion form.  Otherwise, by the time redisplay is entered,
> point is back where it was, and no hscroll will happen.

Alright, now I understand the recipe.  Thanks a lot, Eli.



      reply	other threads:[~2015-09-01 17:24 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-31  9:49 Something like `without-redisplay'? Alexander Shukaev
2015-08-31 14:23 ` Eli Zaretskii
2015-08-31 19:32   ` Alexander Shukaev
2015-08-31 23:37     ` Alexander Shukaev
2015-09-01  2:39       ` Eli Zaretskii
2015-09-01 13:56         ` Alexander Shukaev
2015-09-01 14:52           ` Eli Zaretskii
2015-09-01 15:24             ` Alexander Shukaev
2015-09-01 15:57               ` Eli Zaretskii
2015-09-01 16:10                 ` Alexander Shukaev
2015-09-01 16:47                 ` Alexander Shukaev
2015-09-01 17:00                   ` Eli Zaretskii
2015-09-01 17:24                     ` Alexander Shukaev [this message]

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=CAKu-7WwEM-sOuqPsm3nzLTByMmUjUj4pvv9o00FEBw3mdpr5tQ@mail.gmail.com \
    --to=haroogan@gmail.com \
    --cc=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /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.