[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/pcmpl-args c124d44bf4 09/33: Use cache for git completions
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/pcmpl-args c124d44bf4 09/33: Use cache for git completions |
Date: |
Mon, 31 Jan 2022 11:59:21 -0500 (EST) |
branch: elpa/pcmpl-args
commit c124d44bf4a7ab1f7752c7ba7eca8b68fa7a9fc1
Author: Alex Kost <alezost@gmail.com>
Commit: Troy Hinckley <t.macman@gmail.com>
Use cache for git completions
---
pcmpl-args.el | 17 +++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)
diff --git a/pcmpl-args.el b/pcmpl-args.el
index 719ebae358..918a36aaca 100644
--- a/pcmpl-args.el
+++ b/pcmpl-args.el
@@ -3135,14 +3135,15 @@ options found in its man page."
cmds `(metadata (category . git-command)))))))
(defun pcmpl-args-git-extract-argspecs-from-help (cmd)
- (ignore-errors (kill-buffer " *pcmpl-args-output*"))
- (with-current-buffer (get-buffer-create " *pcmpl-args-output*")
- (erase-buffer)
- (let ((process-environment process-environment))
- (push "MANWIDTH=10000" process-environment)
- (pcmpl-args-process-file "git" "help" "--man" "--" cmd)
- (goto-char (point-min))
- (pcmpl-args-extract-argspecs-from-buffer))))
+ (pcmpl-args-cached (cons 'git-commands cmd) t
+ (ignore-errors (kill-buffer " *pcmpl-args-output*"))
+ (with-current-buffer (get-buffer-create " *pcmpl-args-output*")
+ (erase-buffer)
+ (let ((process-environment process-environment))
+ (push "MANWIDTH=10000" process-environment)
+ (pcmpl-args-process-file "git" "help" "--man" "--" cmd)
+ (goto-char (point-min))
+ (pcmpl-args-extract-argspecs-from-buffer)))))
(defun pcmpl-args-git-refs ()
(pcmpl-args-process-lines "git" "rev-parse" "--abbrev-ref" "--all"))
- [nongnu] branch elpa/pcmpl-args created (now 02ae18bda3), ELPA Syncer, 2022/01/31
- [nongnu] elpa/pcmpl-args 4d74a0d768 11/33: Move README to README.org, ELPA Syncer, 2022/01/31
- [nongnu] elpa/pcmpl-args 690360006d 21/33: Fixed backspaces in man and git completion, ELPA Syncer, 2022/01/31
- [nongnu] elpa/pcmpl-args 36139ba64f 20/33: Added pass completion, ELPA Syncer, 2022/01/31
- [nongnu] elpa/pcmpl-args 66276289e9 24/33: Fixed useless regexp, ELPA Syncer, 2022/01/31
- [nongnu] elpa/pcmpl-args 3e479c852b 03/33: Add link to github repo, ELPA Syncer, 2022/01/31
- [nongnu] elpa/pcmpl-args 886f0c4967 02/33: Add autoloads and packaging support, ELPA Syncer, 2022/01/31
- [nongnu] elpa/pcmpl-args 2ba03b3125 06/33: Add README and more documentation, ELPA Syncer, 2022/01/31
- [nongnu] elpa/pcmpl-args f06b973c67 08/33: Merge pull request #1 from kozikow/master, ELPA Syncer, 2022/01/31
- [nongnu] elpa/pcmpl-args c124d44bf4 09/33: Use cache for git completions,
ELPA Syncer <=
- [nongnu] elpa/pcmpl-args 43f3daada7 19/33: Fix return outside of the block, ELPA Syncer, 2022/01/31
- [nongnu] elpa/pcmpl-args 7d444d5793 22/33: Update minor version, ELPA Syncer, 2022/01/31
- [nongnu] elpa/pcmpl-args 910f42cdbd 31/33: Fix package-lint warnings, ELPA Syncer, 2022/01/31
- [nongnu] elpa/pcmpl-args 1a1f5f5eab 05/33: Fix annotation display width on ttys, ELPA Syncer, 2022/01/31
- [nongnu] elpa/pcmpl-args 3221c53036 04/33: Truncate annotations to width of *Completions* buffer, ELPA Syncer, 2022/01/31
- [nongnu] elpa/pcmpl-args 9dd5dbd62a 01/33: Initial commit, ELPA Syncer, 2022/01/31
- [nongnu] elpa/pcmpl-args ab9076cf03 07/33: Removed man options that were conflicting with MacOSX, ELPA Syncer, 2022/01/31
- [nongnu] elpa/pcmpl-args 7bc360c2e5 10/33: Don't throw an error when man page is missing, ELPA Syncer, 2022/01/31
- [nongnu] elpa/pcmpl-args 0b8a05fc6e 13/33: Add additional README formatting, ELPA Syncer, 2022/01/31
- [nongnu] elpa/pcmpl-args 83f43d0f6f 12/33: Reformat README, ELPA Syncer, 2022/01/31