unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Let clause with defvar
@ 2024-09-04  0:49 Heime
  2024-09-05 10:32 ` Philip Kaludercic
  0 siblings, 1 reply; 3+ messages in thread
From: Heime @ 2024-09-04  0:49 UTC (permalink / raw)
  To: Heime via Users list for the GNU Emacs text editor

Consider two versions of setting  xiakos.  The let defines local bindings. 
Can the let block be placed outside a defvar or inside.  Does it make a 
difference ?  Although defvar is used to define global variables, can it
be used to evaluating local bindings like let ?  Which version would one
suggest ?

(let ( (orella-waypt
           (questor-path-snip marshal-waypt "orella")) )

  (defvar xiakos
    `( ("GLXKS" . ,(concat orella-waypt "/xiakos"))
       ("GLXKS" . ,(concat orella-waypt "/xiakos")) ))

and

(defvar xiakos

  (let ( (orella-waypt (questor-path-snip marshal-waypt "orella")) )

    `( ("GLXKS" . ,(concat orella-waypt "/xiakos"))
       ("GLXKS" . ,(concat orella-waypt "/xiakos")) ))






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

end of thread, other threads:[~2024-09-05 11:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-04  0:49 Let clause with defvar Heime
2024-09-05 10:32 ` Philip Kaludercic
2024-09-05 11:33   ` Heime

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