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: Fri, 26 Feb 2021 12:48:42 -0500 Message-ID: <04692508-554F-426B-BFE6-1C4A9B7D6307@gmail.com> References: <72F34690-3033-4CC5-8AFC-89C6158AA65D@gmail.com> <83k0qvqnul.fsf@gnu.org> <834khzq7iv.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.21\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13113"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 26 18:49:15 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 1lFhEo-0003Hm-O6 for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 26 Feb 2021 18:49:14 +0100 Original-Received: from localhost ([::1]:48290 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lFhEn-0002fb-Ol for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 26 Feb 2021 12:49:13 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58350) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lFhEO-0002eA-5I for help-gnu-emacs@gnu.org; Fri, 26 Feb 2021 12:48:48 -0500 Original-Received: from mail-qv1-xf35.google.com ([2607:f8b0:4864:20::f35]:35099) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lFhEL-00082n-Uj; Fri, 26 Feb 2021 12:48:47 -0500 Original-Received: by mail-qv1-xf35.google.com with SMTP id k5so4872776qvu.2; Fri, 26 Feb 2021 09:48:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=UwCyRkPDFlzxT3w7F3uHZuXCuVhL+fWqxbAoJlKZYJ0=; b=WImZ1mVCfruMm6blKFQW4T5Qi4Hy5Ys8bDtO4evFaA1R7p8Z2y68lnQT8A5SO8w0Y2 QAWV73OCOoNiH+d1aSN6EFiombhpEzo25D5yisAFzNE/wEluZmF+Yrzk/DoCorVDNLgw 6jyUlJzhfy11uPn30Kn54ghSU0UhhOqZvLNnonrvKCNre8BbyQZCnUh0vD9WHIrNZ1XA +9PyxJQUcskMl1j1z8DzdA6LMivLAKtVrtHwB1fJbfqip5IuDTO52XjrCliT/YejZqMW Rqb7PdLzJ9YdySfj7MwBSbagA60IKh6Z7yQvb3PW5ak6pp/jy4XszyiupKK3KBDdP1Us yMGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=UwCyRkPDFlzxT3w7F3uHZuXCuVhL+fWqxbAoJlKZYJ0=; b=fo/oJaKdsqYOm8kWOMMOD2KUQh4SMaF68anB9iGq5mYuJotjcBYgOpJ5HGQMiKsnVu 7nLY9L2PhESCn+azPkVr2Xb/Rsaw6O91lRGZzbag7nKbS325h9+4O9JqUq4JffKGO2+o drT5/0nY6mDEstQzggTQFNOVvski8Khg/ZlF4RgBNTrPOqK25qgd+QtHBSVDOnmU4Eja qIzdtwK+jRdNHTjjO3kZxFQbL4/5hJNKcdPtmreHOXFDMqRKO4+WwCPiT2nNwjyYfn8c 0LbGRv3YevmQKp0G0KGgzf1K901Rwsm15Fh5sCtJsH4kcVmj5loDK/KxP3z4eEBwc5eH KLig== X-Gm-Message-State: AOAM532o6BE6/Zp1a5AQgLgj3kCPG30fV+vHcAmggv6hREC22e/ieTfK U88tJvH6IheU022eR0MzFFShgUuKzEjccg== X-Google-Smtp-Source: ABdhPJz0jxzJkAnQghZ9wg9ojpAFBCtoB4ESHJLbVdri/3PcIOoNTceYZLivr6MbtnhqJT2cyHGgmA== X-Received: by 2002:a05:6214:292:: with SMTP id l18mr3887482qvv.5.1614361723955; Fri, 26 Feb 2021 09:48:43 -0800 (PST) Original-Received: from ?IPv6:2601:98a:4200:9210:1d85:d896:f418:9e4b? ([2601:98a:4200:9210:1d85:d896:f418:9e4b]) by smtp.gmail.com with ESMTPSA id 197sm6745632qkf.33.2021.02.26.09.48.43 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Feb 2021 09:48:43 -0800 (PST) In-Reply-To: <834khzq7iv.fsf@gnu.org> X-Mailer: Apple Mail (2.3654.60.0.2.21) Received-SPF: pass client-ip=2607:f8b0:4864:20::f35; envelope-from=casouri@gmail.com; helo=mail-qv1-xf35.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, HTML_MESSAGE=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-Content-Filtered-By: Mailman/MimeDel 2.1.23 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:128279 Archived-At: >>=20 >> I know what they mean but it is quite strange to have some many of = (# . -1) in >> buffer-undo-list=E2=80=94it is a new buffer and I didn=E2=80=99t = create any marker in it, so it shouldn=E2=80=99t have hundreds of >> markers to move. >=20 > hard to say without seeing the code which produces this effect. What > is at position 27 in buffer 'a=E2=80=99? I just opened a fundamental buffer and held on =E2=80=98a=E2=80=99 to = insert a bunch of a=E2=80=99s. So it=E2=80=99s just the character = =E2=80=98a=E2=80=99. Turns out it=E2=80=99s not my code=E2=80=99s fault, I bisected my = configuration and disabled winner-mode, then everything is back to = normal. I looked at winner.el but it doesn=E2=80=99t seem to create = markers, only accessing marker returned by window-prev-buffers (ah, so = that marker is probably the window=E2=80=99s point marker). So I=E2=80=99m= not sure what went wrong. If you start emacs -q, enable winner-mode, insert a bunch of text, and = undo all of them, you should see many marker entries in = buffer-undo-list. (More specifically, I inserted a line of =E2=80=98a=E2=80= =99, copied the line and pasted a bunch of them.) > In many cases, most markers are created implicitly as part of = overlays. > Are there overlays in the buffer? You can check that with = `overlays-in`. Thanks, I checked and there is no overlays. (Now I think they are = windows=E2=80=99 point markers.) Yuan