From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28335 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Norman Ramsey Newsgroups: gmane.text.pandoc Subject: Re: luacheck configuration for pandoc Lua filters? Date: Wed, 12 May 2021 11:36:07 -0700 (PDT) Message-ID: References: <7fd5e3eb-99cd-4bce-84c4-313077e96637n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_5450_1301996380.1620844567938" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13459"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBC5MLC7FZABRBGGA6CCAMGQEAPNWSYY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed May 12 20:36:12 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f57.google.com ([209.85.210.57]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lgtiO-0003Ns-4L for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 12 May 2021 20:36:12 +0200 Original-Received: by mail-ot1-f57.google.com with SMTP id h10-20020a9d554a0000b02901d8bed80c43sf15475392oti.22 for ; Wed, 12 May 2021 11:36:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=OVMPsHDTd1wi71JhQWA4MbYBExyyByzvL+g9qPX12ak=; b=aSg1ZDpMdj++oR5Tr3bTjMaswidpICCS8KJ4JS5OkKiFm2eSlpzy5MGD3F47jE/4g3 /wYoUp+QRh22p4a8d/NYOnNyTNHENUJVB01lDYIkwWvoQc3uF6t3m1x+oB8TnD5cM+G5 W1i5HfJXvYcYD9k3V8ZhmqKiaj2qEAc1VvixOS31C8T1m5jk1fZ+kyo4K5OZW03taqcU thMAQniFtSRfHTAtwjSVzQLmwnq1lYJ2DdCbbjdZtpiKWTUpjVsg0uWTc50GQQpBUMqH uHvz4tPtQRlSHuzbhsjtP7IJtQCK4IJkpjXHmwFDyHH/UaGlVrKTGshSQlWOjuQhUZyF lavQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=OVMPsHDTd1wi71JhQWA4MbYBExyyByzvL+g9qPX12ak=; b=A6VTle70IlnXfwZBwcgkCwFRpIV8aoJAqnkd90ckLNlsR109JKGGLohY7c2PYekCDL Sj2iIiz3BMvQVFgSGsOLqrRhJUzyNSQL9i8GvQ+cMKuRcucYJ5/GpilPQ8Ab/0t76kmb 9AXicWMRIEMkkhsgNgGlCGeVe+BkS87jI2gE2IsF8IzMAGlEWk2cCLxGYdGm6Kayglq3 1isNoU2nxlH061AtCW4nWx0/Eht3zANZwgDiVc5qznmDGnB4OeJQey+sk4/xT+xeIZ7c VG1j7Ly35tFtA5ehhJLIhjCfpjF73xvbn+m/xXH/kvCN3Es5f10kXXOSB02UJfet8N8N 1KHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:in-reply-to :references:subject:mime-version:x-original-sender:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=OVMPsHDTd1wi71JhQWA4MbYBExyyByzvL+g9qPX12ak=; b=CZOjMvBZD/fX9av+tReEGCQBQpcRsWaWmtFo467ybUXXVNVWYGXEN8oe/1JNeWSxUz 2omNtUg+zv3H2IUsaS+C37WIZLQXlWmds8FwB0DNHmp9Rkn+UqBKzIXk/gVID941J/JR u4BW8ZsH4ECJZshsbDEK4975rGW76DpSLybIDAPjPGNBasFnFw+U1R6WmPO5HMMEUo2Y pBdzKXZkZASqMs9Hyfg3+7Dv3x+Lc6B2tQ+8lLH0Qz/uTX7uFPWKfzkuGnOksiRKG+Hb 045BD+oY9y8FO7IH1HjGic4BQwFKl4IdQ6ZSo9E4rddx/oON6+mMiC8MYwVvLH43KfeS vHFg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532/ZhgYuUg1li7jmlfqWcTcIEaiYxtPjeLqGhThEvqfcbstjHjC 2Ncto8hx9BcPdxbRHn4TDYY= X-Google-Smtp-Source: ABdhPJwSt1w6NO60H9XOt0zYbom5cuAT0GlH98YDMCaiaducVWgf3dysgks/gDXQxd9ygfzMqBW69Q== X-Received: by 2002:aca:35d4:: with SMTP id c203mr8469554oia.10.1620844571080; Wed, 12 May 2021 11:36:11 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a4a:c711:: with SMTP id n17ls236787ooq.3.gmail; Wed, 12 May 2021 11:36:08 -0700 (PDT) X-Received: by 2002:a4a:d781:: with SMTP id c1mr29004534oou.44.1620844568462; Wed, 12 May 2021 11:36:08 -0700 (PDT) In-Reply-To: X-Original-Sender: fellswalker-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:28335 Archived-At: ------=_Part_5450_1301996380.1620844567938 Content-Type: multipart/alternative; boundary="----=_Part_5451_1723805861.1620844567938" ------=_Part_5451_1723805861.1620844567938 Content-Type: text/plain; charset="UTF-8" luacheck works with one module at a time, so all I need to do is figure out the _names_ of the callable objects. I could poke at metatables or could assume conservatively that all objects are callable. What I don't know how to do is find callable names that _aren't_ materialized in the `pandoc` table but are available only via an `__index` metamethod. On Tuesday, May 11, 2021 at 4:21:47 AM UTC-4 BP wrote: > Den tis 11 maj 2021 01:16Norman Ramsey skrev: > >> I've recently discovered `luacheck`, a fantastic static-analysis tool for >> Lua programs. I'd like to use it with my Pandoc filters, but it needs a >> configuration to tell it what functions in the global `pandoc` table are OK >> to call. If anybody happens to have made such a configuration, please let >> us know. > > > I guess the fact that most of the constructors in the pandoc library are > actually callable objects rather than functions may be a problem one way or > another. > > >> -- >> You received this message because you are subscribed to the Google Groups >> "pandoc-discuss" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/pandoc-discuss/7fd5e3eb-99cd-4bce-84c4-313077e96637n%40googlegroups.com >> >> . >> > -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/c4190975-7e98-446a-94a3-9f3df0e344b4n%40googlegroups.com. ------=_Part_5451_1723805861.1620844567938 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable luacheck works with one module at a time, so all I need to do is figure out= the _names_ of the callable objects.  I could poke at metatables or c= ould assume conservatively that all objects are callable.  What I don'= t know how to do is find callable names that _aren't_ materialized in the `= pandoc` table but are available only via an `__index` metamethod.

On Tuesday,= May 11, 2021 at 4:21:47 AM UTC-4 BP wrote:

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d= /msgid/pandoc-discuss/c4190975-7e98-446a-94a3-9f3df0e344b4n%40googlegroups.= com.
------=_Part_5451_1723805861.1620844567938-- ------=_Part_5450_1301996380.1620844567938--