From unknown Fri Aug 15 01:55:25 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#41073 <41073@debbugs.gnu.org> To: bug#41073 <41073@debbugs.gnu.org> Subject: Status: [PATCH] Adjust outline-minor-mode-map when prefix is changed Reply-To: bug#41073 <41073@debbugs.gnu.org> Date: Fri, 15 Aug 2025 08:55:25 +0000 retitle 41073 [PATCH] Adjust outline-minor-mode-map when prefix is changed reassign 41073 emacs submitter 41073 Philip K severity 41073 wishlist tag 41073 fixed patch thanks From debbugs-submit-bounces@debbugs.gnu.org Mon May 04 05:48:10 2020 Received: (at submit) by debbugs.gnu.org; 4 May 2020 09:48:11 +0000 Received: from localhost ([127.0.0.1]:59002 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jVXhq-00040V-KC for submit@debbugs.gnu.org; Mon, 04 May 2020 05:48:10 -0400 Received: from lists.gnu.org ([209.51.188.17]:42114) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jVXhp-00040O-Fe for submit@debbugs.gnu.org; Mon, 04 May 2020 05:48:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58224) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jVXhp-0006IZ-1g for bug-gnu-emacs@gnu.org; Mon, 04 May 2020 05:48:09 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:57897) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jVXhn-0005lP-KS for bug-gnu-emacs@gnu.org; Mon, 04 May 2020 05:48:08 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id D89515C011D for ; Mon, 4 May 2020 05:48:06 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Mon, 04 May 2020 05:48:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=warpmail.net; h= from:to:subject:date:message-id:mime-version :content-transfer-encoding; s=fm3; bh=aY4mxPlWJOMPwaX/i9owfyaG8S RUFFIh7X5NqzJFCTM=; b=QBS+7y4EkeEm3b04r9C4RveUjWjhuCRsIdIPvAzWFs PiWA/0vWl1FD02b4LAcmEF/0IvXafOmYn5NmG1ARNnrZUQpgmk5Afy2LzGAWDNdg jKAyJ3lmjDEMR63c/w5RshjGWRZ7renNfpJ3hU2CoiU4sBj2rAl1c1IVUzBJL9uc KagdRCPFgbv4Rgtc5TWWQBC8CVllMmqvqSzYeiRHYavpklLHUsBThfbMIttQFm6g rQRosSibPcfqjJOaFVPhzJAuq92gM2txjYF/gvvo7lk9OTNjnwfnrfUF+xG8fKiR onL0EL1ixpFokEyxX2AziPWFqYKcHVYxFNEVToOJygPw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=aY4mxPlWJOMPwaX/i 9owfyaG8SRUFFIh7X5NqzJFCTM=; b=ODg9Q2gmahbtUqLZW4TAg7woyRSoob1pj Ybf93QwebbthMdop97NWdj+Ikpk05vWP/9BslOUmAGzp88RLyCn461ImGEEZ+IGA j6T+znM1T2UlHppNT7vYm9bIDX70kjuxHBJkPPTXxZ3kQB8169hTGSRNpfbn9nWM pqRF2e+qQz0PAeh3nYXLh9tq1tW5EekaFEo14RQG0SSkoSCKIfWMSMa4UMzR22e0 EH/l/ZOS5o+6eumCYDYC9fmqj5t5V48WvK7uWBVxHIu1EaZY0oXLMazyl/pmQl6I dvSe+UnXv9QV/hOsiYpHt8Ny8q94THfMFzsN0Ce0F/FhuoApNmQ0A== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrjeeggddulecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecuogfggedutddqvdejucdlgedtmdenucfjughrpefhvf fufffkofgggfestdekredtredttdenucfhrhhomheprfhhihhlihhpucfmuceophhhihhl ihhpseifrghrphhmrghilhdrnhgvtheqnecuggftrfgrthhtvghrnhepudehgfffkeelle dttdelheejkeffudehgeegieegudduheefudeklefgfeevtdejnecukfhppeekjedrudeg hedrudefrdduuddtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomhepphhhihhlihhpseifrghrphhmrghilhdrnhgvth X-ME-Proxy: Received: from localhost (p57910d6e.dip0.t-ipconnect.de [87.145.13.110]) by mail.messagingengine.com (Postfix) with ESMTPA id 4C92A3066019 for ; Mon, 4 May 2020 05:48:06 -0400 (EDT) From: Philip K To: bug-gnu-emacs@gnu.org Subject: [PATCH] Adjust outline-minor-mode-map when prefix is changed Date: Mon, 4 May 2020 11:48:03 +0200 Message-Id: <20200504094803.15518-1-philip@warpmail.net> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=66.111.4.26; envelope-from=philip@warpmail.net; helo=out2-smtp.messagingengine.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/04 05:38:00 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Spam-Score: 0.4 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) --- lisp/outline.el | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lisp/outline.el b/lisp/outline.el index 15fd6ea02e..aa8ed58ad9 100644 --- a/lisp/outline.el +++ b/lisp/outline.el @@ -289,12 +289,18 @@ outline-mode (list (list nil (concat "^\\(?:" outline-regexp "\\).*$") 0))) (add-hook 'change-major-mode-hook 'outline-show-all nil t)) +(defvar outline-minor-mode-map) + (defcustom outline-minor-mode-prefix "\C-c@" "Prefix key to use for Outline commands in Outline minor mode. The value of this variable is checked as part of loading Outline mode. After that, changing the prefix key requires manipulating keymaps." :type 'key-sequence - :group 'outlines) + :group 'outlines + :set (lambda (sym val) + (define-key outline-minor-mode-map outline-minor-mode-prefix nil) + (define-key outline-minor-mode-map val outline-mode-prefix-map) + (set-default sym val))) ;;;###autoload (define-minor-mode outline-minor-mode -- 2.20.1 From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 08 07:53:49 2020 Received: (at 41073) by debbugs.gnu.org; 8 Aug 2020 11:53:49 +0000 Received: from localhost ([127.0.0.1]:58335 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k4NQ5-0002tx-9p for submit@debbugs.gnu.org; Sat, 08 Aug 2020 07:53:49 -0400 Received: from quimby.gnus.org ([95.216.78.240]:50720) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k4NQ2-0002tc-Op for 41073@debbugs.gnu.org; Sat, 08 Aug 2020 07:53:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=ThA7f1NE+fkXSEyaWbzbDDUHJ2ACeB4SZ+seczTZFIA=; b=lfrONHzgX12PrrkVu1JynbbACU PvmFXcZFwuGqMAduBYzF/zIc1IWUcxOjLdoZYx2ALzr3CC3Ljc0NzPBr+Ny0uxlTPa3UnpgrnmcjR zrN0NvMJPlzBsz0MZNYQNA7l9JS7fghLhsonVm87rIfVaeWzqV7szUBaAvshU+P2KJUg=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k4NPt-0003so-Bh; Sat, 08 Aug 2020 13:53:40 +0200 From: Lars Ingebrigtsen To: Philip K Subject: Re: bug#41073: [PATCH] Adjust outline-minor-mode-map when prefix is changed References: <20200504094803.15518-1-philip@warpmail.net> Date: Sat, 08 Aug 2020 13:53:36 +0200 In-Reply-To: <20200504094803.15518-1-philip@warpmail.net> (Philip K.'s message of "Mon, 4 May 2020 11:48:03 +0200") Message-ID: <87zh752w1r.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Philip K writes: > +(defvar outline-minor-mode-map) > + > (defcustom outline-minor-mode-prefix "\C-c@" > "Prefix key to use for Outline commands in Outline minor mode. > The value of this variable is checked as part o [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 41073 Cc: 41073@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Philip K writes: > +(defvar outline-minor-mode-map) > + > (defcustom outline-minor-mode-prefix "\C-c@" > "Prefix key to use for Outline commands in Outline minor mode. > The value of this variable is checked as part of loading Outline mode. > After that, changing the prefix key requires manipulating keymaps." > :type 'key-sequence > - :group 'outlines) > + :group 'outlines > + :set (lambda (sym val) > + (define-key outline-minor-mode-map outline-minor-mode-prefix nil) > + (define-key outline-minor-mode-map val outline-mode-prefix-map) > + (set-default sym val))) I don't use outline mode, but this makes sense to me (if I understand what it's doing correctly), so I've applied the patch. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 08 07:53:55 2020 Received: (at control) by debbugs.gnu.org; 8 Aug 2020 11:53:55 +0000 Received: from localhost ([127.0.0.1]:58338 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k4NQA-0002uG-Il for submit@debbugs.gnu.org; Sat, 08 Aug 2020 07:53:54 -0400 Received: from quimby.gnus.org ([95.216.78.240]:50734) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k4NQ8-0002tn-IX for control@debbugs.gnu.org; Sat, 08 Aug 2020 07:53:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=rlW5P/fztRDdtg0Ew5HWSLF+KW4JuMJP6rrUqA4BZh8=; b=FPLCUC4I4GDq7pagIXXXlLJPZO GJc03Y7QU07pj5iI8vdcnNdwHjsSM+wdN7Y3gKEJe9jR8kwFIz/zqjoRLLwANzTsHSvHYM8GIOe7n WoOICNsY21+IwqS+wBQohcZG9XeAnBLvGJwDlxjm4M9qJg8HO8/ujlwRavy5kqz8p/b0=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k4NQ0-0003sv-Ne for control@debbugs.gnu.org; Sat, 08 Aug 2020 13:53:46 +0200 Date: Sat, 08 Aug 2020 13:53:43 +0200 Message-Id: <87y2mp2w1k.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #41073 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 41073 fixed close 41073 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 41073 fixed close 41073 28.1 quit From unknown Fri Aug 15 01:55:25 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 06 Sep 2020 11:24:08 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator