emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [PATCH] Add info when reference to remote table is not in the file
@ 2012-04-05 14:07 Sebastien Vauban
  2012-04-06  7:43 ` Bastien
  0 siblings, 1 reply; 9+ messages in thread
From: Sebastien Vauban @ 2012-04-05 14:07 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

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

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

end of thread, other threads:[~2012-04-23 13:35 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-05 14:07 [PATCH] Add info when reference to remote table is not in the file Sebastien Vauban
2012-04-06  7:43 ` 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

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).