From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id mGafB9qKtmayeQEA62LTzQ:P1 (envelope-from ) for ; Fri, 09 Aug 2024 21:32:10 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id mGafB9qKtmayeQEA62LTzQ (envelope-from ) for ; Fri, 09 Aug 2024 23:32:10 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=subvertising.org header.s=stigmate header.b=gCknRh2m; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=reject) header.from=subvertising.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1723239130; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=xBF7Y7DSUwolv6ChlXK86nxdCfSKHnr18RLIMIaMEig=; b=N6m47uAQTGP0n1Ek6hq9T57175xfmXQUpQFa0iI2YnxQ4OhmYlljMwW/P8Uh3USfdzk4O+ yvmBVg+js08EmP6NcNVbSz14Mk+HMva4YUgYuksfbMSmlmPmimyBGvUjdjULCLdLzQp8xF Uf9Hpik1dtHm2My1JdGMU+hGUItP+9nbf915uTViGlX3YDjiqStmQ96lbQ408yi3eKtWVz 7ecIvx1Hiv+VVujmooo/+kjC2w8o6AyTOIOACuythE1pvZwSEDxV7bmiasIfz6vLXea3KB a6X8gPL2qvG1Gq4TnydHU1BNR83CW7y18k/HSu4ngGyHl0GFdPzSFfsRGgduMw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=subvertising.org header.s=stigmate header.b=gCknRh2m; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=reject) header.from=subvertising.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1723239130; a=rsa-sha256; cv=none; b=lMGdQjdo8XaLzSO8OsuSBV6c44uzVAV63J0vDJG0jg7h8wF70StgLyDSGQPkn1VJoKsM8c eQ74OBzZK8k5KxiR2yZ979bEfi2g6S/0+cV4XRva8xNRdtxpHjF8vhhM/xrNaZZS6xgdcb klxtjd9K2IfrS2mLhNO/JRjMtpVX4rQ0lJra9Da7ubqMEr7QhXTNgsAT6d0isGoFUHrRg5 lbarUqtq2+I4Xg7emmnlu+hfPkPCYzcxOyewLRTAhi3DPN743UNx5+gnJG81uAyWsC5YiX eHEJSRmEOLI0wyjewaUIDS6BhGgzBjSIoXiflEbOYtK1pGB+P0tnVJFGwSx9rQ== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 7BE969069 for ; Fri, 9 Aug 2024 23:32:09 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1scXCm-0001GT-6o; Fri, 09 Aug 2024 17:31:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1scXCj-0001GD-1R for emacs-orgmode@gnu.org; Fri, 09 Aug 2024 17:31:21 -0400 Received: from latitanza.investici.org ([2001:888:2000:56::19]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1scXCe-0007dB-J2 for emacs-orgmode@gnu.org; Fri, 09 Aug 2024 17:31:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=subvertising.org; s=stigmate; t=1723239064; bh=xBF7Y7DSUwolv6ChlXK86nxdCfSKHnr18RLIMIaMEig=; h=Date:From:To:CC:Subject:In-Reply-To:References:From; b=gCknRh2mZNPCHUfyY4PKhc7vhEu/D47x+lnZcaSsr9r4HIflb6XPiOr2LF/3jxH24 QOxDh8iyvLVPaAIVuC0HWSJggQuiCWXnCFkGCx/LP4aP+ZASn40iIhI60p3RZ3wi0d hy1AusbgwUKjEaQvp++/VD4qDTKqDYnCcLkw3HjA= Received: from mx3.investici.org (unknown [127.0.0.1]) by latitanza.investici.org (Postfix) with ESMTP id 4WgcXm1mPPzGp3L; Fri, 9 Aug 2024 21:31:04 +0000 (UTC) Received: from [82.94.249.234] (mx3.investici.org [82.94.249.234]) (Authenticated sender: divya@subvertising.org) by localhost (Postfix) with ESMTPSA id 4WgcXl25SSzGp3d; Fri, 9 Aug 2024 21:31:03 +0000 (UTC) Date: Fri, 09 Aug 2024 21:30:54 +0000 From: Divya To: emacs-orgmode@gnu.org CC: yantar92@posteo.net Subject: Re: [FEATURE] On line-numbers inside Org Babel Source Blocks. User-Agent: K-9 Mail for Android In-Reply-To: References: Message-ID: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary=----358AJEQPLD3LJYHDJYMR5EKKKOZI7E Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2001:888:2000:56::19; envelope-from=divya@subvertising.org; helo=latitanza.investici.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -7.85 X-Migadu-Queue-Id: 7BE969069 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -7.85 X-TUID: Lp9wmAhmMuZf ------358AJEQPLD3LJYHDJYMR5EKKKOZI7E Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 7 August 2024 13:59:16 GMT, divya@subvertising=2Eorg wrote: >Hello, Org Mode! > >I've been using Org Mode for literate programming purposes, and would lik= e to have line-numbers within `src` blocks=2E I am able to export the Org b= uffer and get the line-numbers, but I am unable to do the same with regards= to just in Org buffers=2E I am aware of `org-edit-special`, but I would ra= ther appreciate if I can just look at a piece of code and know how long it = is=2E I believe a header argument can be useful in toggling this=2E > >Since the source blocks can already implement syntax highlighting, font a= nd other means of interacting with displaying Babel source blocks, theoreti= cally this shouldn't be that difficult to implement? I'd be glad to help im= plementing this feature, if I can be slightly guided on where to refer to l= ook for in the codebase=2E > >Regards, > >Divya Ranjan > Any suggestions, Ihor? ------358AJEQPLD3LJYHDJYMR5EKKKOZI7E Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
On 7 = August 2024 13:59:16 GMT, divya@subvertising=2Eorg wrote:
Hello, Org Mode!

I've been = using Org Mode for literate programming purposes, and would like to have li= ne-numbers within `src` blocks=2E I am able to export the Org buffer and ge= t the line-numbers, but I am unable to do the same with regards to just in = Org buffers=2E I am aware of `org-edit-special`, but I would rather appreci= ate if I can just look at a piece of code and know how long it is=2E I beli= eve a header argument can be useful in toggling this=2E

Since the so= urce blocks can already implement syntax highlighting, font and other means= of interacting with displaying Babel source blocks, theoretically this sho= uldn't be that difficult to implement? I'd be glad to help implementing thi= s feature, if I can be slightly guided on where to refer to look for in the= codebase=2E

Regards,

Divya Ranjan


Any suggestions, Ihor? ------358AJEQPLD3LJYHDJYMR5EKKKOZI7E--