From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Bug: shift-enter in org tables leaves cursor in wrong position [8.2.5h (8.2.5h-6-g8e1386-elpa @ /cygdrive/c/Users/jason/.emacs.d/elpa/org-20140203/)] Date: Sat, 01 Mar 2014 12:13:04 +0100 Message-ID: <87d2i6p3y7.fsf@bzg.ath.cx> References: <52F2F3C7.6060609@dickson.st> <87d2j0obvs.fsf@bzg.ath.cx> <8761ny70me.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41150) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WJhr3-00069F-IM for emacs-orgmode@gnu.org; Sat, 01 Mar 2014 06:13:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WJhqw-00006E-8W for emacs-orgmode@gnu.org; Sat, 01 Mar 2014 06:13:17 -0500 Received: from rs249.mailgun.us ([209.61.151.249]:57773) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WJhqw-00005z-2h for emacs-orgmode@gnu.org; Sat, 01 Mar 2014 06:13:10 -0500 In-Reply-To: (Michael Brand's message of "Sat, 1 Mar 2014 11:39:12 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Michael Brand Cc: Jason Lewis , org mode --=-=-= Content-Type: text/plain Hi Michael, Michael Brand writes: > I don't know if and how the variable org-activate-links is related. I > used the function org-toggle-link-display or the menu to get the state > with the variable org-descriptive-links being nil which is for > "display the full links literally". I see. The following patch fixes it but it's just a quick try, I need to review possible side-effects more carefully. In the meantime, if you can confirm it works for you, that'd help. Thanks, --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=org-move-to-column.patch diff --git a/lisp/org-compat.el b/lisp/org-compat.el index 1553e4f..9837e13 100644 --- a/lisp/org-compat.el +++ b/lisp/org-compat.el @@ -344,9 +344,12 @@ Works on both Emacs and XEmacs." (indent-line-to column))) (defun org-move-to-column (column &optional force buffer ignore-invisible) - (let ((buffer-invisibility-spec ignore-invisible)) + (let ((buffer-invisibility-spec + (and ignore-invisible + (member '(org-link) buffer-invisibility-spec)))) (if (featurep 'xemacs) - (org-xemacs-without-invisibility (move-to-column column force buffer)) + (org-xemacs-without-invisibility + (move-to-column column force buffer)) (move-to-column column force)))) (defun org-get-x-clipboard-compat (value) --=-=-= Content-Type: text/plain -- Bastien --=-=-=--