Skip to content

Commit

Permalink
cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
joaotavora committed Feb 26, 2012
1 parent 483364c commit fb45d0e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions yasnippet.el
Expand Up @@ -1419,16 +1419,16 @@ Here's a list of currently recognized directives:
(directory-file-name extra-dir)))))
group))

(defun yas/subdirs (directory &optional file?)
"Return subdirs or files of DIRECTORY according to FILE?."
(defun yas/subdirs (directory &optional filep)
"Return subdirs or files of DIRECTORY according to FILEP."
(remove-if (lambda (file)
(or (string-match "^\\."
(file-name-nondirectory file))
(string-match "^#.*#$"
(file-name-nondirectory file))
(string-match "~$"
(file-name-nondirectory file))
(if file?
(if filep
(file-directory-p file)
(not (file-directory-p file)))))
(directory-files directory t)))
Expand Down

0 comments on commit fb45d0e

Please sign in to comment.