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#52092: 28.0.60; hs-toggle-hiding does not toggle once folded Date: Sat, 24 Sep 2022 09:17:53 +0300 Message-ID: <83v8pdnvn2.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35435"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 52092@debbugs.gnu.org, kobarity@gmail.com, sadiq@sadiqpk.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 24 08:21:51 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 1obyXu-00093w-Tr for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 24 Sep 2022 08:21:51 +0200 Original-Received: from localhost ([::1]:52448 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1obyXt-000529-Qg for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 24 Sep 2022 02:21:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51910) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1obyVD-0003kV-AE for bug-gnu-emacs@gnu.org; Sat, 24 Sep 2022 02:19:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43055) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1obyVD-00050Z-1p for bug-gnu-emacs@gnu.org; Sat, 24 Sep 2022 02:19:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1obyVC-0005CE-Fz for bug-gnu-emacs@gnu.org; Sat, 24 Sep 2022 02:19: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, 24 Sep 2022 06:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52092 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: help Original-Received: via spool by 52092-submit@debbugs.gnu.org id=B52092.166400030019923 (code B ref 52092); Sat, 24 Sep 2022 06:19:02 +0000 Original-Received: (at 52092) by debbugs.gnu.org; 24 Sep 2022 06:18:20 +0000 Original-Received: from localhost ([127.0.0.1]:42133 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1obyUW-0005BH-BQ for submit@debbugs.gnu.org; Sat, 24 Sep 2022 02:18:20 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:58690) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1obyUT-0005B0-99 for 52092@debbugs.gnu.org; Sat, 24 Sep 2022 02:18:18 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:55194) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1obyUN-0004uR-A0; Sat, 24 Sep 2022 02:18:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=cdK+dvCgfwZcsKc+dHUlnKieS+Oo8lz1swEevXd1Sq4=; b=gXrZTZy5M6xj+01PqCX3 y8DMYKDoSkbbUahgsER6f+jQmIx5DxR1eK1JDMiSp3rudV3ztXKQ0IXbbWstu8PX0TxCBRR7C5NiR uJX2rk04QpIb/R9KlTdfX0YJtkoGZ3GAZnKPRODUaJ1QUTLjJWjdBeNV+MGCQ9F70vXhio5sZ7cvq GiQdZBcIB89iiZx35QbgB9mpVGMldfAe1/eC245h1SBefUn9mHaAdr7uVlUgEZZ/mzchkgrP9KBda iA7r6mhIgQyBtc+tBE2p1Yfk85VYK/zw+GjLCKRI8epsDAqFAC7Mi7dMtsnf/ebz3pQSLyoPIfPRM qNSPqIgEBJ//qg==; Original-Received: from [87.69.77.57] (port=2798 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 1obyUJ-0001y4-GI; Sat, 24 Sep 2022 02:18:09 -0400 In-Reply-To: (message from Stefan Monnier on Fri, 23 Sep 2022 18:01:05 -0400) 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:243506 Archived-At: > From: Stefan Monnier > Cc: Eli Zaretskii , Mohammed Sadiq , > 52092@debbugs.gnu.org > Date: Fri, 23 Sep 2022 18:01:05 -0400 > > I had no idea that (posn-point (posn-at-point POS)) doesn't return POS > if POS is within an invisible chunk of text and instead returns the next > visible position. posn-at-point uses display routines, so it cannot report on invisible POS, because the display code skips invisible text. The doc string kinda hints on that: Return nil if POS is not visible in WINDOW. Otherwise, the return value is similar to that returned by ‘event-start’ for a mouse click at the upper left corner of the glyph corresponding to POS: You cannot click a mouse on a glyph corresponding to invisible text, can you? We could make this more clear in the documentation. I think this usually isn't a problem because this function is not called for POS calculated in some way, as opposed to positions actually displayed, or nil.