Browse Source

Implement a better way to catch function names that look like a reference

Carsten Dominik 15 years ago
parent
commit
dfc766a9c2
2 changed files with 7 additions and 1 deletions
  1. 3 0
      lisp/ChangeLog
  2. 4 1
      lisp/org-table.el

+ 3 - 0
lisp/ChangeLog

@@ -1,5 +1,8 @@
 2010-03-08  Carsten Dominik  <carsten.dominik@gmail.com>
 
+	* org-table.el (org-table-convert-refs-to-rc): Better way to catch
+	function calls that look like references.
+
 	* org.el (org-open-at-point): Get link abbreviations from
 	reference buffer.
 

+ 4 - 1
lisp/org-table.el

@@ -2799,7 +2799,10 @@ full TBLFM line."
 	     (not (equal ?. (aref s (max (- (match-beginning 0) 2) 0)))))
 	;; 3.e5 or something like this.
 	(setq start (match-end 0)))
-       ((member (match-string 1 s) '("arctan"))
+       ((or (> (- (match-end 1) (match-beginning 1)) 2)
+	    ;; (member (match-string 1 s)
+	    ;;	    '("arctan" "exp" "expm" "lnp" "log" "stir"))
+	    )
 	;; function name, just advance
 	(setq start (match-end 0)))
        (t