From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: should fset 'symbol get an undefined function warning? Date: Tue, 30 Oct 2007 17:59:09 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1193781588 20975 80.91.229.12 (30 Oct 2007 21:59:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Oct 2007 21:59:48 +0000 (UTC) Cc: Dan Nicolaescu , emacs-devel@gnu.org To: "Drew Adams" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 30 22:59:50 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 1Imz7l-0007DX-Rk for ged-emacs-devel@m.gmane.org; Tue, 30 Oct 2007 22:59:50 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Imz7c-0000Fn-3d for ged-emacs-devel@m.gmane.org; Tue, 30 Oct 2007 17:59:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Imz7W-0000Cq-1p for emacs-devel@gnu.org; Tue, 30 Oct 2007 17:59:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Imz7R-00005W-7v for emacs-devel@gnu.org; Tue, 30 Oct 2007 17:59:33 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Imz7R-00005H-0V for emacs-devel@gnu.org; Tue, 30 Oct 2007 17:59:29 -0400 Original-Received: from x-132-204-242-121.xtpr.umontreal.ca ([132.204.242.121] helo=ceviche.home) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1Imz7P-0008Fw-2O for emacs-devel@gnu.org; Tue, 30 Oct 2007 17:59:27 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 51F7CB4ABE; Tue, 30 Oct 2007 17:59:08 -0400 (EDT) In-Reply-To: (Drew Adams's message of "Tue, 30 Oct 2007 14:05:51 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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:82167 Archived-At: > 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.) I disagree: `fset' is meant to *change* the function-slot of a symbol, not to initialize it. So it's use shouldn't be treated by the byte-compiler as a declaration. Insted, the byute-compiler should complain about the use of `fset' on an unknown function similarly to the use of `set(q)' on an unknown variable. Stefan