From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: master 6458e16: New mode outline-cycle-minor-mode with Orgmode-like TAB cycling on headings Date: Thu, 04 Mar 2021 13:06:42 -0500 Message-ID: References: <20210303191236.24697.93201@vcs0.savannah.gnu.org> <20210303191237.2B2D720E1B@vcs0.savannah.gnu.org> <87zgzkug5d.fsf@mail.linkov.net> <9d5801ee-7b73-9312-063e-5cefe227123e@grinta.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4250"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Daniele Nicolodi Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Mar 04 19:07:47 2021 Return-path: Envelope-to: ged-emacs-devel@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 1lHsO3-0000pa-CS for ged-emacs-devel@m.gmane-mx.org; Thu, 04 Mar 2021 19:07:47 +0100 Original-Received: from localhost ([::1]:55710 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lHsO2-0006Hc-BM for ged-emacs-devel@m.gmane-mx.org; Thu, 04 Mar 2021 13:07:46 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58360) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lHsN8-0005ok-4t for emacs-devel@gnu.org; Thu, 04 Mar 2021 13:06:50 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:50141) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lHsN5-0007Sn-H1 for emacs-devel@gnu.org; Thu, 04 Mar 2021 13:06:49 -0500 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id CBDC144098E; Thu, 4 Mar 2021 13:06:44 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 800DF440838; Thu, 4 Mar 2021 13:06:43 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1614881203; bh=CuIGNzdpunvNE+/LMx/5S+YyGFXzBc/jgOAFiC42RZg=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=P8YNqzwGtjQog/w/C555rOhvsB2inSbBC32bNzgVCi/QhqnogMStxzCKIPTOf7z+5 sU2AjO/hecXS9g90aE0k/eEI7nfeeXJ04hmv55ocS7bUrq4hFoBX1IVaZbOhRDLphP Ygc6fZYir3Tw/NgQngCVW/I3dAP25wxdkyizdGDNOWuUYnhZ+vzeoSr2J3trcIXncz o+YlicIcDETZyNE4VKJW0gQmhTcpHdHF3t9jVK5/CadZL1z+OHsfumYKEVQvcLZtA2 4ZUIzBdLHENZci8lN9bWjnYvXCn9ZaVowb9F2Os+VN9haM24kBOkZR+PuAGCLggiEr KPzgAWwL3v8Rg== Original-Received: from alfajor (unknown [216.154.43.249]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 8C12B120211; Thu, 4 Mar 2021 13:06:43 -0500 (EST) In-Reply-To: <9d5801ee-7b73-9312-063e-5cefe227123e@grinta.net> (Daniele Nicolodi's message of "Thu, 4 Mar 2021 18:03:56 +0100") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:265975 Archived-At: > I haven't tried your code, but there are occasions in which > outline-minor-mode is used to section the buffer on syntactic elements > that are already fontified (on function declarations, for example). What > does happen then when outline-minor-mode-highlight is t? I think these > would be cases in which outline-minor-mode-highlight nil would be better. I think this can be solved by giving to those "headings" outline levels which map to "no highlighting". >> FWIW, I think the only really good way to solve this problem is to >> replace `indent-for-tab-command` with a new command (call it >> `tab-dwim`?) which can be more finely configured by major and minor >> modes. E.g. by making it call `tab-dwim-function` on which modes can >> `add-function` at will (and at various depths so they can control >> whether it should take precedence or not over the "TAB causes >> indentation" or "TAB causes completion", ...).> >> The mechanism of priorities of keymaps coupled with "fallthrough" >> (either via the "menu-item + filter" trick or via some explicitly >> looking up the keymaps and calling the next command) isn't fine-grained >> enough to deal with the amount of overloading that people want to use on >> that poor TAB key. > > That would be nice to have, indeed. OK, I should push it up my todo list. Stefan