From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.help Subject: Re: A ton of marker entry in buffer-und-list Date: Mon, 1 Mar 2021 12:54:35 -0500 Message-ID: <8B9B7C97-A763-47EB-98BD-7A89B03E7182@gmail.com> References: <72F34690-3033-4CC5-8AFC-89C6158AA65D@gmail.com> <83k0qvqnul.fsf@gnu.org> <834khzq7iv.fsf@gnu.org> <04692508-554F-426B-BFE6-1C4A9B7D6307@gmail.com> <87czwm5wl8.fsf@web.de> <83h7lyoun8.fsf@gnu.org> <87y2f8gbmt.fsf@web.de> <87lfb7iv04.fsf@web.de> Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.21\)) 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="4325"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs To: Michael Heerdegen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 01 18:55:24 2021 Return-path: Envelope-to: geh-help-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 1lGmlQ-00011v-G4 for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 01 Mar 2021 18:55:24 +0100 Original-Received: from localhost ([::1]:39816 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lGmlP-00028N-I8 for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 01 Mar 2021 12:55:23 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48846) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lGmki-00028A-Fr for help-gnu-emacs@gnu.org; Mon, 01 Mar 2021 12:54:40 -0500 Original-Received: from mail-qv1-xf32.google.com ([2607:f8b0:4864:20::f32]:42022) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lGmkg-0002O4-QK for help-gnu-emacs@gnu.org; Mon, 01 Mar 2021 12:54:40 -0500 Original-Received: by mail-qv1-xf32.google.com with SMTP id r5so8469460qvv.9 for ; Mon, 01 Mar 2021 09:54:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=A3asu5P6gQRYp5lX82BiumikbytjGX6BtzXp7gwE9hM=; b=oQ9myG34FzNFi1egJ1MVrFhfFo2cbqZQhLhhkj7eCKM6RPL6A3RRQHeQPYoPC9SVGI yRTAXj02offQLkTAHSYJeiYH+k3cousK6rEAFkYlfe2aoLk14/xx1pO9WwjvaUaM9p3Q zyRuayz8MQ+lgx9UwqnGxBAB9boiAvJ0hUv/wLgs4Y9sfz2J0VrZTm9JJS/uvnHRU7uj jku175I/4BLRkhwHPNYdvNvf6RZmgytXtonxdDaX2uGo/RJymcGZQ0qPXyfRAFuyexMx xD6d6kplY1fbm32dwzIXD4yf2/UaF5TNa8yarpolhgKCkiJF+g63TJFpCSG2Kjz2O42p 2vKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=A3asu5P6gQRYp5lX82BiumikbytjGX6BtzXp7gwE9hM=; b=lgj2oba/ZfRcbFRyYQFQ9vJPGBONPeom7t2m4ie/B4zwte4ye50c8+jxHWej8sVaMk zJFGcAZ3TlBS0Y41BKdtbffC95Z/rRbFSow72SmdApuV0bmCQQ2buzFRgRxJMFuMZ9iL CgvW8A3SCnjIKrppWYHeOJsc9f54eyVFgL4f2h3wCtc/qttl+2BLNLVSaGkgL+FqLcAZ EKJYCpa3F86pDsn2mT0yPT4ffjNON38muwS7AvG9Jo/39wP7thDjNhHLdTfNhuw+PPuu S6FoPS5bEU3ijjnzjuJCMLOabJOcHnAUTUXIlB4VH4rqLQJED/COD5VL+ywrGqmRMdH9 3lOw== X-Gm-Message-State: AOAM530JJHCULuEpNZEPf2h4B/0nfDp/f69buznNbWNnN7kvhS2NgZ3f pm5RWq68LTt1F59DOp7vI34= X-Google-Smtp-Source: ABdhPJw6/RDCyVGCRUQ1Q9YHScMKV9O7RvI6AtOpmkMl/DFA9AjkOu2tSNLYfoEWUUCkkNgLaWl49w== X-Received: by 2002:ad4:52e3:: with SMTP id p3mr15427427qvu.61.1614621276769; Mon, 01 Mar 2021 09:54:36 -0800 (PST) Original-Received: from ?IPv6:2601:98a:4200:9210:8dc3:1036:1a8b:5332? ([2601:98a:4200:9210:8dc3:1036:1a8b:5332]) by smtp.gmail.com with ESMTPSA id d14sm2969024qkg.33.2021.03.01.09.54.36 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Mar 2021 09:54:36 -0800 (PST) In-Reply-To: <87lfb7iv04.fsf@web.de> X-Mailer: Apple Mail (2.3654.60.0.2.21) Received-SPF: pass client-ip=2607:f8b0:4864:20::f32; envelope-from=casouri@gmail.com; helo=mail-qv1-xf32.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:128327 Archived-At: > On Feb 28, 2021, at 7:21 PM, Michael Heerdegen = wrote: >=20 > Yuan Fu writes: >=20 >> Hmmm, I just tried again and alas, I get the markers even without >> winner-mode. For some reason disabling winner-mode solved it when I >> last tested it. How strange. >=20 > Ok. >=20 > Now I used this: >=20 > #+begin_src emacs-lisp > (defun count-markers-in-buffer-undo-list () > "Message number of (different) markers in `buffer-undo-list'." > (interactive) > (require 'cl-lib) > (message "%d" (length > (cl-delete-duplicates > (seq-filter #'markerp (flatten-tree (copy-tree = buffer-undo-list))) > :test #'eq)))) > #+end_src >=20 > to get the number of different markers in `buffer-undo-list', after > reproducing the recipe. The answer was always "1". Just a bunch of > entries referring to one and the same marker. That seems sane. >=20 > Are you able to provide a more pathological recipe? >=20 Using the same recipe, I got 18, the number of marker entries in each = undo step. Also, even if the answer is 1, it is not ok because that = shortens the number of undo a buffer can record by a factor of n (e.g., = 18 in my case). Yuan=