From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.devel Subject: Re: Howto: Silence defadvice is an obsolete macro warning Date: Thu, 24 Aug 2023 13:48:58 +0200 Message-ID: References: <25830.49485.745670.972510@google.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21436"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: "T.V Raman" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Aug 24 13:49:56 2023 Return-path: Envelope-to: ged-emacs-devel@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 1qZ8qa-0005Pk-Gf for ged-emacs-devel@m.gmane-mx.org; Thu, 24 Aug 2023 13:49:56 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qZ8pw-00066H-5Y; Thu, 24 Aug 2023 07:49:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qZ8pu-000667-HD for emacs-devel@gnu.org; Thu, 24 Aug 2023 07:49:14 -0400 Original-Received: from mail-ed1-x52c.google.com ([2a00:1450:4864:20::52c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qZ8ps-0000jL-Fv for emacs-devel@gnu.org; Thu, 24 Aug 2023 07:49:14 -0400 Original-Received: by mail-ed1-x52c.google.com with SMTP id 4fb4d7f45d1cf-523bf06f7f8so8223304a12.1 for ; Thu, 24 Aug 2023 04:49:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692877750; x=1693482550; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=QloNoHZHntWlXsSp17RSjNfPlB5gqbG7n9PpC3BpNFA=; b=GvuwRJw8uTZBpZEdZY2Jkx7uf8xFu5s/DsmePanYAR+wlTRZ5FrxdNUUkguZhsQJ1V LNPNzFxwkRuIjP71F2iRpusvfewiUX0YZ8jYF1Rml4hATcA2R7jRG0Bb7LC3vNqFAO0H fy9AkhjHnZ4g3BRoXP5MWw3jAuiWHKWYR7nb4mAWNRw5AtquNyiPvi7eycsyz0u2Qmvs 1t4UcMDrAOOBy+rhK5oLgP9337OhYjiInPo8HM6h8l76WhxgHJX+9xwky70s6pM1DdGK xp+ThXdxRfIpCR0jJ1sUotKuGE+5OGYSWFMpjBSeZ177YwBytjNWxsQE7vjWj9Jxj0MQ KtlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692877750; x=1693482550; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=QloNoHZHntWlXsSp17RSjNfPlB5gqbG7n9PpC3BpNFA=; b=ac9oawEozoKnkPQlgHu/O4BzedqqYw6ElO42xneMZBO7jYIN/t2eG0oTNhEjZoQZw4 dciPxXpKsC3rgocox7BdJuwGYVE8ggZ3s65jgvDhbHqnv8CqYtFXOCQpjU+eaNa1adus cdgyfJIqIgKMOkKgczeUqFVqR8cvIND7x8fC4o6Iu3sEV265JacfvPU3o5uPOuLzJIoT h4rXuj+2JemicTPl2Kvdjwjy3PtR0fLH3s1PrPcCPsIP0mn9bG5nPsZGhlpnZeVE+C8r qkg8v+DHMtYIKXy7rzLraybpW+iJ8M/QU12bKgpJXKeKzmsiNuiHleQeRE1Ow1lkZ5+7 2qVA== X-Gm-Message-State: AOJu0Yxb4TcvbOz+YcaxI96r8FkB/DAKM183vcR4Zk1ZoY8KP0aZDd5S 8LPgTp147kjBjFcsTk/Nl7h/D2N7lrziBkLH74uwlsx0T3M= X-Google-Smtp-Source: AGHT+IHp7FNeKKPweSAEBb1t9ua+nCBoarzunlxEvy8R1ySi4n+wjRzw0MDPQnT9YchfVnThLyFJ1jZ9eUQLqcjQWUA= X-Received: by 2002:a05:6402:1817:b0:522:ca7c:df78 with SMTP id g23-20020a056402181700b00522ca7cdf78mr11523583edy.0.1692877749471; Thu, 24 Aug 2023 04:49:09 -0700 (PDT) In-Reply-To: <25830.49485.745670.972510@google.com> Received-SPF: pass client-ip=2a00:1450:4864:20::52c; envelope-from=stefankangas@gmail.com; helo=mail-ed1-x52c.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:309162 Archived-At: T.V Raman writes: > How do I turn off /silence this warning for the present? I don't necessarily recommend it, but if you really want to you could use: (put 'defadvice 'byte-obsolete-info nil) > Also, what's the rationale behind this warning; asking because I have > a lot of code using defadvice and migrating to the new define-advice > or other alternatives will take a lot of work I believe the rationale is explained in `(elisp) Porting Old Advice', and discussions in the mailing list archive.