summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Guerry <bzg@altern.org>2008-02-18 01:27:54 +0000
committerBastien Guerry <bzg@altern.org>2008-02-18 01:27:54 +0000
commitd872f54d12757285f306e7689e20fdfa173abf69 (patch)
tree6fbb99a81f296afb216d8b68f2e413bf375d2eca
parent4bbd7784fbd36cd26ee1f768526c09a92d352253 (diff)
downloadorg-mode-d872f54d12757285f306e7689e20fdfa173abf69.tar.gz
org-narrow-to-subtree: save match data
-rw-r--r--org.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/org.el b/org.el
index 81b1611..55a2d71 100644
--- a/org.el
+++ b/org.el
@@ -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