[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#9967: 24.0.90; semantic/srecode : Missing require
From: |
David Engster |
Subject: |
bug#9967: 24.0.90; semantic/srecode : Missing require |
Date: |
Sun, 06 Nov 2011 15:59:38 +0100 |
User-agent: |
Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.91 (gnu/linux) |
Andreas Politz writes:
> $ emacs -Q
>
> (require 'srecode)
> M-x srecode-insert RET "file:empty" RET
> => error : "Variable insertion second arg srecode-comment-prefix is not a
> function"
>
> This function is defined in srecode/filters.el .
I've attached a patch. I'm not sure if that's the best solution, but
please try if it fixes your problem.
-David
=== modified file 'lisp/cedet/srecode/filters.el'
--- lisp/cedet/srecode/filters.el 2011-10-26 21:08:09 +0000
+++ lisp/cedet/srecode/filters.el 2011-11-01 21:11:12 +0000
@@ -26,8 +26,10 @@
;;; Code:
(require 'newcomment)
-(require 'srecode/table)
-(require 'srecode/insert)
+
+(declare-function srecode-dictionary-lookup-name "srecode/dictionary")
+(defvar srecode-inserter-variable-current-dictionary)
+
(defun srecode-comment-prefix (str)
"Prefix each line of STR with the comment prefix characters."
=== modified file 'lisp/cedet/srecode/insert.el'
--- lisp/cedet/srecode/insert.el 2011-10-29 14:24:03 +0000
+++ lisp/cedet/srecode/insert.el 2011-11-01 21:11:12 +0000
@@ -33,6 +33,7 @@
(require 'srecode/find)
(require 'srecode/dictionary)
(require 'srecode/args)
+(require 'srecode/filters)
(defvar srecode-template-inserter-point)
(declare-function srecode-overlaid-activate "srecode/fields")