Selaa lähdekoodia

org-table: Fix compatibility with Emacs 24.3

* lisp/org-table.el (org-table-align): Call `split-string' with the
  expected number of arguments in Emacs 24.3.

Reported-by: thomas <thomas@friendlyvillagers.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-10/msg00430.html>
Nicolas Goaziou 7 vuotta sitten
vanhempi
commit
f474c7149b
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      lisp/org-table.el

+ 1 - 1
lisp/org-table.el

@@ -809,7 +809,7 @@ FIELD is a string.  WIDTH is a number.  ALIGN is either \"c\",
 		      (lambda (l)
 			(and (not (string-match-p org-table-hline-regexp l))
 			     (org-split-string l "[ \t]*|[ \t]*")))
-		      (split-string (buffer-substring beg end) "\n" t "[ \t]")))
+		      (split-string (buffer-substring beg end) "\n" t)))
 	     ;; Compute number of columns.  If the table contains no
 	     ;; field, create a default table and bail out.
 	     (columns-number