From: Christopher Dimech <dimech@gmx.com>
To: Joost Kremers <joostkremers@fastmail.fm>
Cc: help-gnu-emacs@gnu.org
Subject: outline-regexp) using ";; *+ " for elisp code
Date: Tue, 11 May 2021 09:59:30 +0200 [thread overview]
Message-ID: <trinity-20541a83-ed99-46f5-af61-0134382e1683-1620719970067@3c-app-mailcom-bs03> (raw)
In-Reply-To: <87o8dhpx5a.fsf@fastmail.fm>
Any reason why using rgc does not work, whereas things are good when I use
the string directly in the call "make-local-variable"?
(setq-local rgc ";;; \\*+ ")
(add-hook 'emacs-lisp-mode-hook
(lambda ()
(set (make-local-variable 'outline-regexp) rgc)))
> Sent: Tuesday, May 11, 2021 at 7:05 PM
> From: "Joost Kremers" <joostkremers@fastmail.fm>
> To: "Christopher Dimech" <dimech@gmx.com>
> Cc: help-gnu-emacs@gnu.org
> Subject: Re: outline-regexp) using ";; *+ " for elisp code
>
>
> On Tue, May 11 2021, Christopher Dimech wrote:
> > I am hoping to have headline levels using comment loni followed by stars.
> >
> > I mould need some adaptation to get the regular expression right, becouse
> > ";; *+ " does not do the job.
>
> * is special in regexes. You'll need to quote it.
>
> --
> Joost Kremers
> Life has its moments
>
next prev parent reply other threads:[~2021-05-11 7:59 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-11 3:11 outline-regexp) using ";; *+ " for elisp code Christopher Dimech
2021-05-11 7:05 ` Joost Kremers
2021-05-11 7:11 ` Christopher Dimech
2021-05-11 7:16 ` Christopher Dimech
2021-05-11 7:59 ` Christopher Dimech [this message]
2021-05-11 8:19 ` Joost Kremers
2021-05-11 8:32 ` Christopher Dimech
2021-05-11 8:48 ` Christopher Dimech
2021-05-11 10:29 ` Joost Kremers
2021-05-11 11:22 ` Christopher Dimech
2021-05-11 14:15 ` Jean Louis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=trinity-20541a83-ed99-46f5-af61-0134382e1683-1620719970067@3c-app-mailcom-bs03 \
--to=dimech@gmx.com \
--cc=help-gnu-emacs@gnu.org \
--cc=joostkremers@fastmail.fm \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).