Hi Oleh, Oleh <ohwoeo...@gmail.com> writes:
> I would modify it like this to ignore just "." and "..": > > --- a/lisp/org-attach.el > +++ b/lisp/org-attach.el > @@ -425,7 +425,7 @@ This can be used after files have been added > externally." > "Return a list of files in the attachment directory. > This ignores files starting with a \".\", and files ending in \"~\"." > (delq nil > - (mapcar (lambda (x) (if (string-match "^\\." x) nil x)) > + (mapcar (lambda (x) (if (string-match "^\\.\\.?$" x) nil x)) > (directory-files dir nil "[^~]\\'")))) I pushed a slightly different change: http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=74162d9e > Is there a reason behind this dot file restriction? Would anything break > if the proposed change was made? I cannot think of any and John seems too busy right now. Let's continue with this change and see if anything breaks. Thanks, -- Bastien