src/Pure/Tools/jedit.ML
changeset 69289 bf6937af7fe8
parent 67463 a5ca98950a91
child 69349 7cef9e386ffe
equal deleted inserted replaced
69288:4c3704ecb0e6 69289:bf6937af7fe8
    61           (Active.make_markup Markup.jedit_actionN {implicit = false, properties = []});
    61           (Active.make_markup Markup.jedit_actionN {implicit = false, properties = []});
    62       val msg = "Invoke " ^ bg1 ^ name ^ bg2 ^ name ^ en ^ " jEdit action";
    62       val msg = "Invoke " ^ bg1 ^ name ^ bg2 ^ name ^ en ^ " jEdit action";
    63     in writeln (msg ^ Position.here pos); name end
    63     in writeln (msg ^ Position.here pos); name end
    64   else
    64   else
    65     let
    65     let
    66       val completion =
    66       val completion_report =
    67         Completion.make (name, pos)
    67         Completion.make_report (name, pos)
    68           (fn completed =>
    68           (fn completed =>
    69             Lazy.force all_actions
    69             Lazy.force all_actions
    70             |> filter completed
    70             |> filter completed
    71             |> sort_strings
    71             |> sort_strings
    72             |> map (fn a => (a, ("action", a))));
    72             |> map (fn a => (a, ("action", a))));
    73       val report = Markup.markup_report (Completion.reported_text completion);
    73     in error ("Bad jEdit action " ^ quote name ^ Position.here pos ^ completion_report) end
    74     in error ("Bad jEdit action " ^ quote name ^ Position.here pos ^ report) end
       
    75 
    74 
    76 val _ =
    75 val _ =
    77   Theory.setup
    76   Theory.setup
    78     (Thy_Output.antiquotation_verbatim \<^binding>\<open>action\<close> (Scan.lift (Parse.position Parse.embedded))
    77     (Thy_Output.antiquotation_verbatim \<^binding>\<open>action\<close> (Scan.lift (Parse.position Parse.embedded))
    79       (fn ctxt => fn (name, pos) =>
    78       (fn ctxt => fn (name, pos) =>