From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Gary Newsgroups: gmane.emacs.help Subject: Re: Copy Paste Detection Date: Fri, 21 Jan 2011 12:59:20 +0100 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1295611202 23097 80.91.229.12 (21 Jan 2011 12:00:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 21 Jan 2011 12:00:02 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 21 12:59:58 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PgFen-00074j-It for geh-help-gnu-emacs@m.gmane.org; Fri, 21 Jan 2011 12:59:58 +0100 Original-Received: from localhost ([127.0.0.1]:58764 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PgFei-0002Zm-Rn for geh-help-gnu-emacs@m.gmane.org; Fri, 21 Jan 2011 06:59:52 -0500 Original-Received: from [140.186.70.92] (port=40634 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PgFeS-0002Zd-DQ for help-gnu-emacs@gnu.org; Fri, 21 Jan 2011 06:59:37 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PgFeR-00012O-4S for help-gnu-emacs@gnu.org; Fri, 21 Jan 2011 06:59:36 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:37304) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PgFeQ-00012K-Th for help-gnu-emacs@gnu.org; Fri, 21 Jan 2011 06:59:35 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PgFeP-0006qx-34 for help-gnu-emacs@gnu.org; Fri, 21 Jan 2011 12:59:33 +0100 Original-Received: from ge-u-fw01.ggamaur.net ([213.160.40.69]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 21 Jan 2011 12:59:33 +0100 Original-Received: from help-gnu-emacs by ge-u-fw01.ggamaur.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 21 Jan 2011 12:59:33 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-Lines: 25 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: ge-u-fw01.ggamaur.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (cygwin) X-No-Archive: Yes Mail-Copies-To: never X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org X-Gmane-Expiry: 2011-02-04 Xref: news.gmane.org gmane.emacs.help:78647 Archived-At: 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. -- Gary Please do NOT send me 'courtesy' replies off-list. GNU Emacs 23.2.1 emacsclient 23.2