emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/git-commit bc065246b4 01/18: Remove duplicated command mag


From: ELPA Syncer
Subject: [nongnu] elpa/git-commit bc065246b4 01/18: Remove duplicated command magit-help
Date: Fri, 25 Mar 2022 13:58:19 -0400 (EDT)

branch: elpa/git-commit
commit bc065246b48a0e966451bb13954497c36f2d5e96
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>

    Remove duplicated command magit-help
    
    Turns out I twice realized that it would make sense to provide a
    command that shows Magit's manual but picked a different name and
    added the binding in a different place.
---
 lisp/magit-mode.el | 3 ++-
 lisp/magit.el      | 8 +-------
 2 files changed, 3 insertions(+), 8 deletions(-)

diff --git a/lisp/magit-mode.el b/lisp/magit-mode.el
index 5b08d9d8bf..c1dd4e7b73 100644
--- a/lisp/magit-mode.el
+++ b/lisp/magit-mode.el
@@ -449,7 +449,8 @@ which visits the thing at point using `browse-url'."
   (interactive)
   (user-error "There is no thing at point that could be browsed"))
 
-(defun magit-help ()
+;;;###autoload
+(defun magit-info ()
   "Visit the Magit manual."
   (interactive)
   (info "magit"))
diff --git a/lisp/magit.el b/lisp/magit.el
index e6696d09e2..442aac1b11 100644
--- a/lisp/magit.el
+++ b/lisp/magit.el
@@ -315,7 +315,7 @@ Also see info node `(magit)Commands for Buffers Visiting 
Files'."
     ("F" "Pull"           magit-pull)
     ;; g                  ↓
     ;; G                → magit-refresh-all
-    ("h" "Help"           magit-help)
+    ("h" "Help"           magit-info)
     ("H" "Section info"   magit-describe-section :if-derived magit-mode)]
    [("i" "Ignore"         magit-gitignore)
     ("I" "Init"           magit-init)
@@ -373,12 +373,6 @@ Also see info node `(magit)Commands for Buffers Visiting 
Files'."
    [("C-x m"    "show all key bindings"    describe-mode)
     ("C-x i"    "show Info manual"         magit-info)]])
 
-;;;###autoload
-(defun magit-info ()
-  "Show Magit's Info manual."
-  (interactive)
-  (info "magit"))
-
 ;;; Git Popup
 
 (defcustom magit-shell-command-verbose-prompt t



reply via email to

[Prev in Thread] Current Thread [Next in Thread]