From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#36832: Supply option to suppress scrolling in compilation mode buffers. Date: Wed, 31 Jul 2019 17:21:49 +0300 Message-ID: <83ef26i8si.fsf@gnu.org> References: <20190728203221.GD5072@ACM> <83tvb3imgb.fsf@gnu.org> <20190730155937.GD5427@ACM> <83pnlrijiu.fsf@gnu.org> <20190730193235.GE5427@ACM> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="126174"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 36832@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 31 16:23:10 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hspVV-000Wfn-M8 for geb-bug-gnu-emacs@m.gmane.org; Wed, 31 Jul 2019 16:23:09 +0200 Original-Received: from localhost ([::1]:41398 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hspVU-00044S-O8 for geb-bug-gnu-emacs@m.gmane.org; Wed, 31 Jul 2019 10:23:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38657) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hspVP-0003z8-PG for bug-gnu-emacs@gnu.org; Wed, 31 Jul 2019 10:23:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hspVO-0000NH-PR for bug-gnu-emacs@gnu.org; Wed, 31 Jul 2019 10:23:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44038) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hspVO-0000NB-Me for bug-gnu-emacs@gnu.org; Wed, 31 Jul 2019 10:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hspVO-0007LF-FK for bug-gnu-emacs@gnu.org; Wed, 31 Jul 2019 10:23:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 31 Jul 2019 14:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36832 X-GNU-PR-Package: emacs Original-Received: via spool by 36832-submit@debbugs.gnu.org id=B36832.156458292628138 (code B ref 36832); Wed, 31 Jul 2019 14:23:02 +0000 Original-Received: (at 36832) by debbugs.gnu.org; 31 Jul 2019 14:22:06 +0000 Original-Received: from localhost ([127.0.0.1]:52859 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hspUT-0007Jm-IA for submit@debbugs.gnu.org; Wed, 31 Jul 2019 10:22:05 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:54031) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hspUS-0007JJ-2f for 36832@debbugs.gnu.org; Wed, 31 Jul 2019 10:22:04 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:49671) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hspUM-00083a-WC; Wed, 31 Jul 2019 10:21:59 -0400 Original-Received: from [176.228.60.248] (port=4772 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hspUL-0005Zd-Sf; Wed, 31 Jul 2019 10:21:58 -0400 In-reply-to: <20190730193235.GE5427@ACM> (message from Alan Mackenzie on Tue, 30 Jul 2019 19:32:35 +0000) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:164165 Archived-At: > Date: Tue, 30 Jul 2019 19:32:35 +0000 > Cc: 36832@debbugs.gnu.org > From: Alan Mackenzie > > The current code does two things, sometimes, on being hit: (i) it > puts an indicator into the fringe; (ii) it scrolls the compile mode > window upwards, the pertinent line moving either to the top, or to a > specified window line. > > Unfortunately, the code which does these things seems to be fragmented, > and there is just one user option to control (i) and (ii) above. > > One solution would be always to mark to the line in the compile mode > window, whether by an indicator in the fringe or a ">" or "=>" at column > 0. Then only scroll the compile mode window when the user has explicitly > requested this by the user option compilation-context-lines. Yes, that would be an okay solution. > Why do these little things so often turn out to be so complicated? ;-( ;-)