Re: [O] [patch] Incorrect result of org-babel-edit-distance

2012-12-07 Thread Eric Schulte
"Nicolas Richard" writes: > Hello, > > (org-babel-edit-distance "foo" "ffoo") returns 0, whereas 1 seems > appropriate. I don't know much about computing the levenshtein distance, > but it seems that part of the algorithm (which i found explained on > fr.wikipedia) is missing from the code. Pleas

[O] [patch] Incorrect result of org-babel-edit-distance

2012-12-06 Thread Nicolas Richard
Hello, (org-babel-edit-distance "foo" "ffoo") returns 0, whereas 1 seems appropriate. I don't know much about computing the levenshtein distance, but it seems that part of the algorithm (which i found explained on fr.wikipedia) is missing from the code. Please find a patch below trying to address