*** TeXmacs-0.3.5.11-src/src/Edit/Process/edit_process.gen.h --- TeXmacs-0.3.5.11-src/src/Edit/Process/edit_process.gen.h *************** *** 50,55 **** --- 50,58 ---- void generate_index (string idx); void generate_glossary (string glo); void generate_aux (string which= ""); + + private: + void generate_aux_recursively (string which, tree tt, path ip); }; #endmodule // edit_process *** TeXmacs-0.3.5.11-src/src/Edit/Process/edit_aux.gen.cc --- TeXmacs-0.3.5.11-src/src/Edit/Process/edit_aux.gen.cc *************** *** 332,349 **** } void ! edit_process_rep::generate_aux (string which) { ! int i, n= N(et); ! /* ! path p= start_forward (et); ! path bp, ep; ! */ ! ! for (i=0; i<n; i++) ! if (is_aux (et[i])) { ! tree t= et[i]; ! assign (path (i, N(t)-1), tree (DOCUMENT, "")); ! go_to (path (i, path (N(t)-1, path (0, 0)))); /* cout << "et= " << et << "\n"; --- 332,348 ---- } void ! edit_process_rep::generate_aux_recursively (string which, tree tt, path ip) { ! int n= N(tt); ! for (int i=0; i<n; i++) ! if (! is_aux (tt[i])) { ! if (is_compound (tt[i])) ! generate_aux_recursively (which, tt[i], path(i, ip)); ! } else { ! tree t= tt[i]; ! path doc_ipath (N(t)-1, path (i, ip)); ! assign (revert (doc_ipath), tree (DOCUMENT, "")); ! go_to (revert (path (0, path (0, doc_ipath)))); /* cout << "et= " << et << "\n"; *************** *** 369,374 **** --- 368,381 ---- cout << "------------------------------------------------------\n\n\n"; */ } + + } + + void + edit_process_rep::generate_aux (string which) { + path saved_path= tp; + generate_aux_recursively (which, et, path()); + if (which == "") go_to (saved_path); } #endmodule // code_edit_aux
Archive powered by MHonArc 2.6.19.