浏览代码

Fix

master
10sr 6 年前
父节点
当前提交
07aaf41725
签署人:: 10sr GPG 密钥 ID: 7BEC428194130EB2
共有 1 个文件被更改,包括 5 次插入4 次删除
  1. +5
    -4
      emacs.el

+ 5
- 4
emacs.el 查看文件

@@ -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)


正在加载...
取消
保存