gnu.emacs.sources
[Top] [All Lists]

Re: ;;; anything.el --- open anything

Subject: Re: ;;; anything.el --- open anything
From: Tassilo Horn
Date: Fri, 03 Aug 2007 23:28:02 +0200
Newsgroups: gnu.emacs.sources

"spamfilteraccount@xxxxxxxxx" <spamfilteraccount@xxxxxxxxx> writes:

Hi all,

the adaptive sorting thingy sounds great and of course I'm happy to
include it.  But this weekend is full of other tasks and I'm not even
sure if I have any network connection till monday, so this probably has
to wait a bit.

> I plan to remove all the example values and defuns from anything.el
> (except for anything-sources), since Tassilo does a great job with
> anything-config and there is no need to duplicate stuff.

Ah, that would be great.  After Bill told me that he had problems with
the latest changes in anything-config.el (I've removed the
eval-after-load [which was malformed, anyway] and required anything as
last operation in the file) I found out that I can choose between cancer
and pestilence:

  - If I load anything first, I cannot overwrite defvars, which is bad.
  - If I load anything after anything-config, all the defuns will be
    redefined by anything which bad, too.

So in either case there are problems.

So if you remove the duplicate functions that would solve all problems
for us.  Could you please copy functions that are needed by
`anything-sources', e.g.  `anything-buffer-list' from anything-config?

I'm not sure, but I think that's the only one.  My version puts the
current buffer to the back of the list, so that you can easily switch
between two buffers without any keys except invoking anything and RET
(assuming the buffer source comes first).

I'll upload a new anything-config.el in 5 minutes that has a correctly
working eval-after-load to ensure that anything is loaded after
anything-config.  Everything should work fine when the functions that
are duplicated are removed from anything.el.

Have a nice weekend!
Tassilo
-- 
If programmers deserve to  be rewarded for creating innovative programs,
by the same  token they deserve to be punished if  they restrict the use
of these programs. (Richard M. Stallman)




<Prev in Thread] Current Thread [Next in Thread>