]> git.eshelyaron.com Git - emacs.git/commitdiff
srecode/dictionary compilation warning fix
authorLars Ingebrigtsen <larsi@gnus.org>
Fri, 14 Jun 2019 13:32:33 +0000 (15:32 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 14 Jun 2019 13:32:33 +0000 (15:32 +0200)
* lisp/cedet/srecode/dictionary.el (srecode/fields): Require to
avoid compilation warning about unknown slot.  Remove function
declarations that point to that file.

lisp/cedet/srecode/dictionary.el

index 8508371d53b6388947b1bd2d00f108b9f05dc00f..63635e5ccda129e869b6b8e92a87824b7507adb7 100644 (file)
@@ -32,6 +32,7 @@
 (require 'cl-generic)
 (require 'srecode)
 (require 'srecode/table)
+(require 'srecode/fields)
 (eval-when-compile (require 'semantic))
 
 (declare-function srecode-compile-parse-inserter "srecode/compile")
@@ -41,7 +42,6 @@
 (declare-function srecode-insert-code-stream "srecode/insert")
 (declare-function data-debug-new-buffer "data-debug")
 (declare-function data-debug-insert-object-slots "eieio-datadebug")
-(declare-function srecode-field "srecode/fields")
 
 (defclass srecode-dictionary ()
   ((namehash :initarg :namehash
@@ -505,7 +505,6 @@ inserted with a new editable field.")
                                     function
                                     dictionary)
   "Convert this field into an insertable string."
-  (require 'srecode/fields)
   ;; If we are not in a buffer, then this is not supported.
   (when (not (bufferp standard-output))
     (error "FIELDS invoked while inserting template to non-buffer"))