From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Robert Weiner Newsgroups: gmane.emacs.devel Subject: Re: Emacs 25.0.04: Feature Request: Make called-interactively-p's argument optional Date: Wed, 29 Jun 2016 17:48:20 -0400 Message-ID: References: Reply-To: rswgnu@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1467237025 4429 80.91.229.3 (29 Jun 2016 21:50:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 29 Jun 2016 21:50:25 +0000 (UTC) Cc: Richard Stallman , emacs-devel To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 29 23:50:11 2016 Return-path: Envelope-to: ged-emacs-devel@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 1bINMz-0007ae-SG for ged-emacs-devel@m.gmane.org; Wed, 29 Jun 2016 23:50:06 +0200 Original-Received: from localhost ([::1]:45909 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bINMz-0006o0-56 for ged-emacs-devel@m.gmane.org; Wed, 29 Jun 2016 17:50:05 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33003) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bINLx-0006lP-UG for emacs-devel@gnu.org; Wed, 29 Jun 2016 17:49:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bINLt-00077q-Qd for emacs-devel@gnu.org; Wed, 29 Jun 2016 17:49:00 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:56040) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bINLt-00077m-NW for emacs-devel@gnu.org; Wed, 29 Jun 2016 17:48:57 -0400 Original-Received: from mail-ob0-f173.google.com ([209.85.214.173]:34344) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bINLm-00022Z-AQ; Wed, 29 Jun 2016 17:48:50 -0400 Original-Received: by mail-ob0-f173.google.com with SMTP id ru5so44820522obc.1; Wed, 29 Jun 2016 14:48:50 -0700 (PDT) X-Gm-Message-State: ALyK8tJmkDdQk6Sp+PFDVwSbzIy9G19l3yG9GSCn54YkYBeOSk3c7z/OBG3OUHcydIvs0gM7FojPbf1xwGOCdw== X-Received: by 10.157.6.3 with SMTP id 3mr7245185otn.143.1467236929512; Wed, 29 Jun 2016 14:48:49 -0700 (PDT) Original-Received: by 10.202.212.143 with HTTP; Wed, 29 Jun 2016 14:48:20 -0700 (PDT) In-Reply-To: X-Gmail-Original-Message-ID: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:204956 Archived-At: On Wed, Jun 29, 2016 at 5:39 PM, Robert Weiner wrote: > would/did but the byte-compiler keeps telling me it is deprecated > and I don't want to see that for this particular function. > Is there a way to turn off such errors for particular functions? I found the documentation on how to do this: byte-compile-warnings is a variable defined in =E2=80=98bytecomp.el.gz=E2= =80=99. Its value is t If the list begins with =E2=80=98not=E2=80=99, then the remaining elements = specify warnings to suppress. For example, (not mapcar) will suppress warnings about mapcar. So I can suppress the warnings locally and have nice looking code but all installers of my packages will still have to look at the byte compile warnings then. I wonder if this could be set within the *-pkg.el file for a package so that it applies to all users too. Or I guess I could redefine called-interactively-p to take an optional parameter inside my packages if John does not want to try that out given this discussion. Bob