|
59 | 59 | (require 'easymenu)
|
60 | 60 | (require 'format-spec)
|
61 | 61 |
|
| 62 | +(defvar-local stgit-marked-patches nil |
| 63 | + "List of marked patches.") |
| 64 | + |
| 65 | +(defvar-local stgit-index-node nil) |
| 66 | +(defvar-local stgit-worktree-node nil) |
| 67 | +(defvar-local stgit-expanded-patches '(:work :index)) |
| 68 | +(defvar-local stgit-svn-find-rev-hash nil) |
| 69 | +(defvar-local stgit-committed-count) |
| 70 | +(defvar-local stgit-show-committed) |
| 71 | +(defvar-local stgit-show-ignored) |
| 72 | +(defvar-local stgit-show-patch-names) |
| 73 | +(defvar-local stgit-show-svn) |
| 74 | +(defvar-local stgit-show-unknown) |
| 75 | +(defvar-local stgit-show-worktree) |
| 76 | + |
62 | 77 | (defun stgit-set-default (symbol value)
|
63 | 78 | "Set default value of SYMBOL to VALUE using `set-default' and
|
64 | 79 | reload all StGit buffers."
|
@@ -1678,21 +1693,16 @@ See also \\[customize-group] for the \"stgit\" group."
|
1678 | 1693 | major-mode 'stgit-mode
|
1679 | 1694 | goal-column 2)
|
1680 | 1695 | (use-local-map stgit-mode-map)
|
1681 |
| - (mapc (lambda (x) (set (make-local-variable (car x)) (cdr x))) |
1682 |
| - `((list-buffers-directory . ,default-directory) |
1683 |
| - (parse-sexp-lookup-properties . t) |
1684 |
| - (stgit-expanded-patches . (:work :index)) |
1685 |
| - (stgit-index-node . nil) |
1686 |
| - (stgit-worktree-node . nil) |
1687 |
| - (stgit-marked-patches . nil) |
1688 |
| - (stgit-svn-find-rev-hash . ,(make-hash-table :test 'equal)) |
1689 |
| - (stgit-committed-count . ,stgit-default-committed-count) |
1690 |
| - (stgit-show-committed . ,stgit-default-show-committed) |
1691 |
| - (stgit-show-ignored . ,stgit-default-show-ignored) |
1692 |
| - (stgit-show-patch-names . ,stgit-default-show-patch-names) |
1693 |
| - (stgit-show-svn . ,stgit-default-show-svn) |
1694 |
| - (stgit-show-unknown . ,stgit-default-show-unknown) |
1695 |
| - (stgit-show-worktree . ,stgit-default-show-worktree))) |
| 1696 | + (setq list-buffers-directory default-directory) |
| 1697 | + (setq-local parse-sexp-lookup-properties t) |
| 1698 | + (setq stgit-svn-find-rev-hash (make-hash-table :test 'equal)) |
| 1699 | + (setq stgit-committed-count stgit-default-committed-count) |
| 1700 | + (setq stgit-show-committed stgit-default-show-committed) |
| 1701 | + (setq stgit-show-ignored stgit-default-show-ignored) |
| 1702 | + (setq stgit-show-patch-names stgit-default-show-patch-names) |
| 1703 | + (setq stgit-show-svn stgit-default-show-svn) |
| 1704 | + (setq stgit-show-unknown stgit-default-show-unknown) |
| 1705 | + (setq stgit-show-worktree stgit-default-show-worktree) |
1696 | 1706 | (set-variable 'truncate-lines 't)
|
1697 | 1707 | (add-hook 'after-save-hook 'stgit-update-stgit-for-buffer)
|
1698 | 1708 | (unless stgit-did-advise
|
|
0 commit comments