A self-locking feed fence (A), comprising at least one pivoting bar (1), two vertical bars (2), a top rail (3), a lower bar (4) and a latch mechanism (L), said top rail (3) and said lower bar (4) arranged in parallel and connected by said vertical bars (2) forming an opening (A1 ...5) in which said at least one pivoting bar (1) is arranged and can be moved from an open position (P1) forming an upper opening (16) to a locking position (P2) forming a closed upper opening (16), and whereby said at least pivoting bar (1) can be moved back to said open position (P1), said at least one pivoting bar (1) being lockable and releasable by the latch mechanism (L) in the locking position (P2), said latch mechanism (L) comprising at least one latch (7), one unlatch slide (8) and a latch actuator (5) slidably arranged on said top rail (3), wherein said unlatch slide (8) is firmly attached with said latch actuator (5), wherein the at least one latch (7) comprises a locking section (7a), a release section (7b) and a tilting section (7c), is characterized in that said locking section (7a) of the at least one latch (7) locks the at least one pivoting bar (1) in the locking position (P2) and cooperates with said unlatch slide (8), and that at least one release element (11) is provided engaging said release section (7b) of the at least one latch (7).