branch: elpa/magit
commit f4c9753d81b030f520061ebde4279dc9f433a75a
Author: Jonas Bernoulli <jo...@bernoul.li>
Commit: Jonas Bernoulli <jo...@bernoul.li>

    magit-submodule-list-mode: Remove more redundant settings
---
 lisp/magit-repos.el     | 3 +--
 lisp/magit-submodule.el | 5 +----
 2 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/lisp/magit-repos.el b/lisp/magit-repos.el
index 682c0ae989a..20784ef7b72 100644
--- a/lisp/magit-repos.el
+++ b/lisp/magit-repos.el
@@ -271,8 +271,7 @@ If it contains \"%s\" then the directory is substituted for 
that."
   :group 'magit-repolist
   (setq-local x-stretch-cursor nil)
   (setq tabulated-list-padding 0)
-  (setq-local tabulated-list-revert-hook
-              (list #'magit-repolist-refresh t))
+  (setq-local tabulated-list-revert-hook (list #'magit-repolist-refresh t))
   (setq imenu-prev-index-position-function
         #'magit-repolist--imenu-prev-index-position)
   (setq imenu-extract-index-name-function #'tabulated-list-get-id))
diff --git a/lisp/magit-submodule.el b/lisp/magit-submodule.el
index f921f1d5872..a27abc50e9f 100644
--- a/lisp/magit-submodule.el
+++ b/lisp/magit-submodule.el
@@ -640,10 +640,7 @@ These sections can be expanded to show the respective 
commits."
   :interactive nil
   :group 'magit-repolist
   (setq-local tabulated-list-revert-hook
-              (list #'magit-submodule-list-refresh t))
-  (setq imenu-prev-index-position-function
-        #'magit-repolist--imenu-prev-index-position)
-  (setq imenu-extract-index-name-function #'tabulated-list-get-id))
+              (list #'magit-submodule-list-refresh t)))
 
 (defvar-local magit-submodule-list-predicate nil)
 

Reply via email to