bastibe / annotate.el

Annotate.el
Other
384 stars 20 forks source link

Prevented warning when saving a non annotated buffer #144

Closed cage2 closed 1 year ago

cage2 commented 1 year ago

Hi @bastibe !

A little patch to remove an annoying warning. :)

From NEWS.org

  This versions prevented printing of a warning

  `annotate-save-annotations' printed a warning  if the buffer was not
  based on a file's contents. But  the warning was printed even if the
  buffer contained no annotations at all.

  This  version prints  the warning  about  missing file  only if  the
  buffer is annotated (i.e. contains at least an annotation).

Bye! C.

bastibe commented 1 year ago

Looks good! Another small usability improvement! Wonderful!

cage2 commented 1 year ago

Hi @bastibe !

Thanks for the review! I am merging in a second. :smile:

Season greetings! :christmas_tree: C.