From mboxrd@z Thu Jan 1 00:00:00 1970 From: Allen Li Subject: Re: New feature? Remove duplicate subheadings, preserving order Date: Mon, 1 Jan 2018 03:59:43 -0800 Message-ID: References: <87a7xxx5c5.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58832) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eVykr-0000Cz-Ms for emacs-orgmode@gnu.org; Mon, 01 Jan 2018 06:59:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eVykq-0001fG-V5 for emacs-orgmode@gnu.org; Mon, 01 Jan 2018 06:59:45 -0500 Received: from mail-qt0-x22e.google.com ([2607:f8b0:400d:c0d::22e]:38266) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eVykq-0001f2-QA for emacs-orgmode@gnu.org; Mon, 01 Jan 2018 06:59:44 -0500 Received: by mail-qt0-x22e.google.com with SMTP id d4so60153907qtj.5 for ; Mon, 01 Jan 2018 03:59:44 -0800 (PST) In-Reply-To: <87a7xxx5c5.fsf@nicolasgoaziou.fr> 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: Nicolas Goaziou Cc: emacs-orgmode@gnu.org On Mon, Jan 1, 2018 at 2:04 AM, Nicolas Goaziou wr= ote: > Duplicates headings are not necessarily wrong. I think this is too > specific to be integrated in Org proper. > > Maybe we could add a check for duplicates headings in Org Lint instead, > and add this to Worg, in a "tools" page. > > Or we could check for duplicate headings _including contents_, which are > more likely to be an error. > > WDYT? Org mode is fundamentally an outliner, and one often makes lists with an outliner. Filtering out duplicates from a list seems to me like a common need. I wrote such a command to support some of my work flows, and I posted this here because I think there is a possibility that other Org users might also find it useful. If this is not so, I=E2=80=99m perfectly okay just keeping this in my perso= nal config.