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: Wed, 20 Nov 2024 13:18:00 +0300 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------YVxI84EZv4G7Id0GkmV0xLb9" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5927"; 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 Wed Nov 20 11:20:30 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 1tDhoz-0001Na-ML for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 20 Nov 2024 11:20:29 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tDhoa-0000DK-AK; Wed, 20 Nov 2024 05:20:04 -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 1tDhoY-0000Ci-CE for bug-gnu-emacs@gnu.org; Wed, 20 Nov 2024 05:20:02 -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 1tDhoY-0001Au-3Q for bug-gnu-emacs@gnu.org; Wed, 20 Nov 2024 05:20:02 -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=RPpgcuuxYpylU9Yf14HnedaYnNwoyiDD6AitAM+mB+s=; b=cVVNfBuQlb0dRA5X/0u3BEWXFGP+UU46Obmgk98n3YoqDgHm1TcAkH70nl7kO7Kzg/zjfaucYR8kTIysEfAK6oSSNz7x4Enzw0unvNtW4Xia2DsNpMQq4peSv3PiGSOwVarBEme4+eU11MG6fIcyO5jz6oK3TWz0L6Clkkrzegtv/3yOjFGD9tn4XjZclgOGqiFcsfdAvNb+GsNboDtovbLpqQS043htOmwuf/DEOsSiNf3sDZvQS5a7GM2oVTn2qqGpCrqw4gBvuz2pMy27h7tAUCdWF9TpO5UaAlDIz05P8tmKN9dCtlV3u8cP85QKQk0FJWxSosTcZQgFbuKx2g==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tDhoX-00043r-VH for bug-gnu-emacs@gnu.org; Wed, 20 Nov 2024 05:20: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: Wed, 20 Nov 2024 10:20: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.173209799115581 (code B ref 74438); Wed, 20 Nov 2024 10:20:01 +0000 Original-Received: (at 74438) by debbugs.gnu.org; 20 Nov 2024 10:19:51 +0000 Original-Received: from localhost ([127.0.0.1]:45427 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tDhoM-00043F-L3 for submit@debbugs.gnu.org; Wed, 20 Nov 2024 05:19:51 -0500 Original-Received: from mail-lf1-f48.google.com ([209.85.167.48]:45146) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tDhoK-000432-9y for 74438@debbugs.gnu.org; Wed, 20 Nov 2024 05:19:49 -0500 Original-Received: by mail-lf1-f48.google.com with SMTP id 2adb3069b0e04-539eb97f26aso7023561e87.2 for <74438@debbugs.gnu.org>; Wed, 20 Nov 2024 02:19:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1732097922; x=1732702722; darn=debbugs.gnu.org; h=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=RPpgcuuxYpylU9Yf14HnedaYnNwoyiDD6AitAM+mB+s=; b=T9rsx0N3flcerd1+6OFhgVYMLbAIrHk+Q6qLeRzuV5rBBWFg7yfeYzdYCoQ518diDO iW7gaTQZqQXDbi33ZiOVHdciy2EMGPxgsCTzcgwj0Go9G2zX5fr3kUYU3aPKIfzX4NbQ n0oHkNfV4TMYe/933/SoXbh9G2HffKkwY0YhiODd+dFYoNU3uhbTMBnQwmTP3WHUM/el 5nl/Qyzbb7X3lgern8RPHaoUZmNWLMjF4H+qdk1Siuzq9DZ43ZBSikRGmLBv77PQCTCh FYY7gXQWeJTmM6RW4UoBFZmqHTw7Uiwnz07LAs/If2qwXl8vcfAqusVEcB4+Q3qTrBkm QhoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732097922; x=1732702722; h=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=RPpgcuuxYpylU9Yf14HnedaYnNwoyiDD6AitAM+mB+s=; b=tZ88eGoolRkI1tfArG4axVeq1FFJJonfrM9ssZlaKNYtG9hFsh7QEE8h5jhQXraaWa FEBYZti6uWx4i5Xp8HO6paV1RltEkWBl7dgg+Icy2cYbo2hbJlh3i+5mnC/0qHm2jTDO pZvowGsJm7PO3X1z8W9YPNjk9hlV7c3eCZg9yMyPSkskhssjXtXxnJF9Rw8Nf4kZuLZh hxLVlnzjja75hjwRVpUutO9ojhhO9yJu4MI7oTnfkS4GnFvl5UWpbEbGMnRGcscSPfSt vWR+YzUH0lewPPavDBvF0VnhAq58+TzUhBuboyORrZIFQCbe2gahQyURRKxXTRE9WOBs joEw== X-Forwarded-Encrypted: i=1; AJvYcCVNzHZreC0iQuZNa9zXrdcPj22xrzoCpH3J9Ol5Mz/kJGUDdZnpZvQzbBetGfNIQ2tpfGUK0Q==@debbugs.gnu.org X-Gm-Message-State: AOJu0YyG9kVMHBLfXUioBj3iCiUTKUzlaNKIiXN9/c2Mqua3VNgRxgWM BUKe800r0ChUf8Gk++V8ETrDeL/QrB+V3o4vYrY9gg98Ao3ZobFj X-Google-Smtp-Source: AGHT+IGdiqq7rwAhcuyaTqrEENdQWnonC+4CLmp36hH4Us7ubPSsQM9yd0VjRNSrkBuiFcv6cqcTKQ== X-Received: by 2002:a05:6512:2316:b0:53d:a264:f25a with SMTP id 2adb3069b0e04-53dc1373e8bmr895198e87.47.1732097921847; Wed, 20 Nov 2024 02:18:41 -0800 (PST) Original-Received: from [192.168.199.2] (broadband-5-228-115-253.ip.moscow.rt.ru. [5.228.115.253]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-53dbd3fbe4dsm579892e87.63.2024.11.20.02.18.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 20 Nov 2024 02:18:41 -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:295673 Archived-At: This is a multi-part message in MIME format. --------------YVxI84EZv4G7Id0GkmV0xLb9 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Emacs won't allow you to set multiple marks in the same position, it's just going to activate the current mark. Hence your reproduction recipe can be simplified to: 1. C-x C-f foo 2. C-SPC => Mark set 3. C-SPC => Mark deactivated 4. C-SPC => Mark activated 5. C-SPC => Mark deactivated 6. C-SPC => Mark activated See how you're not getting "Mark set" any time after the first message? Maybe a couple of sentences should be added to the manual regarding this behavior, because mark ring is often a source of confusion for the new users. Also note that the manual recommends you deactivate the mark before trying to jump to it: https://www.gnu.org/software/emacs/manual/html_node/emacs/Setting-Mark.html "Instead of setting the mark in order to operate on a region, you can also use it to remember a position in the buffer (by typing ‘C- C-’), and later jump back there (by typing ‘C-u C-’)." --------------YVxI84EZv4G7Id0GkmV0xLb9 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

Emacs won't allow you to set multiple marks in the same position, it's just going to activate the current mark. Hence your reproduction recipe can be simplified to:

  1. C-x C-f foo
  2. C-SPC => Mark set
  3. C-SPC => Mark deactivated
  4. C-SPC => Mark activated
  5. C-SPC => Mark deactivated
  6. C-SPC => Mark activated

See how you're not getting "Mark set" any time after the first message?

Maybe a couple of sentences should be added to the manual regarding this behavior, because mark ring is often a source of confusion for the new users.

Also note that the manual recommends you deactivate the mark before trying to jump to it:

https://www.gnu.org/software/emacs/manual/html_node/emacs/Setting-Mark.html

"Instead of setting the mark in order to operate on a region, you can also use it to remember a position in the buffer (by typing ‘C-<SPC> C-<SPC>’), and later jump back there (by typing ‘C-u C-<SPC>’)."

--------------YVxI84EZv4G7Id0GkmV0xLb9--