Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
OO-Browser does not understand Lisp defstruct options?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jean-Louis Leroy  
View profile  
 More options Jul 23 2000, 3:00 am
Newsgroups: comp.emacs.xemacs, comp.lang.lisp
From: Jean-Louis Leroy <j...@skynet.be>
Date: 2000/07/23
Subject: OO-Browser does not understand Lisp defstruct options?
When presented with this code:

(defstruct (test (:print-function my-print-test))
  x)

(defun my-print-test (atest stream depth)
  (print "ok" stream))

...oo-browser says "invalid feature entry, `[structure],-(test,
(defstruct (test'

Is this a known bug and does anybody have a solution? Tia...
--
Jean-Louis Leroy
http://users.skynet.be/jll


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rob Warnock  
View profile  
 More options Jul 23 2000, 3:00 am
Newsgroups: comp.emacs.xemacs, comp.lang.lisp
From: r...@rigden.engr.sgi.com (Rob Warnock)
Date: 2000/07/23
Subject: Re: OO-Browser does not understand Lisp defstruct options?
Jean-Louis Leroy  <j...@skynet.be> wrote:
+---------------
| (defstruct (test (:print-function my-print-test))
|   x)
| (defun my-print-test (atest stream depth)
|   (print "ok" stream))
|
| ...oo-browser says "invalid feature entry, `[structure],-(test,
| (defstruct (test'
+---------------

Neither CLISP nor CMUCL has any problem with it [except that picky ol'
CMUCL complains if you don't have a (declare (ignorable atest depth))]:

        > (defstruct (test (:print-function my-print-test))
            x)
        TEST
        > (defun my-print-test (atest stream depth)
            (declare (ignorable atest depth))
            (print "ok" stream))
        MY-PRINT-TEST
        > (make-test :x 37)
        "ok"
        >

-Rob

-----
Rob Warnock, 41L-955            r...@sgi.com
Applied Networking              http://reality.sgi.com/rpw3/
Silicon Graphics, Inc.          Phone: 650-933-1673
1600 Amphitheatre Pkwy.         PP-ASEL-IA
Mountain View, CA  94043


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Erik Naggum  
View profile  
 More options Jul 23 2000, 3:00 am
Newsgroups: comp.emacs.xemacs, comp.lang.lisp
From: Erik Naggum <e...@naggum.net>
Date: 2000/07/23
Subject: Re: OO-Browser does not understand Lisp defstruct options?
* Jean-Louis Leroy <j...@skynet.be>
| Is this a known bug and does anybody have a solution? Tia...

  I don't use OO-Browser, but it shouldn't be too hard to find the
  place where it picks out the name of the struct, unless it uses
  regexps to do it, of course, and test for a list and if so, use its
  first element, instead of the whole thing.  From the error message,
  it looks like it uses regexps, which would provide yet another good
  example of why using regexps is the wrong solution in the general
  case and real parsing is not replaceable with regexps hacks.  If it
  does use regexps, all hope is probably lost, and you have rewrite a
  lot of hairy code to get a simple thing like this fixed.

#:Erik
--
  If this is not what you expected, please alter your expectations.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jean-Louis Leroy  
View profile  
 More options Jul 23 2000, 3:00 am
Newsgroups: comp.emacs.xemacs, comp.lang.lisp
From: Jean-Louis Leroy <j...@skynet.be>
Date: 2000/07/23
Subject: Re: OO-Browser does not understand Lisp defstruct options?

> If it does use regexps, all hope is probably lost, and you have
> rewrite a lot of hairy code to get a simple thing like this fixed.

I've started looking into it and it seems that the elisp part uses
regexps to parse the output of a C program (some version of
etags??). It looks like the problem is in there, in a function that
seems reasonably understandable. I'll try a couple of hours and post
my results in case of success.

OO-browser does look very nice.
--
Jean-Louis Leroy
http://users.skynet.be/jll


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »