emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] [PATCH] Add info when reference to remote table is not in the file


From: Sebastien Vauban
Subject: [O] [PATCH] Add info when reference to remote table is not in the file
Date: Thu, 05 Apr 2012 16:07:16 +0200
User-agent: Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.0.94 (windows-nt)

2012-04-05  Sebastien Vauban  <address@hidden>

        * 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 <address@hidden>
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 via email to

[Prev in Thread] Current Thread [Next in Thread]