[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/why-this 006ea3864a 13/59: Fix Git backend 'supported-p co
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/why-this 006ea3864a 13/59: Fix Git backend 'supported-p command |
Date: |
Sun, 27 Nov 2022 16:02:49 -0500 (EST) |
branch: elpa/why-this
commit 006ea3864a8a81b82253989c9c961186e77e8396
Author: Akib Azmain Turja <akib@disroot.org>
Commit: Akib Azmain Turja <akib@disroot.org>
Fix Git backend 'supported-p command
---
why-this.el | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/why-this.el b/why-this.el
index 8dda02eff8..49c6b1852e 100644
--- a/why-this.el
+++ b/why-this.el
@@ -463,6 +463,10 @@ Actually the supported backend is returned."
(cancel-timer why-this--idle-timer)
(setq why-this--idle-timer nil)))))
+;;;###autoload
+(define-globalized-minor-mode global-why-this-mode why-this-mode
+ #'why-this-mode)
+
(define-derived-mode why-this-annotate-mode
special-mode "Why-This-Annotate"
"Major mode for output buffer of `why-this-annotate'."
@@ -475,8 +479,9 @@ Actually the supported backend is returned."
Do CMD with ARGS."
(pcase cmd
('supported-p
- (string= "true\n" (shell-command-to-string
- "git rev-parse --is-inside-work-tree")))
+ (and (buffer-file-name)
+ (string= "true\n" (shell-command-to-string
+ "git rev-parse --is-inside-work-tree"))))
('line-data
(when (> (- (nth 1 args) (nth 0 args)) 0)
(let ((lines (butlast
- [nongnu] elpa/why-this 340194b6d2 24/59: Calculate background for message, (continued)
- [nongnu] elpa/why-this 340194b6d2 24/59: Calculate background for message, ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this 167397e7ad 25/59: Fix copyright year, ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this 9c0daa799c 28/59: Rename a variable, change backend API and update docs, ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this 53b2b803f0 22/59: Update commentary, ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this d47f547250 39/59: Allow customization of executable paths, ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this 7f1ae28159 36/59: Fix Git backend, ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this 9f656b59dd 33/59: Change package summary, ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this 3497115c2b 35/59: Don't store unnecessary data, ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this 7a2e4af450 19/59: Rewrite Git backend, ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this 41fe21da73 15/59: Fontify before annotate, ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this 006ea3864a 13/59: Fix Git backend 'supported-p command,
ELPA Syncer <=
- [nongnu] elpa/why-this 0c1686d8d3 12/59: Fix misspelled word "annonate", ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this 73398fb7cb 04/59: Don't interfere with writing, ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this 2093cadb03 06/59: Add relative time support and fix Git backend, ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this c2a21ca13d 01/59: Core implementation without any backends, ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this b26fca274d 21/59: Add COPYING, ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this 88ee5f9746 27/59: Add Mercurial backend, ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this 624e98bc78 23/59: Fix relative time calculation, ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this 45dc65ccb1 26/59: Fix timezone problem in Git backend, ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this 236f8fd225 09/59: Fix problem when enabled on multiple buffers, ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this dc5fc19b75 30/59: Allow changing time format, ELPA Syncer, 2022/11/27