help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Copy Paste Detection


From: Jorgen Grahn
Subject: Re: Copy Paste Detection
Date: 21 Jan 2011 19:52:30 GMT
User-agent: slrn/pre0.9.9-111 (Linux)

On Fri, 2011-01-21, Gary wrote:
> Deniz Dogan wrote:
>
>> 2011/1/21 Gary:
>>> Does anyone know of any modes that do (programming-)language
>> independent
>>> copy/paste (kill/yank) detection in emacs?
>>>
>>> I suppose external tools would also work, but I really would prefer it
>>> if it was something I could usable on an emacs buffer.
>>
>> What do you mean?
>
> I mean that if in some code file someone has written the same code more
> than once, or more likely copy/pasted it, I would like to identify those
> code blocks. See http://pmd.sourceforge.net/cpd.html for an example. The
> difference is, the language that I use is so little known that a tool
> explicitly targeting it won't exist, hence the "language independent"
> part.

Sounds more like a job for

  % sort -b | uniq -c | sort -nr

And manually detect suspiciously similar lines.

/Jorgen

-- 
  // Jorgen Grahn <grahn@  Oo  o.   .  .
\X/     snipabacken.se>   O  o   .


reply via email to

[Prev in Thread] Current Thread [Next in Thread]