From: Thibault M. <thi...@gm...> - 2016-06-03 02:56:03
|
Eric Ludlam writes: > Hi, > > I would guess that 'end' indentation is not really the last hurdle. For TABs to work, all places where character math occur will need to be replaced with calls to 'current-column'. > > Ie - instead of > > (- match (match-beginning 0)) > > You would need > > (- match-col (save-excursion (goto-char (match-beginning 0)) (current-column)) > > Current-column is used in a bunch of places already, so hopefully the number of problem areas is small. > > Eric > Thanks for the guidance. I modified the patch to use (current-column) as advised. Could you please let me know if this is what you had in mind? I understand that there may be other places where a similar change should be done, but tabs seem to be working fine for me at this point: I haven't found any indentation problems after fixing the 'end' line. If other issues arise, I can try to have a look. |