code: def bookmarks_changed(self):
          
          bookmarks = self.editor.get_bookmarks()
          if self.editor.bookmarks != bookmarks:
              self.editor.bookmarks = bookmarks
              self.sig_save_bookmarks.emit(self.filename, repr(bookmarks))
docs: Bookmarks list has changed.