From mboxrd@z Thu Jan 1 00:00:00 1970 From: Karl Voit Subject: Replacement for org-make-link Date: Mon, 20 Aug 2012 19:03:38 +0200 Message-ID: <2012-08-20T18-59-49@devnull.Karl-Voit.at> Reply-To: news1142@Karl-Voit.at Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:33294) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3VOM-0003ig-Nh for emacs-orgmode@gnu.org; Mon, 20 Aug 2012 13:03:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T3VOL-0004NF-LN for emacs-orgmode@gnu.org; Mon, 20 Aug 2012 13:03:54 -0400 Received: from plane.gmane.org ([80.91.229.3]:37784) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3VOL-0004NB-EO for emacs-orgmode@gnu.org; Mon, 20 Aug 2012 13:03:53 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1T3VOL-00057i-EZ for emacs-orgmode@gnu.org; Mon, 20 Aug 2012 19:03:53 +0200 Received: from mail.michael-prokop.at ([88.198.6.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 20 Aug 2012 19:03:53 +0200 Received: from news1142 by mail.michael-prokop.at with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 20 Aug 2012 19:03:53 +0200 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: emacs-orgmode@gnu.org Hi! http://orgmode.org/Changes.html tells me that org-make-link has been deleted. I am using following lines to add links to references I manage using Org-mode: (from [1]) ,---- | (defun org-ref-complete-link (&optional arg) | "Create a reference link using completion." | (let (file link) | (setq file (read-file-name "ref: " "~/archive/papers_from_web/")) | (let ((pwd (file-name-as-directory (expand-file-name "."))) | (pwd1 (file-name-as-directory (abbreviate-file-name | (expand-file-name "."))))) | (setq file (string-replace "~/archive/papers_from_web/" "" file)) | (setq file (string-replace pwd "" (string-replace pwd1 "" file))) | (setq file (string-replace ".bib" "" file)) | (setq file (string-replace ".pdf" "" file)) | (setq link (org-make-link "ref:" file))) | link)) `---- Can somebody with more knowledge than me suggest, what I should do instead? Thanks! 1. http://draketo.de/light/english/free-software/custom-link-completion-org-mode-25-lines-emacs -- Karl Voit