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#56679: 28.1; [PATCH] whitespace-style cannot be configured for diff-mode via hook Date: Mon, 25 Jul 2022 14:07:11 +0300 Message-ID: <8335epfo2o.fsf@gnu.org> References: <835yjmho8k.fsf@gnu.org> <87ilnlapd1.fsf@web.de> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37772"; mail-complaints-to="usenet@ciao.gmane.io" Cc: yet@ego.team, 56679@debbugs.gnu.org To: Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 25 13:08:22 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 1oFvwk-0009iV-0G for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 25 Jul 2022 13:08:22 +0200 Original-Received: from localhost ([::1]:37464 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oFvwi-0001cP-Rw for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 25 Jul 2022 07:08:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33266) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFvwQ-0001b1-35 for bug-gnu-emacs@gnu.org; Mon, 25 Jul 2022 07:08:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59596) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oFvwP-0001TG-SM for bug-gnu-emacs@gnu.org; Mon, 25 Jul 2022 07:08:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oFvwP-0007Lq-Mc for bug-gnu-emacs@gnu.org; Mon, 25 Jul 2022 07:08:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 25 Jul 2022 11:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56679 X-GNU-PR-Package: emacs Original-Received: via spool by 56679-submit@debbugs.gnu.org id=B56679.165874723728203 (code B ref 56679); Mon, 25 Jul 2022 11:08:01 +0000 Original-Received: (at 56679) by debbugs.gnu.org; 25 Jul 2022 11:07:17 +0000 Original-Received: from localhost ([127.0.0.1]:49345 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oFvvh-0007Kp-7K for submit@debbugs.gnu.org; Mon, 25 Jul 2022 07:07:17 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:48440) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oFvvg-0007KY-6i for 56679@debbugs.gnu.org; Mon, 25 Jul 2022 07:07:16 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:46078) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFvva-0001Fy-5u; Mon, 25 Jul 2022 07:07:10 -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=7+SFQtP0OZPlhig0n9HNrzsGbwGqH3CK7TM4lTjKhwQ=; b=GQ6TtLlzb89t 3MSIkd7Q8cmlhMwNYlkDUJ8eJtCoeEAYn4HC1vkuHJDRnnzyK2hVLk1/cXoqOBh6p0coz/ok8JYsj meWXFH8EC1KdhOXZSScDlhKwtYE+HiQ1xh7i5JS63Uym2lgupqJp8EKSGD3h+1N8UmxqLR7at95Ug fuqnYczXIAedgPnBuSJ8tMRtF5W+yJ/icr/mQAJGAbgxNLWBgmaZxeVkNVzgZPaMNrnIp7fhC5CDq SFX4Y389ZJEwXZrdjXUb9KmOJupGchzgD1vKT9P0MCnrpVbullS568VAdGV5iR3h+i4AoHkK8o38V dQUB3D8mQuK+rEqbUQVAUg==; Original-Received: from [87.69.77.57] (port=3620 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 1oFvvZ-0004Yo-Iy; Mon, 25 Jul 2022 07:07:09 -0400 In-Reply-To: <87ilnlapd1.fsf@web.de> (message from Michael Heerdegen on Mon, 25 Jul 2022 04:38:18 +0200) 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:237881 Archived-At: > From: Michael Heerdegen > Cc: YE , 56679@debbugs.gnu.org > Date: Mon, 25 Jul 2022 04:38:18 +0200 > > Eli Zaretskii writes: > > > Can we delay loading whitespace.el until the user actually wants to > > turn on whitespace-mode, or until he/she customizes this option? > > AFAIU, whitespace-mode is not turned on unconditionally by diff-mode, > > so this 'require' is not needed for users who don't turn that minor > > mode in Diff buffers. > > Principally correct - but how do we do this correctly for the > (get 'whitespace-style 'custom-type) :type definition? What are the problems with this that require us to load whitespace.el up front?