From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: "Paul W. Rankin" Newsgroups: gmane.emacs.bugs Subject: bug#38843: define-globalized-minor-mode enable boolean will prevent loading with :require Date: Wed, 01 Jan 2020 17:10:19 +1000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="163126"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: mu4e 1.2.0; emacs 27.0.60 To: 38843@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jan 01 08:11:15 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1imY9y-000gKN-FJ for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Jan 2020 08:11:15 +0100 Original-Received: from localhost ([::1]:48980 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1imY9x-0006wc-Bn for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Jan 2020 02:11:13 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36192) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1imY9r-0006wW-3s for bug-gnu-emacs@gnu.org; Wed, 01 Jan 2020 02:11:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1imY9m-00028u-6h for bug-gnu-emacs@gnu.org; Wed, 01 Jan 2020 02:11:06 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57782) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1imY9m-000285-0s for bug-gnu-emacs@gnu.org; Wed, 01 Jan 2020 02:11:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1imY9l-0003dN-Rv for bug-gnu-emacs@gnu.org; Wed, 01 Jan 2020 02:11:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Paul W. Rankin" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 Jan 2020 07:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 38843 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.157786263713936 (code B ref -1); Wed, 01 Jan 2020 07:11:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 1 Jan 2020 07:10:37 +0000 Original-Received: from localhost ([127.0.0.1]:35522 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1imY9N-0003ch-CV for submit@debbugs.gnu.org; Wed, 01 Jan 2020 02:10:37 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:39262) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1imY9L-0003ca-V8 for submit@debbugs.gnu.org; Wed, 01 Jan 2020 02:10:36 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34889) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1imY9K-0006vA-GW for bug-gnu-emacs@gnu.org; Wed, 01 Jan 2020 02:10:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1imY9I-0001FJ-IC for bug-gnu-emacs@gnu.org; Wed, 01 Jan 2020 02:10:34 -0500 Original-Received: from out3-smtp.messagingengine.com ([66.111.4.27]:48343) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1imY9D-0001Bi-7K for bug-gnu-emacs@gnu.org; Wed, 01 Jan 2020 02:10:27 -0500 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id C5E2921E95 for ; Wed, 1 Jan 2020 02:10:23 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Wed, 01 Jan 2020 02:10:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paulwrankin.com; h=from:to:subject:date:message-id:mime-version:content-type; s= fm1; bh=Kchx/z0gAlZ4Gdj3VUKzGyAUJT7XyjB+D7h2Pbg4UHg=; b=OVlaJA2L WfYy4/Uo2OwCKp0n85SQexDALHHQMQgRPFE2qG1hwuljkV/inhuRmcMVbboFfdbj 9Q9CKEv9QL9hJtpOli2Dt5KA7n86gmSjyKpQ7HdPKaL8++imtMTO3gdoOwSXA/y0 usEabQR6APrUNkcWLJju7yZm3T8GZQI6d40AxA3f8fv4OqYosqwiggfRgCwLhEdr 7B+IV9p3SXeJ384RSlPvum4WTN4Kx+67YyLXBN26VG5W8pVFW0qE5firV3KVz98a HPRV4DZiv37XbhTjeuRwrbqNKc6WNEjJwxbr5r1hOsWPVxZ8/XtqGIlQ0+kby/ky hKJZdfHK5a2J1Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=Kchx/z0gAlZ4Gdj3VUKzGyAUJT7Xy jB+D7h2Pbg4UHg=; b=rkNc3EwV1qhfsoD+Cz3RDscLhTA/EFrqNiPJMbERCrDDo HMd254+B12sPvE4cDW5c0aNR7VNJRalWRg4o6+2FEP6RZ8sPUZ+tLcIcU8mSpElA 9teBzn9KJmFHshQvH43b8NTwGttY4SdSdg5oXal/XrwyLYId4w+c3Szm8IJO1cMI hxa2PNYcCOJXDwOcPzC3qViDYvTl1lmik91RAvI5OshcevI9nbEWPNEe7bO4F10K n9V9mM9jMJEFZtVHI087LY70AR0aDxwgiD8U3Pfda3Pzxo7r2mvyDu+SNFnLYgjp nSuczTnlH38qfQ4wU+jJNAyNEDEQ3C9Gg2jGiuEWw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrvdefkedguddthecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepfgfhvffufffkgggtsehttdertd dtredtnecuhfhrohhmpedfrfgruhhlucghrdcutfgrnhhkihhnfdcuoehhvghllhhosehp rghulhifrhgrnhhkihhnrdgtohhmqeenucfkphepuddvtddrvddvrddujeehrddvgeelne curfgrrhgrmhepmhgrihhlfhhrohhmpehhvghllhhosehprghulhifrhgrnhhkihhnrdgt ohhmnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Original-Received: from localhost (unknown [120.22.175.249]) by mail.messagingengine.com (Postfix) with ESMTPA id C63608005B for ; Wed, 1 Jan 2020 02:10:22 -0500 (EST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:174025 Archived-At: When defining a global minor mode with define-globalized-minor-mode, an automatic custom option is created to enable that minor mode. If the user wishes to enable this global minor mode at startup, he/she toggles this boolean to "on" and saves his/her init. This should enable the global minor mode upon startup (if available). If a global minor modes is based on local minor modes, it may use a :require keyword in the global minor mode definition, e.g. from page-break-lines: ;;;###autoload (define-global-minor-mode global-page-break-lines-mode page-break-lines-mode page-break-lines-mode-maybe :require 'page-break-lines :group 'page-break-lines) Toggling the option global-page-break-lines-mode in this case will add the following to the user's init: '(global-page-break-lines-mode t nil (page-break-lines)) The problem occurs when page-break-lines is for whatever reason unavailable, it will prevent Emacs from loading. The customize system is designed not to prevent loading even when libraries are unavailable, e.g.settings remain after uninstalling the associated program/library because it makes sense if the user chooses to reinstall. That is, the presence of settings pertaining to unavailable programs/libraries should not prevent Emacs from loading. So, what is the solution here? This feels to me like a bug with the way define-globalized-minor-mode saves this boolean...