emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Daniel Clemente <n142857@gmail.com>
To: org-mode Mailinglist <emacs-orgmode@gnu.org>
Subject: different color for calculated cells in tables
Date: Sat, 12 Jan 2013 01:11:03 +0100	[thread overview]
Message-ID: <87hamnntuw.wl%n142857@gmail.com> (raw)


Hi, 

  I would like to easily view which table cells are calculated, that is, which values would be overwritten if I updated the table (C-u C-u C-u C-c C-c)
  We can use a different cell background color (maybe with overlays?) for the automatic cells, and the normal one for „manual entry“ cells.
  This coloring would happen on load and after each table update; no need to do it in real time.


  A table example:

|     a |    b |   percent |    m | multiple |
|-------+------+-----------+------+----------|
|    15 |  112 |     16.80 |    2 |     33.6 |
|     2 |   15 |      0.30 |  2.1 |     0.63 |
|   1.2 |    7 |      0.08 | 12.5 |       1. |
|-------+------+-----------+------+----------|
| max%→ | 16.8 | 5.7266667 |    1 |        0 |
#+TBLFM: $3=($1/100.0)*$2;%.2f::$5=$3*$4::@5$2=vmax(@-I$3..@I$3)::@5$3=vmean(@-I..@I)::@5$4=$3>5.2::@5$5=0

  The „automatic“ cells (and thus highlighted) would be: 16.80, 33.6, 0.30, 0.63, 0.08, 1, 16.8, 5.7266667, 1, 0. But I had to look at the TBLFM to find it, and that's not easy.

  This is an idea, but the code's missing. A similar code exists for cell highlighting from the formula editor window (C-c '); this would help.


  Any comments on the difficulty of this?


Daniel

             reply	other threads:[~2013-01-12  0:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-12  0:11 Daniel Clemente [this message]
2013-01-12  6:34 ` different color for calculated cells in tables Bastien

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87hamnntuw.wl%n142857@gmail.com \
    --to=n142857@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).