From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Philip K Newsgroups: gmane.emacs.bugs Subject: bug#41073: [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> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="71876"; mail-complaints-to="usenet@ciao.gmane.io" To: 41073@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 04 11:52:10 2020 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 1jVXli-000IZK-9W for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 04 May 2020 11:52:10 +0200 Original-Received: from localhost ([::1]:52576 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jVXlh-0004R2-5f for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 04 May 2020 05:52:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58698) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jVXih-00089O-3j for bug-gnu-emacs@gnu.org; Mon, 04 May 2020 05:49:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47456) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jVXig-0006jc-Ji for bug-gnu-emacs@gnu.org; Mon, 04 May 2020 05:49:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jVXig-00041h-Fz for bug-gnu-emacs@gnu.org; Mon, 04 May 2020 05:49:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Philip K Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 May 2020 09:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 41073 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.158858569115412 (code B ref -1); Mon, 04 May 2020 09:49:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 4 May 2020 09:48:11 +0000 Original-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 Original-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 Original-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 Original-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 Original-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) Original-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: Original-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) X-Mailer: git-send-email 2.20.1 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-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:179665 Archived-At: --- 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