|
73 | 73 | (defvar-local stgit-show-svn stgit-default-show-svn)
|
74 | 74 | (defvar-local stgit-show-unknown stgit-default-show-unknown)
|
75 | 75 | (defvar-local stgit-show-worktree stgit-default-show-worktree)
|
| 76 | +(defvar-local stgit-ewoc) |
| 77 | +(defvar-local stgit-edit-patchsym) |
| 78 | +(defvar-local stgit-refresh-after-new) |
| 79 | +(defvar-local stgit-refresh-after-new) |
| 80 | +(defvar-local stgit-sink-to) |
| 81 | +(defvar-local stgit-patchsyms) |
| 82 | +(defvar-local old-process-sentinel) |
| 83 | +(defvar-local stgit-buffer) |
76 | 84 |
|
77 | 85 | (defun stgit-set-default (symbol value)
|
78 | 86 | "Set default value of SYMBOL to VALUE using `set-default' and
|
@@ -440,8 +448,8 @@ Argument DIR is the repository path."
|
440 | 448 | (with-current-buffer buf
|
441 | 449 | (setq default-directory dir)
|
442 | 450 | (stgit-mode)
|
443 |
| - (set (make-local-variable 'stgit-ewoc) |
444 |
| - (ewoc-create #'stgit-patch-pp "Branch:\n\n" "--\n" t)) |
| 451 | + (setq stgit-ewoc |
| 452 | + (ewoc-create #'stgit-patch-pp "Branch:\n\n" "--\n" t)) |
445 | 453 | (setq buffer-read-only t))
|
446 | 454 | buf))
|
447 | 455 |
|
@@ -1119,7 +1127,7 @@ at point."
|
1119 | 1127 | 'switch-to-buffer-other-window
|
1120 | 1128 | 'switch-to-buffer)
|
1121 | 1129 | (find-file-noselect filename))
|
1122 |
| - (set (make-local-variable 'vc-parent-buffer) filename))) |
| 1130 | + (setq vc-parent-buffer filename))) |
1123 | 1131 |
|
1124 | 1132 | (defun stgit-find-file (&optional other-window this-rev)
|
1125 | 1133 | (let* ((file (or (stgit-patched-file-at-point)
|
@@ -2609,7 +2617,7 @@ file ended up. You can then jump to the file with \
|
2609 | 2617 | (edit-buf (get-buffer-create "*StGit edit*"))
|
2610 | 2618 | (dir default-directory))
|
2611 | 2619 | (log-edit 'stgit-confirm-edit t nil edit-buf)
|
2612 |
| - (set (make-local-variable 'stgit-edit-patchsym) patchsym) |
| 2620 | + (setq stgit-edit-patchsym patchsym) |
2613 | 2621 | (setq default-directory dir)
|
2614 | 2622 | (let ((standard-output edit-buf))
|
2615 | 2623 | (save-excursion
|
@@ -2665,8 +2673,8 @@ that name (a symbol)."
|
2665 | 2673 | (dir default-directory))
|
2666 | 2674 | (log-edit 'stgit-confirm-new t nil edit-buf)
|
2667 | 2675 | (setq default-directory dir)
|
2668 |
| - (set (make-local-variable 'stgit-refresh-after-new) refresh) |
2669 |
| - (set (make-local-variable 'stgit-sink-to) sink-to) |
| 2676 | + (setq stgit-refresh-after-new refresh) |
| 2677 | + (setq stgit-sink-to sink-to) |
2670 | 2678 | (when add-sign
|
2671 | 2679 | (save-excursion
|
2672 | 2680 | (let ((standard-output (current-buffer)))
|
@@ -2840,7 +2848,7 @@ deepest patch had before the squash."
|
2840 | 2848 | (dir default-directory)
|
2841 | 2849 | (sorted-patchsyms (stgit-sort-patches patchsyms)))
|
2842 | 2850 | (log-edit 'stgit-confirm-squash t nil edit-buf)
|
2843 |
| - (set (make-local-variable 'stgit-patchsyms) sorted-patchsyms) |
| 2851 | + (setq stgit-patchsyms sorted-patchsyms) |
2844 | 2852 | (setq default-directory dir)
|
2845 | 2853 | (let ((result (let ((standard-output edit-buf))
|
2846 | 2854 | (save-excursion
|
@@ -2944,10 +2952,8 @@ When the command has finished, reload the stgit buffer."
|
2944 | 2952 | (let ((old-buffer (current-buffer)))
|
2945 | 2953 | (with-current-buffer buffer
|
2946 | 2954 | (let ((process (get-buffer-process buffer)))
|
2947 |
| - (set (make-local-variable 'old-process-sentinel) |
2948 |
| - (process-sentinel process)) |
2949 |
| - (set (make-local-variable 'stgit-buffer) |
2950 |
| - old-buffer) |
| 2955 | + (setq old-process-sentinel (process-sentinel process)) |
| 2956 | + (setq stgit-buffer old-buffer) |
2951 | 2957 | (set-process-filter process 'stgit-execute-process-filter)
|
2952 | 2958 | (set-process-sentinel process 'stgit-execute-process-sentinel))))
|
2953 | 2959 | (with-current-buffer buffer
|
|
0 commit comments