From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: New feature? Remove duplicate subheadings, preserving order Date: Mon, 01 Jan 2018 19:26:22 +0100 Message-ID: <87tvw5cu5t.fsf@nicolasgoaziou.fr> References: <87a7xxx5c5.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54595) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eW4n3-0004XX-QP for emacs-orgmode@gnu.org; Mon, 01 Jan 2018 13:26:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eW4n2-0001kB-Vg for emacs-orgmode@gnu.org; Mon, 01 Jan 2018 13:26:25 -0500 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:59515) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eW4n2-0001j0-PQ for emacs-orgmode@gnu.org; Mon, 01 Jan 2018 13:26:24 -0500 In-Reply-To: (Allen Li's message of "Mon, 1 Jan 2018 03:59:43 -0800") 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: Allen Li Cc: emacs-orgmode@gnu.org Allen Li writes: > 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. AFAIK, this is the first time this need is expressed on this ML. There is no equivalent in "org-list.el" either. Anyway, I'm not questioning the usefulness of the feature in your workflow. AIUI, in your implementation, duplicates are headlines with the same title, but without considering TODO keyword, priority, comment status, tags or contents. So, * DONE Summary :Alice: * TODO Summary :Bob: are duplicates. Isn't it a bit too tolerant? We may be able to find a more general function that still suits you. > 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. You didn't answer to any of my suggestions, tho. Are they fundamentally wrong? I.e., wouldn't warning instead of deleting more useful? Or would it make more sense to include contents when looking for duplicates ? In the latter case, maybe a prefix argument could toggle headline check and full check.