Browse Source

UPdate

master
10sr 6 years ago
parent
commit
b40070e3c3
Signed by: 10sr GPG Key ID: 7BEC428194130EB2
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      emacs.el

+ 5
- 2
emacs.el View File

@@ -1951,7 +1951,7 @@ DISPLAY non-nil means redisplay buffer as output is inserted."
(setq awk-preview--env e) (setq awk-preview--env e)
(current-buffer))))) (current-buffer)))))


(defun awk-preview (beg end)
(defun awk-preview (beg end &optional program-buffer)
"Run awk and preview result." "Run awk and preview result."
(interactive (if (use-region-p) (interactive (if (use-region-p)
(list (region-beginning) (list (region-beginning)
@@ -1968,7 +1968,10 @@ DISPLAY non-nil means redisplay buffer as output is inserted."
(setf (awk-preview--env-source-buffer e) (current-buffer)) (setf (awk-preview--env-source-buffer e) (current-buffer))


(awk-preview--create-preview-buffer e) (awk-preview--create-preview-buffer e)
(awk-preview--create-program-buffer e)
(if program-buffer
;; TODO: IMplement this
(awk-preview--setup-program-buffer e program-buffer)
(awk-preview--create-program-buffer e))


(setf (awk-preview--env-window-configuration e) (setf (awk-preview--env-window-configuration e)
(current-window-configuration)) (current-window-configuration))


Loading…
Cancel
Save