summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
authorJonathan Kew <jfkthame@googlemail.com>2008-06-06 13:08:40 +0000
committerJonathan Kew <jfkthame@googlemail.com>2008-06-06 13:08:40 +0000
commit47f82e8cd0adadc2ce7e9b3c643784c538eebbec (patch)
treeacd09f50b6a440a9e71f5bdedd58ee02c2df1dab /Build
parent3e886322ab06e1d489d9bf1e211aef090c8e721b (diff)
synctex patch from JL: don't copy sync data in rule nodes
git-svn-id: svn://tug.org/texlive/trunk@8595 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r--Build/source/texk/web2c/synctexdir/synctex-rec.ch016
-rw-r--r--Build/source/texk/web2c/synctexdir/synctex-rec.ch19
-rw-r--r--Build/source/texk/web2c/synctexdir/synctex-xe-rec.ch27
3 files changed, 28 insertions, 4 deletions
diff --git a/Build/source/texk/web2c/synctexdir/synctex-rec.ch0 b/Build/source/texk/web2c/synctexdir/synctex-rec.ch0
index 8e4e0025608..e265e70a14d 100644
--- a/Build/source/texk/web2c/synctexdir/synctex-rec.ch0
+++ b/Build/source/texk/web2c/synctexdir/synctex-rec.ch0
@@ -59,20 +59,27 @@ hlist_node,vlist_node,unset_node: begin r:=get_node(box_node_size);
@<Copy the box {\sl Sync\TeX} information@>;
@z
-@x tex.web l.4009: after synctex-mem.ch0
+@x
+rule_node: begin r:=get_node(rule_node_size); words:=rule_node_size;
+@y
+rule_node: begin r:=get_node(rule_node_size); words:=rule_node_size-synctex_field_size;{{\sl Sync\TeX}: do not let \TeX\ copy the {\sl Sync\TeX} information}
+ @<Copy the rule {\sl Sync\TeX} information@>;
+@z
+
+@x
glue_node: begin r:=get_node(medium_node_size); add_glue_ref(glue_ptr(p));
@y
glue_node: begin r:=get_node(medium_node_size); add_glue_ref(glue_ptr(p));
@<Copy the glue {\sl Sync\TeX} information@>;
@z
-@x tex.web l.4009: after synctex-mem.ch0
+@x
kern_node,math_node: begin r:=get_node(medium_node_size);
words:=medium_node_size;
end;
@y
kern_node,math_node: begin r:=get_node(medium_node_size);
- words:=medium_node_size; {{\sl Sync\TeX}: do not copy the {\sl Sync\TeX} information}
+ words:=medium_node_size-synctex_field_size; {{\sl Sync\TeX}: do not let \TeX\ copy the {\sl Sync\TeX} information}
end;
@z
@@ -392,6 +399,9 @@ the {\sl Sync\TeX} information they received at creation time.
@ @<Copy the box {\sl Sync\TeX} information@>=
MISSING IMPLEMENTATION: copy the synctex information for box node at mem[r] from node at mem[p]
+@ @<Copy the rule {\sl Sync\TeX} information@>=
+MISSING IMPLEMENTATION: copy the synctex information for rule node at mem[r] from node at mem[p]
+
@ @<Copy the glue {\sl Sync\TeX} information@>=
MISSING IMPLEMENTATION: copy the synctex information for glue node at mem[r] from node at mem[p]
diff --git a/Build/source/texk/web2c/synctexdir/synctex-rec.ch1 b/Build/source/texk/web2c/synctexdir/synctex-rec.ch1
index b93863ac092..0fd74544777 100644
--- a/Build/source/texk/web2c/synctexdir/synctex-rec.ch1
+++ b/Build/source/texk/web2c/synctexdir/synctex-rec.ch1
@@ -77,13 +77,20 @@ end
mem[r+s-synctex_field_size+1].int:=line;
@z
-@x
+@x It is not always a good idea to blindly copy the synctex information
MISSING IMPLEMENTATION: copy the synctex information for box node at mem[r] from node at mem[p]
@y
mem[r+box_node_size-synctex_field_size].int:=mem[p+box_node_size-synctex_field_size].int;
mem[r+box_node_size-synctex_field_size+1].int:=mem[p+box_node_size-synctex_field_size+1].int;
@z
+@x It is a do_nothing replacement. To be enhanced later.
+MISSING IMPLEMENTATION: copy the synctex information for rule node at mem[r] from node at mem[p]
+@y
+{mem[r+rule_node_size-synctex_field_size].int:=mem[p+rule_node_size-synctex_field_size].int;
+mem[r+rule_node_size-synctex_field_size+1].int:=mem[p+rule_node_size-synctex_field_size+1].int;}
+@z
+
@x
MISSING IMPLEMENTATION: copy the synctex information for glue node at mem[r] from node at mem[p]
@y
diff --git a/Build/source/texk/web2c/synctexdir/synctex-xe-rec.ch2 b/Build/source/texk/web2c/synctexdir/synctex-xe-rec.ch2
index 282d7c4d864..6b196182613 100644
--- a/Build/source/texk/web2c/synctexdir/synctex-xe-rec.ch2
+++ b/Build/source/texk/web2c/synctexdir/synctex-xe-rec.ch2
@@ -63,6 +63,13 @@ mem[r+box_node_size-synctex_field_size].hh.rh:=mem[p+box_node_size-synctex_field
@z
@x
+MISSING IMPLEMENTATION: copy the synctex information for rule node at mem[r] from node at mem[p]
+@y
+{mem[r+rule_node_size-synctex_field_size].hh.lh:=mem[p+rule_node_size-synctex_field_size].hh.lh;
+mem[r+rule_node_size-synctex_field_size].hh.rh:=mem[p+rule_node_size-synctex_field_size].hh.rh;}
+@z
+
+@x
MISSING IMPLEMENTATION: copy the synctex information for glue node at mem[r] from node at mem[p]
@y
mem[r+medium_node_size-synctex_field_size].hh.lh:=mem[p+medium_node_size-synctex_field_size].hh.lh;