emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Michael Brand <michael.ch.brand@gmail.com>
To: Bart Bunting <bart@bunting.net.au>,
	Jude DaShiell <jdashiel@shellworld.net>
Cc: emacs-orgmode@gnu.org
Subject: Re: calculation question
Date: Sat, 23 Jul 2011 18:51:28 +0200	[thread overview]
Message-ID: <CALn3zoj0JgbQZJsHZ+Ohpp32r1-wcy+_u7Tv416CP0ntC2Chdw@mail.gmail.com> (raw)
In-Reply-To: <877h7elmcu.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 810 bytes --]

Hi Jude and Bart

On Tue, Jul 19, 2011 at 10:13, Bastien <bzg@altern.org> wrote:
> Bart Bunting <bart@bunting.net.au> writes:
>> I have noticed that emacspeak does not read anything done using
>> overlays.  I am presuming the column and row labels are done this way.
>
> Yes, the references are displayed as an overlay.

As an alternative to overlays used by "C-c }" on a table to display
the coordinate grid, I would suggest the attached patch that displays
the coordinates in the table editor "C-c `" like this:

#+begin_src org
#
# Edit field @2$3 and finish with C-c C-c
#
123
#+end_src

It also supports the org-table-follow-field-mode "C-u C-u C-c `" added
by Carsten two months ago:
http://orgmode.org/w/org-mode.git/commitdiff/bffdfeb7fcd6c094d44e754ace7ce28fab81f2ff

Michael

[-- Attachment #2: 0001-Table-editor-Display-coordinates-of-current-field.patch --]
[-- Type: application/octet-stream, Size: 1444 bytes --]

From a79c95bdfd09fff0d62fae41d7421ca9d77ea13e Mon Sep 17 00:00:00 2001
From: Michael Brand <michael.ch.brand@gmail.com>
Date: Sat, 23 Jul 2011 18:48:52 +0200
Subject: [PATCH] Table editor: Display coordinates of current field

* lisp/org-table.el (org-table-edit-field): Display field coordinates.
---
 lisp/org-table.el |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/lisp/org-table.el b/lisp/org-table.el
index c7d0b72..e392d11 100644
--- a/lisp/org-table.el
+++ b/lisp/org-table.el
@@ -1806,6 +1806,12 @@ it can be edited in place."
 	  (font-lock-fontify-block))))
    (t
     (let ((pos (move-marker (make-marker) (point)))
+	  (coord
+	   (if (eq org-table-use-standard-references t)
+	       (concat (org-number-to-letters (org-table-current-column))
+		       (int-to-string (org-table-current-dline)))
+	     (concat "@" (int-to-string (org-table-current-dline))
+		     "$" (int-to-string (org-table-current-column)))))
 	  (field (org-table-get-field))
 	  (cw (current-window-configuration))
 	  p)
@@ -1815,7 +1821,7 @@ it can be edited in place."
 		 (markerp org-field-marker))
 	(move-marker org-field-marker nil))
       (erase-buffer)
-      (insert "#\n# Edit field and finish with C-c C-c\n#\n")
+      (insert "#\n# Edit field " coord " and finish with C-c C-c\n#\n")
       (let ((org-inhibit-startup t)) (org-mode))
       (auto-fill-mode -1)
       (setq truncate-lines nil)
-- 
1.7.4.2


  reply	other threads:[~2011-07-23 16:51 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-17 16:51 calculation question Jude DaShiell
2011-07-18 23:10 ` Bastien
2011-07-18 23:47   ` Bart Bunting
2011-07-19  8:13     ` Bastien
2011-07-23 16:51       ` Michael Brand [this message]
2011-07-27 15:48         ` Bastien
2011-07-19  9:33   ` Jude DaShiell
2011-07-19  9:40     ` Bastien
2011-07-19 13:34       ` Nick Dokos

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=CALn3zoj0JgbQZJsHZ+Ohpp32r1-wcy+_u7Tv416CP0ntC2Chdw@mail.gmail.com \
    --to=michael.ch.brand@gmail.com \
    --cc=bart@bunting.net.au \
    --cc=emacs-orgmode@gnu.org \
    --cc=jdashiel@shellworld.net \
    /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).