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 IKlLLHU8q2MdQgAAbAwnHQ (envelope-from ) for ; Tue, 27 Dec 2022 19:41:57 +0100 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 gLtvLHU8q2OgbgAA9RJhRA (envelope-from ) for ; Tue, 27 Dec 2022 19:41:57 +0100 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 7E8E73AF26 for ; Tue, 27 Dec 2022 19:41:57 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pAEt3-0004AH-Bs; Tue, 27 Dec 2022 13:41:20 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pAEsz-00049s-JL for emacs-orgmode@gnu.org; Tue, 27 Dec 2022 13:41:15 -0500 Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pAEsx-0002e0-5M for emacs-orgmode@gnu.org; Tue, 27 Dec 2022 13:41:13 -0500 Received: by mail-pl1-x635.google.com with SMTP id m4so13953226pls.4 for ; Tue, 27 Dec 2022 10:41:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:in-reply-to:date:subject:to:from:user-agent :references:from:to:cc:subject:date:message-id:reply-to; bh=L7xfhBh//L8rpQb+CBrRHahDvWt8Tm3cm+jvoJjx2LU=; b=oZwkAgOrv4dion/UxbvmVKakuZdI+PM3ZeDeV67gu0Sm/c8VOTKE8KRP8HQjTRXz/F eQaOYdVYxdzTg48n85v0cLruJDlhpQZCNVTPmtbEj4EL53bZRml8PtbkP5rYnJ08Orhq 5fuFgB/WTLQl5kdpn34oOJVkTzqzWbtyEpBFO6h79PPYSI9hsYfNZkEsO9A50I0nUIjP j3m/zU+TcBalUReZYTnlv89ExXcxPi2YMNFSlZIOzwmnqpKi+Kkkce2ZivB5B4sXWZwZ tKZGSL7UiXJNvYJEtBv2E/qKCRom/aifs2FHeCOuAIw99Vd7hUIiJRVK7wRgNPYRTcML mu9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:in-reply-to:date:subject:to:from:user-agent :references:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=L7xfhBh//L8rpQb+CBrRHahDvWt8Tm3cm+jvoJjx2LU=; b=o+uW6gxEaMAcZpzy2QOSTOmsrnnmSw+B1rPdvx1AtY1dbJE8A9m2oFJdHImaD2SkVy f1+9e+B886CWpUgR6vPkGw0pXKBTRVB0aVAbgv4Nd+H9tz57o3bUYGk0L2fRk7At/Kxq hYwhasSWvhU/e9tFJPfCu8clNP6sfP8RIWPNby5Lk+QVeXiPybSDVsrzQXSStgKCwip1 NE5GIHjzKWJClqbZPIU4kaBJaL9WjS/1frQLoIBZRieUUJLXSQFCy715eapUqKXikZtq J7w5BEwaBT6xCo8Tf159rUQ+HwtLTut/tDswWoFwTV//sVNB25oi9dMViRN7eQv7MSHI vbCA== X-Gm-Message-State: AFqh2kq2jREOxr2Oo8jCdeWwCXpiyb1qGmLHtdqaRjQyxgYYkxW9NhTC +HojnCueeek+js41M407pSiyHKev5mM= X-Google-Smtp-Source: AMrXdXvfIknd3MBvKmQnRs76HGvQrFC8RWeopYyXKM02I70plfcDOqmr4DimxBChtJzgh/SwxOWQnQ== X-Received: by 2002:a17:902:8c8b:b0:189:c536:c745 with SMTP id t11-20020a1709028c8b00b00189c536c745mr24308199plo.2.1672166468856; Tue, 27 Dec 2022 10:41:08 -0800 (PST) Received: from dingbat (203-173-24-107.dyn.iinet.net.au. [203.173.24.107]) by smtp.gmail.com with ESMTPSA id c10-20020a170902d48a00b001925c16bee7sm8661523plg.150.2022.12.27.10.41.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Dec 2022 10:41:08 -0800 (PST) References: <116c3126-32cc-44d0-9e95-e802161e1e84@app.fastmail.com> <87fsdhui6z.fsf@localhost> <86pmckvisp.fsf@gmail.com> <878rj8u2na.fsf@localhost> <87wn6d0w1i.fsf@localhost> User-agent: mu4e 1.9.8; emacs 29.0.60 From: Tim Cross To: emacs-orgmode@gnu.org Subject: Re: [FR] Present list of errors in separate buffer when running org-export, similar to what org-lint does (was: [Syntax discussion] Should we treat src blocks without LANG as paragraphs?) Date: Wed, 28 Dec 2022 05:39:39 +1100 In-reply-to: <87wn6d0w1i.fsf@localhost> Message-ID: <86bknou1ts.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::635; envelope-from=theophilusx@gmail.com; helo=mail-pl1-x635.google.com 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_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1672166517; a=rsa-sha256; cv=none; b=rSOR+lSsiQ+w7EElvBBZKdhtOq91kJsqKUimZa+/sYrSoCCbjeAbzQr6SrSK2AS8MRhnzL LtDadMwq94iKiEo2CaQvtMLbaMPNNxsadUliD1Bm9YeXNopdJ/Gzw93JSUezUPO39X4ZTe e9ZltNa7XphyhdbrKRlS5plG1Yjex4ZMVjD+zGmlRld4vTMGnKykp84oonXLf+22OiQXWn D09nXtuD1skJ1NfxsLJ/MI+bOA1UIBbziqOytLrKKiCcdC896bfVGEafPNAFW4xQC5Z0rT IBKPphJiqYnBWMLdkf7jVvIMfKyo9XWO2MMrXIq27tNLATS3AfaDCPZfFkNqRg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=oZwkAgOr; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1672166517; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=L7xfhBh//L8rpQb+CBrRHahDvWt8Tm3cm+jvoJjx2LU=; b=BCjxS9/5PPhtqqndnXZlM4vOJfkRNcxkUAib3qkdfKVlY9oBgsRtxU3XnBRVusaLKeuNji +na6KXWWwpUgicS/5qw9WS6P95N2GExYwYBj5aLWWyqIgfkIG2DbzUkMdMCcqhJ2LVBMnV 1GnJrgp3zOvC58wmsnfh1y68yYcRtDfYt4r4doTvPJY5pftSjd7csWvI2thcaBOSKZqTYO PEfUtCauU8CiindiRIfQ/G9NCAEwHlR6PVwkxUOepF52nTgEWS6GJ47C9YNgswjJnO2+47 2yaajGCQ57Zq6Bg/jLiwMTUXLZr+RNLrnS87DmR8EF95BUkhdYu6l0L4dSA/Og== X-Spam-Score: -8.11 X-Migadu-Queue-Id: 7E8E73AF26 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=oZwkAgOr; 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"; dmarc=pass (policy=none) header.from=gmail.com X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -8.11 X-TUID: 354xfFscFO+g Ihor Radchenko writes: > As Max proposed, it may be a good idea to extend the concept of org-lint > to export. > > We may unify the LaTeX errors, some errors/warnings potentially signalled > by export backend, and maybe some warnings from org-lint during the > export process. These errors can ideally be displayed just like in > org-lint, with ability to jump to the problematic LoCs in > Org/intermediate file. > > This is a medium task and one will need to: > 1. Generalize org-lint interactive interface (list of errors) to work > with other code. Extract it into a separate library. > 2. Accumulate export issues into a list to be displayed. For example, > broken links can be displayed > 3. Make functions like `org-latex-compile' accumulate LaTeX errors as > well. (Optionally) associate LaTeX buffer lines with Org source. > 4. Display the list of errors/warnings at the end of successful or > failed export. > > Each step if fairly simple, except optional part in 3. > Patches welcome! > Anything which provides additional information to assist the user in identifying issues in their document is a plus in my view.