From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Have SRC_BLOCK :padline accept numbers Date: Thu, 30 Mar 2017 09:50:03 +0200 Message-ID: <87zig3nqz8.fsf@nicolasgoaziou.fr> References: <878tnoqne3.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49902) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ctW1V-00077Q-4I for emacs-orgmode@gnu.org; Thu, 30 Mar 2017 05:05:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ctW1Q-0002UJ-3F for emacs-orgmode@gnu.org; Thu, 30 Mar 2017 05:05:41 -0400 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:41554) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ctW1P-0002Sz-Tr for emacs-orgmode@gnu.org; Thu, 30 Mar 2017 05:05:36 -0400 In-Reply-To: (Daniel P. Gomez's message of "Wed, 29 Mar 2017 18:03:12 +0200") 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: Daniel P Gomez Cc: emacs-orgmode@gnu.org Hello, Daniel P Gomez writes: > I've amended the commit including the changes you've mentioned. Thank you. > I did not change the following, though: > > (numberp (string-to-int padlines)) -> (string-match-p "\\`[0-9]+\\'" padlines) > > because that changed the behaviour of org-babel-tangle. Having a > string-match-p as a > match condition broke the default of adding no padlines in the > first tangled SRC block (when passed with no arguments). I don't understand this. `string-to-int' and `string-match-p' both have the same requirements about parameters type, don't they? > I also noticed that adding this functionality to ob-tangle breaks eldoc > for me. I guess all org babel header arguments have to be strings? Probably. Regards, -- Nicolas Goaziou