emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bug#47885: [PATCH] org-table-import: Make it more smarter for intera


From: Maxim Nikulin
Subject: Re: bug#47885: [PATCH] org-table-import: Make it more smarter for interactive use
Date: Wed, 2 Jun 2021 23:44:14 +0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1

On 02/06/2021 22:08, Utkarsh Singh wrote:
;;;###autoload
  (defun org-table-import (file separator)
@@ -955,12 +971,13 @@ lines.  It can have the following values:
  - integer When a number, use that many spaces, or a TAB, as field separator.
  - regexp  When a regular expression, use it to match the separator."
    (interactive (list (read-file-name "Import file: ")
-                     (prefix-numeric-value current-prefix-arg)))
+                     current-prefix-arg))

It seems, prefix argument works now. Let me remind that file name completion was working better before your change.

I have noticed a couple of error messages. Unsure what is going wrong, I hope, command to launch emacs is correct (-Q -L ~/src/org-mode/lisp test.org).

At startup:
Eager macro-expansion failure: (error "rx ‘not’ syntax error: (or 10 44)")

In response to M-x org-table-import:
rx-check-not: rx ‘not’ syntax error: (or 10 44)

Currently I am trying to refactor CSV parsing by applying techniques
used in pcsv library (MELPA package) which I think you will also enjoy
to play with!

I do not know opinion of Org maintainers. Personally I believe that org can take advantage of Emacs core features or of other packages if they are available and fallback to minimal implementation otherwise. Unsure whether borrowing code from pcsv can cause license issues. Current CSV parser is not perfect but it works reasonably well.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]