From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Jean-Christophe Helary Newsgroups: gmane.emacs.devel Subject: Re: Convert some files from outline-mode to org-mode Date: Wed, 29 Apr 2020 23:08:25 +0900 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 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="61890"; mail-complaints-to="usenet@ciao.gmane.io" To: Emacs developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Apr 29 16:15:59 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 1jTnVG-000Fu4-LB for ged-emacs-devel@m.gmane-mx.org; Wed, 29 Apr 2020 16:15:58 +0200 Original-Received: from localhost ([::1]:59270 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTnVF-0004GG-Ih for ged-emacs-devel@m.gmane-mx.org; Wed, 29 Apr 2020 10:15:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43710) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTnOB-0007cK-Vo for emacs-devel@gnu.org; Wed, 29 Apr 2020 10:08:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jTnO6-0000lJ-Rd for emacs-devel@gnu.org; Wed, 29 Apr 2020 10:08:39 -0400 Original-Received: from relay12.mail.gandi.net ([217.70.178.232]:34579) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jTnO6-0000jx-1o for emacs-devel@gnu.org; Wed, 29 Apr 2020 10:08:34 -0400 Original-Received: from [10.0.1.13] (pl12634.ag0304.nttpc.ne.jp [128.53.235.90]) (Authenticated sender: jean.christophe.helary@traduction-libre.org) by relay12.mail.gandi.net (Postfix) with ESMTPSA id 5D033200002 for ; Wed, 29 Apr 2020 14:08:28 +0000 (UTC) In-Reply-To: X-Mailer: Apple Mail (2.3608.80.23.2.2) Received-SPF: pass client-ip=217.70.178.232; envelope-from=jean.christophe.helary@traduction-libre.org; helo=relay12.mail.gandi.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/04/29 10:08:30 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Received-From: 217.70.178.232 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:248140 Archived-At: > On Apr 29, 2020, at 22:54, Howard Melman wrote: >=20 >=20 > jean.christophe.helary@traduction-libre.org writes: >=20 >> But what you propose is certainly a solution to all the org-moders = who >> want to be able to seamlessly access outline files. >=20 > 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.=20 >=20 > In emacs-lisp-mode: >=20 > (setq-local outline-regexp ";;;;? \\|(....") I had to check the weird shortcuts for the hs mode the other day, = naively thinking that code folding was just a TAB away... Thank yu so = much for your suggestion. > In python-mode: >=20 > (setq-local outline-regexp (python-rx (* space) (or defun = decorator))) >=20 > In html-mode: >=20 > (setq-local outline-regexp "<[hH]\\([1-6]\\)\\>") >=20 > --=20 >=20 > Howard Jean-Christophe Helary ----------------------------------------------- http://mac4translators.blogspot.com @brandelune