From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#23555: 24.5; Keyboard macros unexpectedly depend on frame size Date: Mon, 16 May 2016 21:53:53 +0300 Message-ID: <83oa854ywu.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1463424925 5606 80.91.229.3 (16 May 2016 18:55:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 May 2016 18:55:25 +0000 (UTC) Cc: 23555@debbugs.gnu.org To: Markus Triska Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 16 20:55:17 2016 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 1b2Nfb-0004tu-QO for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 May 2016 20:55:12 +0200 Original-Received: from localhost ([::1]:46770 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2Nfb-0007CF-Co for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 May 2016 14:55:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37105) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2NfX-00074d-1u for bug-gnu-emacs@gnu.org; Mon, 16 May 2016 14:55:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b2NfS-0004oW-Pv for bug-gnu-emacs@gnu.org; Mon, 16 May 2016 14:55:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42001) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2NfS-0004oS-MJ for bug-gnu-emacs@gnu.org; Mon, 16 May 2016 14:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1b2NfS-0006DZ-He for bug-gnu-emacs@gnu.org; Mon, 16 May 2016 14:55:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 May 2016 18:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23555 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23555-submit@debbugs.gnu.org id=B23555.146342486023828 (code B ref 23555); Mon, 16 May 2016 18:55:02 +0000 Original-Received: (at 23555) by debbugs.gnu.org; 16 May 2016 18:54:20 +0000 Original-Received: from localhost ([127.0.0.1]:54338 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b2Nel-0006CG-ML for submit@debbugs.gnu.org; Mon, 16 May 2016 14:54:19 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45900) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b2Nek-0006C3-R1 for 23555@debbugs.gnu.org; Mon, 16 May 2016 14:54:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b2Nec-0004cW-Ly for 23555@debbugs.gnu.org; Mon, 16 May 2016 14:54:13 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:36150) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2Nec-0004bM-J8; Mon, 16 May 2016 14:54:10 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2507 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1b2NeZ-0005By-Ff; Mon, 16 May 2016 14:54:09 -0400 In-reply-to: (message from Markus Triska on Sun, 15 May 2016 14:10:59 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:118319 Archived-At: > From: Markus Triska > Date: Sun, 15 May 2016 14:10:59 +0200 > > Next, simply execute the macro, repeatedly, with: > > C-x e e e e > > After this, you will see that the fourth
 block is unexpectedly
> changed to:
> 
>     
> 
> 
> 
> 
> 
>                 ).
>     
> > whereas the expected result it: > >
> mi2_safe(g(G)) :-
>         (   safe_goal(G) ->
>             mi_clause(G, Body),
>             mi2_safe(Body)
>         ;   throw(cannot_execute(G))
>         ).
>     
> > > However, if I revert all changes and simply enlarge the frame, or try > the exact same sequence after removing the filler text between lines 33 > and 52, or try the macro on the fourth snippet while the
 block is
> completely in view, everything works exactly as expected.
> 
> Thus, implicit scrolling and the frame size may unexpectedly interact
> with this keyboard macro.

This is related to the C-n behavior when executing macros, the same
problem which causes bug#23551 and #13452.  If you set
line-move-visual to nil in the buffer where you run the macro, the
problem disappears.

Thanks.