From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tom Newsgroups: gmane.emacs.devel Subject: Two feature ideas for diffs Date: Thu, 7 Nov 2013 17:08:30 +0000 (UTC) Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1383844144 8524 80.91.229.3 (7 Nov 2013 17:09:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 7 Nov 2013 17:09:04 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 07 18:09:09 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VeT4t-0004rW-CA for ged-emacs-devel@m.gmane.org; Thu, 07 Nov 2013 18:09:07 +0100 Original-Received: from localhost ([::1]:41382 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VeT4s-00069g-PO for ged-emacs-devel@m.gmane.org; Thu, 07 Nov 2013 12:09:06 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57553) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VeT4k-00069a-JG for emacs-devel@gnu.org; Thu, 07 Nov 2013 12:09:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VeT4e-0002ew-PZ for emacs-devel@gnu.org; Thu, 07 Nov 2013 12:08:58 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:52834) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VeT4e-0002er-IM for emacs-devel@gnu.org; Thu, 07 Nov 2013 12:08:52 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VeT4c-0004AW-Ll for emacs-devel@gnu.org; Thu, 07 Nov 2013 18:08:51 +0100 Original-Received: from 62-165-211-155.pool.digikabel.hu ([62.165.211.155]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 07 Nov 2013 18:08:49 +0100 Original-Received: from adatgyujto by 62-165-211-155.pool.digikabel.hu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 07 Nov 2013 18:08:49 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 23 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 62.165.211.155 (Opera/9.80 (Windows NT 6.1) Presto/2.12.388 Version/12.16) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:165039 Archived-At: I was reading this description of PyCharm http://nicoddemus.github.io/articles/pycharm/ and there was two features described which could be useful in emacs too. The first is diff indicators in the sidebar. If the file is under version control and it is edited then a mark appears beside the changed lines and if it is clicked then you can see what's changed in the line or in that hunk, you don't have to do a full file diff which may contain many other changes unrelated to the current line. You can also rollback that particular change, etc. Is there something like this for emacs? If not it could be a useful addition. The other interesting feature is editable diffs. So, for example, before checking in one usually does a diff to see what was changed in the file. If you notice a typo then you go back to the file, fix it, do a diff again to check the changes, etc. PyCharm lets you edit the diff instead, so if you made a typo then you can fix it in the diff buffer and it is applied to the original file. It would be a nice convenience feature.