[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Declaring a list as a global variable
From: |
uzibalqa |
Subject: |
Re: Declaring a list as a global variable |
Date: |
Sun, 04 Jun 2023 09:26:55 +0000 |
------- Original Message -------
On Sunday, June 4th, 2023 at 8:08 PM, Basile Starynkevitch
<basile@starynkevitch.net> wrote:
> On 6/4/23 10:04, uzibalqa wrote:
>
> > I am adding elements to a list inside a function but how would I declare
> > the list as a global variable
> > initially ?
>
>
> You would probably use the defvar special form.
>
> https://www.gnu.org/software/emacs/manual/html_node/elisp/Defining-Variables.html
Are there any designations one should use when declaring a global variable
within a minor-mode ?
Currently I have included
(defvar mylist '()
"Description.")
> BTW, my pet open source project is the RefPerSys inference engine on
> http://refpersys.org/ and code on
> https://github.com/RefPerSys/RefPerSys/ and contributors are welcome.
>
>
> Regards from near Paris in France
>
> --
> Basile Starynkevitch basile@starynkevitch.net
>
> (only mine opinions / les opinions sont miennes uniquement)
> 92340 Bourg-la-Reine, France
> web page: starynkevitch.net/Basile/