From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: apparent bug in org-insert-link with active region Date: Wed, 03 Oct 2007 22:15:23 +0100 Message-ID: <87abqzsxw4.fsf@bzg.ath.cx> References: <41c818190710030856i1b0280bdvc88a82e954f738b8@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IdBZ8-0008NS-Oo for emacs-orgmode@gnu.org; Wed, 03 Oct 2007 17:15:34 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IdBZ5-0008FN-GH for emacs-orgmode@gnu.org; Wed, 03 Oct 2007 17:15:33 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IdBZ5-0008FC-B1 for emacs-orgmode@gnu.org; Wed, 03 Oct 2007 17:15:31 -0400 Received: from hu-out-0506.google.com ([72.14.214.235]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IdBZ4-0005u6-Qg for emacs-orgmode@gnu.org; Wed, 03 Oct 2007 17:15:31 -0400 Received: by hu-out-0506.google.com with SMTP id 23so2390871huc for ; Wed, 03 Oct 2007 14:15:29 -0700 (PDT) In-Reply-To: <41c818190710030856i1b0280bdvc88a82e954f738b8@mail.gmail.com> (William Henney's message of "Wed, 3 Oct 2007 10:56:32 -0500") 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: emacs-orgmode@gnu.org "William Henney" writes: > If I call org-insert-link with the region active, then the region > content is instantly deleted while I am prompted for the link. This is > rather disconcerting, but for most link types the region content > magically reappears as the default value of the description. Yes, maybe the region shouldn't be deleted before the link is actually inserted. > However, for "file:" links the default value of the description > becomes the link itself, and the previous content of the region is > lost (as far as I can see). Is this intended? For me, the default value for the description is *always* the active region, this one being a simple string or a file link. So I expect the default value of the description itself being "the link itself", since it equals the active region... or did I miss something? -- Bastien