From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [RFC] Moving "manual.org" into core Date: Wed, 24 Jan 2018 12:28:54 +0100 Message-ID: <87y3kncx6x.fsf@nicolasgoaziou.fr> References: <87bmhooaj9.fsf@nicolasgoaziou.fr> <87tvveqi7u.fsf@bzg.fr> <87y3kqyp6m.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43509) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eeJEg-0007PU-TI for emacs-orgmode@gnu.org; Wed, 24 Jan 2018 06:28:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eeJEg-0000mM-4J for emacs-orgmode@gnu.org; Wed, 24 Jan 2018 06:28:58 -0500 Received: from relay2-d.mail.gandi.net ([2001:4b98:c:538::194]:44766) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eeJEf-0000lG-Ur for emacs-orgmode@gnu.org; Wed, 24 Jan 2018 06:28:58 -0500 In-Reply-To: (Yasushi SHOJI's message of "Wed, 24 Jan 2018 17:39:34 +0900") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Yasushi SHOJI Cc: emacs-org list Hello, Yasushi SHOJI writes: > How about using org-lint or some other formatter on git commit hook? > after go lang introduced gofmt, many projects adapted the method to > keep the code constant. Org Lint is not a formatter. It detects common mistakes or hypothetical mistakes in an Org document, e.g., invalid links. In particular, it doesn't detect stylistic issues like those discussed above. It doesn't mean we couldn't run it automatically. However, it also emits warnings (see `trust' property) on perfectly valid syntax. As a side note, writing an Org formatter is trivial: (when (yes-or-no-p "Really format current buffer ? ") (let ((document (org-element-interpret-data (org-element-parse-buffer)))) (erase-buffer) (insert document) (goto-char (point-min)))) Regards, -- Nicolas Goaziou