From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Newsgroups: gmane.emacs.bugs Subject: bug#67008: 30.0.50; Multiple major mode parents Date: Mon, 13 Nov 2023 13:45:59 +0100 Message-ID: <7C4E82A5-0F5A-4E04-B2BD-AD6DEC56A8C0@gmail.com> References: <445405AC-C0DA-4914-984E-B42671AB536D@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.15\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15567"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 67008@debbugs.gnu.org, Ikumi Keita , Yuan Fu , Dmitry Gutov To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 13 13:46:51 2023 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 1r2WL5-0003tx-4W for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 13 Nov 2023 13:46:51 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r2WKm-0007Ex-OF; Mon, 13 Nov 2023 07:46:32 -0500 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 1r2WKb-0007CM-HM for bug-gnu-emacs@gnu.org; Mon, 13 Nov 2023 07:46:25 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r2WKa-000417-B0 for bug-gnu-emacs@gnu.org; Mon, 13 Nov 2023 07:46:21 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r2WLF-0003Uh-Qp for bug-gnu-emacs@gnu.org; Mon, 13 Nov 2023 07:47:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 13 Nov 2023 12:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67008 X-GNU-PR-Package: emacs Original-Received: via spool by 67008-submit@debbugs.gnu.org id=B67008.169987961713418 (code B ref 67008); Mon, 13 Nov 2023 12:47:01 +0000 Original-Received: (at 67008) by debbugs.gnu.org; 13 Nov 2023 12:46:57 +0000 Original-Received: from localhost ([127.0.0.1]:57640 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r2WL7-0003UI-3t for submit@debbugs.gnu.org; Mon, 13 Nov 2023 07:46:56 -0500 Original-Received: from mail-lf1-x12a.google.com ([2a00:1450:4864:20::12a]:54783) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r2WL4-0003Tx-Gs for 67008@debbugs.gnu.org; Mon, 13 Nov 2023 07:46:51 -0500 Original-Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-507a29c7eefso6043114e87.1 for <67008@debbugs.gnu.org>; Mon, 13 Nov 2023 04:46:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699879562; x=1700484362; darn=debbugs.gnu.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:sender:from:to:cc:subject :date:message-id:reply-to; bh=JK204tibekASybXQh9YneLtRqT8cFhfw2gbp0dkks1c=; b=g34oITJQPu8U9jxDK+zCiJ3bSbUbSIiQc3zJZNUmKOstEUe2kfFNwunvNW7DNsIi6V PQ5VQY692Jn3DXk+KtRxfkxVkOEv7ZDr38Rao61V+FgcUqPCeMTp48+bi9jIXvgbRxm1 GVMMX35dE2hOkmo6aW/nJ5lp3sBKZBX6U0OmwbtCj0yzk1R9Yqp+HuOFTh+ixjXrAdSh +FXlE4aKveyaslUAZkCPDuafK7c3FkS/3RK2whnX6BJVTYPSyDqfYJ25+0y55t21s6Gi Fq7JAGmVqTwo4F7UVia67wUftldcSbiQAw5CmNdPbT5P8uKG0lkSP5PWmqOdxlZSt3dE GYXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699879562; x=1700484362; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:sender:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=JK204tibekASybXQh9YneLtRqT8cFhfw2gbp0dkks1c=; b=JwHwZ80ZM1OLLMsTTEvj5Oot0BbtA7MvPcxIbbQkr8o0CCqKaigL4yzKZuj8BceJJd pTXg1v1Lg3u6yLG6k9wdrjRLy7ZAi0RAgctcaqxL3oqi2A5kV6fB0sX81y/7H58sk3pE 3lgUfcczODd7oEaH3EYzpGqLjMitxGQR4yXfyG4UDKlg7X0HSn01xn2up9CL2ccXFI59 2mjuvmCtjYgglwZe5E3GaYYDlgS2tZLsNxzf6yscGIAkl5pLb4fCjeLw4V0hTN2bTIxh H3ApYQVeEyHgknnQDkzdAw1sImR2wAsb8a4lzGsjQ9J7re+w46lpvX85w1dj60aSB3aa rtEA== X-Gm-Message-State: AOJu0YxuVloMCDepSI8MJ8STRfDgaNS/Nq3MdS3Mq6vqX4fbKU1DdJnM KkOkqv6t6pJBvVnWptOpI8k= X-Google-Smtp-Source: AGHT+IFC7UCOp5VVim9aY/jxznlC4JXHgv222x9kNug7vSDsiJckVs1EnMa5BAAW+VzSUOnMY0nWLA== X-Received: by 2002:a19:f807:0:b0:509:43ec:dd4c with SMTP id a7-20020a19f807000000b0050943ecdd4cmr4203790lff.3.1699879561785; Mon, 13 Nov 2023 04:46:01 -0800 (PST) Original-Received: from smtpclient.apple (c188-150-165-235.bredband.tele2.se. [188.150.165.235]) by smtp.gmail.com with ESMTPSA id c10-20020a056512104a00b005092e621916sm951449lfb.222.2023.11.13.04.46.00 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 Nov 2023 04:46:00 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.3654.120.0.1.15) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:274252 Archived-At: 12 nov. 2023 kl. 17.41 skrev Stefan Monnier : > I improved the docstring to try and clarify. Thank you, but the new text, > +The order of the (sub)lists determines the final order in those cases = where > +the order within the sublists does not impose a unique choice. still doesn't explain how the sublist order affects the choice of = linearisation. Since I'm here: > (while (cdr (setq lists (delq nil lists))) When this loop is entered the first time, `lists` still holds the = argument which probably shouldn't be mutated even if it's for removing = empty lists inside. (In later iterations it seems to be a copy.) +(ert-deftest subt-tests--merge-ordered-lists () ^ r + (should (equal (merge-ordered-lists + '((B A) (C A) (D B) (E D C))) + '(E D B C A))) + (should (equal (merge-ordered-lists + '((E D C) (B A) (C A) (D B))) + '(E D C B A))) + (should-error (merge-ordered-lists + '((E C D) (B A) (A C) (D B)) + (lambda (_) (error "cycle"))))) All calls should error on cycles, not just the one that actually = contains one. Maybe the default value for the `error-function` argument should be one = that raises an error, so that callers need to specify something = explicitly if they want a different behaviour?