From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: John Shahid Newsgroups: gmane.emacs.help Subject: Default value of recenter-redisplay Date: Sun, 29 Apr 2018 14:10:29 +0000 Message-ID: <87h8nuw1be.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1525011075 10383 195.159.176.226 (29 Apr 2018 14:11:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 29 Apr 2018 14:11:15 +0000 (UTC) User-Agent: mu4e 1.0-alpha3; emacs 27.0.50 To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Apr 29 16:11:10 2018 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 1fCn2j-0002cU-UZ for geh-help-gnu-emacs@m.gmane.org; Sun, 29 Apr 2018 16:11:10 +0200 Original-Received: from localhost ([::1]:55726 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fCn4q-0003PF-GZ for geh-help-gnu-emacs@m.gmane.org; Sun, 29 Apr 2018 10:13:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41337) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fCn2G-0002TR-V4 for help-gnu-emacs@gnu.org; Sun, 29 Apr 2018 10:10:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fCn2D-0002H4-Nz for help-gnu-emacs@gnu.org; Sun, 29 Apr 2018 10:10:40 -0400 Original-Received: from mail-qt0-x233.google.com ([2607:f8b0:400d:c0d::233]:34067) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fCn2D-0002Gq-IJ for help-gnu-emacs@gnu.org; Sun, 29 Apr 2018 10:10:37 -0400 Original-Received: by mail-qt0-x233.google.com with SMTP id m5-v6so8116996qti.1 for ; Sun, 29 Apr 2018 07:10:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=user-agent:from:to:subject:followup-to:date:message-id:mime-version; bh=mV15xGcKnw2/fX56dyyUg7Ki7ilLW5NIinTnBchqN0E=; b=eHn9YblZ+bab+RZ1YYgW48IaEuCanc5EmK0C0iY30Ekx7ngqr68zM9fCimCLZEJzXR xmRaIfrla8RMzShXhKR4s/a2xiDw4Zm3cRFpgwc5XQ149hfbWCDlwdGzRGQ1n4MBHXsB 7yIFWjBrQ0us0lGhRozluPl21wQFs0pZYzZ7wn7qbzkPY711fArGh9ynXTbPkdsYGVU1 2sbcS1GC4kRaT+tc3u26ZVzQsu1HHgMjWoSxLd8AC1PKrK5pHid738faxJ5HPD5MfyRt PJwXcaAWC57SF8wnpNbj+j9AzGmTXlXlaETHgK2jvudO1SVcsul1JQYApD0qaDU3MSao QPIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:user-agent:from:to:subject:followup-to:date :message-id:mime-version; bh=mV15xGcKnw2/fX56dyyUg7Ki7ilLW5NIinTnBchqN0E=; b=VNuo4yKNrkV/M2X1YHKr+fupNKwFSIdPPB26hTEterKNwUjwAVjhKI3Rr8SC1/0pch ggNgrlB3tnYVK01Z5M8bjbvWJT5rZpHWl+Y0T0H3iEAEQzM5RYP96VfrGpeJY7ToLTCZ UO8OZyQmj4eCQmMXJNPN0h8tlQJqYnNim/oXpWxjZYLfv81KnxNm2j7JoQdUkDUV2+YR RuHTXtZaUYika8yromi+4LTb8yMdeVALpxHW6y/zfoXW2FcJFhSHHfwItd9vjL/Am3RD rPIcAoFS7szEBAS+aXSVjPqLJ3DrLe/mRMqfFMwdKqGmvlpsTaLFZoYJwboyJ5uQomJL 80zw== X-Gm-Message-State: ALQs6tCMQ4o1hsLZ7vpK6f3Lpej2Py0Hvq45a8gMjf434Dydmvsxl9qj XOQnw80bZAZ6QqVoIxBfkK78n1Re X-Google-Smtp-Source: AB8JxZr1acIL2fM7fxU7XijYYwcWtRFqT9EYN1oBQdmSXHn5XfcB/+y4902RpjBkXDSf2yeuzlGHEQ== X-Received: by 2002:aed:23d0:: with SMTP id k16-v6mr5012199qtc.20.1525011036398; Sun, 29 Apr 2018 07:10:36 -0700 (PDT) Original-Received: from f61cf1b175b2 (cpe-184-152-55-93.nyc.res.rr.com. [184.152.55.93]) by smtp.gmail.com with ESMTPSA id d50-v6sm4798690qtd.35.2018.04.29.07.10.35 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 29 Apr 2018 07:10:35 -0700 (PDT) Original-Followup-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c0d::233 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:116627 Archived-At: Hi all, Today I decided to tackle a flicker issue that happens when the flycheck error list is displayed for the current buffer(i.e. by calling `flycheck-list-errors' interactively). It turns out the flickering is caused by a call to recenter[1] that happens inside a flycheck post-command-hook[2]. Setting `recenter-redisplay' to nil fixes the issue. I'm wondering why the default value of the variable is set to `tty' ? Also, is it safe to set the variable to `nil' ? If it is safe, can we change the default value to `nil' in order to have a better terminal experience ? p.s. I'm using emacs version 27.0.50, although I don't think that will make a difference given that the value of the variable hasn't changed in a while. thanks, -js [1]: https://github.com/flycheck/flycheck/blob/master/flycheck.el#L4208 [2]: https://github.com/flycheck/flycheck/blob/master/flycheck.el#L4360