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: Thu, 16 Nov 2023 20:35:54 +0100 Message-ID: References: <445405AC-C0DA-4914-984E-B42671AB536D@gmail.com> <7C4E82A5-0F5A-4E04-B2BD-AD6DEC56A8C0@gmail.com> <2D8636AB-AB86-4FB5-BCCB-E10D0B9CD8C8@gmail.com> <7717747E-42EB-445A-8487-822C0E932465@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="40860"; 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 Thu Nov 16 20:37:25 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 1r3iB3-000AUe-0d for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 16 Nov 2023 20:37:25 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r3iAk-0004Hk-UX; Thu, 16 Nov 2023 14:37:06 -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 1r3iAh-0004HU-2b for bug-gnu-emacs@gnu.org; Thu, 16 Nov 2023 14:37:03 -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 1r3iAg-0002sn-Qq for bug-gnu-emacs@gnu.org; Thu, 16 Nov 2023 14:37:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r3iAg-0004KL-IU for bug-gnu-emacs@gnu.org; Thu, 16 Nov 2023 14:37: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: Thu, 16 Nov 2023 19:37: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.170016336516569 (code B ref 67008); Thu, 16 Nov 2023 19:37:02 +0000 Original-Received: (at 67008) by debbugs.gnu.org; 16 Nov 2023 19:36:05 +0000 Original-Received: from localhost ([127.0.0.1]:44649 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r3i9l-0004JB-9d for submit@debbugs.gnu.org; Thu, 16 Nov 2023 14:36:05 -0500 Original-Received: from mail-lf1-x130.google.com ([2a00:1450:4864:20::130]:56457) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r3i9h-0004IZ-TN for 67008@debbugs.gnu.org; Thu, 16 Nov 2023 14:36:04 -0500 Original-Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-507a55302e0so1849953e87.0 for <67008@debbugs.gnu.org>; Thu, 16 Nov 2023 11:36:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700163356; x=1700768156; 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=KASaw0Y4f/3so2WiMqCwQDlURw/RwywRkXSWYliWzW0=; b=Ppnr2NMN6DJ2l61qMXMrj8/ozgtT2KdYR7RW0gVsOTQuZbx68gNX40tf2uqgBylro7 /6QJfxPQKKr6wvTz1c0AKWcH9FHotsbrlezfYb+9vEzqD3Zz2fljxZxsI2mkmYgSCj34 V5y3/4o7Mqyy+v95f+sVNZ45LVK4lDVU9oqCz7gA9QieWZs2XhVmgws0QlR601bjD/Ok K55F+w6X1d7+kqhHwLRscgougRdRkrtcFu6tmeKCzINj3kR/6/fzPVrM4qWJURg/3ybO 0gLih2B2HSKWCUNu0bgkleuvOPVO+rewX/SxwS3PBH6q1Hr1+MB2G6LCmQ8tog4xgS0L BEWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700163356; x=1700768156; 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=KASaw0Y4f/3so2WiMqCwQDlURw/RwywRkXSWYliWzW0=; b=FFPyJCLp8ifKgKZW5uwgMkwnE7iYSkuMEetMHcA1JJheVGkG19K5gY7FAwsY3o+xsW 9AAFHV32DVEvHENM4JUjMByUKOc4b3QcA46rvpv5JsLpaWZxKxNrHK87tJVMCdbQDQ2/ TiHaJPpEdsEGC/GuCKc/4EJVV2RLGwO4bqpplogb3PKN/fFl1iRynT2nrIkuiFA1JD0v VXDCjOuB2F/ZgJupploB1r5HkiXtOFhMXUk500KJVtIcJ84rXSgz9HR3In617MjRjQYg uWTNQe/Q2m4SReUL3DHROFpsQrMy7u/n7nR9FzWka0q97XEAVgDOPGn5pPWGTKmyD6xQ wJKA== X-Gm-Message-State: AOJu0YwoeMxCaNfqgFfVk6kBUBAeUrO9DEKYxeD/8soEaNgICLoSTeeL ctW4a3rj0k6c2UEctFXmoaA= X-Google-Smtp-Source: AGHT+IGLgtzEYGWJxY6BEgjMwwf6Q+rTtylPKjjNsU4YTX6aym3dQJixHX0+GZd23gPQEn7cGJCgjg== X-Received: by 2002:ac2:4c4b:0:b0:506:8d2a:5653 with SMTP id o11-20020ac24c4b000000b005068d2a5653mr15667080lfk.47.1700163355753; Thu, 16 Nov 2023 11:35:55 -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 b22-20020a0565120b9600b0050a78566b1asm1824lfv.41.2023.11.16.11.35.54 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 Nov 2023 11:35:55 -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:274479 Archived-At: >> Yes, but `merge-ordered-lists` doesn't distinguish between vertical = and >> horizontal edges in any way, does it? >=20 > The text I wrote above says that it does (and I stand by it, and your > test cases additionally shows that it does), so I don't understand > the question. That's because I didn't articulate it very well but reading your = elaboration I think we are in non-violent agreement. > I'm not super happy with my phrasing, but I must say that really your > above paragraph I don't really know what it means either, so for me = it's > a wash. Would something like this serve as a start? The return value is uniquely determined by the following rules: * The return value is a list containing each input element exactly once. * The relative order of two elements in the return value is determined = by their relative order in the sublists, so that the input ((C D) (A B = C)) implies that C precedes D, A precedes B, and B precedes C. * If two elements are not ordered by the previous rule, they are ordered = by the sublists they first occur in. For example, in ((A B) (A C)), B = precedes C. ...except that I notice that the first rule is broken if a sublist = contains duplicates (which seems wrong), or if the default error = function (caar) is used. I'm not sure I understand if this is correct, or why: (A) (A) -> (A) (A A) -> (A A) (A) (A A) -> error