help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

outline-regexp) using ";; *+ " for elisp code


From: Christopher Dimech
Subject: outline-regexp) using ";; *+ " for elisp code
Date: Tue, 11 May 2021 09:59:30 +0200

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
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]