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: Why shouldn't we have a #if .... #else .... #endif construct in Emacs Lisp? Date: Tue, 29 Aug 2023 22:09:25 +0200 Message-ID: References: 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="20072"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Aug 29 22:15:04 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 1qb57A-000542-Aq for ged-emacs-devel@m.gmane-mx.org; Tue, 29 Aug 2023 22:15:04 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qb55s-0004dS-1D; Tue, 29 Aug 2023 16:13:44 -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 1qb51z-000482-8Q for emacs-devel@gnu.org; Tue, 29 Aug 2023 16:09:43 -0400 Original-Received: from mail-lf1-x12b.google.com ([2a00:1450:4864:20::12b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qb51x-0000nG-0W for emacs-devel@gnu.org; Tue, 29 Aug 2023 16:09:42 -0400 Original-Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-50098cc8967so7591182e87.1 for ; Tue, 29 Aug 2023 13:09:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693339778; x=1693944578; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=2xFOElRlIkgireepVuAZ8VXYEI2SxWgvk/EIEDWsHQI=; b=Cja5w3wpFlddmq+eMZXmOhYAhsWg4bKCaaYUef0rcvU0C3lVBmCJjjRW3nxST93ahr glNzNNbcTqyRroHIyZXjP8eaLfRUIwNl0cptUa85ZEsnB4MHkqr3dSl3dQPf9Jz0cnbG JO5dMlHqLdUgbdKnsYjujY3dERPxZ/6MweuaLrc6RdhbxeE4j0gWcP2/SDROyzNUXfYv KBy1UiOuruCwmZMSwUYTP57rCs1kPR9DhaoqRQP/L4v790Bb9Q7Ma5cc9VKAcuOAvCUY V1+dRvdgwY+cZ0ZpPdlWlxc2ECrHzgTZEMmRX0POUAfCeiEUTBQ31NSz+0uzbbXwW17V K6fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693339778; x=1693944578; 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=2xFOElRlIkgireepVuAZ8VXYEI2SxWgvk/EIEDWsHQI=; b=jHG8OAPkFuCG8fIbObaIEj95TWmqQUkgU3jmXl2ZrixXobtECcvbKO3rZnCGWo4c0u QnhpXv05zWC2SMwlBSGLH1X4WhXIXQ54I3dGdKx57TMTUQAzDhjk1dwcOE2nBsA7Ac+6 Q3vhbG5e/akXFEFTHBwSndmfA9XdZ0LDoV22ePDoDSU/nO5Iuu9m8C+LHNe5xeat5qmS DIdJEzF+v2S4XUsizD9EuUlzqG0RTKcB9FVNNJa5WvvPXgB88XyLdvK4FmRBCMh6lMBE 8QzcWfMPSVWBPOR0HUfkWsAA9fNuQVAlRs3DBYuQeD0oWhhkeEtrSGsVVx3h6IJGIBw0 oSDg== X-Gm-Message-State: AOJu0YwZS6xx52B89FT5i2pGcW1kBgbrT/tG0rqXpxf5ZWpfp87IS55f pY4gDwuyrjyy8EmN7iu3eTYeIb3etmLf+UNRh+c= X-Google-Smtp-Source: AGHT+IEI8+BZMEGgLUPYpGKJ37rbqWhdBrC1oO+DyhzhlZMspb7CGlovRSrqvwvwVT0toLdv1r6f2JRyDCzMSFw/tVI= X-Received: by 2002:a05:6512:34cb:b0:500:ba5d:e750 with SMTP id w11-20020a05651234cb00b00500ba5de750mr4257875lfr.52.1693339777861; Tue, 29 Aug 2023 13:09:37 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::12b; envelope-from=stefankangas@gmail.com; helo=mail-lf1-x12b.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:309511 Archived-At: Alan Mackenzie writes: > What do people think about this? I have two questions: 1. Would it be hard to make the byte-compiler not warn in the situation you describe? 2. Isn't something like this enough to silence the byte-compiler? (defalias 'foo-defadvice (if (< emacs-major-version 24) 'defadvice (lambda () (message "foo")))) (foo-defadvice)