From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kyle Meyer Subject: Re: How to insert a link in an Org buffer programmatically? Date: Sat, 21 Feb 2015 13:19:16 -0500 Message-ID: <87k2zb9lgb.fsf@kmlap.domain.org> References: <87oaongq36.fsf@wmi.amu.edu.pl> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:32849) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YPEaK-0007KZ-0D for emacs-orgmode@gnu.org; Sat, 21 Feb 2015 13:15:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YPEaA-00047w-Js for emacs-orgmode@gnu.org; Sat, 21 Feb 2015 13:15:23 -0500 Received: from mail-qc0-f171.google.com ([209.85.216.171]:36094) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YPEaA-00047d-GS for emacs-orgmode@gnu.org; Sat, 21 Feb 2015 13:15:14 -0500 Received: by qcqi8 with SMTP id i8so5557712qcq.3 for ; Sat, 21 Feb 2015 10:15:13 -0800 (PST) In-Reply-To: <87oaongq36.fsf@wmi.amu.edu.pl> (Marcin Borkowski's message of "Sat, 21 Feb 2015 19:09:01 +0100") 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: Marcin Borkowski Cc: Org-Mode mailing list Marcin Borkowski wrote: > Hello fellow Orgers, > > I'd like to insert a link (say, at point), given its description and the > text of the link itself, from Elisp code. Is there any function to do > this? I mean, some escaping might be needed, right? `(insert (org-make-link-string LINK DESCRIPTION))' should do what you want. -- Kyle