Collect directory-local variables from MODE-VARIABLES. VARIABLES is the initial list of variables. Returns the new list.