Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 6 additions & 1 deletion lisp/magit-section.el
Expand Up @@ -2179,10 +2179,15 @@ again use `remove-hook'."

(defun magit-disable-section-inserter (fn)
"Disable the section inserter FN in the current repository.

FN can be a single section inserter or a list of inserters.

It is only intended for use in \".dir-locals.el\" and
\".dir-locals-2.el\". Also see info node `(magit)Per-Repository
Configuration'."
(cl-pushnew fn magit-disabled-section-inserters))
(unless (listp fn) (cl-callf list fn))
(dolist (each fn)
(cl-pushnew each magit-disabled-section-inserters)))

(put 'magit-disable-section-inserter 'safe-local-eval-function t)

Expand Down