From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: link description <-- selected text? Date: Tue, 16 Jan 2007 07:44:16 +0100 Message-ID: <795340f4f2f460047ebb3fe6c33595bd@science.uva.nl> References: <45AA6DB3.50405@u.washington.edu> 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 1H6k0G-0006yP-5y for emacs-orgmode@gnu.org; Tue, 16 Jan 2007 03:49:12 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H6k0F-0006xW-Fu for emacs-orgmode@gnu.org; Tue, 16 Jan 2007 03:49:11 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H6k0F-0006wx-4u for emacs-orgmode@gnu.org; Tue, 16 Jan 2007 03:49:11 -0500 Received: from [149.217.40.2] (helo=mailer.mpia-hd.mpg.de) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H6k0E-0003M5-K5 for emacs-orgmode@gnu.org; Tue, 16 Jan 2007 03:49:10 -0500 In-Reply-To: <45AA6DB3.50405@u.washington.edu> 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: Scott Otterson Cc: emacs-orgmode@gnu.org I have implemented this behavior, thanks. It has the side effect that the selected text is removed from the buffer, even if you change the offered default description, but I guess this is ok. - Carsten On Jan 14, 2007, at 18:51, Scott Otterson wrote: > Here's a feature request: If text is selected when the create link > command is invoked (C-c C-l), then the selected text becomes the > default contents for the link description mini-buffer. If no text is > selected, the description mini-buffer is blank, as it is now. > > This would reduce substantially keystrokes for my usual style of > editing, which is to first type in the outline text and then to go > back and sprinkle it with links to references (to websites, bib > entries, lines of code...). For example, suppose I have written this > sentence: > > "Implement the RLS algorithm" > > And, suppose I've already stored a link to an RLS paper by typing C-l > in in my bib file. Then, while in the outline buffer, I'd like to be > able to select the text "RLS algorithm", and then hit: > > C-c C-l (creates link minibuffer) > (enters stored link) > (enters selected text as link description) > > As soon as it occurred to me that this would make org-mode more > efficient, I realized that this is how other standard programs already > handle html references; I'd guess that many would already be familiar > with this small change in org-mode behavior. > > Thanks for all the good work, > > Scott > > > > _______________________________________________ > Emacs-orgmode mailing list > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > -- Carsten Dominik Sterrenkundig Instituut "Anton Pannekoek" Universiteit van Amsterdam Kruislaan 403 NL-1098SJ Amsterdam phone: +31 20 525 7477