From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Markus Triska Newsgroups: gmane.emacs.bugs Subject: bug#23555: 24.5; Keyboard macros unexpectedly depend on frame size Date: Sun, 15 May 2016 14:10:59 +0200 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1463423123 7313 80.91.229.3 (16 May 2016 18:25:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 May 2016 18:25:23 +0000 (UTC) To: 23555@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 16 20:25:12 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 1b2NCZ-0005Rx-62 for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 May 2016 20:25:11 +0200 Original-Received: from localhost ([::1]:46500 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2NCY-0002ja-Ks for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 May 2016 14:25:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46323) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2NCU-0002cR-Mr for bug-gnu-emacs@gnu.org; Mon, 16 May 2016 14:25:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b2NCQ-0002HH-4z for bug-gnu-emacs@gnu.org; Mon, 16 May 2016 14:25:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41904) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2NCQ-0002H9-2k for bug-gnu-emacs@gnu.org; Mon, 16 May 2016 14:25:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1b2NCP-0003Xb-Vr for bug-gnu-emacs@gnu.org; Mon, 16 May 2016 14:25:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Markus Triska Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 May 2016 18:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 23555 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.146342309613591 (code B ref -1); Mon, 16 May 2016 18:25:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 May 2016 18:24:56 +0000 Original-Received: from localhost ([127.0.0.1]:54241 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b2NCK-0003X8-9c for submit@debbugs.gnu.org; Mon, 16 May 2016 14:24:56 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55182) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b2NCI-0003Wq-Oe for submit@debbugs.gnu.org; Mon, 16 May 2016 14:24:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b2NCC-0002CQ-FT for submit@debbugs.gnu.org; Mon, 16 May 2016 14:24:49 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:53567) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2NCC-0002B0-Cd for submit@debbugs.gnu.org; Mon, 16 May 2016 14:24:48 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46101) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2NCA-0002EZ-3B for bug-gnu-emacs@gnu.org; Mon, 16 May 2016 14:24:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b2NC6-00028V-Gq for bug-gnu-emacs@gnu.org; Mon, 16 May 2016 14:24:45 -0400 Original-Received: from metalevel.at ([78.46.218.83]:47533) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2NC6-000284-9t for bug-gnu-emacs@gnu.org; Mon, 16 May 2016 14:24:42 -0400 Original-Received: from mt-mbpro.localdomain (localhost.localdomain [127.0.0.1]) by metalevel.at (Postfix) with ESMTP id 99A9FA006E for ; Sun, 15 May 2016 14:10:59 +0200 (CEST) Original-Received: by mt-mbpro.localdomain (Postfix, from userid 501) id 9B56B5153A9; Sun, 15 May 2016 14:10:59 +0200 (CEST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:118308 Archived-At: To reproduce this issue, please first fetch rep.txt from: https://www.metalevel.at/ei/rep.txt and then invoke Emacs as follows: $ emacs -Q -g 80x30 rep.txt The issue depends critically on the frame size. I can reproduce the issue if the last line that I still see in the buffer (when point is at the beginning of the buffer) is the line containing "false." in the definition of declarative_false/0, i.e., line 28 in the file. We now define a keyboard macro that is supposed to remove the 8 spaces that indent all code snippets that appear within the 4
 blocks.

With point at the beginning of the buffer, please press C-x ( to start
recording, and then press the following keys:

     C-s 
 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.


In GNU Emacs 24.5.1 (x86_64-apple-darwin14.0.0, GTK+ Version 2.24.28)
 of 2015-09-20 on mt-mbpro
Windowing system distributor `The X.Org Foundation', version 11.0.11502000
Configured using:
 `configure --prefix=/opt/local --without-dbus --without-libotf
 --without-m17n-flt --without-gpm --without-gnutls --with-xml2 --infodir
 /opt/local/share/info/emacs --without-xaw3d --without-imagemagick
 --with-xpm --with-jpeg --with-tiff --with-gif --with-png --with-xft
 --with-x-toolkit=gtk2 --with-gconf --with-rsvg 'CFLAGS=-pipe -Os -arch
 x86_64' CPPFLAGS=-I/opt/local/include 'LDFLAGS=-L/opt/local/lib
 -Wl,-headerpad_max_install_names -lfreetype -lfontconfig -Wl,-no_pie
 -arch x86_64''

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix