Re: [O] fuzzy matching of parameters

2016-12-03 Thread Matt Price
THanks, John, I'm sure you're right actually. So I've just written my matching function like this: (lambda (f) (string-match (concat "\\\(" fname "\\\)\\\([^[:alnum:]]\\\)*" lname) f)) and if that has a nil result: (lambda (f) (string-match (concat "\\\(" nname "\\\)\\\([^[:alnum:]]\\\)*"

Re: [O] fuzzy matching of parameters

2016-12-02 Thread John Kitchin
I would not do that if I were you. The fuzzy match might inadvertently send feed back to the wrong student. I would fall back to some manual attachment if you do not find an exact match, e.g. using helm or ivy to select the files for attachment, perhaps sorted and matched using their fuzzy

Re: [O] fuzzy matching of parameters

2016-12-01 Thread Charles C. Berry
On Thu, 1 Dec 2016, Matt Price wrote: I have just done something I'm very excited about. Given a directory name (the variable ~assignment~ in this case) and a list of student info, search through the directory for files whose names contain the student names, and attach those to newly created

[O] fuzzy matching of parameters

2016-12-01 Thread Matt Price
I have just done something I'm very excited about. Given a directory name (the variable ~assignment~ in this case) and a list of student info, search through the directory for files whose names contain the student names, and attach those to newly created subtrees. Before now, manually attaching