Skip to content

Commit 3bc3a9d

Browse files
stgit.el: Move 'stgit-patch-status-face-alist' before first use
1 parent d0e9f43 commit 3bc3a9d

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

contrib/stgit.el

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,15 @@ format characters are recognized:
334334
"StGit mode face used for modified file status."
335335
:group 'stgit-faces)
336336

337+
(defconst stgit-patch-status-face-alist
338+
'((applied . stgit-applied-patch-face)
339+
(top . stgit-top-patch-face)
340+
(unapplied . stgit-unapplied-patch-face)
341+
(committed . stgit-committed-patch-face)
342+
(index . stgit-index-work-tree-title-face)
343+
(work . stgit-index-work-tree-title-face))
344+
"Alist of face to use for a given patch status.")
345+
337346
(defun stgit (dir)
338347
"Manage StGit patches for the tree in DIR.
339348
@@ -823,15 +832,6 @@ during the operation."
823832
(ignore "Ignored" stgit-ignored-file-face)))
824833
"Alist of code symbols to description strings.")
825834

826-
(defconst stgit-patch-status-face-alist
827-
'((applied . stgit-applied-patch-face)
828-
(top . stgit-top-patch-face)
829-
(unapplied . stgit-unapplied-patch-face)
830-
(committed . stgit-committed-patch-face)
831-
(index . stgit-index-work-tree-title-face)
832-
(work . stgit-index-work-tree-title-face))
833-
"Alist of face to use for a given patch status.")
834-
835835
(defun stgit-file-status-code-as-string (file)
836836
"Return stgit status code for FILE as a string."
837837
(let* ((code (assq (stgit-file->status file)

0 commit comments

Comments
 (0)