enricoflor / latex-table-wizard

Magic editing of LaTeX tables in GNU Emacs
GNU General Public License v3.0
19 stars 1 forks source link

latex-table-wizard-delete-row cannot delete rows completely #1

Open fountainer opened 1 year ago

fountainer commented 1 year ago

There is one empty line left when deleting a table row using D r command. I think it's better if it can delete the row completely.

enricoflor commented 1 year ago

Thanks for this! I think the behaviour you want can be achieved with something like this in your configuration:

(add-hook 'latex-table-wizard-after-table-modified-hook #'delete-blank-lines)

This way, every time the table is modified, all blank lines around point are deleted. It should work because in all cases point will be where the deletion happens.

I will think about whether this fix should be an option that the user can set through a public variable. For now, let me know if this works for you.

fountainer commented 1 year ago

(add-hook 'latex-table-wizard-after-table-modified-hook #'delete-blank-lines)

It works for me. Thank you for writing this package. It's very useful.