From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Dragging URLs to an org buffer Date: Wed, 4 Oct 2006 13:58:14 +0200 Message-ID: <3c52dabfdaba9c00aac42d35f94e9c0c@science.uva.nl> References: <3c12eb8d0610031027t7d1d98e1x4258e840d66b218d@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GV5ON-0000xR-Ql for emacs-orgmode@gnu.org; Wed, 04 Oct 2006 07:58:27 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GV5OJ-0000mk-CU for emacs-orgmode@gnu.org; Wed, 04 Oct 2006 07:58:27 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GV5OJ-0000mO-03 for emacs-orgmode@gnu.org; Wed, 04 Oct 2006 07:58:23 -0400 Received: from [146.50.4.51] (helo=imap.science.uva.nl) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GV5Ui-0008Cz-V3 for emacs-orgmode@gnu.org; Wed, 04 Oct 2006 08:05:01 -0400 In-Reply-To: <3c12eb8d0610031027t7d1d98e1x4258e840d66b218d@mail.gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Piotr Zielinski Cc: emacs-orgmode@gnu.org On Oct 3, 2006, at 19:27, Piotr Zielinski wrote: > Hi, > > Here's a piece of elisp that allows you to drag URLs from a webbrowser > (or other apps) to an org buffer. Great. > Any suggestions welcome. The functionality is now part of org-mouse > (I think it requires Emacs 22): > > http://www.cl.cam.ac.uk/~pz215/files/org-mouse.el I like the functionality, but I do find it too specialized to make this behavior the default. So I would weaken it, or enclose turning it on into a customization variable. The reasons why I find it too intrusive the way it is now are: - You enforce a colon for adding to the end of the line - you enforce a particular type of bullet. - when inserting in a empty line, the color switches to fixed-width quotation - people might want to use drag-and-drop to insert something into the text that happens to be a bullet item. Proposals: - Don't enforce the colon when inserting at the end of the line. - In the middle of a line, just insert there. - If the current line is a bullet or a headline, *and* if you drop *on* either the bullet or the headline stars, then make a new headline/bullet for the dragged text. Always make the bullet after the current line. (well, when inserting in front of a bullet, you could insert before the current...) - Respect the type of bullet: numbered, -, +, *. - Carsten