From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: [PATCH] Keep same column when cycling visibility Date: Sun, 25 Jul 2010 23:20:24 +0200 Message-ID: <87aapfntrb.wl%n.goaziou@gmail.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/mixed; boundary="Multipart_Sun_Jul_25_23:20:24_2010-1" Return-path: Received: from [140.186.70.92] (port=53364 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Od8cl-0006WC-Vo for emacs-orgmode@gnu.org; Sun, 25 Jul 2010 17:20:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Od8cl-0004Sd-2b for emacs-orgmode@gnu.org; Sun, 25 Jul 2010 17:20:43 -0400 Received: from mail-ww0-f49.google.com ([74.125.82.49]:45692) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Od8ck-0004SM-UE for emacs-orgmode@gnu.org; Sun, 25 Jul 2010 17:20:43 -0400 Received: by wwb13 with SMTP id 13so1268258wwb.30 for ; Sun, 25 Jul 2010 14:20:41 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Org Mode List --Multipart_Sun_Jul_25_23:20:24_2010-1 Content-Type: text/plain; charset=US-ASCII 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 --Multipart_Sun_Jul_25_23:20:24_2010-1 Content-Type: text/plain; type=patch; charset=US-ASCII Content-Disposition: attachment; filename="0001-Cursor-stays-at-same-column-when-cycling-visibility.patch" Content-Transfer-Encoding: 7bit >From 17cd55557d747366c90fad47b44edeac2daf920b Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou 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. --- lisp/org.el | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index 53d47f1..51da384 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 -- 1.7.2 --Multipart_Sun_Jul_25_23:20:24_2010-1 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --Multipart_Sun_Jul_25_23:20:24_2010-1--