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: Re: Allowing spaces in the regexp for outlines Date: Wed, 27 Mar 2024 20:12:44 +0100 Message-ID: References: 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="23468"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: monnier@iro.umontreal.ca Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Mar 27 20:13:34 2024 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 1rpYiL-0005s4-Mc for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 27 Mar 2024 20:13:33 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rpYhk-0007fv-Ee; Wed, 27 Mar 2024 15:12:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rpYhj-0007fg-25 for help-gnu-emacs@gnu.org; Wed, 27 Mar 2024 15:12:55 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rpYhg-00007Z-GV for help-gnu-emacs@gnu.org; Wed, 27 Mar 2024 15:12:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.com; s=s31663417; t=1711566764; x=1712171564; i=dimech@gmx.com; bh=7IaZpf8anPYdYkTt7TExO43oMwTFX6oIis1aQbNHAjw=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To: References; b=INw5+Vb24BGrAl+eiCocf8AACyjOWqr2ncNUukW1RZ8RKnqli1lrzBhS2c5Sa/jS DEqc0eFxPb3kpGg/PtY1X4rpoktUV6d0I1Wdgy9N77JI/3r9M/PmYCspyyw/1VPPe GM0cuDgkWj8x1Fze5tKDP/nfc2LGZG2E2Pjwah4Lh22LZvURBN7xKT9/emmAB8zky EWTBWQdEJqHrnaQ0X0RnXrtaZNYBUI24P9a6cgSkP1eq5Bt1XbeyyG62IDu62yL8R t7yA1m3VWdIwWzvGTGKgVJ1fyJrgsAdno372XyohtgfGi1uf08E25CnfYn+zy+acb z1lhliv6u7Yx1L/Sog== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from [141.8.81.247] ([141.8.81.247]) by web-mail.gmx.net (3c-app-mailcom-bs13.server.lan [172.19.170.181]) (via HTTP); Wed, 27 Mar 2024 20:12:44 +0100 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:yDdeo4rONRAn4jqE0+zVGaeQKHK4a/EUBd3QgezLmalGTCOemSphSpkSPrggrNDTEr9QQ Oj1Yu2K1so9Bjk50zNuIi8hW3abTCxf0/m6b3cf7ni9OVsxb0acs15lgDvyjU5vik2Sts6YawGX+ r78O4dzGAwF8j8psq7EEUf8AGmp559Xs8oKBBwBCQdIR24apakAl3dYt45xNq8IvmvibgQYccM+v pPgXKVxpWeII5OGoUsC34ujhnk/PbLQWxHhrAmM+eCjT1ghh2lwWt3IHjCIWEKXiewjQSw+W/dP4 vs= UI-OutboundReport: notjunk:1;M01:P0:mGNOdOY030s=;rQQEY5yvfi21MNYCE6zcNAsbdS3 2JtZPqq0Ad0k+OkKsFuJfNl2jsNJv4z2HFrud7G4CjGwwQNKbY/8iThzy2kYRazlVnbweum8K U89Vb6QUDI/QEKMb+YdyIV6WVK4PejUae1rfEIr5y+xojUQb5uKTX7+GzcZoQ1qk1tfaW33fH y+YB2MDT3ryDhAlpfr6tQj4jjy+yGSN48/Mp3387BLSt7QSaNSzCcZNueBT4sPsQM1RB/mmeH GKsvqmTP5WVdKXLgJ1Euv2bp2pd0X1O8jCfpQsQT2SXACVlmUFEX/RFUrYxeAE5RQMQ+YMQWL bSOq+NJ7o9i8A37vwiJPHOQqxyW7PrPHgxQBnt+PFBwlnuWI8e8muPHJ3nw7XJjrGNJ/f2OMb ltzy/29SxiqdQ0zCGWtIg/7f2kOeoeyL3X5lMSKhF91u33bpkPvghC8i6YFGbOvH0q62qnHFT +DaGzhzoaUiz3EmqrIangPONeM5YxvEnJYsQoDT5iGHeofaBxlRdFgWzTbsIiP9I2LMXPxzIg vzdTJon+/xyOPknpma7+6CQM1nHIjDK4ADir9aK5Bzz8tHiQL0k+kpJmiHLMqD8oHgpveUUNx Cv3NGKLiX1m/bzi4G3M3KAoaINuU+3yiQ8vnrPFGR4Q9H19fNLYHTUb8EZXWscOqTQ4EzM4uT URm+ZHGYpBsRPRjFapbuWQEfrw/Nolfw5mTGfKFpNIRX1wYISL48curM0p15NG8= Received-SPF: pass client-ip=212.227.15.19; envelope-from=dimech@gmx.com; helo=mout.gmx.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=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.29 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-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:146186 Archived-At: > Sent: Thursday, March 21, 2024 at 4:32 PM > From: "Stefan Monnier via Users list for the GNU Emacs text editor" > To: help-gnu-emacs@gnu.org > Subject: Re: Allowing spaces in the regexp for outlines > > > Have made a regexp for outlines to use ';;;' followed by 'H' and a num= ber. > > > > I would like to allow any number of spaces between the ';;;' and the l= etter 'H'. > > How can I change the regexp to allow such a capability ? > > Why? There is already the functionality for changing the font-lock for outline-= minor-mode. So why not ! It is not so easy to do though. Because managing outlines i= n a buffer is valuable for almost everybody, it would help for there to me clear expl= anation of what has to be done with actual examples. Good for this would be in th= e Introduction to Emacs Lisp Programming. > ELisp already has a set convention for outlining, where `;;;` is > a top-level heading, then `;;;;` is a subheading, `;;;;;` is > a subsubheading, etc... > > > Stefan > > >