From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: Re: Suggestion org-lint - Duplicate NAME Date: Sat, 24 Oct 2015 13:18:15 +0200 Message-ID: References: <87eggky522.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38282) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpwqG-0003FO-Ud for emacs-orgmode@gnu.org; Sat, 24 Oct 2015 07:18:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZpwqC-0004AH-GM for emacs-orgmode@gnu.org; Sat, 24 Oct 2015 07:18:32 -0400 Received: from mail-wi0-f178.google.com ([209.85.212.178]:34868) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpwqC-0004A4-9o for emacs-orgmode@gnu.org; Sat, 24 Oct 2015 07:18:28 -0400 Received: by wicll6 with SMTP id ll6so59967154wic.0 for ; Sat, 24 Oct 2015 04:18:27 -0700 (PDT) Received: from Rainers-MacBook-Pro.local ([2a01:e35:8baa:b070:ac7a:d343:a975:3f0e]) by smtp.gmail.com with ESMTPSA id hk5sm27578837wjb.6.2015.10.24.04.18.25 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 24 Oct 2015 04:18:26 -0700 (PDT) In-Reply-To: <87eggky522.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Sat, 24 Oct 2015 11:44:05 +0200") 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Nicolas Goaziou writes: > Hello, > > Rainer M Krug writes: > >> I have a long org document in which I copied around some analysis blocks >> to do the same analysis (and format of results) for different simulation >> parameter combinations. >> >> But sometimes I forget to change the #+NAME: properties. >> >> org-lint is a gret help in finding these, but as my names are long and >> cryptic, it is not easy to see where the duplicates are. An example: >> >> ,---- >> | 2442 high Duplicate NAME "fig_fitEachExamplesOptimMahat" >> | 2447 high Duplicate NAME "fig:fitEachExamplesOptimMahat" >> | 2451 high Duplicate NAME "fig_fitEachExamplesUAOptimMahat" >> | 2456 high Duplicate NAME "fig:fitEachExamplesUAOptimMahat" >> | 2480 high Duplicate NAME "fig_fitEachExamplesOptimMahat" >> | 2487 high Duplicate NAME "fig:fitEachExamplesOptimMahat" >> | 2491 high Duplicate NAME "fig_fitEachExamplesUAOptimMahat" >> | 2498 high Duplicate NAME "fig:fitEachExamplesUAOptimMahat" >> `---- >> >> was the output of the linting. Now it took me quite a few attempts >> (which were aborted by ignoring the problem) to see which ones are >> duplicates. It would be easier, if, in the case of duplicates, the >> entries could look as follow: >> >> ,---- >> | 2442 high Duplicate (2442, 2480) NAME "fig_fitEachExamplesOptimMaha= t" >> | 2447 high Duplicate (2447, 2487) NAME "fig:fitEachExamplesOptimMaha= t" >> | 2451 high Duplicate (2451, 2491) NAME "fig_fitEachExamplesUAOptimMa= hat" >> | 2456 high Duplicate (2456, 2498) NAME "fig:fitEachExamplesUAOptimMa= hat" >> | 2480 high Duplicate (2442, 2480) NAME "fig_fitEachExamplesOptimMaha= t" >> | 2487 high Duplicate (2447, 2487) NAME "fig:fitEachExamplesOptimMaha= t" >> | 2491 high Duplicate (2451, 2491) NAME "fig_fitEachExamplesUAOptimMa= hat" >> | 2498 high Duplicate (2456, 2498) NAME "fig:fitEachExamplesUAOptimMa= hat" >> `---- >> >> This would make it easier to find the duplicates, especially if they are >> not in adjacent messages. > > It could potentially create very long, i.e., unreadable, warning > messages. Instead, you can now sort warning messages, which helps > putting together duplicate names. Thanks - that is probably better. Rainer > > Regards, =2D-=20 Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,= UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D): +49 - (0)3 21 21 25 22 44 email: Rainer@krugs.de Skype: RMkrug PGP: 0x0F52F982 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBCAAGBQJWK2kAAAoJENvXNx4PUvmC+XAH/ioMJuoOFx3xs7VXkfFK+/NX 6vYqCQ2RxseUA3exuIM5msFC85Gq3DDl+viWLA8ZFkxPYzUpaUDLIaliB5WYKGPb YL8WdvdjY7tAb43FWxOG61eTgiq81ECPcUxPNtUFUEbfx+bLo1V0vd2W7obsmYrE j6RBBTs+CF9byTMQpMkcOpcSc4g2TwaCfG4B2YhM/5+6lsdBEMmo2fVBF0uEtyfp bhHYmzGsNyKxnzVPpu/nJz7QaHMQmVE3tkVOtiy13FOLmhe/5BOLN6r5leFQAh8V fGUJfDnzi1Z3gu3XIn66q2hSfDpfVhxPQRgXSsw5xUisiegQWAa493xMZGATSV0= =KrIt -----END PGP SIGNATURE----- --=-=-=--