diff options
author | Bastien Guerry <bzg@altern.org> | 2008-02-18 01:27:54 +0000 |
---|---|---|
committer | Bastien Guerry <bzg@altern.org> | 2008-02-18 01:27:54 +0000 |
commit | d872f54d12757285f306e7689e20fdfa173abf69 (patch) | |
tree | 6fbb99a81f296afb216d8b68f2e413bf375d2eca | |
parent | 4bbd7784fbd36cd26ee1f768526c09a92d352253 (diff) | |
download | org-mode-d872f54d12757285f306e7689e20fdfa173abf69.tar.gz |
org-narrow-to-subtree: save match data
-rw-r--r-- | org.el | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -6676,9 +6676,10 @@ If optional TXT is given, check this string instead of the current kill." "Narrow buffer to the current subtree." (interactive) (save-excursion - (narrow-to-region - (progn (org-back-to-heading) (point)) - (progn (org-end-of-subtree t t) (point))))) + (save-match-data + (narrow-to-region + (progn (org-back-to-heading) (point)) + (progn (org-end-of-subtree t t) (point)))))) ;;; Outline Sorting |