diff options
author | Emilio Jesus Gallego Arias <e+git@x80.org> | 2016-09-30 09:43:31 +0200 |
---|---|---|
committer | Emilio Jesus Gallego Arias <e+git@x80.org> | 2017-03-21 15:51:38 +0100 |
commit | 6885a398229918865378ea24f07d93d2bcdd2802 (patch) | |
tree | 6b586a4461256737d1305a28cf324dc82fcf95cd /ide/coqOps.ml | |
parent | 4084ee30293a6013592c0651dfeb1975711f135f (diff) |
[ide] Dynamic printing width.
The IDE now gets core Coq's `std_ppcmds` document format which is
width-independent.
Thus, we follow [1] and make the `{proof,message}_view` object refresh
their contents when the container widget changes size (by listening to
GTK's `size_allocated` signal). The practical advantage is that now
CoqIDE always renders terms with the proper printing width set and
without a roundtrip to Coq.
This patch dispenses the need for the `printing width` option, which
could be removed altogether.
[1] http://stackoverflow.com/questions/40854571/change-gtksourceview-contents-on-resize/
Diffstat (limited to 'ide/coqOps.ml')
-rw-r--r-- | ide/coqOps.ml | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/ide/coqOps.ml b/ide/coqOps.ml index 7982ffc8b..cee243f91 100644 --- a/ide/coqOps.ml +++ b/ide/coqOps.ml @@ -340,7 +340,6 @@ object(self) buffer#get_iter_at_mark `INSERT method private show_goals_aux ?(move_insert=false) () = - Coq.PrintOpt.set_printing_width proof#width; if move_insert then begin let dest = self#get_start_of_input in if (buffer#get_iter_at_mark `INSERT)#compare dest <= 0 then begin |