From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.bugs Subject: bug#41130: outline-mode: Add new commands like org-cycle and org=global-cycle Date: Wed, 13 May 2020 20:51:30 +0200 Message-ID: <87d077eki5.fsf@gnu.org> References: <87wo5gxq7p.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="114358"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 41130@debbugs.gnu.org, Stefan Kangas To: Robert Pluim Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 13 20:52:09 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 1jYwUD-000TfE-L1 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 13 May 2020 20:52:09 +0200 Original-Received: from localhost ([::1]:33360 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jYwUC-000839-Ke for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 13 May 2020 14:52:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41616) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jYwU6-00082B-2v for bug-gnu-emacs@gnu.org; Wed, 13 May 2020 14:52:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47987) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jYwU5-0000zh-Pd for bug-gnu-emacs@gnu.org; Wed, 13 May 2020 14:52:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jYwU5-0004nf-NX for bug-gnu-emacs@gnu.org; Wed, 13 May 2020 14:52:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tassilo Horn Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 May 2020 18:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41130 X-GNU-PR-Package: emacs Original-Received: via spool by 41130-submit@debbugs.gnu.org id=B41130.158939590318425 (code B ref 41130); Wed, 13 May 2020 18:52:01 +0000 Original-Received: (at 41130) by debbugs.gnu.org; 13 May 2020 18:51:43 +0000 Original-Received: from localhost ([127.0.0.1]:59533 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jYwTm-0004n6-W3 for submit@debbugs.gnu.org; Wed, 13 May 2020 14:51:43 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:38586) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jYwTl-0004mu-EH for 41130@debbugs.gnu.org; Wed, 13 May 2020 14:51:42 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:43517) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jYwTg-0000vu-55; Wed, 13 May 2020 14:51:36 -0400 Original-Received: from auth2-smtp.messagingengine.com ([66.111.4.228]:40773) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1jYwTf-0002IN-SX; Wed, 13 May 2020 14:51:35 -0400 Original-Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailauth.nyi.internal (Postfix) with ESMTP id 5F44727C0054; Wed, 13 May 2020 14:51:35 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Wed, 13 May 2020 14:51:35 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrleeggdduvdekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufhfffgjkfgfgggtsehttdertddtredtnecuhfhrohhmpefvrghsshhi lhhoucfjohhrnhcuoehtshguhhesghhnuhdrohhrgheqnecuggftrfgrthhtvghrnheptd elieffkeeuffduueeffefhiedtjeeutdeuveegfffgtdejleekheegkeetkeevnecukfhp peelfedrvdefiedrudefkedrvddtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrg hmpehmrghilhhfrhhomhepthhhohhrnhdomhgvshhmthhprghuthhhphgvrhhsohhnrghl ihhthidqkeeijeefkeejkeegqdeifeehvdelkedqthhsughhpeepghhnuhdrohhrghesfh grshhtmhgrihhlrdhfmh X-ME-Proxy: Original-Received: from thinkpad-t440p (p5dec8a14.dip0.t-ipconnect.de [93.236.138.20]) by mail.messagingengine.com (Postfix) with ESMTPA id E1C803066319; Wed, 13 May 2020 14:51:33 -0400 (EDT) In-Reply-To: (Robert Pluim's message of "Wed, 13 May 2020 18:54:44 +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:180174 Archived-At: Robert Pluim writes: >>>>>> On Wed, 13 May 2020 09:13:14 +0200, Tassilo Horn said: > > Tassilo> PS: On a related note, I think there should be some > Tassilo> standard facility for defining keys depending on the > Tassilo> context. If Stefan hadn't shown me the > Tassilo> menu-item-with-:filter trick some years ago, I would > Tassilo> probably not found out myself. > > You can set a 'keymap property on buffer text. Of course then you have > to make sure that the property is kept up to date.... Yes, that's not something which could be done easily for users. And it restricts dispatch to where point is on. FWIW, in my uses of th/define-context-key I also dispatch on the syntax at point or even last-command-event in order to do something else when hitting the key twice. Anyway, I don't want to hijack this bug report. Bye, Tassilo