From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?=C3=93scar_Fuentes?= Subject: Re: magit, revert, folding, normal-mode, performance Date: Sun, 27 Jun 2010 02:01:54 +0200 Message-ID: <87lja1ny19.fsf@telefonica.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=36521 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OSfK7-0004JB-0a for emacs-orgmode@gnu.org; Sat, 26 Jun 2010 20:02:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OSfK5-0005fW-NA for emacs-orgmode@gnu.org; Sat, 26 Jun 2010 20:02:10 -0400 Received: from lo.gmane.org ([80.91.229.12]:39325) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OSfK5-0005fK-DR for emacs-orgmode@gnu.org; Sat, 26 Jun 2010 20:02:09 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OSfK0-0002qv-6K for emacs-orgmode@gnu.org; Sun, 27 Jun 2010 02:02:04 +0200 Received: from 219.red-88-24-228.staticip.rima-tde.net ([88.24.228.219]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 27 Jun 2010 02:02:04 +0200 Received: from ofv by 219.red-88-24-228.staticip.rima-tde.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 27 Jun 2010 02:02:04 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Samuel Wales writes: > Worth knowing that magit reverts buffers. It appears to > revert all buffers, not just those with changes. Magit reverts all saved buffers on the current working copy after committing. > This has 2 consequences for org. Magit is slow, and org visibility is > reset to default. I'm the author of the patch that introduced that behavior on magit. The purpose is to update the VC modeline text that indicates when a file is edited (Git-branch_name for pristine files, Git:branch_name for edited files.) It's true thas sometimes reverting can be slow and produce side effects. > So I wonder: > > Is there a way to preserve visibilty across revert-buffer? I'll look at the docstring of `revert-buffer' and, specifically, to `revert-buffer-function'. But don't bother, I have a patch for updating the VC modeline without reverting the buffer and will submit it to the magit mailing list right now. > Has anybody profiled loading a large org file?