all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
To: Emacs Devel <emacs-devel@gnu.org>
Subject: avltree => avl-tree (from jdee-devel)
Date: Thu, 04 Sep 2008 18:16:44 +0200	[thread overview]
Message-ID: <48C009EC.8090508@gmail.com> (raw)

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)
           ....
           ))




             reply	other threads:[~2008-09-04 16:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-04 16:16 Lennart Borgman (gmail) [this message]
2008-09-05  2:40 ` avltree => avl-tree (from jdee-devel) Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48C009EC.8090508@gmail.com \
    --to=lennart.borgman@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.