--- a/src/Pure/PIDE/command.ML Thu Nov 03 20:10:35 2022 +0100
+++ b/src/Pure/PIDE/command.ML Thu Nov 03 20:33:59 2022 +0100
@@ -406,9 +406,10 @@
fun print_function name f =
Synchronized.change print_functions (fn funs =>
- (if name = "" then error "Unnamed print function" else ();
- if not (AList.defined (op =) funs name) then ()
- else warning ("Redefining command print function: " ^ quote name);
+ (if name = "" then error "Unnamed print function"
+ else if AList.defined (op =) funs name then
+ warning ("Redefining command print function: " ^ quote name)
+ else ();
AList.update (op =) (name, f) funs));
fun no_print_function name =