From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christopher Dimech Newsgroups: gmane.emacs.help Subject: outline-heading-alist for elisp using ";; * " Date: Tue, 11 May 2021 17:22:19 +0200 Message-ID: References: <878s4m5mbj.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20699"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org, monnier@iro.umontreal.ca To: Jean Louis Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 11 17:30:49 2021 Return-path: Envelope-to: geh-help-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 1lgULR-0005GG-56 for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 11 May 2021 17:30:49 +0200 Original-Received: from localhost ([::1]:51458 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgULQ-0003gT-6z for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 11 May 2021 11:30:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58742) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgUDp-0006qF-9X for help-gnu-emacs@gnu.org; Tue, 11 May 2021 11:22:57 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:57741) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgUDn-0002t7-6D for help-gnu-emacs@gnu.org; Tue, 11 May 2021 11:22:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1620746540; bh=IaCm0TGFhkR8U/wNVle9dU1DIVOqe5RG8FpAU03gX7M=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=ih4MNQccOL3qkN/gz+fbz9TyG4h+pdMp03UKj/bh0GZg4Z+n467Evr3ardB/bAlsp dQnJnL0r3s1bKUhyRsQbcm3mPRBczzRfPZX2p/SlSriuLH0EY+NMXtYdpiyiG3354U GBMIQ54pLiNGJOEebUxbrEAzNRWa65cmaRaI/6q4= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net (3c-app-mailcom-bs13.server.lan [172.19.170.181]) (via HTTP); Tue, 11 May 2021 17:22:19 +0200 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:Nh444xZ1CmIAAPfhXvUTMieMUt+o5bdw0Vtnom8Hfz9pkOKGGcXJS1SUonW5Ee4vY3wOW 2WLOZGx4oIq37CzzPYrYWbtfK9YeslF/Dck/8l+o6lNAa4yHsHkYKtQRBucoF0qEvuNJ9awtYXIk 50PBy06DcYzotRIwFdNDvbhswKlb1+jz7AKcMrdQ1HC1e0XlU0mWuaoYmHqwnl/M58ram5hezRME +4jqzEyAUQn/hV2ZHRloJsBoNVB+JIA6oAY2YGbCCFlqE85bilDnxrx5a+5QzR+pR+T2UIIxCK/M vQ= X-UI-Out-Filterresults: notjunk:1;V03:K0:RwrZv0V7ypk=:rlVPJJifMC69G97WHFu7GB RysbsW1XSLdcdL4dsbnbWy8/ZUS74LoOFJJXeJs9nae2LdOI56MwQcMVuWSE1hGH39/6buDhN hiGRMdq8fOPjED6tCPhiZ54xyeGc1SI+PO2D0bp+Mm96kLC0ppzMln/F15kGiGqxYwUOu3/LR IG2HIZO25XzeSO71BHDOiNFXYZuyZ/8hrHgai1TgvkUVNUCZh0KItrxQo0Y6sgYkIbT1GMuZi g4nVmloKHRvzjWt8dN2ghXJBNQj89KV16rWwTlPmYfCgnrmecYesriLIHazTWtWfSHNWb49FT 8QPiWnY1hNVm3QT7LXX8Hh5y5ywpGTj+47ZaYNJxIi87VwurHIn8rdoos6FhIMD3HKXPEuFBX ecTxX13iqgDiGOmWd7EPhJ0+CC0da7fzcUcGjBPXECRfogfAlzaYmJCcz7s2T25+cpUhX8kXS yzcovPMz36Q1LQKIzld8F6/EfobKH1exYwelQYcM14vuDEzTq0j8pHanL3bp6OjXRZKpG43/0 nWtgJB8igWNZYtSaMaQzqH08J5pe8jlAv1lTsZCwjMlXBdE7NpaKeX2kSwDf38xypWh1XtZ24 twYvkWkSxfAUWWa75rslUuC9CUMcVXCK/xe1C0wGqXobWWwEq9Yc62PhDPwb4MjVir1GR+L0h P+NzwLLu2enePptMDhMdTBjHnDGij12eL8sV4ubRNMjRrvKuSlWSXiqxDmsq+oeDHztG2eYwS XtpL6gcOSWQC6i8APSqWneW9b2id30RmPpacef3cwi6yQwRFrc4MAmdoJbII5lXCEa5L4RuX Received-SPF: pass client-ip=212.227.15.15; envelope-from=dimech@gmx.com; helo=mout.gmx.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:129701 Archived-At: The first one is org-like, the second option is roman-numeral-like. You a= re correct, not all inclusive. They are just primary headings for now. For subheadings I would want to use ;;; * Heading ;;; ** Subheading ;;; *** SubSubHeading For the roman-like, it uses only headings ;;; I | Heading ;;; II | Heading ;;; III | Heading ;;; IV | Heading > Sent: Wednesday, May 12, 2021 at 2:22 AM > From: "Jean Louis" > To: "Christopher Dimech" > Cc: monnier@iro.umontreal.ca, help-gnu-emacs@gnu.org > Subject: Re: outline-heading-alist for elisp using ";; * " > > * Christopher Dimech [2021-05-11 16:16]: > > Have made the following function. I alse want to be able to select th= e > > defalt headings for elisp which I think is ";;; Heading" > > > > Having difficulties on what modifications I need to do. > > > > (defun headline-elisp (hdl) > > "todo" > > > > (pcase hdl > > (1 > > (defvar rgc ";;; \\*+ ")) > > (_ > > (defvar rgc ";;; \\([A-Za-z]\\|[IVXLCDMivxlcdm0-9]+\\) | ")) ) > > It does not look right. The headline regexp looks only for beginning > stuff, it is not all inclusive. What do you mean by "beginning stuff"? > > -- > Jean > > Take action in Free Software Foundation campaigns: > https://www.fsf.org/campaigns > > Sign an open letter in support of Richard M. Stallman > https://stallmansupport.org/ > https://rms-support-letter.github.io/ > >