From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id CB77JOPxdWKg0wAAbAwnHQ (envelope-from ) for ; Sat, 07 May 2022 06:13:23 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id aDAfJePxdWIhKwEA9RJhRA (envelope-from ) for ; Sat, 07 May 2022 06:13:23 +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 5A3A7C13B for ; Sat, 7 May 2022 06:13:23 +0200 (CEST) Received: from localhost ([::1]:36372 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nnBon-0004uS-PN for larch@yhetil.org; Sat, 07 May 2022 00:13:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54372) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nnBoF-0004uK-3F for emacs-orgmode@gnu.org; Sat, 07 May 2022 00:12:47 -0400 Received: from mail-oi1-x22a.google.com ([2607:f8b0:4864:20::22a]:37771) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nnBo9-0006SJ-7D for emacs-orgmode@gnu.org; Sat, 07 May 2022 00:12:45 -0400 Received: by mail-oi1-x22a.google.com with SMTP id r1so9612272oie.4 for ; Fri, 06 May 2022 21:12:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=vfmE/YtP6w63Ujbj9OzYfshlPliFYRKJlVfBZW3raGs=; b=Y6OVUdvlG+9molyXYcu6MiHRuJ+AAVSIvKXDNaxHNp7L8It9U/DWT1rOJTcGsFu9xM T1OVbtcrOFqCoVGDYSF05DMccE/jUJwYXahZtyWZqylk49ttFjkWTGZzUilLwQ/aX2oj iM8HIihNKub2/L0nbgdZqWYp0lmKd5JXuqiZSNT2TiTQrLKUZdkzZYVFAPpkuhSE6s7U U6PkqQPyx7hMdNvSCTxm88wd0mX2CffZazwIOwF1Ryqhgv9xKggpxwOogQ2bsWrD93s3 9DZVT/f+4T3TFvB4ftpP+92u9awKhHrJ9uY78F9Rt5cAkPXeCcARu354wY+dQGvZVkzK EE8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=vfmE/YtP6w63Ujbj9OzYfshlPliFYRKJlVfBZW3raGs=; b=hknoLQSy7K/MSNnUzK6glBp+oDr8o/mFgBxq/9HaekbvPGtLFufR9bCKqKKBlzw95Y dkHjmvn7TP35D1r56GLlF3wB7xwGxtY092Dn+mPuWat9JqgLcaBt20rFZ7OyhnahrrWe u0YP34a9Dq8n+iEnDy6sWyDkr0N/y1Gw8+4fU8ED1606Z7+5nEBiHYX3MdHqtsfR7ylW Jl1lhv4n3G+zpaqLWq0LUYVg7J7suL/4DfANzMDaAUEEg4LWYRLVXp5UGj5XmSq6dqj0 /LO4rT7qASEqGH1exkP2XXvFkGlt4ET3EmXS8+3/2xWT7c+gjLkttnYk40r5Oi8wLCdH T/nQ== X-Gm-Message-State: AOAM533ZlHBP6KHNuf6sShytMGJPHZv4TZDk0wob5g8M6Dr22ZyugPHh zCmMBf19/XFFavkNECAtlxHDIgtAjd5sDA== X-Google-Smtp-Source: ABdhPJwKhW9semhPfHwktoUFFHHkMDNP0riXNVGyeRH8sXbwn9Kgs/bUTRNpSCTuVU7d50lf2qZKyw== X-Received: by 2002:a05:6808:f0d:b0:326:933e:e102 with SMTP id m13-20020a0568080f0d00b00326933ee102mr2630278oiw.158.1651896759632; Fri, 06 May 2022 21:12:39 -0700 (PDT) Received: from localhost ([104.223.98.2]) by smtp.gmail.com with ESMTPSA id g18-20020a056870c15200b000e9364288bfsm2347624oad.45.2022.05.06.21.12.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 May 2022 21:12:39 -0700 (PDT) From: Ihor Radchenko To: Max Nikulin Cc: emacs-orgmode@gnu.org Subject: Re: [PATCH] New LaTeX code export option: engraved In-Reply-To: References: <87wnf1z1w8.fsf@gmail.com> <87sfpogyag.fsf@localhost> <87v8ukyo94.fsf@gmail.com> Date: Sat, 07 May 2022 12:13:10 +0800 Message-ID: <87o80ayo89.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::22a; envelope-from=yantar92@gmail.com; helo=mail-oi1-x22a.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1651896803; 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=vfmE/YtP6w63Ujbj9OzYfshlPliFYRKJlVfBZW3raGs=; b=dogZSM37ajSBFtzON5lGvjpOtMpFcfbSFNBe7jrtc/vo0uMmXmR+2eJ+QuyUXHpnZczyrQ lmlqMG8Vd+am4JAvnGc5I9YRK5OOuHJ2RG++M8Dc07citiV2L2d32SiiYw7jnO2GA5ssLX C+nGHYrny3s9I0VXOOSWT0BBNVjG8G+gq19j407/ZW4x+EzUm+50LndIM5pE4TYq0JKEuK RBjVhRL4NgY4Bn8g0bwhKfGp/+hi+76W7fQIQQTz2mQkOR3Pm+0if29VdLRENRvKOYd3pQ +995IGgg/sKvdRqJ8u8tNrPqRTESjtSR1AnLY5G60TS2wB0onRU4zp7g/eECdw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651896803; a=rsa-sha256; cv=none; b=DQJPMujHg78gkR+cSagvz5EauIdcC9owof1RgeoCUrs0hbIcHy31vvv/r/nCVcuc0nc/py L7W7jO2QgNyuyRLbbXK9O67q5v0zNGsX1LtpPmIoHjRnDcCHQs/h+ULpzt0Jcgrc3f0/Me B2zEzMmEo7o/9xQo3H3aeWMfxg6qokY3IOgHbmjX6PqwB1qsOCnxRkuZnkINK+X2MqXusk 9FY9w1eRJLJpivaProX4HQfzzFOMHUl7c4WGwYcur3fKmmn0kJ2JidJP/pdJyDlzvGX4FI OQnoUlt2kFznVFKIrQBHPcS8/I0//zmi7CGFrhZNSsoEIr9926+76XlDcAkZ8A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Y6OVUdvl; dmarc=pass (policy=none) header.from=gmail.com; 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-Migadu-Spam-Score: -3.50 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Y6OVUdvl; dmarc=pass (policy=none) header.from=gmail.com; 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-Migadu-Queue-Id: 5A3A7C13B X-Spam-Score: -3.50 X-Migadu-Scanner: scn1.migadu.com X-TUID: /D8xW6JtaEOP Max Nikulin writes: >> +(defun org-latex-src-block--verbatim >> + (src-block info _lang caption caption-above-p _label >> + _num-start _retain-labels _attributes float) > > On the one hand I have no a better suggestion, but on the other hand 10 > arguments is too much for straightforward code from my point of view. > Unsure that getting parameters in each function or passing a property > list would not be worse however. I agree that having that many unused arguments is awkward, especially when the arguments are repeated in all the calls. Maybe the functions could be rewritten using cl-defun with keys and &allow-other-keys and then called via apply on a let-bound arg plist? Best, Ihor