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

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

Re: Declaring a list as a global variable


From: Basile Starynkevitch
Subject: Re: Declaring a list as a global variable
Date: Sun, 4 Jun 2023 10:08:33 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0


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


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/




reply via email to

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