unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* avltree => avl-tree (from jdee-devel)
@ 2008-09-04 16:16 Lennart Borgman (gmail)
  2008-09-05  2:40 ` Stefan Monnier
  0 siblings, 1 reply; 2+ messages in thread
From: Lennart Borgman (gmail) @ 2008-09-04 16:16 UTC (permalink / raw)
  To: Emacs Devel

There is a discussion on jdee-devel on how to manage the transition from
elib's avltree to avl-tree in current CVS Emacs, see below

Can someone please comment on this?


------- from jdee-devel:

  CK> Can we define avl-tree-* functions if they do not already exist? My
  CK> elisp is atrocious, but in Common Lisp I envision something like:

Sure. There's a old hack out there to make "defcustom" work even when
custom.el isn't available.


  CK> (handler-case (symbol-function 'avl-tree-something)
  CK>   (undefined-function ()
  CK>     (setf (symbol-function 'avl-tree-something) (symbol-function
  CK>     'avltree-something))))

  CK> We could have a bunch of these as top-level forms (one for each
  CK> avl-tree-* function we need to use). They would detect if
  CK> #'avl-tree-something is undefined, and if so, define it to be the same
  CK> function as #'avltree-something.

Something like this might work....


(if (not (require 'avl-tree nil t))
    (progn (require avltree)
           (defalias avl-tree-enter 'avltree-enter)
           (defalias avl-tree-delete 'avltree-delete)
           ....
           ))




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: avltree => avl-tree (from jdee-devel)
  2008-09-04 16:16 avltree => avl-tree (from jdee-devel) Lennart Borgman (gmail)
@ 2008-09-05  2:40 ` Stefan Monnier
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier @ 2008-09-05  2:40 UTC (permalink / raw)
  To: Lennart Borgman (gmail); +Cc: Emacs Devel

> There is a discussion on jdee-devel on how to manage the transition from
> elib's avltree to avl-tree in current CVS Emacs, see below

> Can someone please comment on this?

What was the reason for changing the avltree- prefix to avl-tree- ?


        Stefan




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-09-05  2:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-04 16:16 avltree => avl-tree (from jdee-devel) Lennart Borgman (gmail)
2008-09-05  2:40 ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).