* is there a save-visibility?
@ 2009-05-15 18:23 Samuel Wales
2009-05-16 13:32 ` Carsten Dominik
0 siblings, 1 reply; 3+ messages in thread
From: Samuel Wales @ 2009-05-15 18:23 UTC (permalink / raw)
To: emacs-orgmode
I want to sort upon todo state change. However, sort
changes visibility. I could use the new after sort hook to
create a desired visibility, but I'd like it to be the same
as before the todo state change.
Is there a save-visibility analogous to save-excursion?
Thanks.
--
Myalgic encephalomyelitis denialism is causing death and severe suffering
worse than MS. Conflicts of interest are destroying research. /You/ can
get the disease at any time permanently. Do science and justice matter to
you? Posters: http://www.mefreeforall.org/fileadmin/PDFs/ME_Awareness_Posters_2009.pdf
Overview: http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: is there a save-visibility?
2009-05-15 18:23 is there a save-visibility? Samuel Wales
@ 2009-05-16 13:32 ` Carsten Dominik
2009-05-16 22:39 ` Samuel Wales
0 siblings, 1 reply; 3+ messages in thread
From: Carsten Dominik @ 2009-05-16 13:32 UTC (permalink / raw)
To: Samuel Wales; +Cc: emacs-orgmode
On May 15, 2009, at 8:23 PM, Samuel Wales wrote:
> I want to sort upon todo state change. However, sort
> changes visibility. I could use the new after sort hook to
> create a desired visibility, but I'd like it to be the same
> as before the todo state change.
>
> Is there a save-visibility analogous to save-excursion?
No.
- Carsten
>
> Thanks.
>
> --
> Myalgic encephalomyelitis denialism is causing death and severe
> suffering
> worse than MS. Conflicts of interest are destroying research. /
> You/ can
> get the disease at any time permanently. Do science and justice
> matter to
> you? Posters: http://www.mefreeforall.org/fileadmin/PDFs/ME_Awareness_Posters_2009.pdf
> Overview: http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: is there a save-visibility?
2009-05-16 13:32 ` Carsten Dominik
@ 2009-05-16 22:39 ` Samuel Wales
0 siblings, 0 replies; 3+ messages in thread
From: Samuel Wales @ 2009-05-16 22:39 UTC (permalink / raw)
To: Carsten Dominik; +Cc: emacs-orgmode
Thanks, Carsten.
I tried using clone-indirect-buffer to fake it, but sorting changes
visibility in both buffers. Very strangely, it also seems to change
the save-excursion saved point, but you can do that manually.
My solution is to use a canonical visibility after sorting.
--
Myalgic encephalomyelitis denialism is causing death and severe suffering
worse than MS. Conflicts of interest are destroying research. /You/ can
get the disease at any time permanently. Do science and justice matter to
you? Posters: http://www.mefreeforall.org/fileadmin/PDFs/ME_Awareness_Posters_2009.pdf
Overview: http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-05-16 22:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-15 18:23 is there a save-visibility? Samuel Wales
2009-05-16 13:32 ` Carsten Dominik
2009-05-16 22:39 ` Samuel Wales
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).