From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oleh Subject: Re: Drag images from Firefox to org-mode Date: Mon, 21 Oct 2013 09:24:18 +0200 Message-ID: References: <87eh7irjvi.fsf@yahoo.fr> <52610C29.3000505@yahoo.fr> <526114B4.6060303@yahoo.fr> <2d5635af9ad6d51badb40e1e19c85572@mail.rickster.com> <87y55qpp44.fsf@yahoo.fr> <857b1a922e24dda4404df4d19fabd7e2@mail.rickster.com> <20131018204553.GA87254@BigDog.local> <87k3h7ptcc.fsf@yahoo.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41744) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VY9qf-0005fU-NP for emacs-orgmode@gnu.org; Mon, 21 Oct 2013 03:24:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VY9qe-0006Tr-I0 for emacs-orgmode@gnu.org; Mon, 21 Oct 2013 03:24:21 -0400 Received: from mail-we0-x22f.google.com ([2a00:1450:400c:c03::22f]:54288) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VY9qe-0006TY-AS for emacs-orgmode@gnu.org; Mon, 21 Oct 2013 03:24:20 -0400 Received: by mail-we0-f175.google.com with SMTP id t61so5986482wes.6 for ; Mon, 21 Oct 2013 00:24:19 -0700 (PDT) In-Reply-To: <87k3h7ptcc.fsf@yahoo.fr> 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: Nicolas Richard Cc: org mode > I suggest to ask for a string with (read-string "URL: " nil nil default), > offering the content of the clipboard/kill ring/selections as the DEFAULT. > I think it's better to be explicit when downloading content, and there > isn't much overhead in asking for a confirmation. I've moved the clipboard stuff to `org-download-yank'. `org-download-image' asks for the link now. > > This can be fixed by adding `org-download-max-filename-length`. When > > it > > overflows, just resort to `default-directory' and provide a > > message/option to fix. > > I suggest that the right place for those files is as attachment, and > that's where customization should happen. The function choosing the > right place (i.e. org-download--dir) could be turned into a defvar or > defcustom which could then be set either to #'org-download--dir or > #'org-attach-dir. Yes, this should be added. Oleh