[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: should fset 'symbol get an undefined function warning?
From: |
Drew Adams |
Subject: |
RE: should fset 'symbol get an undefined function warning? |
Date: |
Tue, 30 Oct 2007 14:05:51 -0700 |
> > > The warning "the function `my-fset-test' is not known to be defined"
> > > is generated when compiling:
> > > (fset 'my-fset-test 'foo) (my-fset-test)
> > > Wouldn't it be better if the warning was not generated?
> >
> > Could be. But if you use `defalias' the warning will be gone. Why do
> > you want to use `fset'?
>
> "I" don't, but there are a some files in the tree that do that, one
> that I remember of the top of my head is viper-util. But there are
> some more.
AFAIK, `fset' is not deprecated or obsolete (and the Elisp manual is full of
`fset').
`defalias' might be better to use in this context, but it should still be
good to not issue that warning for `fset'. (I'm not saying anyone has
disagreed with that.)
Re: should fset 'symbol get an undefined function warning?, Richard Stallman, 2007/10/30