From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alexander Shukaev Newsgroups: gmane.emacs.help Subject: Re: Something like `without-redisplay'? Date: Tue, 1 Sep 2015 19:24:09 +0200 Message-ID: References: <83egij1qr5.fsf@gnu.org> <83zj16zwup.fsf@gnu.org> <83h9nechuu.fsf@gnu.org> <83a8t6ceuo.fsf@gnu.org> <83wpwaaxd6.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1441128346 25601 80.91.229.3 (1 Sep 2015 17:25:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 1 Sep 2015 17:25:46 +0000 (UTC) Cc: help-gnu-emacs To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Sep 01 19:25:45 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZWpJY-0008Se-3N for geh-help-gnu-emacs@m.gmane.org; Tue, 01 Sep 2015 19:25:44 +0200 Original-Received: from localhost ([::1]:56264 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWpJV-0001QV-Lq for geh-help-gnu-emacs@m.gmane.org; Tue, 01 Sep 2015 13:25:41 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41286) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWpI4-0007oV-OZ for help-gnu-emacs@gnu.org; Tue, 01 Sep 2015 13:24:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZWpI4-0002xb-4z for help-gnu-emacs@gnu.org; Tue, 01 Sep 2015 13:24:12 -0400 Original-Received: from mail-la0-x232.google.com ([2a00:1450:4010:c03::232]:33156) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWpI2-0002tC-Ny; Tue, 01 Sep 2015 13:24:10 -0400 Original-Received: by lamp12 with SMTP id p12so4622212lam.0; Tue, 01 Sep 2015 10:24:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=+ilQ33E7StY9otG+n8/3KhFKftjRt5okq+3b2I9XBYQ=; b=o3pgZWUy2whAgGJI/f7ylOkfWGbzRVN//QBD97Zgx2daKdaMR4J9MrqFlqtCL8Kwx3 CR4YY84qsQnQ/IIZIie8WIdMNXWll3EpLw+t9DmeOgSAVxQb8gxwyvfmKn4+qoKJ67H3 f81pg0XWCEIth9uVVQCr9QjFHLH/Xe+whvsg9VOUphTkKbbvFQbBqXymuOeXKIP0ftev 8/LOD8e2TFS3Z0wD72E4M8ntKJLambUt/fhFuHP9ecgwWjva75dtVqeX4KmQVFmigb5b 1bfzd3wJrQ2RxYL3pD2cmW/HDawC/XTFWqcdbNQGySFdt4UL0uhrr7AariWkyjzSVzmb zw0A== X-Received: by 10.152.18.164 with SMTP id x4mr13968581lad.35.1441128249687; Tue, 01 Sep 2015 10:24:09 -0700 (PDT) Original-Received: by 10.112.34.17 with HTTP; Tue, 1 Sep 2015 10:24:09 -0700 (PDT) In-Reply-To: <83wpwaaxd6.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::232 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:106967 Archived-At: >> >> > 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.