@kugel- commented on this pull request.


> @@ -92,6 +92,17 @@ signal void (*document_reload)(GObject *obj, GeanyDocument 
> *doc, gpointer user_d
  */
 signal void (*document_before_save)(GObject *obj, GeanyDocument *doc, gpointer 
user_data);
 
+/** Sent before save as is performed with the original document.
+ *
+ * @param obj a GeanyObject instance, should be ignored.
+ * @param doc the original document. The document with the new file name is 
still
+ *        reported by the "document-save" signal sent afterwards.
+ * @param user_data user data.
+ *
+ * @since TODO
+ */
+signal void (*document_before_save_as)(GObject *obj, GeanyDocument *doc, 
gpointer user_data);

Perhaps add a `boolean` return value to potentially allow the plugin to block 
saving the file?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/3572#pullrequestreview-1658506031
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany/pull/3572/review/[email protected]>

Reply via email to