From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yilkal Argaw Newsgroups: gmane.emacs.bugs Subject: bug#66023: outline-minor-mode-use-buttons depends on whitespace-space face for some reason Date: Sat, 16 Sep 2023 07:45:31 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13204"; mail-complaints-to="usenet@ciao.gmane.io" To: 66023@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 16 09:46:02 2023 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 1qhQ0A-0003Ac-F3 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 16 Sep 2023 09:46:02 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qhQ04-0006Xr-UM; Sat, 16 Sep 2023 03:45:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qhQ03-0006Xh-UT for bug-gnu-emacs@gnu.org; Sat, 16 Sep 2023 03:45:55 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qhQ03-0002ZI-Ms for bug-gnu-emacs@gnu.org; Sat, 16 Sep 2023 03:45:55 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qhQ0A-0005G0-Gl for bug-gnu-emacs@gnu.org; Sat, 16 Sep 2023 03:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Yilkal Argaw Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 16 Sep 2023 07:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 66023 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs Original-Received: via spool by submit@debbugs.gnu.org id=B.169485035420191 (code B ref -1); Sat, 16 Sep 2023 07:46:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 Sep 2023 07:45:54 +0000 Original-Received: from localhost ([127.0.0.1]:45284 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qhQ02-0005Fb-3b for submit@debbugs.gnu.org; Sat, 16 Sep 2023 03:45:54 -0400 Original-Received: from lists.gnu.org ([2001:470:142::17]:37130) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qhPzw-0005FE-UH for submit@debbugs.gnu.org; Sat, 16 Sep 2023 03:45:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qhPzk-0006UZ-GV for bug-gnu-emacs@gnu.org; Sat, 16 Sep 2023 03:45:36 -0400 Original-Received: from mail-ot1-x329.google.com ([2607:f8b0:4864:20::329]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qhPzj-0002PN-0U for bug-gnu-emacs@gnu.org; Sat, 16 Sep 2023 03:45:36 -0400 Original-Received: by mail-ot1-x329.google.com with SMTP id 46e09a7af769-6c0f2addaefso1679186a34.2 for ; Sat, 16 Sep 2023 00:45:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1694850332; x=1695455132; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=yCgBF6H3eHUao/CW86KpWTlCZzfScNhJj2LYH5J/9N8=; b=ZWxf5yrQsyb2p/zXQKK26YujcvWuGixGuScmdSOt91SZy/tgGtUDrGrxOjcWX2WoYK FsQ/lBpvxjDVUOwyk2xH66YDs2g5OVfNz0rc+NdbU7xxeh2Uj1us/R+htCUGLRKFeF/o 9u5So3C/oAD/v7OrV+1hkxIk7cnW9/bi2WOxZTjwvEmIZNhxyJZTyHpst+l505fFzcI6 WbM6uiC8DFLrB6WGrHVqi84pyS8oPzEKlNbuKpjUXSVYhNQJL8K976loamPuiU33GGDn T5UDrrW3F2ITNpnDjDm47rz7/ZoNfnrbERFR5dSg7tumcuYRyADEyRBLVp5lZ0iw4aBs bZoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694850332; x=1695455132; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=yCgBF6H3eHUao/CW86KpWTlCZzfScNhJj2LYH5J/9N8=; b=rQgO770zxSXgILiJhjc8epWnNSzwPb2UpXtWV5/jrd+gdWiFfeuXiqSU286JsDglpw 5lqRX2/B57t0nM4D+qJQbmEVYYE0mzoH758fbi/hjFYjy9J4c7ArHnakTmIC+VWxrfPn 53N5IOcFXLFAZzVX4cHMTloFY9/gR10EeILKnKaawxU0hu3wpDEagywXG/0j43nBOCmw xl259rVEAXFX85I7vmi/3wG+B0knekCNhy45Q02U46PRHMsZVjEJg86LGcYV253M0Bvu agVhJQpeSPa66KZAQ5T9laz/0vEtc8KH9AAA27bSuhsv1AZ6v16hty9fUi6EqHcrvHBk g72A== X-Gm-Message-State: AOJu0YyG7+nmiAHy/1za1FkT6RssMKoXqqmfOBWKa2n78ZeUikUyWZQa ALZi95F62EVuhcTYkhoSCjxbLuhD/CfHMb/LFpT203/+ X-Google-Smtp-Source: AGHT+IEVA98g6SNSoZqVONzvM+QLTLdXosAZRgOB+6SbbNY2pByG2iPVdNrBd3Hkz90QASVncg111yAcTGNb5qCAW3c= X-Received: by 2002:a9d:6c95:0:b0:6be:fb88:8352 with SMTP id c21-20020a9d6c95000000b006befb888352mr3503892otr.8.1694850331739; Sat, 16 Sep 2023 00:45:31 -0700 (PDT) Original-Received: by 2002:ac9:6146:0:b0:4f3:a610:1c53 with HTTP; Sat, 16 Sep 2023 00:45:31 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::329; envelope-from=yilkalargawworkneh@gmail.com; helo=mail-ot1-x329.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:270588 Archived-At: Hi, I kind of make use of the relatively new outline-minor-mode-buttons feature. I have specfic settings regarding whitespace mode and I observed that hides the outline buttons deeper than level 2. Trying to debug this I found that was related to the whitespace-space face and but looking at outline.el gave me no hit's as to why that was the reason. So I am filing this issue with the minimal configuration to recreate the issue. Emacs Version GNU Emacs 29.1 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0, Xaw3d scroll bars) The minimal config to create the issue is (with-eval-after-load 'whitespace (setq whitespace-style (quote (face spaces tabs space-mark tab-mark))) (setq whitespace-display-mappings '((space-mark 32 [183] [46]) (tab-mark 9 [9655 9] [92 9])))) (add-hook 'after-init-hook (global-whitespace-mode t)) (add-hook 'prog-mode-hook 'outline-minor-mode t) (add-hook 'outline-minor-mode-hook (setq outline-minor-mode-use-buttons 't outline-minor-mode-cycle 't outline-minor-mode-cycle-filter 'bolp)) (custom-fset-faces `(whitespace-space ((t (:foreground ,(face-background 'default) :background nil)))) `(whitespace-tabs ((t (:foreground ,(face-background 'default) :background nil))))) After that try and open code a python or ruby class that has method inside it. It can be clearly seen that the outline-buttons for the methods exist but are hidden because they are somehow affected by whitespace-space face. (Marking the code shows that the buttons exist but are hidden). I hope this helps in recreating the issue it was hard to explain because it was very specific. With Regards Yilkal Argaw