From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sean McAfee Newsgroups: gmane.emacs.bugs Subject: bug#74438: 29.1; global-mark-ring does not work as described Date: Fri, 22 Nov 2024 10:48:33 -0800 Message-ID: References: <37667f67-9c28-4543-a28a-c5d42878dbce@gmail.com> <64684e77-0a4d-41b7-b24d-842f6db2b151@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000192515062784d51a" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21998"; mail-complaints-to="usenet@ciao.gmane.io" To: 74438@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 22 19:50:27 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 1tEYja-0005bM-On for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 22 Nov 2024 19:50:27 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tEYjG-0001Kw-RN; Fri, 22 Nov 2024 13:50:07 -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 1tEYjE-0001Jn-7I for bug-gnu-emacs@gnu.org; Fri, 22 Nov 2024 13:50:04 -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 1tEYjC-0008Dt-Vh for bug-gnu-emacs@gnu.org; Fri, 22 Nov 2024 13:50:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:From:In-Reply-To:References:MIME-Version:To:Subject; bh=75qNN50t9fYaa0ydAV5ZEfk9rpnMdzjiGEy0vNimk0o=; b=WbdHrceNb6yYlz/uR/qyjU5eRpKOUNSJWh5rPFP9yiPZfOnYAXNSbo0NDterhQgyyV/Zapgp+X4GJ6aM/wCUDqb4Z/+qU5hIzi+qCi1bRQZKWWfAqY6+b2eusrGf8NH4+T04uut3p3lWp1x21M4VBI/NZ9Qqb5kp+fbcqwNIdpAsh3tsI/suKQLvvBztIJmoPgHlaXwzFJe0c0bYsgO1G6h3wF449lr7qfRvGA0a5swKHrE1UV89KhHrqwxj8mtyb3C0GgsjVhbYBQwVow4OBVgq5Ndb8PBqAeTQ7xQq/6NubzzjEknpJfZ7vVNkU7iL2foW0e94WO2a5pkP7QcjAQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tEYjC-0001t4-In for bug-gnu-emacs@gnu.org; Fri, 22 Nov 2024 13:50:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Sean McAfee Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 22 Nov 2024 18:50:02 +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.17323013897205 (code B ref 74438); Fri, 22 Nov 2024 18:50:02 +0000 Original-Received: (at 74438) by debbugs.gnu.org; 22 Nov 2024 18:49:49 +0000 Original-Received: from localhost ([127.0.0.1]:55480 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tEYiy-0001s8-Qg for submit@debbugs.gnu.org; Fri, 22 Nov 2024 13:49:49 -0500 Original-Received: from mail-yb1-f172.google.com ([209.85.219.172]:51588) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tEYiv-0001rx-Gm for 74438@debbugs.gnu.org; Fri, 22 Nov 2024 13:49:48 -0500 Original-Received: by mail-yb1-f172.google.com with SMTP id 3f1490d57ef6-e388186edbfso2359937276.3 for <74438@debbugs.gnu.org>; Fri, 22 Nov 2024 10:49:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1732301324; x=1732906124; darn=debbugs.gnu.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=75qNN50t9fYaa0ydAV5ZEfk9rpnMdzjiGEy0vNimk0o=; b=kBP33cpBtmWHISICo9SJPqJY19U6U2/26YQYDhZFE5FKbWx/k3Ffb/npvL+hAr8R5d AUPI6WUW20XQ5ZMMNS0c+wd3uB/KsgH2mlscwuCMnBZJ9P0dGRqtR/Fw7wzebZ2h6hRY o+1fdyX4qhbU7HcFTNfO8IQSUi8un/GwPnenXp84SFG4vaDlxfcyPEGTVBUy1G2h/tyO qt3K26HN021IZ0rOG97GTx+qRqevEM6aZ3HhU16PQxZMNl2rkBU0hzcxvChoazyyKv00 0eizubhl80RlV1sx21cfAAhRGhqrD+euUKAgxF1UvNeKFCrFEeHfFVU/jgOtAjE0lKKs mirQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732301324; x=1732906124; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=75qNN50t9fYaa0ydAV5ZEfk9rpnMdzjiGEy0vNimk0o=; b=qp0Z+QhuLAQtcY6NfTYexDIvmLD58dC+nHGSuX1dVDd0FkeSsZ0h1cwS0gSQy9kC0G aNrOv6uOtgydfIPJRHACHigQKl1YdDvaFD5dtIbnxPIfUbAdwYKKv37fkZXBRogMkQtx 2SYoAtsqGYWYdN6if37XjUPUF2wE7Jl4JYzS3NM2YtDLcJUOG/9OBgNFNtSpzM444ryP VqPrxio9qPW7qE4E7oHN09SPOClaOit//5Rpcwt3Pb3FXtiB5bKuLkDcT6LiD9j6u9JS u+qPDtGItQ0mAmA4BZPbDWYnckPLxMzCly+ZkX5AWKBmixA6x4zuUMSX3lrMFUZ0tMJS d/iA== X-Gm-Message-State: AOJu0YyfSNTGrLpeOYYgDCvn+PgqjhaX0euAaFqW88KZLFrisfa2j8nJ Xs+7kc5eQASpCAx/JI/SE55OCMAlaBeHh3KoFj7oGWre3f0y64h9BlvjpExklnaRu613kV5g6tL 65j4k3LrBwEp//3xE7RLvwTgdOlMCFJRb X-Gm-Gg: ASbGnctIXAI5jfF4E2BLffjRUObZGUl+vz0m2OQSoLzHPkXuVNeca89GHD8hCLBJYx3 eS58GxaW6JPMNoPK2XIHoQzlpoD8aZMGy21Tx7TJr4533c4PPfbuxQ4QkXV4yDACD X-Google-Smtp-Source: AGHT+IFvUngMb3LPWN+D2M4r2fi3AHYqPfZ7co8h9ciygyqOK7FlBpHNEi397kS/1CNULaBFrN7f+bfaar6aq5AU6Fc= X-Received: by 2002:a05:6902:2185:b0:e29:1b94:ef67 with SMTP id 3f1490d57ef6-e38f8afe983mr4025963276.19.1732301324622; Fri, 22 Nov 2024 10:48:44 -0800 (PST) In-Reply-To: <64684e77-0a4d-41b7-b24d-842f6db2b151@gmail.com> 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:295800 Archived-At: --000000000000192515062784d51a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Nov 22, 2024 at 4:39=E2=80=AFAM Nikolay Kudryavtsev < nikolay.kudryavtsev@gmail.com> wrote: > But be aware that you're never really safe if you're relying on the mark > ring here. If json-diff is an interactive command, nothing is stopping > the user from pushing another mark to the ring in between of specifying > file-a and file-b. Yes. The command is intended to be used after setting a mark at the start of a JSON sexp and moving to the start of a JSON sexp somewhere else, and doing nothing else in between. > Also, I don't know where did you get the last-global-mark thing, it's > not something that's in the Emacs 29 or 30's core. > Indeed not. It's from the workaround I described in this thread just yesterday. Welp, I'm done. I've invested more effort into this bug report than I ever thought would be necessary. It's the second time in a row that I've reported a bug to a free software project and had it devolve into me having to defend my use case. Fix the code or the docs, or don't. I'll just use my workaround. --000000000000192515062784d51a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Fri, Nov 22, 2024 at = 4:39=E2=80=AFAM Nikolay Kudryavtsev <nikolay.kudryavtsev@gmail.com> wrote= :
But be aware that you're never really safe if you're rel= ying on the mark
ring here. If json-diff is an interactive command, nothing is stopping
the user from pushing another mark to the ring in between of specifying file-a and file-b.

Yes.=C2=A0 The command i= s intended to be used after setting a mark at the start of a JSON sexp and = moving to the start of a JSON sexp somewhere else, and doing nothing else i= n between.
=C2=A0
Also, I don't know where did you get the last-global-mark t= hing, it's
not something that's in the Emacs 29 or 30's core.
=

Indeed not.=C2=A0 It's from the workaround I descri= bed in this thread just yesterday.

Welp, I'm d= one.=C2=A0 I've invested more effort into this bug report than I ever t= hought would be necessary.=C2=A0 It's the second time in a row that I&#= 39;ve reported a bug to a free software project and had it devolve into me = having to defend my use case.=C2=A0 Fix the code or the docs, or don't.= =C2=A0 I'll just use my workaround.

--000000000000192515062784d51a--