elisp for inserting a defclass - lisp

This is a discussion on elisp for inserting a defclass - lisp ; I have recently read Michael Weber's blog entry [1] about inserting a defpackage form into a buffer. He includes a link to Xach's blog which mentions similar code for defclass forms, but I found that Xach's entry is also about ...

+ Reply to Thread
Results 1 to 2 of 2

elisp for inserting a defclass

  1. Default elisp for inserting a defclass

    I have recently read Michael Weber's blog entry [1] about inserting a
    defpackage form into a buffer. He includes a link to Xach's blog
    which mentions similar code for defclass forms, but I found that
    Xach's entry is also about defpackage & related stuff.

    But I still think that a defclass form would be useful, eg something
    that given "foo bar baz" would insert

    (defclass foo ()
    (bar :initarg :bar :accessor :bar)
    (baz :initarg :baz :accessor :baz))

    into the buffer. I suppose people have already written something like
    this, if so, please post it so I can keep postponing learning Emacs
    Lisp ;-)

    Tamas

    [1] http://www.foldr.org/~michaelw/log/p...ckage-skeleton

  2. Default Re: elisp for inserting a defclass

    On 13 ago, 06:57, Tamas Papp <tkp...@gmail.com> wrote:
    > I have recently read Michael Weber's blog entry [1] about inserting a
    > defpackage form into a buffer. He includes a link to Xach's blog
    > which mentions similar code for defclass forms, but I found that
    > Xach's entry is also about defpackage & related stuff.
    >
    > But I still think that a defclass form would be useful, eg something
    > that given "foo bar baz" would insert
    >
    > (defclass foo ()
    > (bar :initarg :bar :accessor :bar)
    > (baz :initarg :baz :accessor :baz))
    >
    > into the buffer. I suppose people have already written something like
    > this, if so, please post it so I can keep postponing learning Emacs
    > Lisp ;-)
    >
    > Tamas
    >
    > [1]http://www.foldr.org/~michaelw/log/programming/lisp/defpackage-skeleton


    You will probably be more sucessfull asking questions related to emacs
    on gnu.emacs.help.
    Cheers,
    weber


+ Reply to Thread

Similar Threads

  1. Is this a bug in elisp
    By Application Development in forum lisp
    Replies: 5
    Last Post: 12-13-2007, 02:53 AM
  2. Elisp Lesson: Repeated Find Replace
    By Application Development in forum lisp
    Replies: 13
    Last Post: 10-13-2007, 03:44 PM
  3. Replies: 5
    Last Post: 10-08-2007, 03:34 PM
  4. how to indent (defclass, :initarg)
    By Application Development in forum lisp
    Replies: 0
    Last Post: 08-08-2007, 05:43 AM
  5. Macrology and automated invocation of defclass?
    By Application Development in forum lisp
    Replies: 9
    Last Post: 07-31-2007, 04:12 AM