From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id EJLxAlTE318aOwAA0tVLHw (envelope-from ) for ; Sun, 20 Dec 2020 21:38:28 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id UNJXOlPE31/0eQAAB5/wlQ (envelope-from ) for ; Sun, 20 Dec 2020 21:38:27 +0000 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 6E1CF9403C8 for ; Sun, 20 Dec 2020 21:38:27 +0000 (UTC) Received: from localhost ([::1]:34092 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kr6PK-0001J2-Dz for larch@yhetil.org; Sun, 20 Dec 2020 16:38:26 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:35056) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kr6OB-00012f-7y for emacs-orgmode@gnu.org; Sun, 20 Dec 2020 16:37:15 -0500 Received: from mout02.posteo.de ([185.67.36.66]:33267) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kr6O8-0005LP-UI for emacs-orgmode@gnu.org; Sun, 20 Dec 2020 16:37:14 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 7A0CC2400FC for ; Sun, 20 Dec 2020 22:37:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1608500228; bh=BFJ9pxrxlXRysQrXS1iIn9nf5K46jWm8n1TEX2R52P0=; h=From:To:Subject:Date:From; b=hTIKEB+kZHERZgehe412Y29S5+zzCxskngo87j/RrfKvFRL/bSc5xNN9A4gEjKqpz Cbg2RpA+1THSOKpBGunVBSDQzSaxBeY+FIQBFC8ik9wwpwXhJpzY62S1GaZ8vERHb6 fiO4HzDh+8pP3blXL/UhrmQ2kldm08HW7JkRMXhBrb7qkPxkmyjozYiWY53n/Mqw/j PZWzJou5b5HxgKcfAQ8Kyfysw5ZczH9uEHsnYqbSyqJ7q7exuH4hrI/SEm4Zv0mqB9 EcVUdMU71CQhv5GS/Xmc0SXsm4dhRl1Y7HQmCfda5EIVuzDShtQsc9/KgiEIVvKRcw e2fUvhkyKcuJg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4CzbXg6M4kz6tmB for ; Sun, 20 Dec 2020 22:37:07 +0100 (CET) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: orgmode Subject: Displaying verse numbers within a verse block Date: Sun, 20 Dec 2020 22:37:07 +0100 Message-ID: <871rfk17ng.fsf@posteo.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=maciaschain@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=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.23 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" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.52 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=hTIKEB+k; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 6E1CF9403C8 X-Spam-Score: -2.52 X-Migadu-Scanner: scn0.migadu.com X-TUID: C7T7E3Bpn7zw Hi, One of the many, many things where I use Org Mode is my Spanish translation of Homer's Odyssey (work in progress). To avoid getting lost inside each Book, I wrote this little code that helps me navigate through the verses, displaying in the margin (within a verse block) the verse numbers in sequence of 5 (not counting the empty lines), or allowing me to jump to a certain verse number. I've uploaded the code to GitLab in case it could be useful to anyone who also has to work with long runs of verses (hundreds, thousands...). Of course, this is something I wrote for my own work, and I'm not a professional programmer either, so the code can be improved for sure ;-) https://gitlab.com/maciaschain/org-verse-num Regards, Juan Manuel