summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <n.goaziou@gmail.com>2010-07-26 02:20:24 +0000
committerBastien Guerry <bzg@altern.org>2010-07-31 18:53:32 +0200
commitd035222ce5ec808139f109517336105f739c5f84 (patch)
tree1ac69948a67d00ad3f7a97618a336f4bb52c5705
parentd4581259747f59077d8dd09ab9ba9aad10898f0b (diff)
downloadorg-mode-d035222ce5ec808139f109517336105f739c5f84.tar.gz
Keep same column when cycling visibility
Hello, Like what is already done with drawers, point should not move when cycling visibility of headings and list items. The call to `org-back-to-heading' this patch removes seems redundant anyways. Regards, -- Nicolas >From 17cd55557d747366c90fad47b44edeac2daf920b Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou <n.goaziou@gmail.com> Date: Sun, 25 Jul 2010 23:14:08 +0200 Subject: [PATCH] Cursor stays at same column when cycling visibility. * org.el (org-cycle-internal-local): Removed an unnecessary call to `org-back-to-heading' that was preventing point to stay at its column when cycling visibility.
-rw-r--r--lisp/org.el1
1 files changed, 0 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el
index b876ad5..19b28a3 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -5849,7 +5849,6 @@ in special contexts.
(defun org-cycle-internal-local ()
"Do the local cycling action."
- (org-back-to-heading)
(let ((goal-column 0) eoh eol eos level has-children children-skipped)
;; First, some boundaries
(save-excursion