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 15:15:57 +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="1262"; 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 15:17:19 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 1lgSGF-0000BT-23 for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 11 May 2021 15:17:19 +0200 Original-Received: from localhost ([::1]:38318 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgSGD-0001ZV-Ab for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 11 May 2021 09:17:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55054) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgSFj-0001Yx-9W for help-gnu-emacs@gnu.org; Tue, 11 May 2021 09:16:48 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:54077) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgSFV-0002fq-3r for help-gnu-emacs@gnu.org; Tue, 11 May 2021 09:16:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1620738957; bh=qLS1D8b6XzG2AeaOfJ5fu4piFwxGJWza+1OTREfhxDw=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=lVq343MqcNJUgO0gZKs93BzFBXti2rX+4w4fiYIPLhLqdmGUNbNQouuzmIpCScLR1 llEKk9ZtDO8Lsz1tX1KSPjaBddses7MqDgRAQBSYcRxbPNRdFLLcN66mmFdA+eN9zo eHolmFKlNjITHqqxp1Xqyk7hUxOe3VLubc8AAUP8= 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 15:15:57 +0200 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:P/NAac9hIxrmyp4pO1shO5n9hdnQNZhO/z1iHTa/ZeVV6FhPTHKeBcptFkq/ihRot0g6c 7z221qoTaumboyHXFxQW8Q76V+zbobTmfxw9j0HhCFIrns0vhlrI9Z4/pBZfDqJlDf4+sy1e3IDu AEQy1YZVPeAHPw2vsV03woHklr+wt0tABwnNDk2T2jbkWXSb3Rinp042v70G0qQaghrKIypFEEUM ccVObDNW0fLV/2nHonxtGsJ1Hv+YxOkGtT1XclkTEl+WOB5FRw6g9FRB/yyNgprSHJF+KWaVicnN FQ= X-UI-Out-Filterresults: notjunk:1;V03:K0:2VtLySZeoMY=:PcXLdd2hTQCV6B7YwnVYWc CBm3xw/vzUF24+8i40dXZMVkMB8Fuqa1OdW9krZIHj08nEf2LNpkPn+DngSh6yUGhrtqVGTVW zwU/3+o2b2PU0j5o8sj3cNWp24wQ0eQo8UiHRZXCJ3aNUoXzbk7C/LgSGYOIQF2ONZGXJCnF9 XWELwfNkYd7wII9PiOWH3l1mU2bjt/Ybm/j8j/dVkWsUvylfVAPb84V9c4GWfUg7U0S1D9m0/ 9JfAl1QNdRWJAizWVXcbHvPadxtLBGXg0Jqak3L47hGFtG41n6WKA0B/FiHp7zGLUOwVDUEhh Jl1uqPyGdFh1f89Y8bwwvMKgxu5wRlG3H/m8SM2qPcldF30lVnrpk/t/rjUxAmPaStw/UhuFt j2QP6JomtyrLB8N+lyNgVYsOvSACF48ockG06t/Bto/L4WbA2iIqcIfTbzcgZAtF6LayFDFV6 /7UqieCJepNuJ5GPglDEonA7oh0r5T5KUFibVv0sEPbN8npi3h/fOcrtVA7USoA7Mb23ycrIB VmijRi01AIWFm1D8u158FoCmQztOMjkzrlQWEsV1yTnFZdKS3n4GHJxY1jIrf9GQQP1/WtefT sbsrT8l7Omfe0Xryrgl0qYWC/3lRj+gaJg0p8WSyIh0jlXDDeBdXP6GsrCcSmOd3ZhTZzriLY IMZEjWQQ3XzQIBvafldmP+i6uJFWfJJSc58V39jyu62HUDxwYoMhkmYl3lDVfURi+EmaR/SI+ 8rnl7cKSD0OM3cGfLT+pLVfEcHWEq4QyVkvwBguDvcI1Ogp9fnpmGNoZGLtFSBfQTRu0DFIA Received-SPF: pass client-ip=212.227.17.20; envelope-from=dimech@gmx.com; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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:129695 Archived-At: Have made the following function. I alse want to be able to select the 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]+\\) | ")) ) (add-hook 'emacs-lisp-mode-hook (lambda () (set (make-local-variable 'outline-regexp) rgc))) ) > Sent: Wednesday, May 12, 2021 at 12:06 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 08:06]: > > I am working on some ideas and recommend that emacs beefs up > > outline-minor-mode for the different programming languages. Outline > > structures would then be available for use. And if users want to > > change they can do that as well. We would need some docementation > > with real examples on how to set things up. Better still, if the > > information is provided in the outline.el code. > > I have found enough information to make it working, it was in the > variables. And much is already documented: (info "(emacs) Outline > Mode") > > Now if somebody wish to customize any variable, well... where to find > the variables? > > What I do is: > > C-h v outline-TAB TAB or > > C-h v outline-minorTAB TAB and I look then in descriptions of those > variables. > > Emacs is in general stable editor and it is already advanced. > > Customizing variables and modes is on a level more than advanced. Thus > documentation on those variables is already there, as when person is > level more than what Emacs Manual provides, that person has to know to > find descriptions in docstrings of variables or in the source of the > mode. > > > -- > 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/ > >