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: Sun, 12 Nov 2023 14:37:15 +0100 Message-ID: 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="37603"; 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 Sun Nov 12 14:39:01 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 1r2Ag1-0009Zt-HV for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 12 Nov 2023 14:39:01 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r2AfP-0001CC-S1; Sun, 12 Nov 2023 08:38:23 -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 1r2AfN-0001Bh-Ie for bug-gnu-emacs@gnu.org; Sun, 12 Nov 2023 08:38:21 -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 1r2AfN-000789-AG for bug-gnu-emacs@gnu.org; Sun, 12 Nov 2023 08:38:21 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r2Ag2-0005n9-6O for bug-gnu-emacs@gnu.org; Sun, 12 Nov 2023 08:39:02 -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: Sun, 12 Nov 2023 13:39:02 +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.169979629122204 (code B ref 67008); Sun, 12 Nov 2023 13:39:02 +0000 Original-Received: (at 67008) by debbugs.gnu.org; 12 Nov 2023 13:38:11 +0000 Original-Received: from localhost ([127.0.0.1]:55212 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r2AfC-0005m3-NA for submit@debbugs.gnu.org; Sun, 12 Nov 2023 08:38:10 -0500 Original-Received: from mail-lf1-x134.google.com ([2a00:1450:4864:20::134]:47140) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r2Af7-0005lW-IQ for 67008@debbugs.gnu.org; Sun, 12 Nov 2023 08:38:09 -0500 Original-Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-5079f6efd64so4613117e87.2 for <67008@debbugs.gnu.org>; Sun, 12 Nov 2023 05:37:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699796238; x=1700401038; 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=lwaRoZ0PmwrFw+1ULqDTfVmG0a/QvUUB3YwkGq2F1lE=; b=nBTDdiutZzOeYnmakXbPELWe1dFFN7f8VsNbgjNtkjrRYbHKkR68sL6+e/CUsm2E7/ oCXGWmO0j8XGgO5fjbxJAsezUL1vvsXjS4GGOgEXy4HUd6zQ5sf5vsPWCvL1dGpbGIsX Fp0fPw+XKU3yd8d7hFhK+qxsq5WHaRWe4RXshDgLu0A+AgxEYdor+hB6afIMlk+u56zz 6u0VhzqXP26Y3KqI6aliX+4ea31fwgIcM92wAIRxcNtkAxh5RyXD0g/CSRgU/tH4+bsN AaFpm9cD/DlZB/qmTHFMz/MiZWuWMl7g+hEfmFefyCr2Oq2uIrsvkK/Q29BB34T9OOan ChyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699796238; x=1700401038; 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=lwaRoZ0PmwrFw+1ULqDTfVmG0a/QvUUB3YwkGq2F1lE=; b=ZoFE68KxEDKVInZcT+05WI3EWrIdGGgpKR7ssjpV9ybk5tlvekBCWm2/lYg724fkuG sE8uTsBrqhOmuM6E+7CU78aBTy/5Pko76+LGpToyHR+o3QrhcEabnQVOauyBIs+37dUn DMsElKvkmnfzJVMVS750OK6cXB5zVk2kLUjRieXpFIBcJwXL2iT+Y3NB/YntmxcC5RPh vxxFgacoPQZ/mK3quH+oSXVPZngKSNRi/OmxfIutzKjaNlxdU3vvHnLWItnugvLj9A49 A+ZBuWywEOUX/pX/P6we02NwAOnPPk/k7cTRXdhKE5Z8R+Vrkvfg6+O1YzALqIJzbTuE kygA== X-Gm-Message-State: AOJu0YzjP//0m289FSCQKoJM5kDuqjqSwgSTbh/6aTDifpuRmORdqpHj YLx6VjE0EO3p20dib4q9vfk= X-Google-Smtp-Source: AGHT+IFeNn9/vipz8/Nu2Ehii7YQhqxi2lGyf3aiu+dh4dSB3B3g1egfPARGSMecNB+GjQmupZXrAA== X-Received: by 2002:a05:6512:3ba2:b0:504:30eb:f2ac with SMTP id g34-20020a0565123ba200b0050430ebf2acmr3313496lfv.68.1699796237913; Sun, 12 Nov 2023 05:37:17 -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 j22-20020a056512109600b00502e01d1383sm626169lfg.27.2023.11.12.05.37.16 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 12 Nov 2023 05:37:16 -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:274201 Archived-At: 11 nov. 2023 kl. 21.13 skrev Stefan Monnier : > Having read a bit further, I'm now not sure that `merge-ordered-lists` > implements C3. I suspect it provides a useful primitive with which to > implement C3 but whether it gives the same result as C3 or not depends > on how we call it. Yes, the output seems very sensitive about the input order: (B A) (C A) (D B) (E D C) -> (E D B C A) (E D C) (B A) (C A) (D B) -> (E D C B A) Maybe that's obvious for someone who knows how to use it. It could probably be used as a general-purpose topo-sorter but it's not = a very efficient one (at least quadratic, possibly cubic). Oh, and the function probably shouldn't call delq on its input argument.