From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: npostavs@gmail.com Newsgroups: gmane.emacs.bugs Subject: bug#36139: [PATCH] Make better use of the switch op in cond forms Date: Mon, 10 Jun 2019 11:38:57 -0400 Message-ID: <85d0jlbgby.fsf@gmail.com> References: <68467ACF-DA49-4EBA-BA3B-7339DB22A456@acm.org> <395efab3-80f6-4ff0-b754-9f58dd4af695@default> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="159677"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.92 (windows-nt) Cc: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= <mattiase@acm.org>, 36139@debbugs.gnu.org, Stefan Monnier <monnier@iro.umontreal.ca> To: Drew Adams <drew.adams@oracle.com> Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 10 17:40:11 2019 Return-path: <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org> Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org>) id 1haMP3-000fOx-PA for geb-bug-gnu-emacs@m.gmane.org; Mon, 10 Jun 2019 17:40:09 +0200 Original-Received: from localhost ([::1]:47790 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org>) id 1haMP2-0005bV-8g for geb-bug-gnu-emacs@m.gmane.org; Mon, 10 Jun 2019 11:40:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52033) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1haMOx-0005bC-4y for bug-gnu-emacs@gnu.org; Mon, 10 Jun 2019 11:40:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1haMOw-0007Wh-7L for bug-gnu-emacs@gnu.org; Mon, 10 Jun 2019 11:40:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43841) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1haMOw-0007Wb-3c for bug-gnu-emacs@gnu.org; Mon, 10 Jun 2019 11:40:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1haMOv-0005RB-Um for bug-gnu-emacs@gnu.org; Mon, 10 Jun 2019 11:40:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: npostavs@gmail.com Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 10 Jun 2019 15:40:01 +0000 Resent-Message-ID: <handler.36139.B36139.156018115220829@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36139 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 36139-submit@debbugs.gnu.org id=B36139.156018115220829 (code B ref 36139); Mon, 10 Jun 2019 15:40:01 +0000 Original-Received: (at 36139) by debbugs.gnu.org; 10 Jun 2019 15:39:12 +0000 Original-Received: from localhost ([127.0.0.1]:57382 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1haMO8-0005Ps-0s for submit@debbugs.gnu.org; Mon, 10 Jun 2019 11:39:12 -0400 Original-Received: from mail-io1-f41.google.com ([209.85.166.41]:37290) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <npostavs@gmail.com>) id 1haMO0-0005P9-J1 for 36139@debbugs.gnu.org; Mon, 10 Jun 2019 11:39:09 -0400 Original-Received: by mail-io1-f41.google.com with SMTP id e5so7232186iok.4 for <36139@debbugs.gnu.org>; Mon, 10 Jun 2019 08:39:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=yOFdehyXtuAOyrTf36B3hLsIUj/CZ/ViWoDHGyhDkcQ=; b=SUw+4g/up7PIyf4PV2sTG9bU9csvG/E+1FZITMClHNRLxEoWNDqfRvePmud3xGysdI Gxxzo9qRX9633daQwxlBpJFaptC409lXLUZvht+T7tOy584LJSC+cM4WQWB4YdlSapLk E403Gdp8Rhc7JE1pVzVz64rXvvJjJsZRmVoQ5DkeSEb90bfeKZr7FGsiqnEuSpYsl0Jx bHcRXFgcMM8bQpdOPI6KSXK8BSyGwvix2Tpfe9i+LxoamSbaCfIEPC4FRVe0PgQGsO9t aub+NQAZeX2F7Rd2t0sHzG0Zjkt7YgqBk3u4lqUbE0OBFjTDWrA7X4P90RX3Yyc/emmi kjhQ== 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=yOFdehyXtuAOyrTf36B3hLsIUj/CZ/ViWoDHGyhDkcQ=; b=MpCgFowLflU4lElGKwoKVhvPvPkVxHY/aF9F27tqS0+iacl9WkE4s5mZLMZMj8cZiG QJh3VsnQ0Ib0tZ4u3bha0dmz5HsmVdQ2DUZwtBs5O74N2txM1xmdIJzes/Hh7KgXuLhE RSg/ZnaNW1nYgqzcWIPWRVWtjsZDP3OaZ41R585z6SCmQeFdLO/ukCj222KidSi8D2jf q4gFTgL01EXGwvaa5JjyT1CLzeaNQZuCXtArWkwcFqBQhh+Y0Ec/tSPoypMfVR5Ohcpd Ytbu6VDwbhWWNY7v82yF/3AJ9u0GWe2lCLbKINkx0/YddXThCgJwfdX2174ehvdFJD0Q O84g== X-Gm-Message-State: APjAAAU3IdjYvd6VereZa6z6DjW6S3wc4jMkxL5Sgw/IEIIBbXisXxjg bzXfBn6u+ydYaYNmULdcpvk= X-Google-Smtp-Source: APXvYqyBtEEs8BjvbW4dv8qLHKk2hZBJ9NRHBjwq59/HCgJcClcUVxU6YCl6f285VO+2QuatquY2zg== X-Received: by 2002:a05:6602:2104:: with SMTP id x4mr8747285iox.260.1560181138966; Mon, 10 Jun 2019 08:38:58 -0700 (PDT) Original-Received: from vhost2 (CPE001143542e1f-CMf81d0f809fa0.cpe.net.cable.rogers.com. [99.230.51.196]) by smtp.gmail.com with ESMTPSA id w23sm3881812ioa.51.2019.06.10.08.38.57 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 10 Jun 2019 08:38:58 -0700 (PDT) In-Reply-To: <395efab3-80f6-4ff0-b754-9f58dd4af695@default> (Drew Adams's message of "Sat, 8 Jun 2019 08:38:54 -0700 (PDT)") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-gnu-emacs>, <mailto:bug-gnu-emacs-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/bug-gnu-emacs> List-Post: <mailto:bug-gnu-emacs@gnu.org> List-Help: <mailto:bug-gnu-emacs-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-gnu-emacs>, <mailto:bug-gnu-emacs-request@gnu.org?subject=subscribe> Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org> Xref: news.gmane.org gmane.emacs.bugs:160330 Archived-At: <http://permalink.gmane.org/gmane.emacs.bugs/160330> Drew Adams <drew.adams@oracle.com> writes: > Or in a file that redefines `memq' or whatever using `defun' or similar? > > (But I guess the same problem exists in the current code, wrt `eq' etc.?) Redefining eq, equal, memq, or member with defun or advice is already unreliable because they are translated to byte codes. eql and memql are not, so this patchset (specifically, the last 2 patches, I think) would make the situation a bit worse for those functions, in that it would prevent defun/advice override for eql and memql from applying in cond forms.