TIL that `defvar` in -lisp won't update a variable's value if it's already been set. No wonder I've been getting dates from last week, when I've been trying to get today's.

"The defvar special form is similar to setq in that it sets the value of a variable. It is unlike setq in two ways: first, it only sets the value of the variable if the variable does not already have a value. If the variable already has a value, defvar does not override the existing value. Second, defvar has a documentation string."

gnu.org/software/emacs/manual/

Documentation string on a variable is pretty rad, though.

Follow

Noted this, as well as some other things I learned when writing emacs-lisp: newschematic.org/blog/writing-

· · Web · 0 · 0 · 1
Sign in to participate in the conversation
Mastodon

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!