From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oleh Subject: `org-attach-file-list' doesn't allow dotfiles Date: Mon, 10 Mar 2014 16:46:00 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58664) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WN2P1-0006Ul-N6 for emacs-orgmode@gnu.org; Mon, 10 Mar 2014 11:46:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WN2P1-000084-1r for emacs-orgmode@gnu.org; Mon, 10 Mar 2014 11:46:07 -0400 Received: from mail-we0-x22a.google.com ([2a00:1450:400c:c03::22a]:54906) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WN2P0-00007x-Ra for emacs-orgmode@gnu.org; Mon, 10 Mar 2014 11:46:06 -0400 Received: by mail-we0-f170.google.com with SMTP id w61so8787845wes.29 for ; Mon, 10 Mar 2014 08:46:01 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: org mode Hi all, I recently investigated why `org-open-at-point` uses smplayer to open *.mp4 links, although the system's default is vlc. The solution was to create ~/.mailcap with video/mp4; vlc %s I wanted to store this file as an attachment in an org document, so I don't forget about it, but this attachment can't be opened due to `org-attach-file-list` ignoring all files that start with a dot. 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 "[^~]\\'")))) Is there a reason behind this dot file restriction? Would anything break if the proposed change was made? regards, Oleh