From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Turning a link into a non-link Date: Sun, 05 Feb 2012 02:28:46 -0500 Message-ID: <7810.1328426926@alphaville> References: <87fweqszy5.fsf@iro.umontreal.ca> Reply-To: nicholas.dokos@hp.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:59443) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RtwWo-0002Mj-OZ for emacs-orgmode@gnu.org; Sun, 05 Feb 2012 02:28:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RtwWn-0004cj-B2 for emacs-orgmode@gnu.org; Sun, 05 Feb 2012 02:28:50 -0500 Received: from g4t0015.houston.hp.com ([15.201.24.18]:16956) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RtwWn-0004ZK-4e for emacs-orgmode@gnu.org; Sun, 05 Feb 2012 02:28:49 -0500 In-Reply-To: Message from pinard@iro.umontreal.ca (=?us-ascii?Q?=3D=3Futf-?= =?us-ascii?Q?8=3FQ=3FFran=3DC3=3DA7ois=3F=3D?= Pinard) of "Sat\, 04 Feb 2012 22\:48\:18 EST." <87fweqszy5.fsf@iro.umontreal.ca> 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: =?us-ascii?Q?=3D=3Futf-8=3FQ=3FFran=3DC3=3DA7?= =?us-ascii?Q?ois=3F=3D?= Pinard Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org Fran=C3=A7ois Pinard wrote: > Hi, Org mode people. >=20 > I sometimes want to turn [[POINTER][COMMENT]] into COMMENT. That is, I > want to remove the clickability, but retain the text. >=20 > To do so, I try `C-c C-l', empty the pointer, type RET, leave the > comment as it is, and type RET. Org mode reacts by writing "Empty link" > in the minibuffer, and removing the COMMENT from the text. >=20 This is done by org-make-link-string: it considers an empty link to be an error. If you toggle-debug-on-error, you will get a backtrace. > Could it keep COMMENT in the text, instead of deleting it? >=20 IMO, that'd be bad programming practice: you should write a separate function that unlinks the link. Nick