Since several years I've been using this snippet to insert a date into buffer:
# -*- coding: utf-8 -*- # name: date # key: date # -- `(insert (format-time-string "%Y-%m-%d"))`$0
However nowadays I get this annoying warning:
Warning (yasnippet): `date' modified buffer in a backquote expression. To hide this warning, add (yasnippet backquote-change) to `warning-suppress-types'.
This is clearly related to this question, but it is not clear what is the proper way to fix the snippet (rather then just suppress the message).