emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] `org-attach-file-list' doesn't allow dotfiles


From: Bastien
Subject: Re: [O] `org-attach-file-list' doesn't allow dotfiles
Date: Tue, 18 Mar 2014 17:19:07 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Hi Oleh,

Oleh <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]