Commits

Peter Szilagyi committed 59771a8

Omake.Env.toggle-env cycles through all possible values, now incl. nil

  • Participants
  • Parent commits 2824ea1

Comments (0)

Files changed (1)

elisp/omake/omake-env.el

 (require 'omake-util)
 
 (defun Omake.Env.value-p (v)
-  "Environment variables are sent from ocaml as the symbols 'true and 'false."
+  "Environment variables are sent from ocaml as the symbols 'true
+and 'false, or nil to indicate no setting."
   (case v
     ((true false nil) t)
     (t nil)))
 
 (defun Omake.Env.not (env)
+  "Cycle through the possible values for an OMake boolean
+environment variable."
   (case env
     ((true) 'false)
-    ((false nil) 'true)
+    ((false) nil)
+    ((nil) 'true)
     (t (error "Omake.Env.not error: %s" env))))
 ;; (Omake.Env.not "true")