From mboxrd@z Thu Jan 1 00:00:00 1970 From: Philip Hudson Subject: Re: issues with duplicate ID's Date: Sat, 23 Jul 2016 14:04:17 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60501) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQwbf-0000pB-0b for emacs-orgmode@gnu.org; Sat, 23 Jul 2016 09:04:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bQwbd-00023R-IA for emacs-orgmode@gnu.org; Sat, 23 Jul 2016 09:04:38 -0400 Received: from mail-vk0-x234.google.com ([2607:f8b0:400c:c05::234]:35216) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQwbd-00022y-Ds for emacs-orgmode@gnu.org; Sat, 23 Jul 2016 09:04:37 -0400 Received: by mail-vk0-x234.google.com with SMTP id w127so191075884vkh.2 for ; Sat, 23 Jul 2016 06:04:37 -0700 (PDT) In-Reply-To: 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: Xebar Saram Cc: org mode On 23 July 2016 at 08:02, Xebar Saram wrote: > i see why this happens since i often copy org headers to add new function > and the ID is copied alongside It would not be too hard to advise `org-yank' and `org-pasted-subtree' to delete yanked IDs that are duplicates within the current buffer, either interactively or automatically. With a bit more work, it could be extended to scan a whole directory or fileset such as `org-agenda-files'. -- Phil Hudson http://hudson-it.ddns.net @UWascalWabbit PGP/GnuPG ID: 0x887DCA63