Ok, the first commit in the ChangeLog I propose would contain the following:
Now 's the time to object although I presume that the previous 'Ok' still
stands.
bye,
Erik.
+++ ChangeLog 2004-03-16 21:39:43.413843588 +0100
@@ -0,0 +1,9 @@
+
+
+ * package.lisp (export): export symbols needed for manipulation
+ of the different objects
+
+2004-03-08:
+ Started tracking changes committed to the repository in this log.
+
+ The ordering in this file is last-at-top.
--
+++ NEU bei GMX und erstmalig in Deutschland: TÜV-geprüfter Virenschutz +++
100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz
Hi!
On my quest for defmethods that needed defgenerics, I found an inconsistency
in the API. I have no idea if this project has any provisions or policies
about breaking APIs, so I'm mailing the list.
The add-* apis use the object to add to as the first parameter and the
object to be added as the second. So does the remove-channel api, except for one
point: (remove-channel <channel-object> <user-object>). Resolving this item is
not critical, but nice to have. Since parts of code of external parties
might depend on the api, I decided to add a warn statement, but leave the api in
place. I added a new defmethod which is the same, except that it has its
parameters reversed.
I'll rewrite the library (and possibly the examples) to use the new API
ofcourse - given that there will be no objections.
bye,
Erik.
PS: I don't think I can remember the changes I am committing some months
from now, so I'll institute the ChangeLog as previously discussed.
The patch:
Index: protocol.lisp
===================================================================
RCS file: /project/cl-irc/cvsroot/cl-irc/protocol.lisp,v
diff -u -r1.2 protocol.lisp
--- protocol.lisp 8 Jan 2004 23:11:47 -0000 1.2
+++ protocol.lisp 14 Mar 2004 18:34:35 -0000
@@ -437,6 +437,14 @@
(defmethod remove-channel ((channel channel) (user user))
"Remove `channel' from `user'."
+ (warn
+ (concat 'string
+ "use of depricated API (remove-channel channel user): "
+ "(remove-channel user channel) is now preferred"))
+ (remove-channel user channel))
+
+(defmethod remove-channel ((user user) (channel channel))
+ "Remove `channel' from `user'."
(setf (channels user) (remove channel (channels user))))
(defmethod remove-user ((connection connection) (user user))
--
+++ NEU bei GMX und erstmalig in Deutschland: TÜV-geprüfter Virenschutz +++
100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz
Hi Erik,
> It seems that everything you are doing is correct. I see that the mail
> went through fine in Exim also. No errors apparently. I just tried
sending
> on from my account and it went through so perhaps we just saw some
> intermittent bugs of some sorts. Could you try again?
I saw your test mail. It came to my box nicely. Did you see the commit mail
itself?
Anyway, I'll be committing the export of add-default-hooks and
remove-all-hooks tonight, so I'll be able to see what happens...
> > Also, I noticed there not being a ChangeLog or Changes file in the
> > repository. I guess there is no protocol to keep track of commits to
> > the repository then? Could someone please confirm (or deny :-) ) this?
>
> I don't think there is one. You can add one if you like.
Well, I wasn't really looking for that kind of work :-) but if the the group
thinks it's a good idea to add one, I'll be happy to start one.
bye,
Erik.
--
+++ NEU bei GMX und erstmalig in Deutschland: TÜV-geprüfter Virenschutz +++
100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz
Hi.
Sorry to intrude again. I committed my next commit (also a change to
package.lisp) making available add-default-hooks and remove-all-hooks. As last time,
I expected a mail from cl-irc-cvs@ to confirm the commit but like last time,
I did not recieve one.
I'm not concerned about this, but I like to review my own changes right
after committing by reading the commit mail. It's also a check to see if I put in
the right commit message.
Anyway: further changes I will propose on the list first and commit after a
few days (with no reaction) or after approval.
bye,
Erik.
--
+++ NEU bei GMX und erstmalig in Deutschland: TÜV-geprüfter Virenschutz +++
100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz
Hi,
Last night I committed the change I proposed on the list to the CVS
repository at common-lisp.net. Before doing that I subscribed to
cl-irc-cvs@.. but I didn't see any commit mail. Am I doing something
wrong or should I not expect a commit mail this soon?
Also, I noticed there not being a ChangeLog or Changes file in the
repository. I guess there is no protocol to keep track of commits to the
repository then? Could someone please confirm (or deny :-) ) this?
Working to get past the initial quircks, but slowly getting there....
bye,
Erik.
--
+++ NEU bei GMX und erstmalig in Deutschland: TÜV-geprüfter Virenschutz +++
100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz
Hi,
Working further with the cl-irc library, I found that not all methods and
classes are exported. Is it intentional that the following keys are not
exported from the package?
- nickname
- channel
- users
- name
(as in the slot of the channel class)
and maybe others I did not check. If it is not intentional, then is there a
guideline on what should be exported? I can write a patch if there is
something like that...
Bye,
Erik.
--
+++ NEU bei GMX und erstmalig in Deutschland: TÜV-geprüfter Virenschutz +++
100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz