<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coq/test-suite/unit-tests/printing, branch master</title>
<subtitle>The formal proof system</subtitle>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/coq/'/>
<entry>
<title>Fix proof_diffs_test.ml</title>
<updated>2020-05-17T11:22:09+00:00</updated>
<author>
<name>Gaëtan Gilbert</name>
</author>
<published>2020-05-10T19:38:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/coq/commit/?id=4c69c4a870f5ef340536798dcdf1025e61a375f9'/>
<id>4c69c4a870f5ef340536798dcdf1025e61a375f9</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Make diffs work for more input strings</title>
<updated>2018-12-20T21:01:46+00:00</updated>
<author>
<name>Jim Fehrle</name>
</author>
<published>2018-10-07T22:14:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/coq/commit/?id=70a139733dfaa42d665a85736ee4324d926723ed'/>
<id>70a139733dfaa42d665a85736ee4324d926723ed</id>
<content type='text'>
Diff code uses the lexer to recognize tokens in the inputs, which can be
Pp.t's or strings.  To add the highlights in the Pp.t, the diff code
matches characters in the input to characters in the tokens.  Current
code fails for inputs containing quote marks or "(*" because the quote
marks and comments don't appear in the tokens.  This commit adds a "diff
mode" to the lexer to return those characters, making the diff routine
more robust.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Diff code uses the lexer to recognize tokens in the inputs, which can be
Pp.t's or strings.  To add the highlights in the Pp.t, the diff code
matches characters in the input to characters in the tokens.  Current
code fails for inputs containing quote marks or "(*" because the quote
marks and comments don't appear in the tokens.  This commit adds a "diff
mode" to the lexer to return those characters, making the diff routine
more robust.
</pre>
</div>
</content>
</entry>
<entry>
<title>Get hyps and goal the same way Printer does; don't omit info</title>
<updated>2018-11-14T20:19:14+00:00</updated>
<author>
<name>Jim Fehrle</name>
</author>
<published>2018-11-07T08:23:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/coq/commit/?id=a7121ed7ba1a5a55845b5ffa4846b8aa0e293e5d'/>
<id>a7121ed7ba1a5a55845b5ffa4846b8aa0e293e5d</id>
<content type='text'>
Allow for new goals that don't map to old goals
Include background_goals in all_goals return value
Fix incorrect change to raw diffs in shorten_diff_span
Fixes #8922
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Allow for new goals that don't map to old goals
Include background_goals in all_goals return value
Fix incorrect change to raw diffs in shorten_diff_span
Fixes #8922
</pre>
</div>
</content>
</entry>
<entry>
<title>Make tokenize_string an optional parameter for diff methods in pp_diffs.</title>
<updated>2018-07-24T03:13:29+00:00</updated>
<author>
<name>Jim Fehrle</name>
</author>
<published>2018-07-01T20:02:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/coq/commit/?id=97069f69ab3a58cc4ccbaa1a835912c6c31dde4d'/>
<id>97069f69ab3a58cc4ccbaa1a835912c6c31dde4d</id>
<content type='text'>
Remove forward reference to lexer.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove forward reference to lexer.
</pre>
</div>
</content>
</entry>
<entry>
<title>Displays the differences between successive proof steps in coqtop and CoqIDE.</title>
<updated>2018-07-24T03:13:19+00:00</updated>
<author>
<name>Jim Fehrle</name>
</author>
<published>2018-04-09T20:16:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/coq/commit/?id=8de046df97b1ea391a3f3879c20c74d53c9fba48'/>
<id>8de046df97b1ea391a3f3879c20c74d53c9fba48</id>
<content type='text'>
Proof General requires minor changes to make the diffs visible, but this code
shouldn't break the existing version of PG.

Diffs are computed for the hypotheses and conclusion of the first goal between
the old and new proofs. Strings are split into tokens using the Coq lexer,
then the list of tokens are diffed using the Myers algorithm.  A fixup routine
(Pp_diff.shorten_diff_span) shortens the span of the diff result in some cases.

Diffs can be enabled with the Coq commmand "Set Diffs on|off|removed." or
"-diffs on|off|removed" on the OS command line.  The "on" option shows only the
new item with added text, while "removed" shows each modified item twice--once
with the old value showing removed text and once with the new value showing
added text.

The highlights use 4 tags to specify the color and underline/strikeout.
These are "diffs.added", "diffs.removed", "diffs.added.bg" and "diffs.removed.bg".
The first two are for added or removed text; the last two are for
unmodified parts of a modified item.

Diffs that span multiple strings in the Pp are tagged with "start.diff.*" and
"end.diff.*", but only on the first and last strings of the span.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Proof General requires minor changes to make the diffs visible, but this code
shouldn't break the existing version of PG.

Diffs are computed for the hypotheses and conclusion of the first goal between
the old and new proofs. Strings are split into tokens using the Coq lexer,
then the list of tokens are diffed using the Myers algorithm.  A fixup routine
(Pp_diff.shorten_diff_span) shortens the span of the diff result in some cases.

Diffs can be enabled with the Coq commmand "Set Diffs on|off|removed." or
"-diffs on|off|removed" on the OS command line.  The "on" option shows only the
new item with added text, while "removed" shows each modified item twice--once
with the old value showing removed text and once with the new value showing
added text.

The highlights use 4 tags to specify the color and underline/strikeout.
These are "diffs.added", "diffs.removed", "diffs.added.bg" and "diffs.removed.bg".
The first two are for added or removed text; the last two are for
unmodified parts of a modified item.

Diffs that span multiple strings in the Pp are tagged with "start.diff.*" and
"end.diff.*", but only on the first and last strings of the span.
</pre>
</div>
</content>
</entry>
</feed>
