aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2011-07-01 13:45:31 -0400
committerStefan Monnier2011-07-01 13:45:31 -0400
commiteb604e34e566f3f8b03d2f77f178d75e5e4743c1 (patch)
treedd66e31384a93471721dade33f996650526332f1
parent1a1e3f3207b660b42127bde55119d233aca02a1c (diff)
downloademacs-eb604e34e566f3f8b03d2f77f178d75e5e4743c1.tar.gz
emacs-eb604e34e566f3f8b03d2f77f178d75e5e4743c1.zip
* lisp/vc/vc-bzr.el (vc-bzr-revision-keywords): Update.
(vc-bzr-revision-completion-table): Add support for annotate and date.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/vc/vc-bzr.el18
2 files changed, 20 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 2bb0bad7282..df8aa7e8845 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
12011-07-01 Stefan Monnier <monnier@iro.umontreal.ca> 12011-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
2 2
3 * vc/vc-bzr.el (vc-bzr-revision-keywords): Update.
4 (vc-bzr-revision-completion-table): Add support for annotate and date.
5
3 * emacs-lisp/derived.el (define-derived-mode): Make abbrev-table 6 * emacs-lisp/derived.el (define-derived-mode): Make abbrev-table
4 inherit from parent. 7 inherit from parent.
5 8
@@ -27,7 +30,7 @@
27 (cfengine3-class-selector-regex cfengine3-category-regex) 30 (cfengine3-class-selector-regex cfengine3-category-regex)
28 (cfengine3-vartypes cfengine3-font-lock-keywords) 31 (cfengine3-vartypes cfengine3-font-lock-keywords)
29 (cfengine3-beginning-of-defun, cfengine3-end-of-defun) 32 (cfengine3-beginning-of-defun, cfengine3-end-of-defun)
30 (cfengine3-indent-line): Added from cfengine3.el. 33 (cfengine3-indent-line): Add from cfengine3.el.
31 34
322011-07-01 Michael Albinus <michael.albinus@gmx.de> 352011-07-01 Michael Albinus <michael.albinus@gmx.de>
33 36
diff --git a/lisp/vc/vc-bzr.el b/lisp/vc/vc-bzr.el
index fa59b7ef19c..0fdb2230af8 100644
--- a/lisp/vc/vc-bzr.el
+++ b/lisp/vc/vc-bzr.el
@@ -1172,8 +1172,9 @@ stream. Standard error output is discarded."
1172 1172
1173(eval-and-compile 1173(eval-and-compile
1174 (defconst vc-bzr-revision-keywords 1174 (defconst vc-bzr-revision-keywords
1175 '("revno" "revid" "last" "before" 1175 ;; bzr help revisionspec | sed -ne 's/^\([a-z]*\):$/"\1"/p' | sort -u
1176 "tag" "date" "ancestor" "branch" "submit"))) 1176 '("ancestor" "annotate" "before" "branch" "date" "last" "mainline" "revid"
1177 "revno" "submit" "svn" "tag")))
1177 1178
1178(defun vc-bzr-revision-completion-table (files) 1179(defun vc-bzr-revision-completion-table (files)
1179 (lexical-let ((files files)) 1180 (lexical-let ((files files))
@@ -1211,6 +1212,19 @@ stream. Standard error output is discarded."
1211 (push (match-string-no-properties 1) table))) 1212 (push (match-string-no-properties 1) table)))
1212 (completion-table-with-context prefix table tag pred action))) 1213 (completion-table-with-context prefix table tag pred action)))
1213 1214
1215 ((string-match "\\`annotate:" string)
1216 (completion-table-with-context
1217 (substring string 0 (match-end 0))
1218 (apply-partially #'completion-table-with-terminator '(":" . "\\`a\\`")
1219 #'completion-file-name-table)
1220 (substring string (match-end 0)) pred action))
1221
1222 ((string-match "\\`date:" string)
1223 (completion-table-with-context
1224 (substring string 0 (match-end 0))
1225 '("yesterday" "today" "tomorrow")
1226 (substring string (match-end 0)) pred action))
1227
1214 ((string-match "\\`\\([a-z]+\\):" string) 1228 ((string-match "\\`\\([a-z]+\\):" string)
1215 ;; no actual completion for the remaining keywords. 1229 ;; no actual completion for the remaining keywords.
1216 (completion-table-with-context (substring string 0 (match-end 0)) 1230 (completion-table-with-context (substring string 0 (match-end 0))