From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Howard Melman Newsgroups: gmane.emacs.devel Subject: Re: Convert some files from outline-mode to org-mode Date: Wed, 29 Apr 2020 09:54:56 -0400 Message-ID: References: <87zhaxi70f.fsf@yahoo.com> <4D145B75-0C23-4371-A388-747BB9E42327@traduction-libre.org> <78A6DFC3-234D-415A-8A71-DD38810B9B17@traduction-libre.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="103536"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (darwin) To: emacs-devel@gnu.org Cancel-Lock: sha1:2Z/eiD2LMrZB6kju7z6MKYI7j/M= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Apr 29 15:56:36 2020 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 1jTnCT-000QkJ-0Y for ged-emacs-devel@m.gmane-mx.org; Wed, 29 Apr 2020 15:56:33 +0200 Original-Received: from localhost ([::1]:55894 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTnCS-0001MU-1z for ged-emacs-devel@m.gmane-mx.org; Wed, 29 Apr 2020 09:56:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41686) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTnB3-00084x-3Z for emacs-devel@gnu.org; Wed, 29 Apr 2020 09:55:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jTnB2-0001MO-NV for emacs-devel@gnu.org; Wed, 29 Apr 2020 09:55:04 -0400 Original-Received: from ciao.gmane.io ([159.69.161.202]:60760) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jTnB2-0001Lz-9X for emacs-devel@gnu.org; Wed, 29 Apr 2020 09:55:04 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1jTnB0-000Omv-O9 for emacs-devel@gnu.org; Wed, 29 Apr 2020 15:55:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ Received-SPF: pass client-ip=159.69.161.202; envelope-from=ged-emacs-devel@m.gmane-mx.org; helo=ciao.gmane.io X-detected-operating-system: by eggs.gnu.org: First seen = 2020/04/29 09:55:02 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Received-From: 159.69.161.202 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:248135 Archived-At: jean.christophe.helary@traduction-libre.org writes: > But what you propose is certainly a solution to all the org-moders who > want to be able to seamlessly access outline files. To be clear, it's better than just that. As I said I use it for code folding. As long as a programming mode sets outline-regexp then outline-minor-mode works with it and org-cycle and org-global-cycle work in those modes. I use S-TAB and C-TAB in emacs-lisp-mode, python-mode and othes all the time. In emacs-lisp-mode: (setq-local outline-regexp ";;;;? \\|(....") In python-mode: (setq-local outline-regexp (python-rx (* space) (or defun decorator))) In html-mode: (setq-local outline-regexp "<[hH]\\([1-6]\\)\\>") -- Howard