Tom Alexander
3962db12a8
Implement the new fields for fixed width area.
2023-12-15 12:29:46 -05:00
Tom Alexander
b1773ac90e
Get post blank for footnote references.
2023-10-31 22:58:17 -04:00
Tom Alexander
645d9abf9c
Support nil contents.
2023-10-31 22:58:17 -04:00
Tom Alexander
90ba17b68c
Switch to a numeric post-blank.
...
Turns out post-blank has different meanings to different object types so we need to return a number to properly do the compare.
2023-10-31 22:32:01 -04:00
Tom Alexander
31406fd520
Fix clippy.
clippy Build clippy has succeeded
rust-foreign-document-test Build rust-foreign-document-test has failed
rust-build Build rust-build has succeeded
rust-test Build rust-test has failed
2023-10-31 22:19:39 -04:00
Tom Alexander
49bc51ba89
Compare post-blank.
2023-10-31 22:18:28 -04:00
Tom Alexander
92592104a4
Compare contents begin/end.
2023-10-31 22:11:38 -04:00
Tom Alexander
33f4614d28
Make get_rust_byte_offsets more generic so it can be used for contents.
clippy Build clippy has failed
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
2023-10-31 21:59:58 -04:00
Tom Alexander
6c197c376a
Add todo implementations of the new standard property functions.
2023-10-31 21:49:33 -04:00
Tom Alexander
bcf1b49db2
Remove the GetStandardProperties trait.
...
This was using dynamic dispatch to deal with enums to avoid the repetitive typing.
2023-10-31 21:26:00 -04:00
Tom Alexander
a5627d0cee
Do not parse the lesser block contents during parsing, but rather only if the contents are requested.
...
rust-test Build rust-test has failed
clippy Build clippy has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-build Build rust-build has succeeded
This seemed like an unnecessary allocation during parsing, especially considering we throw away some parses based on whether or not we found radio targets in the source.
2023-10-31 20:43:08 -04:00
Tom Alexander
b18a703529
Handle nil values for compare_property_object_tree.
2023-10-31 17:20:35 -04:00
Tom Alexander
f5699ce830
Remove PartialEq from Object.
rustfmt Build rustfmt has succeeded
clippy Build clippy has failed
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-test Build rust-test has succeeded
rust-build Build rust-build has succeeded
2023-10-31 16:33:10 -04:00
Tom Alexander
816c164996
Only allocate memory if removing text for lesser blocks.
clippy Build clippy has succeeded
rust-build Build rust-build has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-test Build rust-test has succeeded
2023-10-27 21:50:08 -04:00
Tom Alexander
c420ccd029
Fix clippy errors.
clippy Build clippy has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
2023-10-23 17:43:43 -04:00
Tom Alexander
acfc5e5e68
Only allocate memory when unquoting sexp string that contains escapes.
...
rust-build Build rust-build has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-test Build rust-test has succeeded
clippy Build clippy has succeeded
rustfmt Build rustfmt has succeeded
If the quoted string contains no escape sequences, then unquoting the string can be done by simply shaving off the leading and trailing quotation marks which can be a slice operation. By returning Cow, we can return either a borrowed slice or an owned String.
2023-10-20 12:53:27 -04:00
Tom Alexander
acd24d6198
Apply more suggestions.
2023-10-16 19:02:34 -04:00
Tom Alexander
880b00ef3f
Apply more suggestions.
2023-10-16 18:54:41 -04:00
Tom Alexander
3069711447
Apply more suggestions.
2023-10-16 18:29:21 -04:00
Tom Alexander
2dd5246506
Apply more suggestions.
2023-10-16 17:03:39 -04:00
Tom Alexander
0aa746fb1e
Implement comparison for object tree.
2023-10-16 12:50:53 -04:00
Tom Alexander
33800c4a88
Implement comparison for optional pair.
2023-10-16 12:05:36 -04:00
Tom Alexander
909ccadfa1
Beginning update to compare_affiliated_keywords.
2023-10-16 11:45:54 -04:00
Tom Alexander
f5a6a26c43
Disable the existing handling of affiliated keywords.
2023-10-15 20:31:14 -04:00
Tom Alexander
e1fde88a60
Switch to using tokio too invoke emacs async.
2023-10-14 17:58:50 -04:00
Tom Alexander
123da9cca3
Make the compare functions async.
2023-10-14 17:51:12 -04:00
Tom Alexander
f43920fc7c
Add a silent mode for running the diff.
2023-10-14 15:18:57 -04:00
Tom Alexander
8bc942a26f
Create artificial scopes for the optional value and mandatory value.
2023-10-11 19:14:32 -04:00
Tom Alexander
dff7550038
Remove prints.
2023-10-11 19:09:51 -04:00
Tom Alexander
4a44d88461
Better error messages.
2023-10-11 19:05:39 -04:00
Tom Alexander
efc6bd11d9
Do not exit on first loop.
2023-10-11 18:59:13 -04:00
Tom Alexander
b1a0fa4acf
Compare optional value.
2023-10-11 18:44:21 -04:00
Tom Alexander
6679db98a8
Add comments.
2023-10-11 17:53:32 -04:00
Tom Alexander
dc9188dffc
Better error logging when emacs errors out.
rustfmt Build rustfmt has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has failed
rust-foreign-document-test Build rust-foreign-document-test has failed
2023-10-11 17:22:01 -04:00
Tom Alexander
3fcf1b3864
Compare Document additional properties.
2023-10-11 16:27:25 -04:00
Tom Alexander
41b4b1015e
Update all comparisons to handle affiliated keywords.
2023-10-11 14:57:32 -04:00
Tom Alexander
9523365090
Update all elements to the new AffiliatedKeywords.
2023-10-11 14:44:25 -04:00
Tom Alexander
aa33fe42a8
Update compare_properties to handle affiliated keywords.
2023-10-11 14:14:33 -04:00
Tom Alexander
78a9b93f22
Nevermind, it did work.
2023-10-11 14:03:42 -04:00
Tom Alexander
a89339e472
Using owned string did not solve it.
2023-10-11 14:00:18 -04:00
Tom Alexander
f3307a8159
Lifetime issue.
2023-10-11 13:55:43 -04:00
Tom Alexander
4bfa25dcb3
Comparing lists of quoted strings.
2023-10-11 13:04:33 -04:00
Tom Alexander
441a240c33
Comparing single string values.
2023-10-11 13:00:21 -04:00
Tom Alexander
e767892dd5
Add capitalization.
2023-10-11 12:42:42 -04:00
Tom Alexander
8e0a7dea0f
A very simple GetAffiliatedKeywords trait.
2023-10-11 12:19:27 -04:00
Tom Alexander
0d1ab0e75a
Add a debug assert for org entities being sorted.
2023-10-11 12:16:35 -04:00
Tom Alexander
7cb71a5a0a
Compare the additional properties on headlines.
2023-10-10 17:40:27 -04:00
Tom Alexander
6b90a9bfa8
Add TODO.
2023-10-10 17:15:51 -04:00
Tom Alexander
6d4db60688
Support ("") as being equal to None in compare_property_list_of_ast_nodes.
2023-10-10 16:35:16 -04:00
Tom Alexander
3aca01891d
Remove the old implementation of comparing headlines.
2023-10-10 16:12:29 -04:00