Browse Source

Fix

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

+ 5
- 4
emacs.el View File

@@ -1711,7 +1711,7 @@ This mode is a simplified version of `adoc-mode'."
:group 'awk-preview)

(defcustom awk-preview-switches
'("--sandbox" "--" "{print}")
'("--sandbox" "--" "{print NR, $0}")
"String of awk options appended when running awk preview."
:type '(repeat string)
:group 'awk-preview)
@@ -1789,13 +1789,14 @@ Return that buffer."
(let ((source-name (with-current-buffer source (buffer-name))))
(with-current-buffer (generate-new-buffer (format awk-preview-program-buffer-name
source-name))
(erase-buffer)
(insert awk-preview-default-program)
(awk-mode)

(setq awk-preview--source-buffer source)
(setq awk-preview--preview-buffer preview)
(setq awk-preview--program-buffer (current-buffer))

(erase-buffer)
(insert awk-preview-default-program)
(awk-mode)
(current-buffer))))

(defun awk-preview--create-preview-buffer (source)


Loading…
Cancel
Save