From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#56692: 29.0.50; scroll-bar in the minibuffer window disappears Date: Sat, 23 Jul 2022 09:50:44 +0300 Message-ID: <83zgh0iapn.fsf@gnu.org> References: <87r12d678a.fsf@gmail.com> <87k0854b3c.fsf@yahoo.com> <8335etl1vg.fsf@gnu.org> <8735es4oof.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31238"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 56692@debbugs.gnu.org, visuweshm@gmail.com To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 23 08:51:16 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oF8yp-000802-QX for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Jul 2022 08:51:16 +0200 Original-Received: from localhost ([::1]:36388 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oF8yo-00014w-EG for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Jul 2022 02:51:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56218) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oF8yc-000138-Ul for bug-gnu-emacs@gnu.org; Sat, 23 Jul 2022 02:51:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53283) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oF8yc-0002L3-Jz for bug-gnu-emacs@gnu.org; Sat, 23 Jul 2022 02:51:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oF8yc-0008Fz-Cz for bug-gnu-emacs@gnu.org; Sat, 23 Jul 2022 02:51: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: Sat, 23 Jul 2022 06:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56692 X-GNU-PR-Package: emacs Original-Received: via spool by 56692-submit@debbugs.gnu.org id=B56692.165855905931730 (code B ref 56692); Sat, 23 Jul 2022 06:51:02 +0000 Original-Received: (at 56692) by debbugs.gnu.org; 23 Jul 2022 06:50:59 +0000 Original-Received: from localhost ([127.0.0.1]:43032 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oF8yY-0008Fh-Pn for submit@debbugs.gnu.org; Sat, 23 Jul 2022 02:50:59 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:43298) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oF8yV-0008FO-Gh for 56692@debbugs.gnu.org; Sat, 23 Jul 2022 02:50:57 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:34652) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oF8yQ-0002JV-7n; Sat, 23 Jul 2022 02:50:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=ANEsG64QoZ4xjZHK+WzdpX1z3ntHgUJEUI7EPrZPjq0=; b=BLOS/NYidUHE kPXYyGZDQwBnrLcbhXjwlyO5iQTp7nETsrtoNJZ3x1nCqMx1wGe073N2TJx0PxUl/vpysBukk+QZg QxZT29SeL1VxlGllfjtHucrDyFpILRgYqOxCZj+RTV4qQMsK6U7tibb4AeH899RK6SX/tPwWeafIK ytfsCVPluN7gOmzhgiR/8ESVACV4CE1PSJWRKHJPXgEcYuaw38SuDVARty2Z0BqBwRLTghKa4Uy/n Xfuv0qQ/Jmxy9gpo0JrcJiVtSJFx6Jt7+DAozfTIyBksdKZ4yvU/9jUbCrg7NL4LsFO/tiBGDT9Cj TMbb1upawXQ47wkZthFz9Q==; Original-Received: from [87.69.77.57] (port=4545 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oF8yO-0004I2-B8; Sat, 23 Jul 2022 02:50:50 -0400 In-Reply-To: <8735es4oof.fsf@yahoo.com> (message from Po Lu on Sat, 23 Jul 2022 09:12:48 +0800) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:237675 Archived-At: > From: Po Lu > Cc: visuweshm@gmail.com, 56692@debbugs.gnu.org > Date: Sat, 23 Jul 2022 09:12:48 +0800 > > Eli Zaretskii writes: > > > move_it_to was signaling an error in that case, that's why the scroll > > bar didn't appear: the set_vertical_scroll_bar_hook method wasn't > > called. > > > > I fixed it now properly (I hope). I guess it's one of those "TIL" > > days... > > Thanks. TIL it is actually possible for move_it_to to signal. It isn't. But move_it_to calls the low-level display code, which examines text properties at buffer positions it's supposed to traverse, and text-property APIs _can_ signal errors because they must validate the positions they are asked to examine, see validate_interval_range. The lesson is that calling these functions when the window's buffer is not the current_buffer can cause all kinds of trouble due to our reliance on ZV and other similar values. My personal TIL part is that there could be code in redisplay_window, apart of its very beginning, where that condition is not necessarily true.