Skip to content
This repository has been archived by the owner on Jul 20, 2023. It is now read-only.

argument error when cursor on line with no filename #13

Open
chipschap opened this issue Aug 3, 2017 · 1 comment
Open

argument error when cursor on line with no filename #13

chipschap opened this issue Aug 3, 2017 · 1 comment

Comments

@chipschap
Copy link

An argument error appears when in peep-dired and the cursor is (mis)positioned to a line that has no filename (such as the top of the directory buffer). This fixes it:

(defun peep-dired-display-file-other-window ()
  (let ((entry-name (dired-file-name-at-point)))
;; Patch for mispositioning (next 2 lines)
    (unless (or (not entry-name)
	     (member (file-name-extension entry-name)
                        peep-dired-ignored-extensions)
                (> (nth 7 (file-attributes entry-name))
                   peep-dired-max-size))
etc.
@ahungry
Copy link

ahungry commented Sep 27, 2018

Thanks for the fix

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants