From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.bugs Subject: bug#13676: 24.2.93; Compiler warnings with (defalias #'symbol ...) Date: Mon, 11 Feb 2013 16:04:54 +0100 Message-ID: <877gmeevs9.fsf@web.de> References: <87fw14xfaa.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1360595031 4239 80.91.229.3 (11 Feb 2013 15:03:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 Feb 2013 15:03:51 +0000 (UTC) Cc: 13676@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 11 16:04:12 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1U4uvT-0001se-9p for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Feb 2013 16:04:11 +0100 Original-Received: from localhost ([::1]:44126 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U4uvA-0001D0-3w for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Feb 2013 10:03:52 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:57594) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U4uv5-0001CT-Km for bug-gnu-emacs@gnu.org; Mon, 11 Feb 2013 10:03:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U4uuz-0003Z3-Oh for bug-gnu-emacs@gnu.org; Mon, 11 Feb 2013 10:03:47 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45557) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U4uuz-0003Yz-LL for bug-gnu-emacs@gnu.org; Mon, 11 Feb 2013 10:03:41 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1U4uvJ-0002iB-TY for bug-gnu-emacs@gnu.org; Mon, 11 Feb 2013 10:04:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Heerdegen Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Feb 2013 15:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13676 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13676-submit@debbugs.gnu.org id=B13676.136059502210400 (code B ref 13676); Mon, 11 Feb 2013 15:04:01 +0000 Original-Received: (at 13676) by debbugs.gnu.org; 11 Feb 2013 15:03:42 +0000 Original-Received: from localhost ([127.0.0.1]:51021 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U4uux-0002he-VC for submit@debbugs.gnu.org; Mon, 11 Feb 2013 10:03:41 -0500 Original-Received: from mout.web.de ([212.227.17.11]:62669) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U4uuu-0002hW-SG for 13676@debbugs.gnu.org; Mon, 11 Feb 2013 10:03:38 -0500 Original-Received: from drachen.dragon ([92.74.177.220]) by smtp.web.de (mrweb102) with ESMTPA (Nemesis) id 0M8hwt-1UrofJ1LIh-00vlV6; Mon, 11 Feb 2013 16:03:15 +0100 In-Reply-To: (Stefan Monnier's message of "Sun, 10 Feb 2013 23:01:20 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.93 (gnu/linux) X-Provags-ID: V02:K0:BFiKr2aPHYaf+v9X/U0wJzc7PwFJ9n4WA1wGNBYtEsL wELpqTttL4f96VS0Y7IUropEaLaWayyVySk7fh5YOSVbf+SKG+ Y3FYQrfa1rX3iyWTTX3rjjLv5VvVQqAoQP8L5NPbNbJ0EfTzhW YwFccp+c/X3SOxeVDSpSeVq5z8KdDpjmiSbg+F/dz6iqiLu9M6 DqzhNbayk9PQ/vMiwKeW15r0d9n2PTacBtSBaC+If0= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:71059 Archived-At: Hello Stefan, thanks for the explanation. I'll close it. Michael. Stefan Monnier writes: > > | [...] But unlike `quote', it also serves as a note to the Emacs > > |evaluator and byte-compiler that FUNCTION-OBJECT is intended to be used > > |as a function. [...] > > Right, this means that #'foo is a reference to the function stored in > foo'. > > > (defalias #'my-package-end-of-line > > So, this is weird, because you're not referring to the function stored > in `my-package-end-of-line' here, instead you really want to set the > `symbol-function' slot of the symbol, so the argument you want to pass > to `defalias' is not a function but a symbol. > > Both work in practice, but the intention expressed by the use of #' is > incorrect here. > > > (if (fboundp #'end-of-visual-line) > > Similarly, here it should be (fboundp 'end-of-visual-line) since > fboundp's argument should be a symbol, not a function. > > > Stefan