* [PATCH] Avoid some warnings about `assignment to free variable'
@ 2012-02-18 20:28 Peter Münster
0 siblings, 0 replies; only message in thread
From: Peter Münster @ 2012-02-18 20:28 UTC (permalink / raw)
To: emacs-orgmode
* lisp/org.el, lisp/org-pcomplete.el: Add some `defvars' to avoid
warnings about `assignment to free variable'.
TINYCHANGE
---
lisp/org-pcomplete.el | 5 +++++
lisp/org.el | 2 ++
2 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/lisp/org-pcomplete.el b/lisp/org-pcomplete.el
index c475bcc..7a4dc0d 100644
--- a/lisp/org-pcomplete.el
+++ b/lisp/org-pcomplete.el
@@ -50,6 +50,9 @@
:tag "Org"
:group 'org)
+(defvar org-drawer-regexp)
+(defvar org-property-re)
+
(defun org-thing-at-point ()
"Examine the thing at point and let the caller know what it is.
The return value is a string naming the thing at point."
@@ -247,6 +250,8 @@ This needs more work, to handle headings with lots of spaces in them."
lst))
(substring pcomplete-stub 1)))
+(defvar org-drawers)
+
(defun pcomplete/org-mode/drawer ()
"Complete a drawer name."
(let ((spc (save-excursion
diff --git a/lisp/org.el b/lisp/org.el
index a81f7fc..45d4b6a 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -12778,6 +12778,7 @@ ACTION can be `set', `up', `down', or a character."
;;;; Tags
+(defvar tags-list)
(defvar org-agenda-archives-mode)
(defvar org-map-continue-from nil
"Position from where mapping should continue.
@@ -14957,6 +14958,7 @@ So these are more for recording a certain time/date."
(defvar org-ans2) ; dynamically scoped parameter
(defvar org-plain-time-of-day-regexp) ; defined below
+(defvar org-read-date-inactive)
(defvar org-overriding-default-time nil) ; dynamically scoped
(defvar org-read-date-overlay nil)
--
1.7.3.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-02-18 20:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-18 20:28 [PATCH] Avoid some warnings about `assignment to free variable' Peter Münster
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).