From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Nikolay Kudryavtsev Newsgroups: gmane.emacs.bugs Subject: bug#74438: 29.1; global-mark-ring does not work as described Date: Thu, 21 Nov 2024 11:09:44 +0300 Message-ID: <37667f67-9c28-4543-a28a-c5d42878dbce@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5237"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird To: Sean McAfee , 74438@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 21 09:11:35 2024 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 1tE2Hn-0001EX-9C for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 21 Nov 2024 09:11:35 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tE2HU-0004fB-LH; Thu, 21 Nov 2024 03:11:16 -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 1tE2HR-0004em-RO for bug-gnu-emacs@gnu.org; Thu, 21 Nov 2024 03:11:14 -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 1tE2HG-00071o-DX for bug-gnu-emacs@gnu.org; Thu, 21 Nov 2024 03:11:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=In-Reply-To:References:MIME-Version:Date:From:To:Subject; bh=pc3PsfgdUya7q+ESKlmp9v7KMYoKxMgGSi1SMdCmc5I=; b=dRVrYLIHnpdrs3PJbKXSDCG7Ec/rCTT8K5NCfdt7BzLQm+cLf0IDtszjd80/KeTVew1nemoTadVdesdJNOV4EMX6Q6uBiPr7ppryCcBiPzt8KMz9/EwtgJ/V55C9erdjTxp3V6Cdh/b1wZYkU5X9Y8yBmia7fGvg11A+UJ/VtxMVJYBnJO7suvqlM7Egpv/YMis0qyhb3zFGNeNJAIuazT0pHg74apV9luxZKOFA1ewZG49znnP5HFBGKGNZYW/47Pqp9IA7fSM4iE4eYz3K9kSvfOnIY5pMU5aDZ4BEHc5NIWbRQSkGlxdX+NVjVv7cUz8hnodDnf9IVnFOsupTZA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tE2HF-0004zO-VM for bug-gnu-emacs@gnu.org; Thu, 21 Nov 2024 03:11:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Nikolay Kudryavtsev Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 21 Nov 2024 08:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74438 X-GNU-PR-Package: emacs Original-Received: via spool by 74438-submit@debbugs.gnu.org id=B74438.173217665719167 (code B ref 74438); Thu, 21 Nov 2024 08:11:01 +0000 Original-Received: (at 74438) by debbugs.gnu.org; 21 Nov 2024 08:10:57 +0000 Original-Received: from localhost ([127.0.0.1]:49010 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tE2HB-0004z5-1O for submit@debbugs.gnu.org; Thu, 21 Nov 2024 03:10:57 -0500 Original-Received: from mail-lf1-f43.google.com ([209.85.167.43]:56489) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tE2H8-0004yr-SR for 74438@debbugs.gnu.org; Thu, 21 Nov 2024 03:10:55 -0500 Original-Received: by mail-lf1-f43.google.com with SMTP id 2adb3069b0e04-53b34ed38easo547599e87.0 for <74438@debbugs.gnu.org>; Thu, 21 Nov 2024 00:10:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1732176589; x=1732781389; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-to:content-language:references :to:subject:user-agent:mime-version:date:message-id:from:from:to:cc :subject:date:message-id:reply-to; bh=pc3PsfgdUya7q+ESKlmp9v7KMYoKxMgGSi1SMdCmc5I=; b=FwYsasJzn5gUy1EFPYvuld1neno1dDoCRhc9QE+XhGqfQDjJPiQ/llSuoOrosMGeXq oIaF/YLR6nNtD6HfHYri31ULS/1d60vRZRuF62xQ96ngWOkkVnHPuunDzXJVB/5qld2l NxGrozQIh7yOElfWvy2TBeMb0k/nJu6g8T3XEyP2/hHjW4V1vtpCQ9DP0d1yfQxADVA+ LPOsqPo/l4ROKXsPmuyPqUHFus8p13ntL4nZ8GFyonVy/qsmjvCPRYfRAhexNzAVilDa S6Iuw/8eeOv8NRLo2R6WtNgjMqTcgIj76f2wU/iVkaDShAvy2PTriicCmvvn2/1BeZpi 1MuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732176589; x=1732781389; h=content-transfer-encoding:in-reply-to:content-language:references :to:subject:user-agent:mime-version:date:message-id:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=pc3PsfgdUya7q+ESKlmp9v7KMYoKxMgGSi1SMdCmc5I=; b=WHdP6Ezj4fxnF6ZeAVAxwutzOKyVJ3yJtou7NSsyuAZJPKGlPVQgu0xGDpa7k2/T9B S05c0uJx/Y8yNcWk0fx7qy3g9FA0G7lck3bnO0QS93MZpbebEUeOmwexqTxrJ15tyKIe CjYFhbZ6aDF2jm7u/Xf0bCmcjJBgoGRT+yNeuHW8i/qXHyy0t+bEsaAmA9Hgt1p+USZz 9+lnp69aYTg7w6U9cb8TOzzEjtrvWARNAgowknKneSQglcqjalzRttSHBSIbIi5zohce mXVmCmCks2F1rZJlijUZ/J/H7KrjEsYpojnJ8vAPzzrNs8VnkNbkGg+QIYsQ7gn2B13h 9U9A== X-Forwarded-Encrypted: i=1; AJvYcCWHN+9F+h/DdubEed8u5i2q1Lm1bo3MYfrebtWduTEWKAIX9MNFguNXv9UP7Zlu80avxDXggg==@debbugs.gnu.org X-Gm-Message-State: AOJu0YxejjpsYdF+37PWtck34/xQE1DrvK45/ESnvrmeDZwstBboxCXA 3xUczaoLvlnxDgxBsrO21iG1h+WJJ+KUKyfv/NZEkYFMpgvrYT5ZA7szHHvt X-Gm-Gg: ASbGncvJ5DsQJuEh4/WHNfbwLItz1XzpfYkgqqemcA5dE+c4/BYF8/rqiMr+13qoViB XeHo1j5WPFbnKP1mq5p52jpLEndaFxfGC1q+DVE7gFDIm30uswCsPz0DcpTxSStcHg/v6soxQG7 vua9CGVs5XnLNikAnU+2LJbOk1wwWAp6wNLv8NomIPIpeoSEPQ9J2u/ahx7gqMjA5Yde3h1jtqm ty9rVuwaC8/hsqtuRffB0QoVIFLnrGkegDUsuRq/V/70X3+GardLQzbAwplGM8E/14z2oeTYnXY DyaTPpS6i3z7YSqg9pqD/qBXRtEBCLF3H2KzqrM= X-Google-Smtp-Source: AGHT+IGMiV/RTT9PrJkxSGW4OyqNlz3mYL6FkO5FKUBJeU7VCLC1uV6yyr0XSQeE+mMZl53AU5mVQQ== X-Received: by 2002:a05:6512:3ca0:b0:53d:cb91:2f3e with SMTP id 2adb3069b0e04-53dcb91300dmr512161e87.22.1732176588781; Thu, 21 Nov 2024 00:09:48 -0800 (PST) Original-Received: from ?IPV6:2a02:2168:b20b:5100:78:cc43:f3d3:7a9b? ([2a02:2168:b20b:5100:78:cc43:f3d3:7a9b]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-53dce766a79sm80110e87.60.2024.11.21.00.09.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 21 Nov 2024 00:09:46 -0800 (PST) X-Google-Original-From: Nikolay Kudryavtsev Content-Language: ru, en-US In-Reply-To: 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:295716 Archived-At: Using the mark ring for programming purposes is generally seen as a faux pas, see the docstrings for push-mark and set-mark, which explicitly warn against this. If you still insist, then nothing is really stopping you from short circuiting this behavior by say doing a forward-char, set-mark, backward-char, set-mark again. But I also don't understand why do you need buffer 1 mark to be at the front of the ring, because it's gonna reliably be as the second element in it anyway.