From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28770 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Order in which default files are applied Date: Tue, 06 Jul 2021 16:10:22 -0700 Message-ID: References: <877ddcd6-18f6-4c24-8896-98f7cb04b2d4n@googlegroups.com> <3587bc3a-6eb3-45e1-869e-b9ff86265da0n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7939"; mail-complaints-to="usenet@ciao.gmane.io" To: Nandakumar Chandrasekhar , pandoc-discuss Original-X-From: pandoc-discuss+bncBCJZJHG45QDBB26FSODQMGQE7FCVRJA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Jul 07 01:10:38 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pf1-f190.google.com ([209.85.210.190]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1m0uD8-0001mB-1O for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 07 Jul 2021 01:10:38 +0200 Original-Received: by mail-pf1-f190.google.com with SMTP id f65-20020a6251440000b02902fe9dc6c80asf271779pfb.2 for ; Tue, 06 Jul 2021 16:10:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1625613036; cv=pass; d=google.com; s=arc-20160816; b=xR+ShmNR5KUL68DXTPEkvxcHAaIcjhx6iumY8qxDndYfzabXBo9nvIs5EIZS5n/n6s vk4DIIw+k88njFyODd6uCoKMdqpUKmP8IYCvUj+QLlNbSviSl+bp0HYEVaffQiij3e6j H/QHeHFyrnqdIVxWS+aJ98LGaYlNkPYdsebgAR3cS5UTNW4pajz6ZXfsh2n4PeuC28E/ xkNFs85ClJKtJ+IJMomY9/Mx+BKJmF9fHVscUTwyu3MEB6AB512yjPivGkPSXzyt9i1X tRYEmtSFebVPR24ajB0aUpiQCQXKeh/HW61H4OzDCQ4ug3AcYXzDxEg3oyI14Id9Y66S Cwlg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:mime-version:message-id :date:references:in-reply-to:subject:to:from:sender:dkim-signature; bh=X1O/aQ39KTYxeUo86U2Va9PtveAxUQiVDaEKeTcNH0w=; b=J2Vf88/HYLSE0Wb1f7g9cC2NbnxyPEcwfT61aGPV6HN5q5PwYOeSENIt+mdZhUvBT7 oqj4FvLQKnh0XNy7p32IQ9dqo2dEamNnx6aUpEPcyIbwTcn2j63Syj4Kta0wZjxrOvQi Uq3gUevKJeGvQ76W69GZzW1D4Xw79v22j1uo3pAC0wbylkK2F+Xy09qI/Z7cPuPZjx0W ScPjbRrdnnYFuL3PAt039Q6yAOABpMZsZuwRaGnSLjfJ0QQFdOYMtzA/qdTFObkft5WM Kwz60weDls2blorX5ugUSZvEJoWMHr3DIrP9bT6vnbcKQ0e2DA8R4+8hgB9r3rAOLv8q mS6A== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=LB6VfX8K; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::1035 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:subject:in-reply-to:references:date:message-id :mime-version:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=X1O/aQ39KTYxeUo86U2Va9PtveAxUQiVDaEKeTcNH0w=; b=q0Oi3YIjDWZvNk0dmfUHwfetrdAmuF2KlflmEt06MN7QJewkKESs5gk11FgcvgCyzS eyLyzcWtH7i7h8ARSEzocDlPWMyIQXS2bOXMJC3VzPM+o8S24AuxyadveXb6AYVYIomX ADxlsD9xLuGW0tyrxLpLt/7L/tYalt1QzQUGfXyGGTfYVHk+qCHwsdLTx8VIer4s0GC8 4MGcDhnts4dPP4pKt+VvOcfj7bRKI1/CCZppXK48fL3BfQ4zJ790/vCIWLWAYDPoxbnH W6GpB2PyjSHYJq445g7Da8Zii+pXZXWl2EyQtl4JGTTQrUVqUWNwCOrPPUJRw5kx/hQ6 kfYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:subject:in-reply-to:references :date:message-id:mime-version:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=X1O/aQ39KTYxeUo86U2Va9PtveAxUQiVDaEKeTcNH0w=; b=Qxng0BMRO1lAwGIaNBQx2bFFmpOflHNW2bc9UcYzGPQvrAY5upGHJSTzIds1IOUmq7 ig6V33sEHuDIkudvR5BP0SLa5cwCxIT4T906QmzA6VrRwr1B5ffDuAKjUom+FJSerFyF uuVR+lUBt+Qmcs7Fk77dWXHMHwW8S+gXifc/TkTnkUOt51GUAY/GnHC8dhfwQf5bFCUy u4hLXeUxizi6b8/wYKvB5M0yf72zyrMtWJWYrbzvA/zRaGDH05W7yvebBY68NRKENZZY +OKy4Ps9rq+NU+/y2kDDcZ0pDRr3U9l4aHdcOna/tALbKwjDizBINZT5AADEY+vArTQp NBTA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM530wi6MHdrxZpVnFFydHcMHNdLvHEQk9+Yobsb81Udyt0NOWHP/m TnCul9DtNv6p0/PaYM+8Sdc= X-Google-Smtp-Source: ABdhPJw/Zln/HFqlYZr4BmQ6IdNz3N7xszA6kTFAkTSXxjoiq2/UP5yhaFkVtGVoyuB8Ea/Hq6mXcQ== X-Received: by 2002:a63:794:: with SMTP id 142mr23140737pgh.198.1625613036798; Tue, 06 Jul 2021 16:10:36 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:902:c10c:: with SMTP id 12ls1505292pli.11.gmail; Tue, 06 Jul 2021 16:10:34 -0700 (PDT) X-Received: by 2002:a17:902:968a:b029:11d:6448:1352 with SMTP id n10-20020a170902968ab029011d64481352mr18591623plp.59.1625613034816; Tue, 06 Jul 2021 16:10:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625613034; cv=none; d=google.com; s=arc-20160816; b=CCaJSviolubChYDZwioENijIdipGrzlRUAiOahnXnexRUI/h0nbr8K+8Nl+yh+nEMv cFf2zSqZ5eTA355Wvcc35gx3CEdwT2vlC2MGeC4UTOQLVkjgCAf0wFdrUkTgShriwi1J k5iuiEvvLKBGryrgRvIlSytmuRtulaCbPsSH5oU0Ej7lvZtJI2MNHEr0ffxtA5Awzl/4 VQ+jJlT4kF9yJ/Vlh+mHFD447KCkd3/UtACWYsFTciGgeI91mUGii4CRddjzKu0u6sur DlEYEHiFiWD5ZPB5rvnZutzFB+pQR2b3JU+bsmFfqbHLfVzZNc9nbnO3PodN9QGoR93v Bmww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :dkim-signature; bh=nzHQcAjYEuQGyG4v3Kw17wcgW53pxkMOKdDfeZi2iug=; b=FqVNV17zGT41OlXsL4rci4eaSeqSQ+VcydmM7B/HhFXRvPv2IKunegklm3mTnw9ep7 GEJZuCLDZxhMaNruL2yPdDm+14LEOzH3lqWMJt9WgjOmfKsKMsylpAKNpJjOFrxQIyRr LuW5Y9SXvrjuu5K4UPbu0oBLDweAXl4SsuCJsuYQbJw3zXTR5a0Fdx5wTBlu9cjVc3Lh AgBYpEqPAQcXvwhQA4kqAcqWF1HN7+EsTxykVH9y+xokNDk/m7jlwGPxSidrqpEgNY+B cKkHU8WfIqhZVVJ6N4D+XpO13WDda6AI2zhSik0PTqdoNZJvC0+3kXNfBPCCIyy/BYo5 Lfkg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=LB6VfX8K; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::1035 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com. [2607:f8b0:4864:20::1035]) by gmr-mx.google.com with ESMTPS id f16si1109440plj.1.2021.07.06.16.10.34 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 06 Jul 2021 16:10:34 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::1035 as permitted sender) client-ip=2607:f8b0:4864:20::1035; Original-Received: by mail-pj1-x1035.google.com with SMTP id ie21so423965pjb.0 for ; Tue, 06 Jul 2021 16:10:34 -0700 (PDT) X-Received: by 2002:a17:90a:9ce:: with SMTP id 72mr2623329pjo.112.1625613034346; Tue, 06 Jul 2021 16:10:34 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id c9sm15533629pja.7.2021.07.06.16.10.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Jul 2021 16:10:33 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 9500BA249; Tue, 6 Jul 2021 19:10:22 -0400 (EDT) In-Reply-To: <3587bc3a-6eb3-45e1-869e-b9ff86265da0n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=LB6VfX8K; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::1035 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@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:28770 Archived-At: Correct. Nandakumar Chandrasekhar writes: > Thank you for your detailed reply. > > I think my question has to do with cases where the reader or to field is > specified in two or more defaults files, in which case I believe one would > take precedence over the other. > > Am I correct in assuming the above? > > And which value takes precedence will primarily depend on the order in > which the defaults files are applied. > > I just wish to make sure that the plugin and Pandoc behave the same way > when dealing with defaults files. > > Nanda > > On Tuesday, July 6, 2021 at 9:02:13 AM UTC-7 John MacFarlane wrote: > >> >> If you have multiple --defaults they will be processed >> in the order given on the command line. >> >> Defaults specified within another file will >> be processed before the other fields in that file. >> >> There is validation, depending on the field. >> >> As for what happens when two defaults specify different >> values for the same: it is supposed to behave just as >> if you had two command line options. In some cases, >> you'll get an override; in other cases (e.g. with >> --css which can be used multiple times on the command >> line), a list of values will be formed. >> >> >> >> >> Nandakumar Chandrasekhar writes: >> >> > Dear Folks, >> > >> > I have a question about using multiple default files. >> > >> > Is there any order in which default files are applied or are they >> applied >> > in the order given in the command line? >> > >> > What of the default file is not given on the command line? >> > >> > I would like to know the behavior of which takes effect if we specify >> the >> > same field in two or more default files. >> > >> > Does Pandoc do any validation in these cases? >> > >> > Hope someone can shed some light. This is in relation to plugin I am >> > writing for a static site generator. >> > >> > Nanda >> > >> > -- >> > 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/877ddcd6-18f6-4c24-8896-98f7cb04b2d4n%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/3587bc3a-6eb3-45e1-869e-b9ff86265da0n%40googlegroups.com.