[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/vc-hgcmd 088aaa4 37/87: lazy completion table on branch
From: |
Stefan Monnier |
Subject: |
[elpa] externals/vc-hgcmd 088aaa4 37/87: lazy completion table on branch merge |
Date: |
Sat, 5 Jun 2021 16:11:42 -0400 (EDT) |
branch: externals/vc-hgcmd
commit 088aaa4d0d8d60bde4229407db88373d6dba1f6a
Author: muffinmad <andreyk.mad@gmail.com>
Commit: muffinmad <andreyk.mad@gmail.com>
lazy completion table on branch merge
---
vc-hgcmd.el | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/vc-hgcmd.el b/vc-hgcmd.el
index 7518fc6..48dd618 100644
--- a/vc-hgcmd.el
+++ b/vc-hgcmd.el
@@ -5,7 +5,7 @@
;; Author: Andrii Kolomoiets <andreyk.mad@gmail.com>
;; Keywords: vc
;; URL: https://github.com/muffinmad/emacs-vc-hgcmd
-;; Package-Version: 1.3.6
+;; Package-Version: 1.3.7
;; Package-Requires: ((emacs "25.1"))
;; This file is NOT part of GNU Emacs.
@@ -610,8 +610,7 @@ Insert output to process buffer and check if amount of data
is enought to parse
(defun vc-hgcmd-merge-branch ()
"Merge."
- (let* ((completion-fun (if (and (boundp 'ido-mode) ido-mode)
#'ido-completing-read #'completing-read))
- (branch (funcall completion-fun "Merge from branch: " (nconc (list
"") (vc-hgcmd--branches) (vc-hgcmd--tags)))))
+ (let ((branch (completing-read "Merge from branch: "
(vc-hgcmd-revision-completion-table))))
(vc-hgcmd-command-update-callback
(if (> (length branch) 0)
(list "merge" branch)
@@ -717,9 +716,9 @@ Insert output to process buffer and check if amount of data
is enought to parse
(unless (equal files (list default-directory)) (mapcar
#'vc-hgcmd--file-relative-name files)))))
(apply #'vc-hgcmd-command-to-buffer buffer command)))
-(defun vc-hgcmd-revision-completion-table (_files)
+(defun vc-hgcmd-revision-completion-table (&optional _files)
"Return branches and tags as they are more usefull than file revisions."
- (letrec ((table (lazy-completion-table table (lambda () (nconc
(vc-hgcmd--branches) (vc-hgcmd--tags))))))))
+ (letrec ((table (lazy-completion-table table (lambda () (nconc (list "")
(vc-hgcmd--branches) (vc-hgcmd--tags))))))))
(defconst vc-hgcmd-annotate-re
(concat
- [elpa] externals/vc-hgcmd 8951533 18/87: Notes about installing from melpa, (continued)
- [elpa] externals/vc-hgcmd 8951533 18/87: Notes about installing from melpa, Stefan Monnier, 2021/06/05
- [elpa] externals/vc-hgcmd c95696f 15/87: Graph log for branch or root log, Stefan Monnier, 2021/06/05
- [elpa] externals/vc-hgcmd f48b82b 26/87: Filename must be relative to vc root, Stefan Monnier, 2021/06/05
- [elpa] externals/vc-hgcmd e39d484 29/87: fail gracefully if hg executable is absent, Stefan Monnier, 2021/06/05
- [elpa] externals/vc-hgcmd aef3092 27/87: vc registered for symlinks fixed, Stefan Monnier, 2021/06/05
- [elpa] externals/vc-hgcmd e47e11b 28/87: don't pass relative file names to vc-state, Stefan Monnier, 2021/06/05
- [elpa] externals/vc-hgcmd 88452e2 30/87: indentation, Stefan Monnier, 2021/06/05
- [elpa] externals/vc-hgcmd 4556145 31/87: create hg process once, Stefan Monnier, 2021/06/05
- [elpa] externals/vc-hgcmd c62c14e 33/87: Use process-send-eof for pty processes, Stefan Monnier, 2021/06/05
- [elpa] externals/vc-hgcmd 5416977 36/87: command callback must be called in output buffer, Stefan Monnier, 2021/06/05
- [elpa] externals/vc-hgcmd 088aaa4 37/87: lazy completion table on branch merge,
Stefan Monnier <=
- [elpa] externals/vc-hgcmd 3e5782c 39/87: Handle unexpected output; Handle non-latin branch/file names, Stefan Monnier, 2021/06/05
- [elpa] externals/vc-hgcmd 261ef39 21/87: version 1.3.1, Stefan Monnier, 2021/06/05
- [elpa] externals/vc-hgcmd 39dddda 22/87: Use relative filename on check status, Stefan Monnier, 2021/06/05
- [elpa] externals/vc-hgcmd d9bc82c 09/87: fixed typo, Stefan Monnier, 2021/06/05
- [elpa] externals/vc-hgcmd c05d560 16/87: melpa-stable badge, Stefan Monnier, 2021/06/05
- [elpa] externals/vc-hgcmd 3b2d060 17/87: Show command output on command error, Stefan Monnier, 2021/06/05
- [elpa] externals/vc-hgcmd 876f7cb 20/87: Handle nil on reading parents, Stefan Monnier, 2021/06/05
- [elpa] externals/vc-hgcmd 15c2c27 23/87: Communication with tty process, Stefan Monnier, 2021/06/05
- [elpa] externals/vc-hgcmd 0bd38be 24/87: User parent info from summary in there are no log, Stefan Monnier, 2021/06/05
- [elpa] externals/vc-hgcmd e6f1105 25/87: Use relative file names for all commands, Stefan Monnier, 2021/06/05