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 10:48:02 +0200 [thread overview]
Message-ID: <trinity-8b0f5f1f-e9a8-4aa5-b74f-ad1c8da04918-1620722882022@3c-app-mailcom-bs03> (raw)
In-Reply-To: <87lf8lptle.fsf@fastmail.fm>
> Sent: Tuesday, May 11, 2021 at 8:19 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:
> > 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 ";;; \\*+ ")
>
> Where is this call? =setq-local= sets the variable's value in the buffer in
> which it is executed. If this call is in your init file, it's not going to have
> any effect on your Emacs session.
>
> In your init file, you'll want =defvar= or =defvar-local=. (Note, the =local= part
> here does not have the same meaning as the =local= part in =setq-local=. See the
> doc strings for details.)
defvar-local is buffer-local variable. I would think that I could use defvar as
the setting rather than a buffer-local variable, as the value would be the same for
all elisp files.
Have also tried doing the same for texinfo files. Though outline-miner-mode is not
taking effect.
(add-hook 'texinfo-mode-hook #'outline-minor-mode)
> --
> Joost Kremers
> Life has its moments
>
next prev parent reply other threads:[~2021-05-11 8:48 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
2021-05-11 8:19 ` Joost Kremers
2021-05-11 8:32 ` Christopher Dimech
2021-05-11 8:48 ` Christopher Dimech [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=trinity-8b0f5f1f-e9a8-4aa5-b74f-ad1c8da04918-1620722882022@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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.