From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: should fset 'symbol get an undefined function warning? Date: Tue, 30 Oct 2007 14:05:51 -0700 Message-ID: References: <200710302047.l9UKl7qQ022627@oogie-boogie.ics.uci.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1193778398 9784 80.91.229.12 (30 Oct 2007 21:06:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Oct 2007 21:06:38 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Dan Nicolaescu" , "Stefan Monnier" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 30 22:06:39 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1ImyHr-0007bQ-Hz for ged-emacs-devel@m.gmane.org; Tue, 30 Oct 2007 22:06:11 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ImyHi-0000bS-6h for ged-emacs-devel@m.gmane.org; Tue, 30 Oct 2007 17:06:02 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ImyHe-0000Zs-TX for emacs-devel@gnu.org; Tue, 30 Oct 2007 17:05:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ImyHd-0000Xv-RL for emacs-devel@gnu.org; Tue, 30 Oct 2007 17:05:58 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ImyHd-0000Xi-Lq for emacs-devel@gnu.org; Tue, 30 Oct 2007 17:05:57 -0400 Original-Received: from agminet01.oracle.com ([141.146.126.228]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1ImyHd-0001lT-6e for emacs-devel@gnu.org; Tue, 30 Oct 2007 17:05:57 -0400 Original-Received: from agmgw2.us.oracle.com (agmgw2.us.oracle.com [152.68.180.213]) by agminet01.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id l9UL5rVv032170; Tue, 30 Oct 2007 16:05:53 -0500 Original-Received: from acsmt350.oracle.com (acsmt350.oracle.com [141.146.40.150]) by agmgw2.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id l9UC3iAx020662; Tue, 30 Oct 2007 15:05:53 -0600 Original-Received: from dhcp-amer-csvpn-gw2-141-144-74-2.vpn.oracle.com by acsmt351.oracle.com with ESMTP id 3332101991193778345; Tue, 30 Oct 2007 14:05:45 -0700 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-reply-to: <200710302047.l9UKl7qQ022627@oogie-boogie.ics.uci.edu> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 Importance: Normal X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:82162 Archived-At: > > > 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.)