From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Augusto Stoffel Newsgroups: gmane.emacs.bugs Subject: bug#57502: 29.0.50; Issue with `or' clause of buffer-match-p Date: Wed, 31 Aug 2022 18:22:15 +0200 Message-ID: <87k06o4c3s.fsf@gmail.com> References: <87o7w0fwnt.fsf@gmail.com> <87ilm87f78.fsf@posteo.net> <878rn47f21.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39099"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 57502@debbugs.gnu.org To: Philip Kaludercic Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 31 18:27:37 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1oTQYy-000A0F-TR for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 31 Aug 2022 18:27:36 +0200 Original-Received: from localhost ([::1]:43214 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oTQYu-00011F-Ev for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 31 Aug 2022 12:27:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39720) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTQUY-0003Gu-Ul for bug-gnu-emacs@gnu.org; Wed, 31 Aug 2022 12:23:07 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50566) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oTQUY-0000jV-Ib for bug-gnu-emacs@gnu.org; Wed, 31 Aug 2022 12:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oTQUY-0001Ff-DZ for bug-gnu-emacs@gnu.org; Wed, 31 Aug 2022 12:23:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Augusto Stoffel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 31 Aug 2022 16:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57502 X-GNU-PR-Package: emacs Original-Received: via spool by 57502-submit@debbugs.gnu.org id=B57502.16619629464757 (code B ref 57502); Wed, 31 Aug 2022 16:23:02 +0000 Original-Received: (at 57502) by debbugs.gnu.org; 31 Aug 2022 16:22:26 +0000 Original-Received: from localhost ([127.0.0.1]:40315 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oTQTy-0001Ef-7U for submit@debbugs.gnu.org; Wed, 31 Aug 2022 12:22:26 -0400 Original-Received: from mail-ed1-f45.google.com ([209.85.208.45]:33769) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oTQTw-0001EQ-39 for 57502@debbugs.gnu.org; Wed, 31 Aug 2022 12:22:24 -0400 Original-Received: by mail-ed1-f45.google.com with SMTP id w2so3587120edc.0 for <57502@debbugs.gnu.org>; Wed, 31 Aug 2022 09:22:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc; bh=D+T8xwIWYqtiDMsXihCYAuXg7d4ORFP5ARNvtp5n368=; b=JPetnjbhjaK1rXqkFCIpJjA6MpwJShfVE1vF61DHFIPhYJp/vfbGBxi5HpxRXwfojk 75M2rGzYtRDBXnpjQ+xumD8ER1fK7sYpk6tSKNC9d2640euVB20YAgbrMssu7SbQwQce YHHLwulkaXMuyxlDCuQstpoGelAAAfLE90ItQhOh4fR/yqAHo9cCgZeMMd2cEqTxunTO XbIqz4b5uPuXbAM7noI9KZRsCAztJkwO2puF/lHDSMfWs7s2bsP67Do8DUHFNi3jKsVA 1vMv70oI5UrwTRnKkLwXqVN0dCGrAXi/bX3/ZnkOUeneUGRGwBFSPixIz0eYq4pV3Quk 9P0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc; bh=D+T8xwIWYqtiDMsXihCYAuXg7d4ORFP5ARNvtp5n368=; b=E24P9f0D+i0M4gVn2q7SwJwRGRnZWmbKEVX0xuK+Hz036+Ei77OaonMw9s92KDIIK9 in+Fgg0VP64NwOcpjYAEphhze16IoWOMRZORnOr4/Diy+t0O/S7a02a3inOSIirf9n1/ 20anNuVlQ2SZQBGJOUOCHy8/YrgIZ6aUpRNiy8kwgo/4Q5o828cUOIn0VSEfwsT5pG7p /oQjxqMjRHzR23YoTzbzODBE1Jp+Uuf4PxqhalBA8VC3jICjhpXKBc+LFEGGc1DJfr6q fiX0YJEmt4+4tjRpGUg8j6fk8TnRj+sO8xBnfkURAVPj1m01oM7FtOtE/A82740NDHWd AX6g== X-Gm-Message-State: ACgBeo1IAeNjKtzZVgb7Lac50OxKvZs9USj40jP3hhjN3ZscnRJIyspc EwBEizEttDB7XmeqD0ZMgmDZxvee8Bg= X-Google-Smtp-Source: AA6agR53qeThGYOMpe9oTVkLYIjU8sRDh3SxNgFJ8EWtqJ0oX5X6lIfwDsRpd1Y6bgOpVj+dSTghRw== X-Received: by 2002:a05:6402:2549:b0:448:6db8:9d83 with SMTP id l9-20020a056402254900b004486db89d83mr12937628edb.194.1661962937902; Wed, 31 Aug 2022 09:22:17 -0700 (PDT) Original-Received: from ars3 ([2a02:8109:8ac0:56d0::157b]) by smtp.gmail.com with ESMTPSA id c2-20020a17090618a200b0073d71b7527asm7195077ejf.151.2022.08.31.09.22.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Aug 2022 09:22:16 -0700 (PDT) In-Reply-To: <878rn47f21.fsf@posteo.net> (Philip Kaludercic's message of "Wed, 31 Aug 2022 12:50:14 +0000") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:241207 Archived-At: On Wed, 31 Aug 2022 at 12:50, Philip Kaludercic wrote: > That might look something like this: > [...] > + (`(derived-mode . ,mode) > + (provided-mode-derived-p > + (buffer-local-value 'major-mode buffer) > + mode)) On a tangent, wouldn't it be nice to allow a list of modes? That is, > + (`(derived-mode . ,modes) > + (apply #'provided-mode-derived-p > + (buffer-local-value 'major-mode buffer) > + modes)) (with some extra care to keep backwards compatibility).