@@ -304,7 +304,7 @@ disableAssistance[ cell_CellObject ] := (
304304);
305305
306306disableAssistance [ nbo_ NotebookObject ] := (
307- CurrentValue [ nbo , { TaggingRules , "ChatNotebookSettings" , "Assistance" } ] = False
307+ setCurrentValue [ nbo , { TaggingRules , "ChatNotebookSettings" , "Assistance" }, False ]
308308);
309309
310310disableAssistance // endDefinition ;
@@ -424,16 +424,16 @@ rotateTabPage // endDefinition;
424424writePageContent // beginDefinition ;
425425
426426writePageContent [ cell_ CellObject , newPage_ Integer , content : TextData [ $$textData ] ] /; $cloudNotebooks := (
427- CurrentValue [ cell , { TaggingRules , "PageData" , "CurrentPage" } ] = newPage ;
428- CurrentValue [ cell , TaggingRules ] = GeneralUtilities ` ToAssociations @ CurrentValue [ cell , TaggingRules ];
427+ setCurrentValue [ cell , { TaggingRules , "PageData" , "CurrentPage" }, newPage ] ;
428+ setCurrentValue [ cell , TaggingRules , GeneralUtilities ` ToAssociations @ CurrentValue [ cell , TaggingRules ] ];
429429 NotebookWrite [ cell , ReplacePart [ NotebookRead @ cell , 1 -> content ] ];
430430)
431431
432432writePageContent [ cell_ CellObject , newPage_ Integer , content : TextData [ $$textData ] ] := (
433433 SelectionMove [ cell , All , CellContents , AutoScroll -> False ];
434434 NotebookWrite [ parentNotebook @ cell , content , None , AutoScroll -> False ];
435435 SelectionMove [ cell , After , Cell , AutoScroll -> False ];
436- CurrentValue [ cell , { TaggingRules , "PageData" , "CurrentPage" } ] = newPage ;
436+ setCurrentValue [ cell , { TaggingRules , "PageData" , "CurrentPage" }, newPage ] ;
437437 SetOptions [ cell , CellAutoOverwrite -> True , GeneratedCell -> True ]
438438);
439439
@@ -1120,13 +1120,13 @@ setChatSectionSettings // beginDefinition;
11201120
11211121setChatSectionSettings [ cell_ CellObject , settings_ Association ] :=
11221122 Module [ { cellSettings , nbSettings , newSettings },
1123- KeyValueMap [ Function [ CurrentValue [ cell , { TaggingRules , "ChatNotebookSettings" , #1 } ] = #2 ], settings ];
1123+ KeyValueMap [ Function [ setCurrentValue [ cell , { TaggingRules , "ChatNotebookSettings" , #1 }, #2 ] ], settings ];
11241124
11251125 (* The rest of this is a workaround for bug 435058 *)
11261126 cellSettings = CurrentValue [ cell , { TaggingRules , "ChatNotebookSettings" } ];
11271127 nbSettings = CurrentValue [ parentNotebook @ cell , { TaggingRules , "ChatNotebookSettings" } ];
11281128 newSettings = Complement [ cellSettings , nbSettings ];
1129- CurrentValue [ cell , { TaggingRules , "ChatNotebookSettings" } ] = newSettings ;
1129+ setCurrentValue [ cell , { TaggingRules , "ChatNotebookSettings" }, newSettings ] ;
11301130 ];
11311131
11321132setChatSectionSettings // endDefinition ;
@@ -1228,7 +1228,7 @@ ExclusionToggle[ nbo_NotebookObject, cellObjects: { __CellObject } ] :=
12281228 cells = ConfirmMatch [ NotebookRead @ cellObjects , { __ Cell } ];
12291229 excluded = MatchQ [ cells , { Cell [ __ , "ChatExcluded" , ___ ], ___ } ];
12301230 toggled = ConfirmMatch [ If [ excluded , includeChatCells @ cells , excludeChatCells @ cells ], { __ Cell } ];
1231- CurrentValue [ cellObjects , Deletable ] = True ;
1231+ setCurrentValue [ cellObjects , Deletable , True ] ;
12321232 NotebookDelete @ cellObjects ;
12331233 NotebookWrite [ nbo , toggled , All ]
12341234 ];
@@ -1260,7 +1260,7 @@ WidgetSend // beginDefinition;
12601260WidgetSend [ cell_ CellObject ] := withChatState @
12611261 Block [ { $alwaysOpen = True , cellPrint = cellPrintAfter @ cell , $finalCell = cell , $AutomaticAssistance = True },
12621262 (* TODO: this is currently the only UI method to turn this back on *)
1263- CurrentValue [ parentNotebook @ cell , { TaggingRules , "ChatNotebookSettings" , "Assistance" } ] = True ;
1263+ setCurrentValue [ parentNotebook @ cell , { TaggingRules , "ChatNotebookSettings" , "Assistance" }, True ] ;
12641264 SendChat @ cell
12651265 ];
12661266
0 commit comments