From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: query-replace and the bottom of the screen Date: Tue, 05 Sep 2017 17:58:07 +0300 Message-ID: <837exd2nwg.fsf@gnu.org> References: <87mv695p9a.fsf@mat.ucm.es> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1504623563 30331 195.159.176.226 (5 Sep 2017 14:59:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 5 Sep 2017 14:59:23 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Sep 05 16:59:09 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dpFJV-0006dH-PT for geh-help-gnu-emacs@m.gmane.org; Tue, 05 Sep 2017 16:58:53 +0200 Original-Received: from localhost ([::1]:59489 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dpFJc-0007Hj-Ur for geh-help-gnu-emacs@m.gmane.org; Tue, 05 Sep 2017 10:59:00 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33300) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dpFIr-00074Z-6f for help-gnu-emacs@gnu.org; Tue, 05 Sep 2017 10:58:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dpFIm-0006TU-DS for help-gnu-emacs@gnu.org; Tue, 05 Sep 2017 10:58:13 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:39191) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dpFIm-0006TE-AQ for help-gnu-emacs@gnu.org; Tue, 05 Sep 2017 10:58:08 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3768 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dpFIl-0002RV-Mo for help-gnu-emacs@gnu.org; Tue, 05 Sep 2017 10:58:08 -0400 In-reply-to: <87mv695p9a.fsf@mat.ucm.es> (message from Uwe Brauer on Tue, 05 Sep 2017 14:00:33 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:114179 Archived-At: > From: Uwe Brauer > Date: Tue, 05 Sep 2017 14:00:33 +0200 > > When I start emacs -q and run > query-replace, say like this > > > (query-replace "this" "this" nil nil nil nil nil) > then everything works like expected: > > Text with expression «this» which is in the middle of my screen is > presented in the middle of the screen: > > And I am asked to replace it. > > However when I start emacs with my init file, open a file which covers > various screen pages > and do > (query-replace "this" "this" nil nil nil nil nil) > > The cursor always jumps to the bottom of the screen and asks me to > replace. This makes it difficult to see the context of the change. > This misbehavior must be caused by some of my setting. But what could it > be. Do you perhaps have scroll-conservatively set to a value larger than 100? If so, Emacs is behaving like you requested.