Skip to content

Commit

Permalink
Fixing a few confusions on the name of the beautify flag.
Browse files Browse the repository at this point in the history
(It should apply also interactively.)
  • Loading branch information
herbelin committed Oct 12, 2016
1 parent af3538f commit 96ed527
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion interp/constrextern.ml
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ let explicitize loc inctx impl (cf,f) args =
(!print_implicits && !print_implicits_explicit_args) ||
(is_needed_for_correct_partial_application tail imp) ||
(!print_implicits_defensive &&
(not (is_inferable_implicit inctx n imp) || !Flags.beautify_file) &&
(not (is_inferable_implicit inctx n imp) || !Flags.beautify) &&
is_significant_implicit (Lazy.force a))
in
if visible then
Expand Down
8 changes: 4 additions & 4 deletions printing/ppvernac.ml
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ module Make

let pr_decl_notation prc ((loc,ntn),c,scopt) =
fnl () ++ keyword "where " ++ qs ntn ++ str " := "
++ Flags.without_option Flags.beautify_file prc c ++
++ Flags.without_option Flags.beautify prc c ++
pr_opt (fun sc -> str ": " ++ str sc) scopt

let pr_binders_arg =
Expand Down Expand Up @@ -383,7 +383,7 @@ module Make
| Some pl -> str"@{" ++ prlist_with_sep spc pr_lident pl ++ str"}"

let pr_rec_definition ((((loc,id),pl),ro,bl,type_,def),ntn) =
let pr_pure_lconstr c = Flags.without_option Flags.beautify_file pr_lconstr c in
let pr_pure_lconstr c = Flags.without_option Flags.beautify pr_lconstr c in
let annot = pr_guard_annot pr_lconstr_expr bl ro in
pr_id id ++ pr_univs pl ++ pr_binders_arg bl ++ annot
++ pr_type_option (fun c -> spc() ++ pr_lconstr_expr c) type_
Expand Down Expand Up @@ -678,7 +678,7 @@ module Make
| VernacNotation (_,c,((_,s),l),opt) ->
return (
hov 2 (keyword "Notation" ++ spc() ++ qs s ++
str " :=" ++ Flags.without_option Flags.beautify_file pr_constrarg c ++ pr_syntax_modifiers l ++
str " :=" ++ Flags.without_option Flags.beautify pr_constrarg c ++ pr_syntax_modifiers l ++
(match opt with
| None -> mt()
| Some sc -> str" :" ++ spc() ++ str sc))
Expand Down Expand Up @@ -760,7 +760,7 @@ module Make
let pr_constructor (coe,(id,c)) =
hov 2 (pr_lident id ++ str" " ++
(if coe then str":>" else str":") ++
Flags.without_option Flags.beautify_file pr_spc_lconstr c)
Flags.without_option Flags.beautify pr_spc_lconstr c)
in
let pr_constructor_list b l = match l with
| Constructors [] -> mt()
Expand Down

0 comments on commit 96ed527

Please sign in to comment.