diff options
author | Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de> | 2014-10-27 12:43:45 +0100 |
---|---|---|
committer | Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de> | 2014-10-27 12:43:45 +0100 |
commit | 27bb04d499cd92780e331998f04e5dac222aa9da (patch) | |
tree | 1cf41bcb0aef35f740ae0610e31d000de9fe6bb2 | |
parent | ddd7578a4123ca9082d30cadf35baced3f145401 (diff) |
raise buffer: take optional mode argument
-rw-r--r-- | grid-engine-mode.el | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/grid-engine-mode.el b/grid-engine-mode.el index 9eec231..5fa6122 100644 --- a/grid-engine-mode.el +++ b/grid-engine-mode.el @@ -63,19 +63,21 @@ (cdr (assoc key columns))) grid-engine-column-order)))) -(defun grid-engine--raise-buffer (&optional buffer) +(defun grid-engine--raise-buffer (&optional buffer mode) (when buffer (set-buffer buffer)) (goto-char (point-min)) (pop-to-buffer-same-window (current-buffer)) - (grid-engine)) + (when mode + (funcall mode))) -(defun grid-engine--split-buffer (&optional buffer) +(defun grid-engine--split-buffer (&optional buffer mode) (when buffer (set-buffer buffer)) (goto-char (point-min)) (display-buffer (current-buffer)) - (grid-engine)) + (when mode + (funcall mode))) (defun grid-engine--default-directory () (if grid-engine-host @@ -142,7 +144,7 @@ (mapcar (lambda (job) (job-to-row job)) jobs))) - (grid-engine--raise-buffer) + (grid-engine--raise-buffer nil 'grid-engine-list-mode) ;; update list (tabulated-list-print) (message nil))) |