emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* magit, revert, folding, normal-mode, performance
@ 2010-06-26 18:38 Samuel Wales
  2010-06-27  0:01 ` Óscar Fuentes
  0 siblings, 1 reply; 2+ messages in thread
From: Samuel Wales @ 2010-06-26 18:38 UTC (permalink / raw)
  To: emacs-orgmode

Worth knowing that magit reverts buffers.  It appears to
revert all buffers, not just those with changes.  This has 2
consequences for org.  Magit is slow, and org visibility is
reset to default.

So I wonder:

Is there a way to preserve visibilty across revert-buffer?
Has anybody profiled loading a large org file?

Thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: magit, revert, folding, normal-mode, performance
  2010-06-26 18:38 magit, revert, folding, normal-mode, performance Samuel Wales
@ 2010-06-27  0:01 ` Óscar Fuentes
  0 siblings, 0 replies; 2+ messages in thread
From: Óscar Fuentes @ 2010-06-27  0:01 UTC (permalink / raw)
  To: emacs-orgmode

Samuel Wales <samologist@gmail.com> 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?

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-06-27  0:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-26 18:38 magit, revert, folding, normal-mode, performance Samuel Wales
2010-06-27  0:01 ` Óscar Fuentes

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).