emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* BUG? Frequency table does not work any more.
@ 2021-05-16 18:04 Uwe Brauer
  2021-05-16 18:16 ` [SOLVED] (was: BUG? Frequency table does not work any more.) Uwe Brauer
  0 siblings, 1 reply; 2+ messages in thread
From: Uwe Brauer @ 2021-05-16 18:04 UTC (permalink / raw)
  To: emacs-orgmode



Hi 
I am currently running 9.4.5, well actually a version compiled from git
master, that I upgraded a couple of weeks ago. 
Commit is e641d3736036732e7642807146a97b0876cb8b83 



However in the version I used two month ago the following worked nicely 

#+TBLNAME: raw-data
| Stud |  Mark |
|------+-------|
|      |     0 |
|      |     0 |
|      |     0 |
|      |     0 |
|      |     0 |
|      |     0 |
|      |     1 |
|      |  1.25 |
|      |  1.25 |
|      |     2 |
|      |     2 |
|      |   2.5 |
|      |   2.5 |
|      |     3 |
|      |     3 |
|      |  3.25 |
|      |     4 |
|      |     4 |
|      |  4.25 |
|      |   4.5 |
|      |   4.5 |
|      |   4.5 |
|      |   5.5 |
|      |   5.5 |
|      |  5.75 |
|      |     6 |
|      |   6.5 |
|      |     7 |
|      |   7.5 |
|      |     9 |
|------+-------|
| Mean | 3.342 |
#+TBLFM: $1=@#-1::@32$2=vmean(@I$2..@II$2)

That still works

However 

#+BEGIN_SRC emacs-lisp
  (defun in-interval (bounds el)
    (and (>= el (car bounds)) (<= el (cadr bounds))))
#+END_SRC
#+RESULTS:
: in-interval


| lower bound | upper bound | frequency |
|-------------+-------------+-----------|
|           1 |           5 |        16 |
|           5 |             |         0 |
#+TBLFM: $3='(length (org-lookup-all '($1 $2) '(remote(raw-data,@2$2..@>$2)) nil 'in-interval));N


That does not work any more. When I put my cursor on TBLFM and run C-c
C-c then a cryptic message 

Cells in the region copied, use M-x org-table-paste-rectangle to paste them in a table. [2 times]

But I don't want to copy the cells in the region, I want to execute the
function.
That is a important matter since I rely on the functionality quite a
bit.

What shall can I do

Regards


Uwe Brauer 



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-05-16 18:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-16 18:04 BUG? Frequency table does not work any more Uwe Brauer
2021-05-16 18:16 ` [SOLVED] (was: BUG? Frequency table does not work any more.) Uwe Brauer

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).