From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Basil L. Contovounesios" Newsgroups: gmane.emacs.devel Subject: Re: Smarter M-x that filters on major-mode Date: Sun, 14 Feb 2021 18:44:22 +0000 Message-ID: <875z2usd4p.fsf@tcd.ie> References: <87pn16mehu.fsf@gnus.jao.io> <87o8gpvdfd.fsf@gnus.org> <87a6s9mf87.fsf@gnus.jao.io> <87o8goryuj.fsf@gnus.org> <87y2fqepza.fsf_-_@gnus.org> <87pn12u3x8.fsf@tcd.ie> <87h7meenj0.fsf@gnus.org> <83eehibn97.fsf@gnu.org> <87zh06bmn2.fsf@gnus.org> <87czx2sf75.fsf@tcd.ie> <87eehibk93.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40770"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: acm@muc.de, Eli Zaretskii , Stefan Kangas , emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Feb 14 20:16:22 2021 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 1lBMsY-000ATj-Ej for ged-emacs-devel@m.gmane-mx.org; Sun, 14 Feb 2021 20:16:22 +0100 Original-Received: from localhost ([::1]:35630 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lBMsX-0006IM-Cn for ged-emacs-devel@m.gmane-mx.org; Sun, 14 Feb 2021 14:16:21 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42914) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lBMNh-0003FU-C6 for emacs-devel@gnu.org; Sun, 14 Feb 2021 13:44:29 -0500 Original-Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]:38499) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lBMNe-0004av-CA for emacs-devel@gnu.org; Sun, 14 Feb 2021 13:44:29 -0500 Original-Received: by mail-wr1-x42e.google.com with SMTP id b3so6240534wrj.5 for ; Sun, 14 Feb 2021 10:44:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd.ie; s=google21; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=MxriZ68AXiXwM6vl6eSDBWGaHsDUv5VnIqo/QGFgUzI=; b=HkTGbWPWcpni5KVjGfFEmh5JcTjUiVmCsJ2N8YJVgG1zU2dkMdIRfH2iCIHXYOWZmZ sfZzzBRIrcI7Tsdaor4290nOH833dko2EPjZdVgZCSgtBkCQvD2JJ2XLAIWkt7ivsMK7 Jd4Jird3SxKsAYutrDOog6LZJ5aqlcBIwK0UreDzXRSCRcqqly97w3x320ElmRHsnQCa O8VyP2lo0cHRaC0TFGcs0mYJKURAfzByOYp8mNuBIoP8BanzyCTm+785hzUMJb7afvNx kfk6tME9+po1W4EdPmZ30b3nMwh8WYptDYWB8FdE7fxheJRvHJWanQFbsTbOtq4JCT57 XX7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=MxriZ68AXiXwM6vl6eSDBWGaHsDUv5VnIqo/QGFgUzI=; b=byDfwVpO/RY8v8Wt3o+9G7ahHyxQVSpu70n6xfwlZeOC7lS8P2hkPHuccN3DoVfQ1n vACRIC8ewqA2N3AktGUQ5jEHm2M78kGDnsjqGFIrQ2MmNf9OnSd+15QxH03IXGlTkKS8 KZhlOnNd3e3fKp2adNsyL2+1kQcoaI6VHYpAhERzzrCtdvB86E2gZk9tTWtwqIQsZsGu nE4ZmJXpVevORASXn/bgi0QFic/bU+jYVxsMQ+7TGg2ShxAB5/L0pKCKElHHR86LuSPG Zx4+gFn8xKrXRn+rx1BErIwkWaW7PzAxxI+d1hlhSe9GAcErl45zuKkw+d9l3H3Zjufv 50Hg== X-Gm-Message-State: AOAM530h7i5qAo4uk3Xxp32L3uvZdmlYL8tF+50H6Bm7vp4hMXO+DWtx 7hVF5Zdd8Z8jscg46GQRrOXHig== X-Google-Smtp-Source: ABdhPJwA5fbusy4etnhKzEl3iA9l47AUu90kiJ1W1XIZnMOrswUce3UeMOKuQScXvzXA40L3JY+N2g== X-Received: by 2002:a5d:6448:: with SMTP id d8mr15085335wrw.401.1613328264005; Sun, 14 Feb 2021 10:44:24 -0800 (PST) Original-Received: from localhost ([2a02:8084:20e2:c380:d15:339e:aa10:60f1]) by smtp.gmail.com with ESMTPSA id p1sm19796573wru.86.2021.02.14.10.44.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Feb 2021 10:44:23 -0800 (PST) In-Reply-To: <87eehibk93.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 14 Feb 2021 19:02:32 +0100") Received-SPF: none client-ip=2a00:1450:4864:20::42e; envelope-from=contovob@tcd.ie; helo=mail-wr1-x42e.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.devel:264764 Archived-At: Lars Ingebrigtsen writes: > "Basil L. Contovounesios" writes: > >> FWIW, my vote's for something along those lines, as it's far less >> intrusive, less controversial, more flexible, and more compatible. > > Like I said, I don't see why. The .el files aren't compatible, so why > should the .elc files be? > > Just like a lexically-bound .elc file doesn't work totally in older > Emacsen, neither does a lexically-bound .el file. It's an analogous > situation. Yes, but a lexical-binding cookie makes no difference in Emacs 23, whereas (interactive nil foo-mode) would be an error. Hence my vote for just the (declare (modes ...)) and/or symbol property approach. -- Basil