浏览代码

Make org-edit-special call the formula editor if cursor is in TBLFM line

* lisp/org.el (org-edit-special): Check also for TBLFM line.

Patch by Thorsten Wagner.
Carsten Dominik 14 年之前
父节点
当前提交
3dc846ae38
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      lisp/org.el

+ 4 - 1
lisp/org.el

@@ -17259,7 +17259,10 @@ When in an #+include line, visit the include file.  Otherwise call
    ((org-edit-fixed-width-region))
    ((org-at-table.el-p)
     (org-edit-src-code))
-   ((org-at-table-p)
+   ((or (org-at-table-p)
+	(save-excursion
+	  (beginning-of-line 1)
+	  (looking-at "[ \t]*#\\+TBLFM:")))
     (call-interactively 'org-table-edit-formulas))
    (t (call-interactively 'ffap))))