Hi,

I'm new to this JDE stuff, and I am also new to lisp, so please bear
with my possibly stupid questions.

I am trying to write a macro which will insert a line like so:

System.out.println("xxx");

where xxx is the current line number.

I started with the jde-gen-beep and tried modding it and I ended up with 

(defcustom  jde-gen-dbgln
  '(
    "(end-of-line) '&"
    "\"System.out.println();\"'>'n'>"
   )
  "*Template for generating a autogenerated debug line."
  :group 'jde-gen
  :type '(repeat string)
  :set '(lambda (sym val)
          (defalias 'jde-gen-dbgln
            (tempo-define-template
             "debug line"
             (jde-gen-read-template val)
             nil
             "Insert debug line."))
          (set-default sym val)))


But for the life of me I can't figure out how to get the line # or even
the double quotes, in there.

I have tried putting (what-line), but I end up with a lisp error when I
start, and I don't know where the syntax for the escape characters in
the string are.

Can anyone point me in the right direction ?

Thanks,

Alfonso.

-- 

------------------------------------o0o-----------------------------------
Alfonso Urdaneta - 0.0075 %                               Ph:
561.581.7360
Presideo, Inc.                                           Fax:
561.581.7377
10315 102nd Terrace                                
[EMAIL PROTECTED]
Sebastian FL, 32958                               
http://www.presideo.com

Reply via email to