diff options
author | Carsten Dominik <carsten.dominik@gmail.com> | 2010-11-20 12:33:37 +0100 |
---|---|---|
committer | Carsten Dominik <carsten.dominik@gmail.com> | 2010-11-20 12:33:37 +0100 |
commit | 3dc846ae3852b391e45c8454de702397b8db836a (patch) | |
tree | 327609920a88817a686c775bbb434c37c3433920 | |
parent | e34033fec2c8bbfa000ac291a9889ca49fa5dc17 (diff) | |
download | org-mode-3dc846ae3852b391e45c8454de702397b8db836a.tar.gz |
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.
-rw-r--r-- | lisp/org.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el index 023e019..6049f2f 100644 --- a/lisp/org.el +++ b/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)))) |