Browse Source

fix bug

pull/1/head
10sr 12 years ago
parent
commit
d5194bc537
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      emacs.el

+ 4
- 3
emacs.el View File

@@ -1131,14 +1131,15 @@ if arg is omitted use value of `buffer-list'."


(defun my-dired-echo-file-head (&optional arg) (defun my-dired-echo-file-head (&optional arg)
"" ""
(interactive)
(interactive "P")
(let ((f (dired-get-filename))) (let ((f (dired-get-filename)))
(message "%s" (message "%s"
(with-temp-buffer (with-temp-buffer
(insert-file-contents f) (insert-file-contents f)
(buffer-substring-no-properties (point-min) (buffer-substring-no-properties (point-min)
(progn (goto-line (or arg
10))
(progn (goto-line (if arg
(prefix-numeric-value arg)
10))
(point-at-eol))))))) (point-at-eol)))))))


(defun my-dired-diff () (defun my-dired-diff ()


Loading…
Cancel
Save