emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* How to get in-buffer setting from Elisp code
@ 2024-03-08 23:33 Sébastien Gendre
  2024-03-10 10:46 ` Bruno Barbier
  0 siblings, 1 reply; 5+ messages in thread
From: Sébastien Gendre @ 2024-03-08 23:33 UTC (permalink / raw)
  To: Org Mode List

Hello,

How can I access to an in-buffer setting value, from Elisp code ?


Best regards


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to get in-buffer setting from Elisp code
  2024-03-08 23:33 How to get in-buffer setting from Elisp code Sébastien Gendre
@ 2024-03-10 10:46 ` Bruno Barbier
  2024-03-10 11:39   ` Sébastien Gendre
  0 siblings, 1 reply; 5+ messages in thread
From: Bruno Barbier @ 2024-03-10 10:46 UTC (permalink / raw)
  To: Sébastien Gendre, Org Mode List


Hi Sébastien,

Sébastien Gendre <seb@k-7.ch> writes:

> Hello,
>
> How can I access to an in-buffer setting value, from Elisp code ?
>

IIUC, they are called "Buffer-Local Variables".

Using 'buffer-local-value' should give you the value of a variable in a
buffer.

See the manual for more:
      (info "(elisp) Buffer-Local Variables")


Bruno


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to get in-buffer setting from Elisp code
  2024-03-10 10:46 ` Bruno Barbier
@ 2024-03-10 11:39   ` Sébastien Gendre
  2024-03-10 12:40     ` Gerard Vermeulen
  0 siblings, 1 reply; 5+ messages in thread
From: Sébastien Gendre @ 2024-03-10 11:39 UTC (permalink / raw)
  To: Bruno Barbier; +Cc: Org Mode List

Hi,

Thank you for your reply.

I talk about the Org-mode In-Buffer settings:
https://orgmode.org/manual/In_002dbuffer-Settings.html



Bruno Barbier <brubar.cs@gmail.com> writes:

> Hi Sébastien,
>
> Sébastien Gendre <seb@k-7.ch> writes:
>
>> Hello,
>>
>> How can I access to an in-buffer setting value, from Elisp code ?
>>
>
> IIUC, they are called "Buffer-Local Variables".
>
> Using 'buffer-local-value' should give you the value of a variable in a
> buffer.
>
> See the manual for more:
>       (info "(elisp) Buffer-Local Variables")
>
>
> Bruno



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to get in-buffer setting from Elisp code
  2024-03-10 11:39   ` Sébastien Gendre
@ 2024-03-10 12:40     ` Gerard Vermeulen
  2024-03-10 19:37       ` Sébastien Gendre
  0 siblings, 1 reply; 5+ messages in thread
From: Gerard Vermeulen @ 2024-03-10 12:40 UTC (permalink / raw)
  To: Sébastien Gendre; +Cc: Bruno Barbier, Org Mode List



On 10.03.2024 12:39, Sébastien Gendre wrote:
> Hi,
> 
> Thank you for your reply.
> 
> I talk about the Org-mode In-Buffer settings:
> https://orgmode.org/manual/In_002dbuffer-Settings.html
> 
Try for instance: (org-collect-keywords '("TITLE"))

See: 
https://emacs.stackexchange.com/questions/21459/programmatically-read-and-set-buffer-wide-org-mode-property

Regards -- Gerard



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to get in-buffer setting from Elisp code
  2024-03-10 12:40     ` Gerard Vermeulen
@ 2024-03-10 19:37       ` Sébastien Gendre
  0 siblings, 0 replies; 5+ messages in thread
From: Sébastien Gendre @ 2024-03-10 19:37 UTC (permalink / raw)
  To: Gerard Vermeulen; +Cc: Bruno Barbier, Org Mode List

This is it.

Thank you very much.


Gerard Vermeulen <gerard.vermeulen@posteo.net> writes:

> On 10.03.2024 12:39, Sébastien Gendre wrote:
>> Hi,
>> Thank you for your reply.
>> I talk about the Org-mode In-Buffer settings:
>> https://orgmode.org/manual/In_002dbuffer-Settings.html
>> 
> Try for instance: (org-collect-keywords '("TITLE"))
>
> See:
> https://emacs.stackexchange.com/questions/21459/programmatically-read-and-set-buffer-wide-org-mode-property
>
> Regards -- Gerard



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-03-10 19:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-08 23:33 How to get in-buffer setting from Elisp code Sébastien Gendre
2024-03-10 10:46 ` Bruno Barbier
2024-03-10 11:39   ` Sébastien Gendre
2024-03-10 12:40     ` Gerard Vermeulen
2024-03-10 19:37       ` Sébastien Gendre

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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).