浏览代码

org-compat.el (org-move-to-column): Bugfix

* org-compat.el (org-move-to-column): Fix bug about ignoring
bracket links visibility status in tables with S-RET.

Thanks to Michael Brand for reporting this.
Bastien Guerry 11 年之前
父节点
当前提交
b32306279b
共有 1 个文件被更改,包括 5 次插入2 次删除
  1. 5 2
      lisp/org-compat.el

+ 5 - 2
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)