From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id CLWXLQk0VGH8BwAAgWs5BA (envelope-from ) for ; Wed, 29 Sep 2021 11:38:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id YHZBKQk0VGEAKQAAB5/wlQ (envelope-from ) for ; Wed, 29 Sep 2021 09:38:17 +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 0C89022E23 for ; Wed, 29 Sep 2021 11:38:17 +0200 (CEST) Received: from localhost ([::1]:53972 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mVW2Y-0004sW-Hz for larch@yhetil.org; Wed, 29 Sep 2021 05:38:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45158) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVVu0-0002I7-CE for emacs-orgmode@gnu.org; Wed, 29 Sep 2021 05:29:25 -0400 Received: from ciao.gmane.io ([116.202.254.214]:42908) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVVtw-00066B-BW for emacs-orgmode@gnu.org; Wed, 29 Sep 2021 05:29:22 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1mVVtr-0003Ab-99 for emacs-orgmode@gnu.org; Wed, 29 Sep 2021 11:29:15 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Gyro Funch Subject: Re: [PATCH] Treat :tangle-mode as an octal value not integer Date: Wed, 29 Sep 2021 11:29:06 +0200 Message-ID: <875f2e60-c36f-091e-043c-ae7a80656507@gmail.com> References: <20210928145448.245883-1-jeremy@cowgar.com> <20210929063925.GA6367@tuxteam.de> <7e1c208b9fa8845adff5e3c45d6f086b@cowgar.com> <8735pnyfvd.fsf@esthar.i-did-not-set--mail-host-address--so-tickle-me> <20210929082223.GE6367@tuxteam.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.1.1 Content-Language: en-US In-Reply-To: <20210929082223.GE6367@tuxteam.de> Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NICE_REPLY_A=-2.562, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1632908297; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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; bh=sNTT8wfZ3i2vYhPkdW72p2uXcC+O9OtminQVXpT4DnU=; b=CVoiNfBUk7OnAVRnU7Rf/kVCcDPAe0xSddl+TLjuNw92AluCBNxIC1v7MYmHr58cNaR4B3 C3AEj1Fk3usKxUZMraoS8E1oSGDr+BsI50Y+VfMXcfSlNo/NWXEz81rm4aTAmJd3HmAqut P2v/xbbQ3pCSNt+wt724pbQlqSJPKXuPGunzO5WVI26oFlnyJ+hrqPCkig2abetiprG/H1 BAGXpEyKrsNF8UMwiOOLrJq7W4ZfVZjEJ2lQQft9CTK/DeInfTzVPRtg8E2wx+RE8QZSyL z2kLcY+P6ro8dAUmqQtGLewtl2uSJkwCyE+ZTial7myHssBae3/sdfnYXe8ODg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632908297; a=rsa-sha256; cv=none; b=U6LKzU0FxCIA9GtloMvNO4CeOv35oyExYjUETi8QiCotG1cTKnllDzKAIzIGtBM+Edg3v9 95RnOrZvdCdvTVjUdaJ2ejFdPiAnSNFOFRHJhz+Gm0Ha2Z1MfNERe2xuZpij4t9Ci0Wl0b TbiYOJqsuPqCJWNV1N/Dnb73DQXvQ4jQGEvHrTw7jzry5UtAaVCtSKA4uj5CmnoZ+OR1CM C2JNyYL5ucyUDegfwNK4b7oQBmyDj8oOdC/mcqBAIT8AuNlIwfMa8d5zK7M1NpjFVm41gu R6f4GRHKRoDRlcfqEl9xnpFvlzAoTmh+VY5MPs70pxDvr1JKgx5Orh7boaUDAg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); 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-Spam-Score: -1.80 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); 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: 0C89022E23 X-Spam-Score: -1.80 X-Migadu-Scanner: scn0.migadu.com X-TUID: v43xvil1oPY+ On 2021-09-29 10:22 AM, tomas@tuxteam.de wrote: > On Wed, Sep 29, 2021 at 09:52:23AM +0200, dkrm wrote: >> >> Jeremy Cowgar writes: > > [...] > >>> Are you suggesting this currently works or that the patch should be >>> changed to make that work? A quick try on my local system (pre-patch), >>> I receive the error: >>> >>> Wrong type argument: fixnump, "#o660" >> >> You have to use the `identity` function for it to works: :tangle-mode (identity #o660) > > Not the original poster, but I'd understand if they think > this is "too roundabout" to just express a file mode. > > I think #o would have been acceptable, but changing that > now might break a lot of stuff out there (every param > beginning with `#o'? > > OTOH, adding special rules for params seems at least as > dangerous. > > Are there better ideas? > > Cheers > - t > I don't know if it would ever be ambiguous, but could :tangle-mode have the ability to infer if it were integer- or octal-format based on checking against 'reasonable' permission settings in octal notation? Kind regards, gyro