From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [feature] prepend comment char before org-babel-ref Date: Wed, 24 Jan 2018 14:40:55 +0100 Message-ID: <87mv13cr2w.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38401) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eeLIT-0000NN-3D for emacs-orgmode@gnu.org; Wed, 24 Jan 2018 08:41:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eeLIQ-0003OB-1F for emacs-orgmode@gnu.org; Wed, 24 Jan 2018 08:41:01 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:53309) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eeLIP-0003N5-Rp for emacs-orgmode@gnu.org; Wed, 24 Jan 2018 08:40:57 -0500 In-Reply-To: (numbchild@gmail.com's message of "Wed, 24 Jan 2018 12:24:35 +0800") 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" To: "numbchild@gmail.com" Cc: Org-mode Hello, "numbchild@gmail.com" writes: > I think this function should be in Org-mode itself. > Because when you're editing the source code, will not want this src-coderef > like `(ref:example)` be editable. It should be in comment. Thank you for the suggestion. However I have some doubts about this. What it the comment syntax is not properly defined? What if the coderef format already contains comment syntax? What if the language does not support inline comments and you're in the middle of a line (e.g., FORTRAN)? I'm wondering if this is really a panacea. The current situation, albeit imperfect, is simple and easy to understand. WDYT? Regards, -- Nicolas Goaziou