From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id yBpWHPNcdGTk0QAASxT56A (envelope-from ) for ; Mon, 29 May 2023 10:06:11 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id IBhhG/NcdGRmHQEAG6o9tA (envelope-from ) for ; Mon, 29 May 2023 10:06:11 +0200 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 0DA7620C8F for ; Mon, 29 May 2023 10:06:11 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q3Xsi-0008VF-BB; Mon, 29 May 2023 04:05:32 -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 1q3XsM-0008P4-Q1 for emacs-orgmode@gnu.org; Mon, 29 May 2023 04:05:12 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q3XsE-0001JB-K0 for emacs-orgmode@gnu.org; Mon, 29 May 2023 04:05:10 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 6421C240027 for ; Mon, 29 May 2023 10:04:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1685347496; bh=ibXlG7DCAaq4gx4Gp9DYAFs16hDgvF0lIiJlO5lcL3w=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=VJCuyiVu4IfGcESKuY2budC5WJadIzMP+DqIbUxKzOpgohxUMULVf9LyHPP8Svb2u Y7p/oGvONPh3kktdLBo7s/ngw7qSH+0CXqhhRpZRSC0xYYfiYyAjo7d7lQJ7aWEwsg dPNiXRqKSTmpEH+fCFhoO/fxAE9XMbdqG+EN+ydX4kCjvpwF+qwLQUHjAgoPNgEtkR v7JHhCiKyRBDuZ9b6bl6TAvzhqnvK/IiA4SQgODc0BS5hgcdh0cA89GB5GTTFFNqMB PPWTOlCF7KmK3mZ9GAMP8D1KUAspuSlHzjv7RJw4p8dZgTC7ux05S+m1o+DMUYjIuM ltUli6PPHpgmQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4QV7Nl6T2tz9rxN; Mon, 29 May 2023 10:04:55 +0200 (CEST) From: Ihor Radchenko To: William Denton Cc: emacs-orgmode@gnu.org Subject: Re: Preserving leading zeros In-Reply-To: References: Date: Mon, 29 May 2023 08:04:54 +0000 Message-ID: <87mt1ntvfd.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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 ARC-Seal: i=1; s=key1; d=yhetil.org; t=1685347571; a=rsa-sha256; cv=none; b=juWVzSo2RyjaSaux9rjbmKRl2ClilzJudzKCb4Z4m6wEBCz34tuXjTU3Yhwmgl1fuKoEKW 35ycomnVmJUCEujO+6lTgrJSLj5kMlrS8RkjYt9qPveEqS+14xo/dlKVqcZaRE9dodZXfM AH0kY9yDr2AsHtLd934HceaTPNFWSM4/crsIvNVfMQqQphrN7NKkBQqCvBCRhDIZFG8wIx Q2M/5elVO45/q32t2L8b9YgCj+E65lQgg57Vb7doCmuXviyvrsubFABXyNCstruzEmN2kC VN94d30L/hYRUDWjiacOzfbJRy+WNoOiW9XY+nHZT3veOhxwnTMiS3YFyAw8UA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=VJCuyiVu; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1685347571; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=VcJfjTJL9WBvYmr7Dqkys3A4hoBofg2C99S5OVci9L8=; b=bY2hih7JcIorW0SxupWEGbCPkCCrOXtjU19EL6SOqhFd4KHdEtyWiMxTV1wuiEVb0W5D8u T5ZnJrnjHZrVmSa/2sG3cX6ZgQ6oMrMDPu4isaUVz9mmbv5XtDvk7hjUI+Xe52S8QuY29i pin+U5NZEvJpxyJr0zvXNAIECV7KKMQIaEFeCnMV0hkTPHDjTEaUQ0XMBz2WvIfBn7DN4W 0xKcyYz8uSlkR4hwwRxhg1FQuA1CVPZdh/Q3NTDHrzdbmDr/BUaw/GOm9V0qtyTxRPRno7 9uXuMaZbN88CTlMnv1TSb5j7pdiBvTk1z5wbxOwQObOHRV/3i4TKax5edTYGPA== X-Migadu-Spam-Score: -9.38 X-Spam-Score: -9.38 X-Migadu-Queue-Id: 0DA7620C8F X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=VJCuyiVu; dmarc=pass (policy=none) header.from=posteo.net; 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" X-TUID: iaxHRSHwo1BC William Denton writes: > I'm thinking about moving a personal library catalogue system into Org. This > would involve ISBNs, and when ISBNs had 10 digits some would have leading zeros. > It turns out leading zeros are removed when something looks like a number. > > #+name:isbn > | 0006145396 | > > #+begin_src shell :results output :var string=isbn > echo $string > #+end_src > > #+RESULTS: > : 6145396 Try #+name:isbn | "0006145396" | Currently, Org unconditionally converts everything that looks like a number into numbers using `read'. We could, in theory, allow passing ;L flags or similar when reading table reference (see 3.5.2 Formula syntax for Calc). Feel free to write a feature request if you think that it might be useful. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at