From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: John Chandler Newsgroups: gmane.emacs.bugs Subject: bug#16181: 23.1; losing track of point Date: Tue, 17 Dec 2013 20:36:30 -0500 Message-ID: <201312180136.rBI1aUj9050387@cfa0.cfa.harvard.edu> Reply-To: chandler@cfa.harvard.edu NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1387330940 6956 80.91.229.3 (18 Dec 2013 01:42:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Dec 2013 01:42:20 +0000 (UTC) To: 16181@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Dec 18 02:42:25 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Vt69U-0006xT-Gb for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Dec 2013 02:42:20 +0100 Original-Received: from localhost ([::1]:36544 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vt69T-0001W3-Ob for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Dec 2013 20:42:19 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34975) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vt69K-0001Vm-Ch for bug-gnu-emacs@gnu.org; Tue, 17 Dec 2013 20:42:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vt69D-0000hs-I9 for bug-gnu-emacs@gnu.org; Tue, 17 Dec 2013 20:42:10 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42265) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vt69D-0000gz-Ej for bug-gnu-emacs@gnu.org; Tue, 17 Dec 2013 20:42:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Vt69C-0005hP-JT for bug-gnu-emacs@gnu.org; Tue, 17 Dec 2013 20:42:02 -0500 X-Loop: help-debbugs@gnu.org 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: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.138733086321796 (code B ref -1); Wed, 18 Dec 2013 01:42:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 18 Dec 2013 01:41:03 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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) Original-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 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-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 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:82157 Archived-At: 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...