From unknown Sat Sep 20 05:02:24 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16181: 23.1; losing track of point Resent-From: John Chandler Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 Dec 2013 01:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 16181 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 16181@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Reply-To: chandler@cfa.harvard.edu Received: via spool by submit@debbugs.gnu.org id=B.138733086321796 (code B ref -1); Wed, 18 Dec 2013 01:42:02 +0000 Received: (at submit) by debbugs.gnu.org; 18 Dec 2013 01:41:03 +0000 Received: from localhost ([127.0.0.1]:56284 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vt68D-0005fB-FB for submit@debbugs.gnu.org; Tue, 17 Dec 2013 20:41:02 -0500 Received: from eggs.gnu.org ([208.118.235.92]:60895) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vt64A-0005W5-Ml for submit@debbugs.gnu.org; Tue, 17 Dec 2013 20:36:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vt643-0007n1-Gh for submit@debbugs.gnu.org; Tue, 17 Dec 2013 20:36:50 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:44807) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vt643-0007mx-Cy for submit@debbugs.gnu.org; Tue, 17 Dec 2013 20:36:43 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34363) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vt63x-0000Md-Aa for bug-gnu-emacs@gnu.org; Tue, 17 Dec 2013 20:36:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vt63r-0007mG-6c for bug-gnu-emacs@gnu.org; Tue, 17 Dec 2013 20:36:37 -0500 Received: from cfa.harvard.edu ([131.142.10.1]:40384) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vt63r-0007mA-2e for bug-gnu-emacs@gnu.org; Tue, 17 Dec 2013 20:36:31 -0500 Received: from cfa0.cfa.harvard.edu (cfa0 [131.142.24.30]) by cfa.harvard.edu (8.13.7/8.13.7/cfunix Mast-Sol 1.0) with ESMTP id rBI1aUDR008396 for ; Tue, 17 Dec 2013 20:36:30 -0500 (EST) Received: (from chandler@localhost) by cfa0.cfa.harvard.edu (8.13.7/8.14.5/cfunix S 5.0) id rBI1aUj9050387; Tue, 17 Dec 2013 20:36:30 -0500 Date: Tue, 17 Dec 2013 20:36:30 -0500 Message-Id: <201312180136.rBI1aUj9050387@cfa0.cfa.harvard.edu> From: John Chandler X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Mailman-Approved-At: Tue, 17 Dec 2013 20:40:59 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) emacs-version: GNU Emacs 23.1.1 (x86_64-redhat-linux-gnu, GTK+ Version 2.18.9) of 2013-07-17 on c6b10.bsys.dev.centos.org installed as part of CentOS 6.5 When a macro performs some editing tasks and then moves "point" forward using a (forward-line 1) at a time when the current line wraps and extends outside the viewing window, emacs often loses track of "point" and leaves it somewhere near the middle of the viewing window. The same macro invocation will work properly if the entire current line is visible in the window when the editing tasks are done, even if the beginning of the next line is outside the window. But it will fail if the editing tasks performed by the macro cause the line to wrap outside the window before the final (forward-line 1). This behavior does not depend on the setting of line-move-visual. 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. In GNU Emacs 23.1.1 (x86_64-redhat-linux-gnu, GTK+ Version 2.18.9) of 2013-07-17 on c6b10.bsys.dev.centos.org configured using `configure '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--target=x86_64-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--with-dbus' '--with-gif' '--with-jpeg' '--with-png' '--with-rsvg' '--with-tiff' '--with-xft' '--with-xpm' '--with-x-toolkit=gtk' 'build_alias=x86_64-redhat-linux-gnu' 'host_alias=x86_64-redhat-linux-gnu' 'target_alias=x86_64-redhat-linux-gnu' 'CFLAGS=-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic'' Important settings: value of $LC_ALL: en_US value of $LC_COLLATE: nil value of $LC_CTYPE: ascii8 value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: iso-latin-1-unix default-enable-multibyte-characters: t Major mode: Apropos Minor modes in effect: tooltip-mode: t tool-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: c a t e SPC / / ; C-x C-s ESC O A C-a C-s C-w C-s C-g ESC O B ESC O B ESC O B ESC [ 5 ~ ESC O A ESC O A ESC O A ESC O B ESC O B C-s C-w C-s ESC O A C-a C-x 2 C-x C-f r b DEL b . x RET C-s c h e k DEL c k ESC O C C-s a C-g C-s SPC a g C-x 0 C-s C-w C-r C-r C-g ESC O B ESC O B ESC O A ESC O A C-s C-w C-s C-s C-g C-g C-r C-r ESC O B ESC O B ESC O B C-a ESC b C-s C-w C-r C-r C-e C-r d . ESC f ESC f SPC S e p SPC 2 3 SPC a e : 8 7 SPC i n : S h e r b o r n , SPC M A SPC * S C D SPC P DEL p : 4 6 8 - 2 0 C-r SPC i RET . 7 . 2 ESC f ESC f ESC f SPC b y : d y s e n t e r y C-u ESC d C-y C-e ESC b ESC f C-y C-a C-s C-w C-s ESC O B ESC O B ESC [ 5 ~ ESC O A ESC O A ESC O A ESC O B ESC O B ESC O A C-a C-s C-w C-r C-r C-r C-g ESC [ 1 8 ~ ESC [ 1 8 ~ C-h a b u g s RET C-h a b u g RET ESC [ 1 8 ~ ESC [ 6 ~ ESC [ 6 ~ ESC x r e p o TAB r TAB RET Recent messages: Mark saved where search started Quit [2 times] Mark saved where search started [4 times] Mark set [2 times] Auto-saving... Mark saved where search started Quit No apropos matches for `bugs' Type C-x 4 C-o RET to restore the other window. Making completion list... From unknown Sat Sep 20 05:02:24 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16181: 23.1; losing track of point - partial workaround References: <201312180136.rBI1aUj9050387@cfa0.cfa.harvard.edu> In-Reply-To: <201312180136.rBI1aUj9050387@cfa0.cfa.harvard.edu> Resent-From: "Chandler, John" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 26 Feb 2014 20:33:01 +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: To: 16181@debbugs.gnu.org Received: via spool by 16181-submit@debbugs.gnu.org id=B16181.139344673920615 (code B ref 16181); Wed, 26 Feb 2014 20:33:01 +0000 Received: (at 16181) by debbugs.gnu.org; 26 Feb 2014 20:32:19 +0000 Received: from localhost ([127.0.0.1]:41865 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WIl9P-0005MQ-3X for submit@debbugs.gnu.org; Wed, 26 Feb 2014 15:32:19 -0500 Received: from mail-ie0-f178.google.com ([209.85.223.178]:53738) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WIl8d-0005KC-7R for 16181@debbugs.gnu.org; Wed, 26 Feb 2014 15:31:31 -0500 Received: by mail-ie0-f178.google.com with SMTP id ar20so1201149iec.9 for <16181@debbugs.gnu.org>; Wed, 26 Feb 2014 12:31:30 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=XWctgGuClSiAX3wU50lSl5vK1hTYB07dH9dw+dlxSlA=; b=FuHW63HdemvHHSGrUItgTFNI3tfzgsmz/ETPIsXsOzqbolwL7useVQFeS/J76rcCJN W6Hp5GCZvZni8pIzuK/VbWMLRgoxMnvgGFloVFKpaujblPA+05kijyXk3X5xYnl3FLeV w0jEBwg+G1UgUjcjUgHZeT4a/VnwFqVYCAvFgTkKSYkW86vs5C02lHkx88uqkNB0k5Ig 5rjoik7c5j3jE3R2H0cbKskycw5vYaElC1iY8hFAKO4HUYK3oTmwFJ0RBA1kSgxqW7Mz diAvtg6jJi0ZekkEVm4nfbdqL5WFU582UXA8VSri+sxnqvOJcXfkTsg4Hzp8EHFdtTIc zw2w== X-Gm-Message-State: ALoCoQlVvZ4ph5pUoVrFQSAuSohiaF4Cgc5muAubYg/FHmSHpIGdMKmIEE6syh2wg4lJp+iwRCb2 MIME-Version: 1.0 X-Received: by 10.50.136.162 with SMTP id qb2mr28373758igb.11.1393446690430; Wed, 26 Feb 2014 12:31:30 -0800 (PST) Received: by 10.50.137.131 with HTTP; Wed, 26 Feb 2014 12:31:30 -0800 (PST) Date: Wed, 26 Feb 2014 15:31:30 -0500 Message-ID: From: "Chandler, John" Content-Type: text/plain; charset=ISO-8859-1 X-Spam-Score: -0.7 (/) X-Mailman-Approved-At: Wed, 26 Feb 2014 15:32:15 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) I have determined empirically that interleaving short "sit-for" commands between the actual working commands of a macro can usually keep emacs from getting confused over where "point" is. From unknown Sat Sep 20 05:02:24 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16181: 23.1; losing track of point Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 30 May 2021 05:27:01 +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: To: John Chandler Cc: 16181@debbugs.gnu.org Received: via spool by 16181-submit@debbugs.gnu.org id=B16181.16223524145427 (code B ref 16181); Sun, 30 May 2021 05:27:01 +0000 Received: (at 16181) by debbugs.gnu.org; 30 May 2021 05:26:54 +0000 Received: from localhost ([127.0.0.1]:58177 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnDyQ-0001PT-BQ for submit@debbugs.gnu.org; Sun, 30 May 2021 01:26:54 -0400 Received: from quimby.gnus.org ([95.216.78.240]:45110) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnDyO-0001PE-Fe for 16181@debbugs.gnu.org; Sun, 30 May 2021 01:26:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=3SbEj8AJfnbnyQm/jW7hQSceCEggVfz+fmyRo+085BU=; b=ra7Pr+lM4xcA1qJpFBKQzuVMlX JknjD4AT8EOZXAJUB4O543Bm5eeOSNc/QO/W6SmRoQxpe6jHOw+GbyKBTFrvbAtP4Vu/ZMTfPGK2C lfTp7N+q3Z0t7VGQ+6PAvdHaBfg6VOdz54j4tFOylsv3msfAXijVGd6ElMVNS/umK06I=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lnDyF-0006Te-Vp; Sun, 30 May 2021 07:26:46 +0200 From: Lars Ingebrigtsen References: <201312180136.rBI1aUj9050387@cfa0.cfa.harvard.edu> X-Now-Playing: Alva Noto and Ryuichi Sakamoto's _Two_: "Propho" Date: Sun, 30 May 2021 07:26:43 +0200 In-Reply-To: <201312180136.rBI1aUj9050387@cfa0.cfa.harvard.edu> (John Chandler's message of "Tue, 17 Dec 2013 20:36:30 -0500") Message-ID: <87a6oc4wrw.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: 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)) > (in [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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. (I'm going through old bug reports that unfortunately got no response at the time.) I've tried to reproduce this problem in Emacs 28, but things seem to be working as expected for me. Are you still seeing this problem in more recent versions of Emacs? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun May 30 01:26:58 2021 Received: (at control) by debbugs.gnu.org; 30 May 2021 05:26:59 +0000 Received: from localhost ([127.0.0.1]:58180 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnDyU-0001Pk-Ib for submit@debbugs.gnu.org; Sun, 30 May 2021 01:26:58 -0400 Received: from quimby.gnus.org ([95.216.78.240]:45124) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnDyS-0001PL-N9 for control@debbugs.gnu.org; Sun, 30 May 2021 01:26:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=IYZPlKYJ7lTmkekYvOsT8sFrtSAQK7HlDY/UH59qYJs=; b=YNKyADWiWtSIlEMapbr9dNf7Ab SIhol2akmOiF9JYdlN1I7n03iCQAAtbuDNGDhwzLSklQC1POS4IH43jawJ4MGY6luSIbrjykQrdoB +pSCY1riTLTEa5nCo5DiRZQkXc/ntUE/JCHr/4XSymyqrMkudSiR8UXfi+GRjxg3+tRI=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lnDyL-0006To-6D for control@debbugs.gnu.org; Sun, 30 May 2021 07:26:51 +0200 Date: Sun, 30 May 2021 07:26:48 +0200 Message-Id: <878s3w4wrr.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #16181 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 16181 + moreinfo quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 16181 + moreinfo quit From unknown Sat Sep 20 05:02:24 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16181: 23.1; losing track of point 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 To: Lars Ingebrigtsen Cc: 16181@debbugs.gnu.org Received: via spool by 16181-submit@debbugs.gnu.org id=B16181.162240261612114 (code B ref 16181); Sun, 30 May 2021 19:24:02 +0000 Received: (at 16181) by debbugs.gnu.org; 30 May 2021 19:23:36 +0000 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 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 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) MIME-Version: 1.0 References: <201312180136.rBI1aUj9050387@cfa0.cfa.harvard.edu> <87a6oc4wrw.fsf@gnus.org> In-Reply-To: <87a6oc4wrw.fsf@gnus.org> From: "Chandler, John" Date: Sun, 30 May 2021 15:23:39 -0400 Message-ID: Content-Type: text/plain; charset="UTF-8" X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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 From unknown Sat Sep 20 05:02:24 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16181: 23.1; losing track of point Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 31 May 2021 05:45: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 To: "Chandler, John" Cc: 16181@debbugs.gnu.org Received: via spool by 16181-submit@debbugs.gnu.org id=B16181.162243986824362 (code B ref 16181); Mon, 31 May 2021 05:45:02 +0000 Received: (at 16181) by debbugs.gnu.org; 31 May 2021 05:44:28 +0000 Received: from localhost ([127.0.0.1]:60771 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnaiy-0006Kr-9D for submit@debbugs.gnu.org; Mon, 31 May 2021 01:44:28 -0400 Received: from quimby.gnus.org ([95.216.78.240]:55782) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnaiv-0006KX-Ne for 16181@debbugs.gnu.org; Mon, 31 May 2021 01:44:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=jDAJjv49H+BGeJecezT1sSCNDXF6rPOtNPzIAk0zDkM=; b=uY1cSkosRPu1hMWmEe4ZVRWXbw tkN/1vFCv40ySDHKLv0J26f/l74X55GtkQw7feWHg/qmr2HzlLZjlPkLriMyvBLjqUv2knu/jILKt VWFo1bhfEE+6b/0GqfHIPe7uRBdoJXZeyUwcBXbjR2ye3WRIRoKDnU2hEdOtR0d8ruCY=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lnain-0005zn-CK; Mon, 31 May 2021 07:44:19 +0200 From: Lars Ingebrigtsen References: <201312180136.rBI1aUj9050387@cfa0.cfa.harvard.edu> <87a6oc4wrw.fsf@gnus.org> X-Now-Playing: Scorn's _Cafe Mor_: "Never Let It Be Said" Date: Mon, 31 May 2021 07:44:16 +0200 In-Reply-To: (John Chandler's message of "Sun, 30 May 2021 15:23:39 -0400") Message-ID: <878s3vlaof.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: "Chandler, John" writes: > 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. Thanks for checking; closing this bug report, then. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) "Chandler, John" writes: > 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. Thanks for checking; closing this bug report, then. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon May 31 01:44:40 2021 Received: (at control) by debbugs.gnu.org; 31 May 2021 05:44:40 +0000 Received: from localhost ([127.0.0.1]:60774 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnajA-0006LI-GG for submit@debbugs.gnu.org; Mon, 31 May 2021 01:44:40 -0400 Received: from quimby.gnus.org ([95.216.78.240]:55796) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnaj8-0006L6-8M for control@debbugs.gnu.org; Mon, 31 May 2021 01:44:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=4xunarSfFmG8YrQyUuFrQBhk7rhSj8ROOOzeeCu/xrc=; b=mp5RtTqW0eTOx9hbJRrjMkuZ43 ekjt3aKu17tuupGWI/5jiLLSZAFo3haWWNiBmHMYfRtW/35WZljsUKHVyGJMQzZ+VUorpzpBkhzGw sYaMomjlzTPT3BN3ns0iBzP2UT4WnhmoZiYoaQI3kcpfV8sylwopRfqSk5iGFh3PI9t0=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lnaj0-0005zy-P2 for control@debbugs.gnu.org; Mon, 31 May 2021 07:44:32 +0200 Date: Mon, 31 May 2021 07:44:30 +0200 Message-Id: <877djflao1.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #16181 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 16181 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) close 16181 quit