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: Automatically commenting changes Date: Wed, 26 Jan 2011 14:21:38 +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 1296048142 26719 80.91.229.12 (26 Jan 2011 13:22:22 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 26 Jan 2011 13:22:22 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jan 26 14:22:18 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 1Pi5KE-0007oJ-6z for geh-help-gnu-emacs@m.gmane.org; Wed, 26 Jan 2011 14:22:18 +0100 Original-Received: from localhost ([127.0.0.1]:57945 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pi5KD-0005C4-NL for geh-help-gnu-emacs@m.gmane.org; Wed, 26 Jan 2011 08:22:17 -0500 Original-Received: from [140.186.70.92] (port=44388 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pi5Jq-0005As-De for help-gnu-emacs@gnu.org; Wed, 26 Jan 2011 08:21:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pi5Jp-0003HN-E6 for help-gnu-emacs@gnu.org; Wed, 26 Jan 2011 08:21:54 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:59938) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pi5Jp-0003Gy-8U for help-gnu-emacs@gnu.org; Wed, 26 Jan 2011 08:21:53 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Pi5Jl-0007TB-Qi for help-gnu-emacs@gnu.org; Wed, 26 Jan 2011 14:21:49 +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 ; Wed, 26 Jan 2011 14:21:49 +0100 Original-Received: from help-gnu-emacs by ge-u-fw01.ggamaur.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 26 Jan 2011 14:21:49 +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-09 Xref: news.gmane.org gmane.emacs.help:78757 Archived-At: Stefan Monnier wrote: >> An editor I used long long ago had the ability to tag lines you > changed >> with your name (or some other customisable character sequence). For >> example if I changed the line >> int i = 0; >> the editor would automatically generate a comment on the end: >> int i = 1; /*gary*/ > I think the way to attack such a problem nowadays is to keep your code > in a version control system (VCS), which then keeps track of all that > info for you. I do. But before I commit, or rather in the process of commiting, when there is the original file I branched from to consider, plus my changes, possibly plus changes from others who have commited since I branched, things can get confusing. For example, if I see as a difference the above "int i = 1" instead of "0", I only know it is different to what it was - did I change it? Did someone else? If I did, does it really make sense, or was it just something I did in order to achieve some debugging purpose? If I can at least easily see that it is one of my changes, I have a chance of understanding why I did it.