magit / magit

It's Magit! A Git Porcelain inside Emacs.
https://magit.vc
GNU General Public License v3.0
6.61k stars 820 forks source link

* lisp/magit-section.el: Allow several functions as arguments #5112

Closed DamienCassou closed 8 months ago

DamienCassou commented 8 months ago

The function magit-disable-section-inserter is convenient in a .dir-locals.el file to disable a section per repository. When more than one section should be disabled, this function can be called several times. This commit makes disabling several sections easier by allowing more than one section as argument.

tarsius commented 8 months ago

I'm not convinced this is easier. Copying one line and adjusting the new copy, isn't much more involved than moving to the correct place in the only line and then pasting/typing there.

magit-disable-section-inserter can be though of as a variation of remove-hook, which also has to be called once per hook function.

DamienCassou commented 8 months ago

Ok for me. Feel free to close the issue.

tarsius commented 8 months ago

I might come back to this at some point, but for now I am closing.