From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Chandler, John" Newsgroups: gmane.emacs.bugs Subject: bug#16181: 23.1; losing track of point Date: Sun, 30 May 2021 15:23:39 -0400 Message-ID: References: <201312180136.rBI1aUj9050387@cfa0.cfa.harvard.edu> <87a6oc4wrw.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8038"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 16181@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 30 21:24:17 2021 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 1lnR2m-0001ro-Ac for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 30 May 2021 21:24:16 +0200 Original-Received: from localhost ([::1]:55796 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lnR2l-0005Wm-E2 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 30 May 2021 15:24:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45366) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lnR2Y-0005WX-I8 for bug-gnu-emacs@gnu.org; Sun, 30 May 2021 15:24:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48812) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lnR2Y-000741-89 for bug-gnu-emacs@gnu.org; Sun, 30 May 2021 15:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lnR2Y-00039x-3b for bug-gnu-emacs@gnu.org; Sun, 30 May 2021 15:24:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Chandler, John" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 30 May 2021 19:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16181 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 16181-submit@debbugs.gnu.org id=B16181.162240261612114 (code B ref 16181); Sun, 30 May 2021 19:24:02 +0000 Original-Received: (at 16181) by debbugs.gnu.org; 30 May 2021 19:23:36 +0000 Original-Received: from localhost ([127.0.0.1]:60358 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnR28-00039K-Jp for submit@debbugs.gnu.org; Sun, 30 May 2021 15:23:36 -0400 Original-Received: from mail-ej1-f44.google.com ([209.85.218.44]:36802) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnR25-000393-Kp for 16181@debbugs.gnu.org; Sun, 30 May 2021 15:23:34 -0400 Original-Received: by mail-ej1-f44.google.com with SMTP id t15so322132eju.3 for <16181@debbugs.gnu.org>; Sun, 30 May 2021 12:23:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cfa.harvard.edu; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=avuHnKwKCb6smlelfytmHHDd/4IT0RQ54PZ0tN3RTP8=; b=m5OXUAHVvzk6FtHK27Fx29q+SKfJ6S03dHdG0hfvxHFwfF3g0RY7LYPoyXWp1vpPcq SXrVUe53+3Cp10TqF1ARmt0yGTSWet1tZgHyWZty+3jtKTHTm3CplXuSm32riLqM7J/C Pte+EeECB5paTcd75qtTv3Te0hfi2LBT8zV2lfr0lyzLpP4t7pW7P8ZmaEkRhZBDQRx6 Alz6ZtB5o0R/5ROSrwz1Gj1DvlcAmn72PnjtHkI8mnwvU3il+ny0Izt+4CQdNTjcinqa rU02lo7U/i8NCsFs+0rYXH5D/cjSENeSLqZkBHmLF1t70avtxwwUopCKsuHq6WpL+81N mxQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=avuHnKwKCb6smlelfytmHHDd/4IT0RQ54PZ0tN3RTP8=; b=drITgCqZDgAVsceKN1ZShDvbfV24G4FIuthcsK4COTtv+D+A+HoRozHqCsQOGnRm62 Cumbq3GZYpl8fjhLUn0rwja7K6gzW6utSB29NDbgNcm40Ut1l+hRbH3MiCS8NDSSfFHt N29dVYejFiHH2WBVeFmjIw5vk1WKKDso8pe4EkO6AbhiVgTU68iCgJ5uKE3A7tsPE/Hg IZunEjbYOStvw6dUTOMquTe1FxG/oJBPcUIKZSxXOK42sV+qjK/4aJ0LnTNjUFcgeb6U qewGQkoNymzNT0vd9w+5IRpmULgVP7O8NBhSedXCdcKnJfz5a1oN5Y65U/LGWKkDT0sh hd3A== X-Gm-Message-State: AOAM533NOX4c+OS8TDaJKcC8gSAhhMbSzhMdor5vsvwY7tAI+xf8LcYi radvb0R5StuKjDC6+W8hXQEgVI9NH3mIVvadyqoBOQ== X-Google-Smtp-Source: ABdhPJwAaT8yLfG/VvxwktkeuIb6Ec5nSBQZYfimGjVu/rqhG99lczfEmWD3sY5HGgDulkLPF3NC7VEfc8zJGp7+EGA= X-Received: by 2002:a17:906:f9db:: with SMTP id lj27mr7518392ejb.421.1622402607767; Sun, 30 May 2021 12:23:27 -0700 (PDT) In-Reply-To: <87a6oc4wrw.fsf@gnus.org> 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" Xref: news.gmane.io gmane.emacs.bugs:207640 Archived-At: On Sun, May 30, 2021 at 1:26 AM Lars Ingebrigtsen wrote: > > John Chandler writes: > > > The following macro is a short example: > > > > (defun ttt() "add tag from start" (interactive) > > (save-excursion > > (goto-char 0) > > (copy-to-register 26 (point) (progn (forward-word 1)(point)) t)) > > (insert-register 26) > > (forward-line 1)) > > > > The file to be edited using this macro should begin with a line > > containing a list of words to be inserted in front of a succession of > > lines in the file. If the lines in the file generally wrap, > > especially if they wrap multiple times each, the successive > > application of the macro should quickly trigger the bug. The bug is intermittent and seems to depend on the exact alignment of the display when (point) moves out of the current window. I found a 99% reliable workaround by inserting lots of (sit-for) invocations into complicated macros. For the same reason, the above macro triggers the bug only if it is invoked multiple times within another macro, and not when it's invoked by hand (except rarely). Meanwhile, I see the bug still happening in emacs 22.2.1 and 23.1.1, but apparently not in 24.3.1, so I guess it's fixed. John Chandler