From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jorge P. de Morais Neto Newsgroups: gmane.emacs.help Subject: Re: How to tame compiler? Date: Fri, 30 Apr 2021 10:31:04 -0300 Message-ID: <874kfn292f.fsf@disroot.org> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14531"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 30 16:28:58 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lcU8X-0003cp-Rz for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 30 Apr 2021 16:28:57 +0200 Original-Received: from localhost ([::1]:37894 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lcU8W-0007m9-UQ for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 30 Apr 2021 10:28:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41292) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lcTEr-0000oS-Pm for help-gnu-emacs@gnu.org; Fri, 30 Apr 2021 09:31:25 -0400 Original-Received: from knopi.disroot.org ([178.21.23.139]:34242) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lcTEp-0005of-IF for help-gnu-emacs@gnu.org; Fri, 30 Apr 2021 09:31:25 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 0E99C53031 for ; Fri, 30 Apr 2021 15:31:15 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at disroot.org Original-Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DnZjj8LcFRjt for ; Fri, 30 Apr 2021 15:31:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1619789473; bh=Z9hUPd0Kf4eNMucCt/0Az1arGAQJV/F13I2fPpIg1sg=; h=From:To:Subject:In-Reply-To:References:Date; b=gDPcpmz+oo3lTNZwGUwIIyNx+o781n7/jlv/4A+wmaXmkpPKBGdiVw1JcEvrA4koh 3DTJ4pq+7Oi5Xfmj7V0i7FUvB2ntpQnytmTdGBzyRySZsRKRXACtxQMbROGmAFdt4R FckhgsVK6JX21/qURRJrPkFBGOJUeZPZvt+LqohOm7Uq0KOfgRi6uZOpoMejg0TrQd EbROM9TTzZzduynFPb8DkRdSMTYpjDmCl4UdD5GejoQY3a/eiGROS8RFdrD5RgEEi2 m6S4NtpsvTkXPfPMRhYY9/NQHavecqNwIwEjmIqQIwDwPQocszjX41ym/acV9RBvSr HlmGUW1qYDGng== In-Reply-To: Mail-Followup-To: help-gnu-emacs@gnu.org Received-SPF: pass client-ip=178.21.23.139; envelope-from=jorge+list@disroot.org; helo=knopi.disroot.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:129216 Archived-At: Hi all! Em [2021-04-22 qui 10:46:59-0400], Stefan Monnier escreveu: >> Is there a way to avoid these warnings? > > Yes: don't abuse `eval` ;-) Jean Louis, could you provide a little more detail on what are you using ~eval~ for? Some tasks accomplished by eval can be done more safely by other means. For example, if you just want symbol indirection, you can use ~symbol-value~ (there is also ~symbol-function~). If you want to apply a function object to a sequence of arguments, you can use ~apply~ or ~funcall~. I know little about Elisp; more experienced hackers may know about other mechanisms that avoid the need for ~eval~. Regards -- - "In Support of Richard Stallman" - I am Brazilian. I hope my English is correct and I welcome feedback. - Free Software Supporter: - If an email of mine arrives at your spam box, please notify me.