Created
January 9, 2012 11:52
-
-
Save kyanagi/1582637 to your computer and use it in GitHub Desktop.
find-fileで*Completions*バッファに`../'と`./'を出さない
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; find-fileで*Completions*バッファに`../'と`./'を出さない | |
(defun find-file-read-args (prompt mustmatch) | |
(list (read-file-name prompt nil default-directory mustmatch nil | |
(lambda (name) | |
(and (file-exists-p name) | |
(not (member name '("../" "./")))) | |
)) | |
t)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment