diff options
author | Peter Feigl <peter.feigl@jku.at> | 2015-02-05 10:22:58 +0100 |
---|---|---|
committer | Peter Feigl <peter.feigl@jku.at> | 2015-02-05 10:22:58 +0100 |
commit | df9e308a0feed12676e2b6ba098f6677ed56d9d5 (patch) | |
tree | a32a490e7d185ffde72ef086c4aa1dcb002bd99d /lisp | |
parent | bc487be14bd1a79cbbedb9203921b357ced79ef7 (diff) | |
download | fork-ledger-df9e308a0feed12676e2b6ba098f6677ed56d9d5.tar.gz fork-ledger-df9e308a0feed12676e2b6ba098f6677ed56d9d5.tar.bz2 fork-ledger-df9e308a0feed12676e2b6ba098f6677ed56d9d5.zip |
cleaning up elisp byte compiler warnings
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/ledger-commodities.el | 4 | ||||
-rw-r--r-- | lisp/ledger-complete.el | 1 | ||||
-rw-r--r-- | lisp/ledger-exec.el | 2 | ||||
-rw-r--r-- | lisp/ledger-occur.el | 4 | ||||
-rw-r--r-- | lisp/ledger-post.el | 2 | ||||
-rw-r--r-- | lisp/ledger-reconcile.el | 1 | ||||
-rw-r--r-- | lisp/ledger-report.el | 2 | ||||
-rw-r--r-- | lisp/ledger-schedule.el | 7 | ||||
-rw-r--r-- | lisp/ledger-texi.el | 2 |
9 files changed, 22 insertions, 3 deletions
diff --git a/lisp/ledger-commodities.el b/lisp/ledger-commodities.el index 5ffebf3b..a0949c21 100644 --- a/lisp/ledger-commodities.el +++ b/lisp/ledger-commodities.el @@ -28,6 +28,10 @@ (require 'ledger-regex) +;; These keep the byte-compiler from warning about them, but have no other +;; effect: +(defvar ledger-environment-alist) + (defcustom ledger-reconcile-default-commodity "$" "The default commodity for use in target calculations in ledger reconcile." :type 'string diff --git a/lisp/ledger-complete.el b/lisp/ledger-complete.el index 2fae9911..1a4fbd48 100644 --- a/lisp/ledger-complete.el +++ b/lisp/ledger-complete.el @@ -24,6 +24,7 @@ (require 'pcomplete) +(declare-function ledger-thing-at-point "ledger-context" nil) ;; In-place completion support ;;; Code: diff --git a/lisp/ledger-exec.el b/lisp/ledger-exec.el index 8902d839..07c36cac 100644 --- a/lisp/ledger-exec.el +++ b/lisp/ledger-exec.el @@ -25,6 +25,8 @@ ;;; Code: +(defvar ledger-buf) + (defconst ledger-version-needed "3.0.0" "The version of ledger executable needed for interactive features.") diff --git a/lisp/ledger-occur.el b/lisp/ledger-occur.el index a4fde2e1..32a1bd96 100644 --- a/lisp/ledger-occur.el +++ b/lisp/ledger-occur.el @@ -29,7 +29,9 @@ ;;; Code: -(require 'cl) +;; TODO: replace this with (require 'cl-lib) +(with-no-warnings + (require 'cl)) (require 'ledger-navigate) (defconst ledger-occur-overlay-property-name 'ledger-occur-custom-buffer-grep) diff --git a/lisp/ledger-post.el b/lisp/ledger-post.el index e0c7aaee..5665885b 100644 --- a/lisp/ledger-post.el +++ b/lisp/ledger-post.el @@ -27,6 +27,8 @@ ;;; Code: +(declare-function ledger-navigate-find-xact-extents "ledger-navigate" (pos)) + (defgroup ledger-post nil "Options for controlling how Ledger-mode deals with postings and completion" :group 'ledger) diff --git a/lisp/ledger-reconcile.el b/lisp/ledger-reconcile.el index f9a5c21b..4dad0baf 100644 --- a/lisp/ledger-reconcile.el +++ b/lisp/ledger-reconcile.el @@ -34,6 +34,7 @@ (defvar ledger-bufs nil) (defvar ledger-acct nil) (defvar ledger-target nil) +(defvar ledger-clear-whole-transactions) (defgroup ledger-reconcile nil "Options for Ledger-mode reconciliation" diff --git a/lisp/ledger-report.el b/lisp/ledger-report.el index c477707f..a8ed9060 100644 --- a/lisp/ledger-report.el +++ b/lisp/ledger-report.el @@ -29,6 +29,8 @@ (eval-when-compile (require 'cl)) +(defvar ledger-buf) + (defgroup ledger-report nil "Customization option for the Report buffer" :group 'ledger) diff --git a/lisp/ledger-schedule.el b/lisp/ledger-schedule.el index d66fdbab..6d6fdea1 100644 --- a/lisp/ledger-schedule.el +++ b/lisp/ledger-schedule.el @@ -30,9 +30,12 @@ ;; function slot of the symbol VARNAME. Then use VARNAME as the ;; function without have to use funcall. -(require 'ledger-init) -(require 'cl) +(require 'ledger-init) +;; TODO: replace this by (require 'cl-lib) +(with-no-warnings + (require 'cl)) +(declare-function ledger-mode "ledger-mode") ;;; Code: (defgroup ledger-schedule nil diff --git a/lisp/ledger-texi.el b/lisp/ledger-texi.el index afaf0df7..75a018b8 100644 --- a/lisp/ledger-texi.el +++ b/lisp/ledger-texi.el @@ -18,6 +18,8 @@ ;; along with GNU Emacs; see the file COPYING. If not, write to the ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, ;; MA 02110-1301 USA. +;;; Code: +(defvar ledger-binary-path) (defgroup ledger-texi nil "Options for working on Ledger texi documentation" |