<<< Date Index >>>     <<< Thread Index >>>

reset for $my_var?



Hi,

as Alain noted for mutt/2323, I've done something similar to $my_ for muttng some time ago. Back then I had slightly different semantics:

  - set: obviously set a new value
  - reset: reset to value given for first set
  - unset: remove definition
  - toggle: not allowed

For mutt, both reset and unset make the definition disappear and I wonder if there're cases where a reset for $my_ variables make sense.

Like:

  :set my_foo = "10"
  :set my_foo = "20"
  :set ?my_foo
  "20"
  :reset my_foo
  :set ?my_foo
  "10"
  :unset my_foo
  no such variable

Opinions?

  bye, Rocco
--
:wq!