emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Sebastien Vauban" <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: [PATCH] Add info when reference to remote table is not in the file
Date: Thu, 05 Apr 2012 16:07:16 +0200	[thread overview]
Message-ID: <80398i5l2j.fsf@somewhere.org> (raw)

2012-04-05  Sebastien Vauban  <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org>

	* org-table.el (org-table-get-remote-range): when a reference to a
	  remote table is not found locally, display a message for 1 second,
	  then go on searching within all known locations

From 432a57390d8a103d440017664b8a594de61281a4 Mon Sep 17 00:00:00 2001
From: Sebastien Vauban <sva-D0wtAvR13HarG/iDocfnWg@public.gmane.org>
Date: Thu, 5 Apr 2012 15:58:27 +0200
Subject: [PATCH] Add info when reference to remote table is not in the file

---
 lisp/org-table.el |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/lisp/org-table.el b/lisp/org-table.el
index ae12cee..c336f89 100644
--- a/lisp/org-table.el
+++ b/lisp/org-table.el
@@ -4735,6 +4735,8 @@ list of the fields in the rectangle ."
 		 (concat "^[ \t]*#\\+TBLNAME:[ \t]*" (regexp-quote name-or-id) "[ \t]*$")
 		 nil t)
 		(setq buffer (current-buffer) loc (match-beginning 0))
+	      (message "Reference `%s' is not found in the current file" name-or-id)
+	      (sit-for 1)
 	      (setq id-loc (org-id-find name-or-id 'marker))
 	      (unless (and id-loc (markerp id-loc))
 		(error "Can't find remote table \"%s\"" name-or-id))
-- 
1.7.9

Best regards,
  Seb

-- 
Sebastien Vauban

             reply	other threads:[~2012-04-05 14:07 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-05 14:07 Sebastien Vauban [this message]
2012-04-06  7:43 ` [PATCH] Add info when reference to remote table is not in the file Bastien
2012-04-06  8:36   ` Sebastien Vauban
2012-04-09 16:01     ` Bastien
2012-04-19 14:10       ` Sebastien Vauban
2012-04-19 14:27         ` Sebastien Vauban
2012-04-19 14:29           ` Nicolas Goaziou
2012-04-21 13:43           ` Bastien
2012-04-23 13:07           ` 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=80398i5l2j.fsf@somewhere.org \
    --to=wxhgmqzgwmuf-genee64ty+gs+fvcfc7uqw@public.gmane.org \
    --cc=emacs-orgmode-mXXj517/zsQ@public.gmane.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).