# HG changeset patch # User wenzelm # Date 1310729296 -7200 # Node ID 93f6f24010c252e68f7d9af7b8077f0191d215eb # Parent 1c18d52204bed9204528bf5275a06d1bfd48708c more robust Binding.pretty/print in typical error sitations with spaces etc. (NB: markup can only provide *additional* emphasis and is occasionally suppressed in TTY mode or tooltips); diff -r 1c18d52204be -r 93f6f24010c2 src/Pure/General/binding.ML --- a/src/Pure/General/binding.ML Fri Jul 15 00:49:38 2011 +0200 +++ b/src/Pure/General/binding.ML Fri Jul 15 13:28:16 2011 +0200 @@ -122,10 +122,9 @@ (* print *) fun pretty (Binding {prefix, qualifier, name, pos, ...}) = - if name = "" then Pretty.str "\"\"" - else - Pretty.markup (Position.markup pos Markup.binding) - [Pretty.str (Long_Name.implode (map #1 (prefix @ qualifier) @ [name]))]; + Pretty.markup (Position.markup pos Markup.binding) + [Pretty.str (Long_Name.implode (map #1 (prefix @ qualifier) @ [name]))] + |> Pretty.quote; val print = Pretty.str_of o pretty;