From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 19 19:25:10 2018 Received: (at submit) by debbugs.gnu.org; 19 Sep 2018 23:25:10 +0000 Received: from localhost ([127.0.0.1]:46147 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g2lqI-0005Wl-8i for submit@debbugs.gnu.org; Wed, 19 Sep 2018 19:25:10 -0400 Received: from eggs.gnu.org ([208.118.235.92]:32900) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g2lqH-0005WI-2g for submit@debbugs.gnu.org; Wed, 19 Sep 2018 19:25:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g2lqB-00061z-0r for submit@debbugs.gnu.org; Wed, 19 Sep 2018 19:25:03 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_20,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:35211) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1g2lqA-0005zG-OX for submit@debbugs.gnu.org; Wed, 19 Sep 2018 19:25:02 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53839) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g2lq9-0007Ud-Rv for bug-gnu-emacs@gnu.org; Wed, 19 Sep 2018 19:25:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g2lq9-0005t7-0U for bug-gnu-emacs@gnu.org; Wed, 19 Sep 2018 19:25:01 -0400 Received: from pop.dreamhost.com ([64.90.62.162]:60706 helo=pdx1-sub0-mail-a11.g.dreamhost.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1g2lq8-0005sJ-JT for bug-gnu-emacs@gnu.org; Wed, 19 Sep 2018 19:25:00 -0400 Received: from pdx1-sub0-mail-a11.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a11.g.dreamhost.com (Postfix) with ESMTP id AEF3C8008F for ; Wed, 19 Sep 2018 16:24:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to :subject:date:message-id:mime-version:content-type; s= linkov.net; bh=IeGv5qEN/SDNPOSy3rHfP7q71j8=; b=CS8nNcvTUEILMMw3N aFH057sUZvQ3ZNlNbACspZAyhvvBxqZitX1lS3k+7pqX4EJzc65UilXQec6NC2/K U39jpXBa0P6d4oU9rZVvaYddmR+fdcmWuA8NAaPJErn27uoZVPsvB1vGc+Y3KYtq QhRHot2EiNRJI817IOFniW9W4s= Received: from localhost.linkov.net (m91-129-107-237.cust.tele2.ee [91.129.107.237]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a11.g.dreamhost.com (Postfix) with ESMTPSA id 0674E80087 for ; Wed, 19 Sep 2018 16:24:58 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a11 X-DH-BACKEND: pdx1-sub0-mail-a11 From: Juri Linkov To: bug-gnu-emacs@gnu.org Subject: 27.0.50; window-buffer gets wrong point Organization: LINKOV.NET Date: Thu, 20 Sep 2018 01:55:01 +0300 Message-ID: <87musd9lc2.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain 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-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit 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: -6.0 (------) This bug report concerns one particular usage of window-buffer in read-extended-command, but the same issue might exist in other places: 0. emacs -Q 1. copy to *scratch* as text: next-error nonexistent-command 2. 2.1. put point on "next-error", type M-x M-n, it correctly inserts "next-error" to the minibuffer 2.2. put point on "nonexistent-command", type M-x M-n, it correctly displays "End of history; no default available" 3. 3.1. put point on "nonexistent-command" 3.2. split window C-x 2 or C-x 3 and switch to another window C-x o 3.3. put point on "next-error", type M-x M-n, it correctly inserts "next-error" to the minibuffer 4. 4.1. delete-other-windows with C-x 1 4.1. put point on "nonexistent-command" 4.2. create new frame with C-x 5 2 4.3. put point on "next-error", type M-x M-n, it displays "End of history; no default available", this is wrong From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 30 00:03:56 2018 Received: (at 32777) by debbugs.gnu.org; 30 Sep 2018 04:03:56 +0000 Received: from localhost ([127.0.0.1]:59335 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g6SxX-0003K0-S6 for submit@debbugs.gnu.org; Sun, 30 Sep 2018 00:03:56 -0400 Received: from mail-lj1-f174.google.com ([209.85.208.174]:34461) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g6SxW-0003Jn-0N for 32777@debbugs.gnu.org; Sun, 30 Sep 2018 00:03:54 -0400 Received: by mail-lj1-f174.google.com with SMTP id f8-v6so9189299ljk.1 for <32777@debbugs.gnu.org>; Sat, 29 Sep 2018 21:03:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=tPCsQ6S/6fd8+q2miE46vRVH/AMWo13BEGRU8qVB6c8=; b=vVc6jqnXtfxMHAwxaxUysrWTeDWulwrWjtfFIZDK8/05lAz/FgC42Earu38kZQ+Wds pjKEpLnF9foU0Dfb1wQ7X2uwrSte87UQ93NleBBpEE+Gkti6a32R/jPqcRKppoRt4d4H LFVCnsNveKIElF/aWvvwXdVyNTMNy6vHmaGNDtmlxSjdJs/L5p+sDlQEIzymb+uR5qiZ cfInEhjlnb/JFHMX65BeBj3h+pq1/k4nQQauHukYjlmVyH9fDt0ltTRvEiJVqMn9Dl18 RKnnSYtFcFsbc8yLuUTdC6wOzIpJ1hwMPI44gAR8sxrn/plJyUCuySnvnF0XAp5Al+0H FSaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=tPCsQ6S/6fd8+q2miE46vRVH/AMWo13BEGRU8qVB6c8=; b=PNk0zEuYYn5riE5ZtHYWz+viO0wsI5qnhXWXqC3BplkNVQVQmlMmmoRddEulQyWxuZ TC61uBo8+JApiauAZxLGkxraB7SeilNjPtzSsIvYpgcVmOHGU26LU7Ta/kxftnDffY6p 0oRa9+5oit8OXI1i6SFJJecAmZ7btcKMbWqbMjYcWcWLTOH0MJELT3Y9QjfN7HJlUjEC 08n+WiKZWg0dsuGVmLCg2+iGxuniPFl7kuFeUp+YNIB3N0d7BudBGQkIZaRGDZk4T4er +h+6uxooMN9hn8B1cQ7J84roIio4uJfKPxTCGzNltRBbMpzmxS7EexQO/m1ZgbkQW7l2 lPrg== X-Gm-Message-State: ABuFfojl9RO2JOPZgr9Jhop2h2jBetuxANzmPnpBo1IAlTlkg6IFFVBP 3LZsxdP9t11Du2zz+Ol/MRF5wswUIpAUD0pPCkM= X-Google-Smtp-Source: ACcGV630JpN8I98ZIutqjF3M1jLSmeMiIZTQYxHpnGCJt5M9A9AyBt+Pnxd7DQE7q41aSyfHxnkSna9juBMduqLCEbY= X-Received: by 2002:a2e:48d:: with SMTP id a13-v6mr2857849ljf.27.1538280227907; Sat, 29 Sep 2018 21:03:47 -0700 (PDT) MIME-Version: 1.0 From: Federico Tedin Date: Sun, 30 Sep 2018 01:03:36 -0300 Message-ID: Subject: Re: bug#32777: 27.0.50; window-buffer gets wrong point To: juri@linkov.net Content-Type: text/plain; charset="UTF-8" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 32777 Cc: 32777@debbugs.gnu.org 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 (-) I am looking into this bug, and I've found a shorter way of reproducing it: 1) emacs -q 2) On *scratch*, enter: next-error nonexistent-command 3) Move the point to "nonexistent-command" 4) C-x 5 2 5) Move the point to "next-error" 6) M-x M-n shows "End of history" (but it should show "next-error") It seems like the problem could be solved by modifying the code on simple.el, line 1713 onward. I'll check and see if I can fix it. From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 01 22:08:03 2018 Received: (at 32777) by debbugs.gnu.org; 2 Oct 2018 02:08:03 +0000 Received: from localhost ([127.0.0.1]:33639 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g7A6V-0008SQ-BZ for submit@debbugs.gnu.org; Mon, 01 Oct 2018 22:08:03 -0400 Received: from mail-lj1-f171.google.com ([209.85.208.171]:36236) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g7A6S-0008Rv-Ns for 32777@debbugs.gnu.org; Mon, 01 Oct 2018 22:08:01 -0400 Received: by mail-lj1-f171.google.com with SMTP id p89-v6so314893ljb.3 for <32777@debbugs.gnu.org>; Mon, 01 Oct 2018 19:08:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=o7LcdCQsGvHe9uT+LUf0yYJZXnVbUBxc8oPupm/1JUI=; b=F1TrXoYecbHK6Yvlb7zrkGn9iGRijIO8GMZ6UX5vR/p1OYNqgaYXxEYRnnrt8nuAKd Rzqx7avS3AxG3NTdXUhO/oLAiF5Yt6fEDZIyRDJeDPs5B6f7wY6ZMOEilPgWo5Potu/V 8BMo1GCudNHBZ+5DpsghfkSja0likNpaWr6Qy43FFyjxs11DTtEROd9S90hZlc8FEazp wZcCouCj6NDHxOQjxfag0EdbVbdKmZTvynxhMuOOpZOB3Mac4cjEiDkwSTnXUOX0RnBT K3KI866st32zNU5GWYFepz+eHu5ge5fd0XJFOSeraiQ/3m78I0LlQjIjHTvfUSZPdKte BecA== 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=o7LcdCQsGvHe9uT+LUf0yYJZXnVbUBxc8oPupm/1JUI=; b=l5st9Mh0CVRHLqJ6TGJ4+btXVsrFCdIkn5STx0mI0bYQYCTu2OFV8Miuk2PGz+2SR8 04yCABPmle2kkR0fQspRQ5hfjWu1+M/ez769WmyfaBoTArEpuJeW7O3hKKwKSoI/1lrC kqhuztzlPwIRLiN4f7B6kROoE1cOb6z2jFSVFssT2EanCcxc4yxFIYPIY2LYHTF6DOMg JhUUyQtFtBOh6a9RiSys90uJ8UOGH+vs9dI8UtOOI2AFUt3vD9Up3IHnl1NLVtbtECZT 9smzxAusbFAd9ZNw3ahUoDukMA1qLX3DjLWCKPJ+xQ1gLhr2seKThkpNEtYptemnp7qr qCZQ== X-Gm-Message-State: ABuFfojWxp5Y0LU+ti9G9ZZgw83P2jKaeJZRK2pArKBBB2pOaglqfu4H V/HanwODvSrRd7C50cVerOMddmUcP9zpaKMpdr+XuBGS X-Google-Smtp-Source: ACcGV61GGtPIhaAax3WSNVjT5rqO/FRZCHKde+J5Oj1L/zzWZ4bSP095y26w1TBA/7JuLjBLce/f87TamlTW+AH4WaY= X-Received: by 2002:a2e:9d8a:: with SMTP id c10-v6mr6333908ljj.2.1538446074468; Mon, 01 Oct 2018 19:07:54 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Federico Tedin Date: Mon, 1 Oct 2018 23:07:41 -0300 Message-ID: Subject: Re: bug#32777: 27.0.50; window-buffer gets wrong point To: juri@linkov.net Content-Type: multipart/mixed; boundary="000000000000c66e380577356307" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 32777 Cc: 32777@debbugs.gnu.org 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 (-) --000000000000c66e380577356307 Content-Type: text/plain; charset="UTF-8" > It seems like the problem could be solved by modifying the code on > simple.el, line 1713 onward. I'll check and see if I can fix it. I've managed to fix the problem, I'm attaching a patch with my proposed changes. --000000000000c66e380577356307 Content-Type: text/x-patch; charset="US-ASCII"; name="minibuf.patch" Content-Disposition: attachment; filename="minibuf.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_jmr31f050 RnJvbSA2Y2I1MDZhMWYwMjE4ODhiNWZhZjc4MDkwYTRhYjUyNGZkOGJiNTI2IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBGZWRlcmljbyBUZWRpbiA8ZmVkZXJpY290ZWRpbkBnbWFpbC5j b20+CkRhdGU6IE1vbiwgMSBPY3QgMjAxOCAyMzowMzozNiAtMDMwMApTdWJqZWN0OiBbUEFUQ0hd IEZpeCBNLW4gY29tbWFuZCBjb21wbGV0aW9uIGZvciByZWFkLWV4dGVuZGVkLWNvbW1hbmQKCiog bGlzcC9zaW1wbGUuZWwgKHJlYWQtZXh0ZW5kZWQtY29tbWFuZCk6IEVuc3VyZSB0aGUgZnVuY3Rp b24gdXNlcyB0aGUKICBhcHJvcGlhdGUgd2luZG93IHdoZW4gbG9va2luZyBmb3IgYSBjb21tYW5k IHRvIHN1Z2dlc3Qgd2hlbiB1c2VyCiAgZW50ZXJzIE0tbiBhZnRlciBpbml0aWFsIHByb21wdC4g KEJ1ZyMzMjc3NykKLS0tCiBsaXNwL3NpbXBsZS5lbCB8IDcgKysrKy0tLQogMSBmaWxlIGNoYW5n ZWQsIDQgaW5zZXJ0aW9ucygrKSwgMyBkZWxldGlvbnMoLSkKCmRpZmYgLS1naXQgYS9saXNwL3Np bXBsZS5lbCBiL2xpc3Avc2ltcGxlLmVsCmluZGV4IGU0MTYzMGQ0ZWQuLjFkMTI5YzNjOTkgMTAw NjQ0Ci0tLSBhL2xpc3Avc2ltcGxlLmVsCisrKyBiL2xpc3Avc2ltcGxlLmVsCkBAIC0xNzEwLDkg KzE3MTAsMTAgQEAgcmVhZC1leHRlbmRlZC1jb21tYW5kCiAJICAgICAobGFtYmRhICgpCiAJICAg ICAgIDs7IEdldCBhIGNvbW1hbmQgbmFtZSBhdCBwb2ludCBpbiB0aGUgb3JpZ2luYWwgYnVmZmVy CiAJICAgICAgIDs7IHRvIHByb3Bvc2UgaXQgYWZ0ZXIgTS1uLgotCSAgICAgICAod2l0aC1jdXJy ZW50LWJ1ZmZlciAod2luZG93LWJ1ZmZlciAobWluaWJ1ZmZlci1zZWxlY3RlZC13aW5kb3cpKQot CQkgKGFuZCAoY29tbWFuZHAgKGZ1bmN0aW9uLWNhbGxlZC1hdC1wb2ludCkpCi0JCSAgICAgIChm b3JtYXQgIiVTIiAoZnVuY3Rpb24tY2FsbGVkLWF0LXBvaW50KSkpKSkpKQorCSAgICAgICAod2l0 aC1zZWxlY3RlZC13aW5kb3cgKG1pbmlidWZmZXItc2VsZWN0ZWQtd2luZG93KQorICAgICAgICAg ICAgICAgICAod2l0aC1jdXJyZW50LWJ1ZmZlciAod2luZG93LWJ1ZmZlciAoc2VsZWN0ZWQtd2lu ZG93KSkKKwkJICAgKGFuZCAoY29tbWFuZHAgKGZ1bmN0aW9uLWNhbGxlZC1hdC1wb2ludCkpCisJ CSAgICAgICAgKGZvcm1hdCAiJVMiIChmdW5jdGlvbi1jYWxsZWQtYXQtcG9pbnQpKSkpKSkpKQog ICAgIDs7IFJlYWQgYSBzdHJpbmcsIGNvbXBsZXRpbmcgZnJvbSBhbmQgcmVzdHJpY3RpbmcgdG8g dGhlIHNldCBvZgogICAgIDs7IGFsbCBkZWZpbmVkIGNvbW1hbmRzLiAgRG9uJ3QgcHJvdmlkZSBh bnkgaW5pdGlhbCBpbnB1dC4KICAgICA7OyBTYXZlIHRoZSBjb21tYW5kIHJlYWQgb24gdGhlIGV4 dGVuZGVkLWNvbW1hbmQgaGlzdG9yeSBsaXN0LgotLSAKMi4xNy4xCgo= --000000000000c66e380577356307-- From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 01 23:21:46 2018 Received: (at 32777) by debbugs.gnu.org; 2 Oct 2018 03:21:46 +0000 Received: from localhost ([127.0.0.1]:33656 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g7BFq-0001l9-Fl for submit@debbugs.gnu.org; Mon, 01 Oct 2018 23:21:46 -0400 Received: from eggs.gnu.org ([208.118.235.92]:39671) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g7BFo-0001kx-Vv for 32777@debbugs.gnu.org; Mon, 01 Oct 2018 23:21:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g7BFg-0008Vz-OL for 32777@debbugs.gnu.org; Mon, 01 Oct 2018 23:21:39 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41775) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g7BFg-0008Vv-Kp; Mon, 01 Oct 2018 23:21:36 -0400 Received: from [176.228.60.248] (port=4286 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1g7BFg-0008NS-8k; Mon, 01 Oct 2018 23:21:36 -0400 Date: Tue, 02 Oct 2018 06:21:30 +0300 Message-Id: <83wor12fut.fsf@gnu.org> From: Eli Zaretskii To: Federico Tedin In-reply-to: (message from Federico Tedin on Mon, 1 Oct 2018 23:07:41 -0300) Subject: Re: bug#32777: 27.0.50; window-buffer gets wrong point References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 32777 Cc: 32777@debbugs.gnu.org, juri@linkov.net 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: -6.0 (------) > From: Federico Tedin > Date: Mon, 1 Oct 2018 23:07:41 -0300 > Cc: 32777@debbugs.gnu.org > > --- a/lisp/simple.el > +++ b/lisp/simple.el > @@ -1710,9 +1710,10 @@ read-extended-command > (lambda () > ;; Get a command name at point in the original buffer > ;; to propose it after M-n. > - (with-current-buffer (window-buffer (minibuffer-selected-window)) > - (and (commandp (function-called-at-point)) > - (format "%S" (function-called-at-point))))))) > + (with-selected-window (minibuffer-selected-window) > + (with-current-buffer (window-buffer (selected-window)) > + (and (commandp (function-called-at-point)) > + (format "%S" (function-called-at-point)))))))) > ;; Read a string, completing from and restricting to the set of > ;; all defined commands. Don't provide any initial input. > ;; Save the command read on the extended-command history list. Can you explain the change? The minibuffer window is already the selected window at this point (look at the implementation of minibuffer-selected-window), so using with-selected-window, which seems to be the only real change in the above, should be redundant. Also, with-selected-window makes the window's buffer current, so why did you need with-current-buffer in addition? What am I missing? Thanks. From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 02 08:31:44 2018 Received: (at 32777) by debbugs.gnu.org; 2 Oct 2018 12:31:44 +0000 Received: from localhost ([127.0.0.1]:33895 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g7Jq4-0004cd-Cy for submit@debbugs.gnu.org; Tue, 02 Oct 2018 08:31:44 -0400 Received: from mail-lj1-f181.google.com ([209.85.208.181]:33992) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g7Jq3-0004cP-4e for 32777@debbugs.gnu.org; Tue, 02 Oct 2018 08:31:43 -0400 Received: by mail-lj1-f181.google.com with SMTP id f8-v6so1584735ljk.1 for <32777@debbugs.gnu.org>; Tue, 02 Oct 2018 05:31:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Kc4E8yUKGwCe2fpQEpfW/xVKdLCXHN6N1LnFF5PKhHA=; b=tE29Qn6JKToRiapo1Rc1fBC+6ElVKIBSb+pcDn5H2UkL/XkdtrSYKWdBfIZo5iIVCy 0VemgnRGhF58t6b6nFoZ+GOis+cBVg6jxjHPWO6b6zWILyD4bIFqT7hoP987pMqPxvKY bXb5r1ehYjvX4imm6Eo1svDE/F99/gqBpUbID0B62C4kCYSjik2SfFCgafIuEGEUqhGZ sabaMuAbCT87rBbmQT8odpHnk+5pfRqizQTTqAVNB0u8Axh4GCrHAXvkCrI6DzTMF9wM ybQd+E0A2PkbZsaciw5sgWbAAvjstCI8ApFnU+DzAtoavO8g4/3mrvjUaU67Pu/xntEF uDxg== 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=Kc4E8yUKGwCe2fpQEpfW/xVKdLCXHN6N1LnFF5PKhHA=; b=WujBZ0xuldsUCpZVYyCST3ElxsklZ9usBzfj7JBJ2LaGtAQ/pE0za4INa3SrfsIPQp 6szHe3jnDfw49556iuMD6KnDhZMIlPGU/ePLNOnNTQm/tlGPw6wU8huTuOoasXHaMe4s ukCp+KiDnIPkh2MeCGvQAiZJSqMgs1BmlCULZdzZ4thLQ8jj5bUDcRQmds+ZqxtWiK9Q 7V7hThXgHBHIcSQLCREw3r16RGqJx6q5ECL9r8D+1tylpauivGRW8QlwVHyA6qSiklL6 eYJlF+X5T0cmpbFoL3jGlWFio4gss7ssHwQjGqn1Mi+9zA8AnS7yqzl0xLRERnhuCNVC i4/Q== X-Gm-Message-State: ABuFfoi0ximj8cREA25z1yD6pt14wOBdzUg8SpOk0z9ZEgK3BgEyoa7R Dj8hhS8TkX4YY5ODPVNqkupldXKZvub7ylslqjQ= X-Google-Smtp-Source: ACcGV62cr4jamGoMC0v3zZ/us+ZzgSC7dC/Vr7NQ3TBNGbyvI6qgP+OZoUBb19P615w5FL3b5tlvA57zZKK3JojjXP0= X-Received: by 2002:a2e:48d:: with SMTP id a13-v6mr9360383ljf.27.1538483497045; Tue, 02 Oct 2018 05:31:37 -0700 (PDT) MIME-Version: 1.0 References: <83wor12fut.fsf@gnu.org> In-Reply-To: <83wor12fut.fsf@gnu.org> From: Federico Tedin Date: Tue, 2 Oct 2018 09:31:25 -0300 Message-ID: Subject: Re: bug#32777: 27.0.50; window-buffer gets wrong point To: Eli Zaretskii Content-Type: text/plain; charset="UTF-8" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 32777 Cc: 32777@debbugs.gnu.org, juri@linkov.net 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 (-) > Can you explain the change? The minibuffer window is already the > selected window at this point (look at the implementation of > minibuffer-selected-window), so using with-selected-window, which > seems to be the only real change in the above, should be redundant. This was my reasoning: Calling "minibuffer-selected-window" returns the last selected window before switching to the minibuffer. Then, calling "window-buffer" with that window will return that window's buffer. The problem is that when "with-current-buffer" is called with the resulting buffer, it that buffer has been opened on more than one window, the active window will be set according to a criteria which I haven't figured out yet, but not necessarily to the same exact window "minibuffer-selected-window" returned. The way I tested this was the following: 1) On a frame, open three windows. On the first two, open *scratch*. On the third one, open any other buffer. 2) Insert some content into buffer *scratch* ("hello"). 3) Make sure the first window is selected, and move the point to (point-min). 4) M-x eval-expression (with-current-buffer "*scratch*" (message "%s" (point))) should yield "1". 5) Select the second window, and move the point to (point-max). 6) M-x eval-expression (with-current-buffer "*scratch*" (message "%s" (point))) should yield "7". 7) Now, select the third window. 8) M-x eval-expression (with-current-buffer "*scratch*" (message "%s" (point))) The last point yields "1" in my case. If I wanted it to yield "7", I would have to explicitly select the second window. So from this, I reasoned that using M-n when in read-extended-command, it will try to read a command from the last selected window's buffer, but the value of the point can vary if there's more than one window visiting that buffer (like in the test case originally described by Juri). Please correct me if I'm wrong. > Also, with-selected-window makes the window's buffer current, so why > did you need with-current-buffer in addition? What am I missing? This was an oversight on my part. From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 13 05:19:44 2018 Received: (at 32777) by debbugs.gnu.org; 13 Oct 2018 09:19:44 +0000 Received: from localhost ([127.0.0.1]:47735 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gBG5H-0008Ah-Ns for submit@debbugs.gnu.org; Sat, 13 Oct 2018 05:19:44 -0400 Received: from eggs.gnu.org ([208.118.235.92]:43335) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gBG5F-0008AU-Sh for 32777@debbugs.gnu.org; Sat, 13 Oct 2018 05:19:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gBG59-00047T-PW for 32777@debbugs.gnu.org; Sat, 13 Oct 2018 05:19:36 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:55825) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gBG59-00047D-HW; Sat, 13 Oct 2018 05:19:35 -0400 Received: from [176.228.60.248] (port=3547 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gBG57-0006d5-W8; Sat, 13 Oct 2018 05:19:35 -0400 Date: Sat, 13 Oct 2018 12:19:39 +0300 Message-Id: <83o9byurtg.fsf@gnu.org> From: Eli Zaretskii To: Federico Tedin , martin rudalics In-reply-to: (message from Federico Tedin on Tue, 2 Oct 2018 09:31:25 -0300) Subject: Re: bug#32777: 27.0.50; window-buffer gets wrong point References: <83wor12fut.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 32777 Cc: 32777@debbugs.gnu.org, juri@linkov.net 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: -6.0 (------) > From: Federico Tedin > Date: Tue, 2 Oct 2018 09:31:25 -0300 > Cc: juri@linkov.net, 32777@debbugs.gnu.org > > > Can you explain the change? The minibuffer window is already the > > selected window at this point (look at the implementation of > > minibuffer-selected-window), so using with-selected-window, which > > seems to be the only real change in the above, should be redundant. > > This was my reasoning: > > Calling "minibuffer-selected-window" returns the last selected window > before switching to the minibuffer. Then, calling "window-buffer" with > that window will return that window's buffer. > > The problem is that when "with-current-buffer" is called with the > resulting buffer, it that buffer has been opened on more than one > window, the active window will be set according to a criteria which I > haven't figured out yet, but not necessarily to the same exact window > "minibuffer-selected-window" returned. > > The way I tested this was the following: > 1) On a frame, open three windows. On the first two, open *scratch*. > On the third one, open > any other buffer. > 2) Insert some content into buffer *scratch* ("hello"). > 3) Make sure the first window is selected, and move the point to (point-min). > 4) M-x eval-expression (with-current-buffer "*scratch*" (message "%s" > (point))) should yield "1". > 5) Select the second window, and move the point to (point-max). > 6) M-x eval-expression (with-current-buffer "*scratch*" (message "%s" > (point))) should yield "7". > 7) Now, select the third window. > 8) M-x eval-expression (with-current-buffer "*scratch*" (message "%s" (point))) > > The last point yields "1" in my case. If I wanted it to yield "7", I > would have to explicitly select the second window. So from this, I > reasoned that using M-n when in read-extended-command, it will try to > read a command from the last selected window's buffer, but the value > of the point can vary if there's more than one window visiting that > buffer (like in the test case originally described by Juri). Please > correct me if I'm wrong. Thanks. Martin, any comments? From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 13 09:08:24 2018 Received: (at 32777) by debbugs.gnu.org; 13 Oct 2018 13:08:24 +0000 Received: from localhost ([127.0.0.1]:47847 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gBJea-000127-0I for submit@debbugs.gnu.org; Sat, 13 Oct 2018 09:08:24 -0400 Received: from mout.gmx.net ([212.227.15.19]:37101) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gBJeY-00011r-8z for 32777@debbugs.gnu.org; Sat, 13 Oct 2018 09:08:22 -0400 Received: from [192.168.1.100] ([213.162.73.245]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0M3AWN-1fLgR326ul-00sziU; Sat, 13 Oct 2018 15:08:10 +0200 Received: from [192.168.1.100] ([213.162.73.245]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0M3AWN-1fLgR326ul-00sziU; Sat, 13 Oct 2018 15:08:10 +0200 Message-ID: <5BC1EE38.2060906@gmx.at> Date: Sat, 13 Oct 2018 15:08:08 +0200 From: martin rudalics MIME-Version: 1.0 To: Eli Zaretskii , Federico Tedin Subject: Re: bug#32777: 27.0.50; window-buffer gets wrong point References: <83wor12fut.fsf@gnu.org> <83o9byurtg.fsf@gnu.org> In-Reply-To: <83o9byurtg.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:T1Z8usDHnVHwkIRSOisNXO8IOLABUS2SSD29N1JTe2OOMP0Sv/G ILpDGgoZJoOuJaJ27Ys1TESaA/GHBC+v8xI8OrfPnK82GLE5u5vn0h82xKcHXTFXg/uaor3 UDtHrOCTqwBMb7NFnTsdgjT7aciUaTZ2WE6Hhmbk3WkUu5OxsTHEWZSpg+m3x78c3uYzYiT hMOtp3eQKEk0w9PdmsMjg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V01:K0:C6eIYp9OO10=:1auSNacZCrPg0mDyeiT8eM FRicM6q7+JRnI/si8S0kCYywsQmPyZI3Tl/VSb5/XomqcjAUGnLRUoh0H6jvU3rRAJ6V3o19T wa8zvuTUKZgyF2DJ/TvBEudiWometK0v5ZBW5JDzvFnKIi80XqlTCrm8ED3o4BxKVwT+5Dedb FJ+TlAXnN+e1khM50BYKE5NJBFboIwplLV0iRdV31Cv7NfE6JjuGNa9lHtqU2NiBq16r00c4k /voAKOs6yHa4xk8foeE4MWmrmwIYlTkde4ha0WvWILereyIHephPBfN//pnzh/0ghFWmxHa03 2ibNpjblKV4XaJi4qZoTtJGm6uk90/9I1IQCil6t1XMO4IOB1C2vNf/jSz94vG6N/AgDANT60 Z6/ylIt5wCi07oLDJjs7JuJwUZnMiTEaStS/mPNF2PS6dpXshhGPrlvFy0qdGo1HR3gowLpcV VMQVK5aK4tgD28pQltTA+DNlUrX+a8kA9GEF/89bNITTsA0/77VgajRtZRDGRb3bq5RVj85Io UdHpo1WB81c1w1woUNG+h3IAHcFDUpTIwbhNR9bRqL2HsC6mbUpEtzxybUxcjG/qld41NPnqo wLhGCCkkBeDYXm4yqatlRwSpXzs4Or56/yi+yuPk37JTXhG7n4+CweMa3AEtfSs4QuK4t08Nq ATfN41wzeZ8NL8mqPn6oshj2KXEhqOEpFWH4dhB1xScDOQRK8h1wXsecYAWR9oqFGHDhM3yQc CNy2qw7Rld9CV8BQLrQ7mRrhGHC24NA2hZXX9q+NEuC21r0OgNyON1e6Os3/Bbu0bDqV5Wru6 3veRjk6/xZLzMQj1eweTUzVqUr5MhxjR7ub/YLorRsFjHQS/Bk= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 32777 Cc: 32777@debbugs.gnu.org, juri@linkov.net 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.7 (-) > Martin, any comments? + (with-selected-window (minibuffer-selected-window) + (with-current-buffer (window-buffer (selected-window)) + (and (commandp (function-called-at-point)) + (format "%S" (function-called-at-point)))))))) The + (with-current-buffer (window-buffer (selected-window)) should be superfluous by all our rules but we know too well how valid these rules sometimes are. Any other patch (for example, using an idiom like (window-point (minibuffer-selected-window))) would be likely longer than Federico's solution. It would be interesting to find out why the patch works. Federico's earlier remark The problem is that when "with-current-buffer" is called with the resulting buffer, it that buffer has been opened on more than one window, the active window will be set according to a criteria which I haven't figured out yet, but not necessarily to the same exact window "minibuffer-selected-window" returned. can't be the cause IMO because 'with-current-buffer' does not set the "active window" and the value of point of the buffer made current remains the previous value of point in that buffer and that should be the value assigned by this step 4.3. put point on "next-error", type M-x M-n, of Juri's scenario. So far I'm clueless. martin From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 15 03:56:25 2018 Received: (at 32777) by debbugs.gnu.org; 15 Oct 2018 07:56:25 +0000 Received: from localhost ([127.0.0.1]:49746 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gBxjk-00046b-4R for submit@debbugs.gnu.org; Mon, 15 Oct 2018 03:56:25 -0400 Received: from mout.gmx.net ([212.227.17.22]:39969) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gBxji-00046M-LI for 32777@debbugs.gnu.org; Mon, 15 Oct 2018 03:56:23 -0400 Received: from [192.168.1.101] ([212.95.5.207]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LfXmv-1fscYH2xSL-00p5nu; Mon, 15 Oct 2018 09:56:12 +0200 Received: from [192.168.1.101] ([212.95.5.207]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LfXmv-1fscYH2xSL-00p5nu; Mon, 15 Oct 2018 09:56:12 +0200 Message-ID: <5BC44818.6040006@gmx.at> Date: Mon, 15 Oct 2018 09:56:08 +0200 From: martin rudalics MIME-Version: 1.0 To: Eli Zaretskii , Federico Tedin Subject: Re: bug#32777: 27.0.50; window-buffer gets wrong point References: <83wor12fut.fsf@gnu.org> <83o9byurtg.fsf@gnu.org> <5BC1EE38.2060906@gmx.at> In-Reply-To: <5BC1EE38.2060906@gmx.at> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:Sy+Zt5vuRQ9N+lUjLHyeLZfla0nJAOa7Qoc/JynGmIreeIBG2g/ NHdc3Sl5JIEY1ecn8uEw6u9nOGv7KwEga7TS2IZLOJaCefTNjajPUsABsLKEwU2pXXRUw/O zGLPahCyOyJCbFoTIU9J+Ho99gSFzBAILB4xu/RvxpIt8MchcCV7Ens1Ym3i4eAHYQ1ELAm z4GTbj78RD/ziO02/Qcww== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V01:K0:Q1xl81tlYt8=:/90GxaxLsFSHQz4q7Ccd0Z lJy9rzoTQJYJqqhEsE/Qb8N7Si8IC5Cky/eklcMCv4IufH8cGOwV3RFkhwtp2OKTKbupc293x G10pY0y2G/i+m6H/zIY5DvDkLYiY/AfWImtri/o/ruLlXIdA90U1TnTFtUHhZ8ocbBo6HoLvo Zr3cdzAZ3cPpNX/gv5IPHicm6oFXMtjEeklYzPsjfgV+FnrCsxj09p2/f2UZ7q2e6iqStdweC RgxftluD9W8TwwhobKg4IIURroJg6dil5zM0esldxRjk+dFSUDJmOi8AANvDZC/iNUMNHTWSw 3ToKufMlDngAWHv1eHdSlYyn11FmCXw9/zUtvN8HD7+Daajnr3ZwMiFbpP7E6dtXUVn0i44Kf E2HHVi6Q01Fab62KA9ZMWf79RDU3I6YrRCxAstJPXBPVQpsfXaqsy0MwatFHDOgAfcBDNFqr2 H/M2lIHGp05KxlhF3EsL66lj8RG7aa/Rvm96PS8Rv1efJROKet20keytO3fZubjwP+w0bxcTC vQdLnfmCZ99SSksBiI/JVPfKvWh1T+UvjjEiUqMneTr3AAjdIyEyGyjay6FqjAvVdFs+LpnoO IfmJpMKXDbJr7ML8UABXXjx7dt6j/V8omFG46t9UHqd7VR7M3dKvfXh4uIKb9KH8VqhFHWXvz /VN3NN25v1JmXd1JfhA3yebkmliHaBCKWjYTPr9mdsST093vhfOYZ6M3fpdAlhD7NEflK+bGH 1Qtogyut2lIOAjTxulqF55xbi0tz8oYS2kDZGvdPqPm4gk9G+Yh5X4XLnPcCKOhgbat5oNB8z hOJnYbU+OaD+CtfhroB+/FNZ++1pKNlZQpU+DyrPQYW68SOdY8= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 32777 Cc: 32777@debbugs.gnu.org, juri@linkov.net 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.7 (-) > So far I'm clueless. Here are the clues: FWIW the problem we see here is a redisplay problem exemplified by the backtrace below. Recall that Juri did a M-x M-n with *scratch* selected in a window W1 on a frame F1 and *scratch* also shown with a different value of window point in a window W2 on another frame say F2. Now the M-x makes the minibuffer window on frame F1 the selected window. When Juri now types M-n the backtrace below kicks in. In particular, the x_consider_frame_title call in frame #10 does record_unwind_protect (unwind_format_mode_line, format_mode_line_unwind_data (f, current_buffer, selected_window, false)); and then continues to select window W2 on F2 from frame #9 to frame #3 and, since the window point of W2 differs from that of W1, sets the point of *scratch* to the value of W2's point from frame #2 to frame #0. Everything normal, it seems. But now the unwind form above kicks and, since the selected window of F1 is not the window on *scratch* but the minibuffer window, it will reselect the minibuffer window on F1. This will, however, fail to restore the position of point in *scratch* from the window point of W1 with the ensuing problem described by Juri. I hope this explains now why Federico's patch fixes Juri's scenario: Selecting minibuf_selected_window sets the point of *scratch* to the window point of W1 with the desired effect. I can see two possible fixes for the underlying problem: (1) Handle the minibuf_selected_window case specially. This means that, if on the target frame of the unwind form this variable is non-nil, we restore the value of point of the buffer shown in minibuf_selected_window to that window's point. (2) Ignore minibuf_selected_window and handle point of the buffer shown in the selected window of the frame whose title we consider for drawing its title. That is, record the buffer shown in f->selected_window together with its position of point before selecting f->selected_window in x_consider_frame_title and restore the buffer's position of point in the unwind form. I think (1) is more conservative because it strictly handles just scenarios like Juri's. But (1) does not handle the case where the buffer of W2 is not shown anywhere else when x_consider_frame_title is called. So IMHO (2) should be the correct approach but I have no idea what further consequences it could have. martin #0 temp_set_point_both (buffer=0x161ce10 , charpos=4141, bytepos=4141) at ../../src/intervals.c:1737 #1 0x01210b80 in set_point_both (charpos=4141, bytepos=4141) at ../../src/intervals.c:1895 #2 0x012106a1 in set_point_from_marker (marker=XIL(0x5e09b15)) at ../../src/intervals.c:1774 #3 0x0108a363 in select_window_1 (window=XIL(0x5dfcf25), inhibit_point_swap=false) at ../../src/window.c:565 #4 0x0108a17b in select_window (window=XIL(0x5dfcf25), norecord=XIL(0x8720), inhibit_point_swap=false) at ../../src/window.c:523 #5 0x0108a38a in Fselect_window (window=XIL(0x5dfcf25), norecord=XIL(0x8720)) at ../../src/window.c:593 #6 0x01013d60 in do_switch_frame (frame=XIL(0x5dfcda5), track=1, for_deletion=0, norecord=XIL(0x8720)) at ../../src/frame.c:1418 #7 0x01013dba in Fselect_frame (frame=XIL(0x5dfcda5), norecord=XIL(0x8720)) at ../../src/frame.c:1451 #8 0x0108a11c in select_window (window=XIL(0x5dfcf25), norecord=XIL(0x8720), inhibit_point_swap=false) at ../../src/window.c:515 #9 0x0108a38a in Fselect_window (window=XIL(0x5dfcf25), norecord=XIL(0x8720)) at ../../src/window.c:593 #10 0x0104651b in x_consider_frame_title (frame=XIL(0x5dfcda5)) at ../../src/xdisp.c:12032 #11 0x01046a62 in prepare_menu_bars () at ../../src/xdisp.c:12134 #12 0x0104afd2 in redisplay_internal () at ../../src/xdisp.c:14042 #13 0x01049d46 in redisplay () at ../../src/xdisp.c:13620 #14 0x0110ae22 in read_char (commandflag=1, map=XIL(0x1776a33), prev_event=XIL(0), used_mouse_menu=0x82e323, end_time=0x0) at ../../src/keyboard.c:2451 #15 0x0111969a in read_key_sequence (keybuf=0x82e464, prompt=XIL(0), dont_downcase_last=false, can_return_switch_frame=true, fix_current_buffer=true, prevent_redisplay=false) at ../../src/keyboard.c:9117 #16 0x0110844d in command_loop_1 () at ../../src/keyboard.c:1338 #17 0x011a39d2 in internal_condition_case (bfun=0x1108000 , handlers=XIL(0x35c0), hfun=0x11076a9 ) at ../../src/eval.c:1373 #18 0x01107c29 in command_loop_2 (ignore=XIL(0)) at ../../src/keyboard.c:1079 #19 0x011a2fba in internal_catch (tag=XIL(0x37a0), func=0x1107bfe , arg=XIL(0)) at ../../src/eval.c:1136 #20 0x01107b4b in command_loop () at ../../src/keyboard.c:1050 #21 0x01107221 in recursive_edit_1 () at ../../src/keyboard.c:703 #22 0x0114637b in read_minibuf (map=XIL(0x17862bb), initial=XIL(0), prompt=XIL(0x1a82b3c), expflag=false, histvar=XIL(0x2723e0), histpos=make_number(0), defalt=XIL(0), allow_props=false, inherit_input_method=false) at ../../src/minibuf.c:669 #23 0x01146df2 in Fread_from_minibuffer (prompt=XIL(0x1a82b3c), initial_contents=XIL(0), keymap=XIL(0x17862bb), sys_read=XIL(0), hist=XIL(0x2723e0), default_value=XIL(0), inherit_input_method=XIL(0)) at ../../src/minibuf.c:940 #24 0x011a7982 in funcall_subr (subr=0x12c1dc0 , numargs=7, args=0x82e810) at ../../src/eval.c:2954 #25 0x011a73bb in Ffuncall (nargs=8, args=0x82e80c) at ../../src/eval.c:2859 #26 0x011efd21 in exec_byte_code (bytestr=XIL(0x1322e14), vector=XIL(0x1322e25), maxdepth=make_number(18), args_template=make_number(2050), nargs=8, args=0x82eb20) at ../../src/bytecode.c:632 #27 0x011a7ed7 in funcall_lambda (fun=XIL(0x1322dfd), nargs=8, arg_vector=0x82eb00) at ../../src/eval.c:3060 #28 0x011a73fd in Ffuncall (nargs=9, args=0x82eafc) at ../../src/eval.c:2861 #29 0x011486b1 in Fcompleting_read (prompt=XIL(0x1a82b3c), collection=XIL(0x1a0385b), predicate=XIL(0x2800), require_match=XIL(0x8720), initial_input=XIL(0), hist=XIL(0x2723e0), def=XIL(0), inherit_input_method=XIL(0)) at ../../src/minibuf.c:1644 #30 0x011a605d in eval_sub (form=XIL(0x1a03833)) at ../../src/eval.c:2354 #31 0x011a09dd in Fprogn (body=XIL(0)) at ../../src/eval.c:481 #32 0x011a5b12 in eval_sub (form=XIL(0x1a037db)) at ../../src/eval.c:2276 #33 0x011a328e in Funwind_protect (args=XIL(0x1a037ab)) at ../../src/eval.c:1230 #34 0x011a5b12 in eval_sub (form=XIL(0x1a037b3)) at ../../src/eval.c:2276 #35 0x011a09dd in Fprogn (body=XIL(0)) at ../../src/eval.c:481 #36 0x011a2b5f in Flet (args=XIL(0x1a0377b)) at ../../src/eval.c:1009 #37 0x011a5b12 in eval_sub (form=XIL(0x1a0376b)) at ../../src/eval.c:2276 #38 0x011a09dd in Fprogn (body=XIL(0)) at ../../src/eval.c:481 #39 0x011a8287 in funcall_lambda (fun=XIL(0x1a0375b), nargs=0, arg_vector=0x0) at ../../src/eval.c:3131 #40 0x011a7503 in Ffuncall (nargs=1, args=0x82f048) at ../../src/eval.c:2873 #41 0x011efd21 in exec_byte_code (bytestr=XIL(0x13270dc), vector=XIL(0x13270f5), maxdepth=make_number(3), args_template=XIL(0), nargs=0, args=0x0) at ../../src/bytecode.c:632 #42 0x011ef157 in Fbyte_code (bytestr=XIL(0x13270dc), vector=XIL(0x13270f5), maxdepth=make_number(3)) at ../../src/bytecode.c:322 #43 0x011a5ed3 in eval_sub (form=XIL(0x13270cb)) at ../../src/eval.c:2330 #44 0x011a55ca in Feval (form=XIL(0x13270cb), lexical=XIL(0)) at ../../src/eval.c:2144 #45 0x0119db0d in Fcall_interactively (function=XIL(0x4bea0), record_flag=XIL(0), keys=XIL(0x161a30d)) at ../../src/callint.c:321 #46 0x011a7842 in funcall_subr (subr=0x151f0c0 , numargs=3, args=0x82f550) at ../../src/eval.c:2939 #47 0x011a73bb in Ffuncall (nargs=4, args=0x82f54c) at ../../src/eval.c:2859 #48 0x011efd21 in exec_byte_code (bytestr=XIL(0x1327124), vector=XIL(0x1327135), maxdepth=make_number(13), args_template=make_number(1025), nargs=1, args=0x82f870) at ../../src/bytecode.c:632 #49 0x011a7ed7 in funcall_lambda (fun=XIL(0x132710d), nargs=1, arg_vector=0x82f86c) at ../../src/eval.c:3060 #50 0x011a73fd in Ffuncall (nargs=2, args=0x82f868) at ../../src/eval.c:2861 #51 0x011a6dfd in call1 (fn=XIL(0x27e0), arg1=XIL(0x4bea0)) at ../../src/eval.c:2710 #52 0x011087c2 in command_loop_1 () at ../../src/keyboard.c:1451 #53 0x011a39d2 in internal_condition_case (bfun=0x1108000 , handlers=XIL(0x35c0), hfun=0x11076a9 ) at ../../src/eval.c:1373 #54 0x01107c29 in command_loop_2 (ignore=XIL(0)) at ../../src/keyboard.c:1079 #55 0x011a2fba in internal_catch (tag=XIL(0x8cc0), func=0x1107bfe , arg=XIL(0)) at ../../src/eval.c:1136 #56 0x01107bc3 in command_loop () at ../../src/keyboard.c:1058 #57 0x01107221 in recursive_edit_1 () at ../../src/keyboard.c:703 #58 0x011073f7 in Frecursive_edit () at ../../src/keyboard.c:774 #59 0x01105384 in main (argc=2, argv=0xa33f88) at ../../src/emacs.c:1731 Lisp Backtrace: "redisplay_internal (C function)" (0x0) "read-from-minibuffer" (0x82e810) "completing-read-default" (0x82eb00) "completing-read" (0x82eb68) "progn" (0x82ec78) "unwind-protect" (0x82ed68) "let" (0x82eed8) "read-extended-command" (0x82f04c) "byte-code" (0x82f268) "call-interactively" (0x82f550) "command-execute" (0x82f86c) From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 20 19:30:36 2018 Received: (at 32777) by debbugs.gnu.org; 21 Dec 2018 00:30:36 +0000 Received: from localhost ([127.0.0.1]:56928 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ga8i4-00017z-0y for submit@debbugs.gnu.org; Thu, 20 Dec 2018 19:30:36 -0500 Received: from catfish.maple.relay.mailchannels.net ([23.83.214.32]:2068) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ga8i1-00017o-3m for 32777@debbugs.gnu.org; Thu, 20 Dec 2018 19:30:33 -0500 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id B0B6742C27; Fri, 21 Dec 2018 00:30:30 +0000 (UTC) Received: from pdx1-sub0-mail-a6.g.dreamhost.com (unknown [100.96.29.126]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 56A3F4381A; Fri, 21 Dec 2018 00:30:30 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from pdx1-sub0-mail-a6.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.16.2); Fri, 21 Dec 2018 00:30:30 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Company-Dime: 4b87bd5d4bbafeb0_1545352230586_3202136756 X-MC-Loop-Signature: 1545352230586:2521373327 X-MC-Ingress-Time: 1545352230585 Received: from pdx1-sub0-mail-a6.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a6.g.dreamhost.com (Postfix) with ESMTP id DC73680870; Thu, 20 Dec 2018 16:30:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=+prk5M2FJXJgH8yIXjLTY+sL0Zs=; b= e3sup8BVNJmrflTwKmyM8qKzZTsdryMsXaOUbUgurWx0eJaMJTw12OoY2+7ZWgME Lv2HfzFzGRZGu5Ol5Rz1jvcMTauXo4ia91HwT1VXwUpAAtY7Df/GjAxmrhIfv7RQ dVjnkXqCv5cUHhA35yBHFiMqHVf+f3kNKnnEg/hODUY= Received: from mail.jurta.org (m91-129-106-79.cust.tele2.ee [91.129.106.79]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a6.g.dreamhost.com (Postfix) with ESMTPSA id C885F80855; Thu, 20 Dec 2018 16:30:26 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a6 From: Juri Linkov To: martin rudalics Subject: Re: bug#32777: 27.0.50; window-buffer gets wrong point Organization: LINKOV.NET References: <83wor12fut.fsf@gnu.org> <83o9byurtg.fsf@gnu.org> <5BC1EE38.2060906@gmx.at> <5BC44818.6040006@gmx.at> Date: Fri, 21 Dec 2018 02:18:43 +0200 In-Reply-To: <5BC44818.6040006@gmx.at> (martin rudalics's message of "Mon, 15 Oct 2018 09:56:08 +0200") Message-ID: <871s6bd95o.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedtkedrudejgedgvddtucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhofhffjgfkfgggtgesthdtredttdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrddutdeirdejleenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlrdhjuhhrthgrrdhorhhgpdhinhgvthepledurdduvdelrddutdeirdejledprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopehruhgurghlihgtshesghhmgidrrghtnecuvehluhhsthgvrhfuihiivgeptd X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 32777 Cc: Eli Zaretskii , 32777@debbugs.gnu.org, Federico Tedin 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 (-) > I can see two possible fixes for the underlying problem: > > (1) Handle the minibuf_selected_window case specially. This means > that, if on the target frame of the unwind form this variable is > non-nil, we restore the value of point of the buffer shown in > minibuf_selected_window to that window's point. > > (2) Ignore minibuf_selected_window and handle point of the buffer > shown in the selected window of the frame whose title we consider for > drawing its title. That is, record the buffer shown in > f->selected_window together with its position of point before > selecting f->selected_window in x_consider_frame_title and restore the > buffer's position of point in the unwind form. > > I think (1) is more conservative because it strictly handles just > scenarios like Juri's. But (1) does not handle the case where the > buffer of W2 is not shown anywhere else when x_consider_frame_title is > called. So IMHO (2) should be the correct approach but I have no idea > what further consequences it could have. If the underlying problem can't be fixed, then maybe at least fix this particular case like Federico proposed? From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 21 04:15:50 2018 Received: (at 32777) by debbugs.gnu.org; 21 Dec 2018 09:15:50 +0000 Received: from localhost ([127.0.0.1]:57094 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gaGuL-0007p7-V0 for submit@debbugs.gnu.org; Fri, 21 Dec 2018 04:15:50 -0500 Received: from mout.gmx.net ([212.227.15.15]:51511) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gaGuK-0007or-BU for 32777@debbugs.gnu.org; Fri, 21 Dec 2018 04:15:48 -0500 Received: from [192.168.1.101] ([46.125.249.11]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0LlDb4-1h8mB22pS2-00b4M1; Fri, 21 Dec 2018 10:15:38 +0100 Message-ID: <5C1CAF30.9090705@gmx.at> Date: Fri, 21 Dec 2018 10:15:28 +0100 From: martin rudalics MIME-Version: 1.0 To: Juri Linkov Subject: Re: bug#32777: 27.0.50; window-buffer gets wrong point References: <83wor12fut.fsf@gnu.org> <83o9byurtg.fsf@gnu.org> <5BC1EE38.2060906@gmx.at> <5BC44818.6040006@gmx.at> <871s6bd95o.fsf@mail.linkov.net> In-Reply-To: <871s6bd95o.fsf@mail.linkov.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:bLIl5Y2xr2GBNLRBNgDh4RPkJDVHeFqmw8RoA0aufRA2HACFEAg MJxDCZnOeEZn6H8DLxQ1tIu/jaumRKmTxduy92CJgBXXZdwViAmZb8rkLZ8vXbhV5Y31/y7 zxkg8B9qrJUcx565N86+wniU6KirjWXOjSApt4gF4hOTJ+FFXl3/mdUqlALclI03O8qaEB1 g2SW+rTJaqFmmhcKF/jUA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:GcbJIOXAAXk=:cskHQT5smwsWsqr1qeuTD4 +lHDuMKO/AemicQ95YJn58a7L6RydiDnC96FS0dmJjLfbf48+pUEN1bVex26IgTDgVJOr4j4F /NEo1KYE1RmIrG7RwAHRFYiEDtssaE1B67ppXAchMmJrdSH1avNj0JaJcrgil1T7Cvh+Dgstb sqrls2ZF2zivw7zGjRD1pKtgNK29H6o3arvA01IxpkSy+2mOaqrynfvMFPRPzQMiuKn9vSUdf yPJL4IOI2ALO9mDDiM5blOAdrBU/j2vSqOuUnJAyhp6RCcOhIdmhVAiDWFAff2TJwBQLC25VD rHiQ9x4q9/pd1fOOpusVsLLBAAAjOmt4rTfsGd08eq9cK5d1tlwYe2Y1uolR2gQ1AftWcOG7L 1AQFBau23MkM332G71UMYt2aTZ5BNkwowxJBWCnelyFsYL5kj/NV291D1JwVRWSWsW2GjtinY FsdrBQ8zi0e0CXzCZyRa1j2odDoTNQzYX2Wr+4opDZY3fP5diC9uOk81shIIThldAVVL2Lbpz +2rAmsKJ+YkhrN5ckz3ZCiGgEeLt1ta1yLiAceeUHTcJMMrjB9o1HuZczPiMw9TgErQicf+hm 1pKwfmTZ4/sUgMcvJxB4In02poAz1BwPOAKH54QjM36HLRJc/2J2Aflkir+OagG5YCux0WRu6 4HfHOfsIAA/fVYWntffJRrA+CN5LK899BysU4DecXPTdi3WYYm3k32HUUCGh1W9HtRkCPjWeL 9yDEOHlpuuzkzxrreD9cnvibD7qddvQwULLMrM7Fi3Tb3yzMrG6RaomO0QCckmm6fCjGOUvYO dolMdWX9iwHXrFX9hqsfWcjPuyAbdvZYjxDwYSFsk1PR3UDGiH79WXru6JaTppeFDORZRtxa2 ks9TWSUFzfx8R8j4qgAdCZCwOo05aX5s807e3l6ryVsaAwnJK0ch2N2FOwnbPu X-Spam-Score: 0.8 (/) X-Debbugs-Envelope-To: 32777 Cc: Eli Zaretskii , 32777@debbugs.gnu.org, Federico Tedin 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: -0.2 (/) > If the underlying problem can't be fixed, then maybe at least fix > this particular case like Federico proposed? I would like to hear Eli's opinion first. Eli can you please have a look at https://debbugs.gnu.org/cgi/bugreport.cgi?bug=32777#26 and tell us whether my analysis there is correct? If so, do you have any ideas how to proceed? Thanks, martin From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 21 11:03:12 2018 Received: (at 32777) by debbugs.gnu.org; 21 Dec 2018 16:03:12 +0000 Received: from localhost ([127.0.0.1]:58686 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gaNGa-0007Z9-7f for submit@debbugs.gnu.org; Fri, 21 Dec 2018 11:03:12 -0500 Received: from eggs.gnu.org ([208.118.235.92]:42897) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gaNGY-0007Yp-5z for 32777@debbugs.gnu.org; Fri, 21 Dec 2018 11:03:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gaNGP-0003fA-MP for 32777@debbugs.gnu.org; Fri, 21 Dec 2018 11:03:04 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:44841) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gaNGP-0003ew-77; Fri, 21 Dec 2018 11:03:01 -0500 Received: from [176.228.60.248] (port=3212 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gaNGO-0003SL-Q6; Fri, 21 Dec 2018 11:03:01 -0500 Date: Fri, 21 Dec 2018 18:02:50 +0200 Message-Id: <83pntuc1g5.fsf@gnu.org> From: Eli Zaretskii To: martin rudalics In-reply-to: <5C1CAF30.9090705@gmx.at> (message from martin rudalics on Fri, 21 Dec 2018 10:15:28 +0100) Subject: Re: bug#32777: 27.0.50; window-buffer gets wrong point References: <83wor12fut.fsf@gnu.org> <83o9byurtg.fsf@gnu.org> <5BC1EE38.2060906@gmx.at> <5BC44818.6040006@gmx.at> <871s6bd95o.fsf@mail.linkov.net> <5C1CAF30.9090705@gmx.at> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 32777 Cc: 32777@debbugs.gnu.org, federicotedin@gmail.com, juri@linkov.net 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: -6.0 (------) > Date: Fri, 21 Dec 2018 10:15:28 +0100 > From: martin rudalics > CC: Eli Zaretskii , > Federico Tedin , > 32777@debbugs.gnu.org > > I would like to hear Eli's opinion first. Eli can you please have a > look at > > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=32777#26 > > and tell us whether my analysis there is correct? If so, do you have > any ideas how to proceed? I think your analysis is correct. As for how to proceed: I would love for us to have a way of selecting a window temporarily, in way that doesn't involve saving/restoring its window-point. But maybe this is a pipe dream, so I think we should try your alternative #2 on master and see what it breaks. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 23 04:40:26 2018 Received: (at 32777) by debbugs.gnu.org; 23 Dec 2018 09:40:26 +0000 Received: from localhost ([127.0.0.1]:60532 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gb0FG-0000rg-Fp for submit@debbugs.gnu.org; Sun, 23 Dec 2018 04:40:26 -0500 Received: from mout.gmx.net ([212.227.15.15]:38469) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gb0FE-0000rU-Cj for 32777@debbugs.gnu.org; Sun, 23 Dec 2018 04:40:24 -0500 Received: from [192.168.1.101] ([46.125.250.117]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MFuWk-1gdlNo3x5i-00EqlM; Sun, 23 Dec 2018 10:40:15 +0100 Message-ID: <5C1F57FD.2090103@gmx.at> Date: Sun, 23 Dec 2018 10:40:13 +0100 From: martin rudalics MIME-Version: 1.0 To: Eli Zaretskii Subject: Re: bug#32777: 27.0.50; window-buffer gets wrong point References: <83wor12fut.fsf@gnu.org> <83o9byurtg.fsf@gnu.org> <5BC1EE38.2060906@gmx.at> <5BC44818.6040006@gmx.at> <871s6bd95o.fsf@mail.linkov.net> <5C1CAF30.9090705@gmx.at> <83pntuc1g5.fsf@gnu.org> In-Reply-To: <83pntuc1g5.fsf@gnu.org> Content-Type: multipart/mixed; boundary="------------060607010403050800010705" X-Provags-ID: V03:K1:jHaC/XuwmQjbZdW0ofs1Bq7jowMqKhgXldY8ta20OQRj71b+Yah RKnmvq0HK2PlDPbFKkqnGU8TyshkqsaMFEMFWsoQUc7t3S6gt3h7XkgZZ6K8C5+WUlJw7wq wZkI8Q/9mB4AjExLXjyGntJA/Qag2FMHSE6jSUY6qWjYAG2BJydNiyYJjOXGJPXfKqGtsrV dm485q90Y0qlJIOVNgpKw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:XEyuepnAWaY=:CCRIfU3suXUlL7y3VC4MX6 xAh2LIdp4v+vPb7+aw5TeTAoNWANeERuUWSUsCLJHWWRtEk+/E6817Jx/+ofJD99hNICoPU7g aeLpTqwgErRxEO8XUO7Gj2B/n+yYRntopG0BfQx7tL3BDxDYhaWzA2kRZqtglGzqYV/cx4/Gl 5O/D4mVkkhyjyoE/eOKOqy4CWe2aXEYrNrW0f6cMEkOP3zTvpWw1+spwcq5hZAFdhJzobwORQ HacShz8PA4G0s3vaIfOSgk66wMVU8uR9DHUz3JIBSHoHQ7HccfUu8iWOXLIuOVusorMO49L8N 0l31RSXgbqQsXcUSfFtX9bg9FhRBUIpXJCo78ppIY2AhHNZfF8xydGRAgwOc5zasq6ExH+KrO 7bBSIbzf+rD9wXnaYyv1vvjnGrLDP2KbfM+Fx96pDTtlwsUC2i82StlVkvuYPZLcqxYQLetk2 eiMdCfXIqvxW5xvlQ9/H5g4IUCoteRPzVstqf/aBPVguo8fIWVyl9QMXF8toJJ5yGqW/TVGuH UdW7Y7kbFn1PieFcmeWRNLh7Bs6quzh5+P+RyAFoNwljbcHgvJGMz3iFxhofCqUcG6dAk7ALp 6uznDXo0wuk6ZDMyrUCpiUiOV6181GTc4Se76fWZRzBNT4LKnoWi+ljqukEQIOl3vTLrPFsRi fpO8C/JA8slbzh542m9j9IGvN/1wFllJffP/Ghf3lUXdVhwCnU0CDjfkPHAvWbc8H5I4+NWvm /a3n9MDsY3XrzeAYn3ikn2KmPFv/EyGavhTWyusTDIdmsN8OGcx296oyxntYADiKPe1JvS2/Z pPfI6oRSFf0HU21KjqMrbUWjKjW/zgX9MnWBDUth4ImG4ubVeRcJt0oEZw3GMFmuQz+mmDIxA 3fKxH+BolheckYrx1E+92a0i9g9DYRN0SOfZaCJao= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 32777 Cc: 32777@debbugs.gnu.org, federicotedin@gmail.com, juri@linkov.net 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.7 (-) This is a multi-part message in MIME format. --------------060607010403050800010705 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit > As for how to proceed: I would love for us to have a way of selecting > a window temporarily, in way that doesn't involve saving/restoring its > window-point. It depends on what your semantics of "selecting a window temporarily" are. The only invariance frame/window management requires is that (frame-selected-window (selected-frame)) equals (selected-window). Otherwise you can freely set things like selected_window and selected_frame directly. Things get problematic when you want to, for example, show the line number of a buffer in the mode line since in that case you need the corresponding window's point which is stored in the window structure only if the window is not the selected one. So the most important prerequisite for what you want is that redisplay itself always has a very strong opinion of which window is the selected one and which buffer is current. One of the most unexpected things redisplay currently does is to run Fselect_frame from unwind_format_mode_line which if I'm not mistaken could wind up calling do_switch_frame with TRACK non-zero and thus cause a Fredirect_frame_focus from within redisplay. I think that redisplay should not call 'select-frame' or 'select-window' for such reasons. > But maybe this is a pipe dream, so I think we should > try your alternative #2 on master and see what it breaks. To elaborate further on what I stated there as >> But (1) does not handle the case where the >> buffer of W2 is not shown anywhere else when x_consider_frame_title is >> called. So IMHO (2) should be the correct approach but I have no idea >> what further consequences it could have. consider the following scenario with emacs -Q: C-x 5 2 C-x 5 o C-x b RET M-: (with-current-buffer "*scratch*" (goto-char (point-min))) M-: (with-current-buffer "*scratch*" (point)) The value of evaluating the second form depends on the position of point of the window displaying *scratch* and not on where the 'goto-char' went before. So this is a quite nasty bug IMHO. Unfortunately, curing it is non-trivial to avoid that some window point gets moved unexpectedly, see the attached patch. People using multiple frames pretty please try to run it and report any bad experiences here ASAP. Thanks, martin --------------060607010403050800010705 Content-Type: text/plain; charset=windows-1252; name="xdisp.c.diff" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="xdisp.c.diff" ZGlmZiAtLWdpdCBhL3NyYy94ZGlzcC5jIGIvc3JjL3hkaXNwLmMKaW5kZXggOTQ3NDJjMi4u MzE1ZGNlMiAxMDA2NDQKLS0tIGEvc3JjL3hkaXNwLmMKKysrIGIvc3JjL3hkaXNwLmMKQEAg LTExODYwLDcgKzExODYwLDcgQEAgc3RhdGljIHZvaWQgQVRUUklCVVRFX0ZPUk1BVF9QUklO VEYgKDEsIDApCiAgIFZtb2RlX2xpbmVfdW53aW5kX3ZlY3RvciA9IFFuaWw7CiAKICAgaWYg KE5JTFAgKHZlY3RvcikpCi0gICAgdmVjdG9yID0gbWFrZV9uaWxfdmVjdG9yICgxMCk7Cisg ICAgdmVjdG9yID0gbWFrZV9uaWxfdmVjdG9yICgxMik7CiAKICAgQVNFVCAodmVjdG9yLCAw LCBtYWtlX2ZpeG51bSAobW9kZV9saW5lX3RhcmdldCkpOwogICBBU0VUICh2ZWN0b3IsIDEs IG1ha2VfZml4bnVtIChNT0RFX0xJTkVfTk9QUk9QX0xFTiAoMCkpKTsKQEAgLTExODc3LDEy ICsxMTg3NywyNCBAQCBzdGF0aWMgdm9pZCBBVFRSSUJVVEVfRk9STUFUX1BSSU5URiAoMSwg MCkKICAgQVNFVCAodmVjdG9yLCA3LCBvd2luKTsKICAgaWYgKHRhcmdldF9mcmFtZSkKICAg ICB7CisgICAgICBMaXNwX09iamVjdCBidWZmZXIgPSBYV0lORE9XICh0YXJnZXRfZnJhbWUt PnNlbGVjdGVkX3dpbmRvdyktPmNvbnRlbnRzOworICAgICAgc3RydWN0IGJ1ZmZlciAqYiA9 IFhCVUZGRVIgKGJ1ZmZlcik7CisgICAgICBzdHJ1Y3QgYnVmZmVyICpjYiA9IGN1cnJlbnRf YnVmZmVyOworCiAgICAgICAvKiBTaW1pbGFybHkgdG8gYHdpdGgtc2VsZWN0ZWQtd2luZG93 JywgaWYgdGhlIG9wZXJhdGlvbiBzZWxlY3RzCiAJIGEgd2luZG93IG9uIGFub3RoZXIgZnJh bWUsIHdlIG11c3QgcmVzdG9yZSB0aGF0IGZyYW1lJ3MKIAkgc2VsZWN0ZWQgd2luZG93LCBh bmQgKGZvciBhIHR0eSkgdGhlIHRvcC1mcmFtZS4gICovCiAgICAgICBBU0VUICh2ZWN0b3Is IDgsIHRhcmdldF9mcmFtZS0+c2VsZWN0ZWRfd2luZG93KTsKICAgICAgIGlmIChGUkFNRV9U RVJNQ0FQX1AgKHRhcmdldF9mcmFtZSkpCiAJQVNFVCAodmVjdG9yLCA5LCBGUkFNRV9UVFkg KHRhcmdldF9mcmFtZSktPnRvcF9mcmFtZSk7CisKKyAgICAgIC8qIElmIHdlIHNlbGVjdCBh IHdpbmRvdyBvbiBhbm90aGVyIGZyYW1lLCBtYWtlIHN1cmUgdGhhdCB0aGF0CisJIHNlbGVj dGlvbiBkb2VzIG5vdCBsZWF2ZSBpdHMgYnVmZmVyJ3MgcG9pbnQgbW9kaWZpZWQgd2hlbgor CSB1bndpbmRpbmcgKEJ1ZyMzMjc3NykuICAqLworICAgICAgQVNFVCAodmVjdG9yLCAxMCwg YnVmZmVyKTsKKyAgICAgIGN1cnJlbnRfYnVmZmVyID0gYjsKKyAgICAgIEFTRVQgKHZlY3Rv ciwgMTEsIGJ1aWxkX21hcmtlciAoY3VycmVudF9idWZmZXIsIFBULCBQVF9CWVRFKSk7Cisg ICAgICBjdXJyZW50X2J1ZmZlciA9IGNiOwogICAgIH0KIAogICByZXR1cm4gdmVjdG9yOwpA QCAtMTE5MTMsMTIgKzExOTI1LDI2IEBAIHN0YXRpYyB2b2lkIEFUVFJJQlVURV9GT1JNQVRf UFJJTlRGICgxLCAwKQogCXsKIAkgIExpc3BfT2JqZWN0IGZyYW1lCiAJICAgID0gV0lORE9X X0ZSQU1FIChYV0lORE9XICh0YXJnZXRfZnJhbWVfd2luZG93KSk7CisJICBMaXNwX09iamVj dCBidWZmZXIgPSBBUkVGICh2ZWN0b3IsIDEwKTsKIAogCSAgaWYgKCFFUSAoZnJhbWUsIFdJ TkRPV19GUkFNRSAoWFdJTkRPVyAob2xkX3dpbmRvdykpKSkKIAkgICAgRnNlbGVjdF93aW5k b3cgKHRhcmdldF9mcmFtZV93aW5kb3csIFF0KTsKIAogCSAgaWYgKCFOSUxQIChvbGRfdG9w X2ZyYW1lKSAmJiAhRVEgKG9sZF90b3BfZnJhbWUsIGZyYW1lKSkKIAkgICAgRnNlbGVjdF9m cmFtZSAob2xkX3RvcF9mcmFtZSwgUXQpOworCisJICBpZiAoQlVGRkVSX0xJVkVfUCAoWEJV RkZFUiAoYnVmZmVyKSkKKwkgICAgICAmJiAhRVEgKFhXSU5ET1cgKG9sZF93aW5kb3cpLT5j b250ZW50cywgYnVmZmVyKSkKKwkgICAgeworCSAgICAgIC8qIFJlc3RvcmUgcG9pbnQgb2Yg dGFyZ2V0X2ZyYW1lX3dpbmRvdydzIGJ1ZmZlcgorCQkgKEJ1ZyMzMjc3NykuICAqLworCSAg ICAgIHN0cnVjdCBidWZmZXIgKmNiID0gY3VycmVudF9idWZmZXI7CisKKwkgICAgICBjdXJy ZW50X2J1ZmZlciA9IFhCVUZGRVIgKGJ1ZmZlcik7CisJICAgICAgc2V0X3BvaW50X2Zyb21f bWFya2VyIChBUkVGICh2ZWN0b3IsIDExKSk7CisJICAgICAgQVNFVCAodmVjdG9yLCAxMSwg UW5pbCk7CisJICAgICAgY3VycmVudF9idWZmZXIgPSBjYjsKKwkgICAgfQogCX0KIAogICAg ICAgRnNlbGVjdF93aW5kb3cgKG9sZF93aW5kb3csIFF0KTsKCg== --------------060607010403050800010705-- From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 29 04:59:58 2018 Received: (at 32777) by debbugs.gnu.org; 29 Dec 2018 09:59:58 +0000 Received: from localhost ([127.0.0.1]:40845 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gdBPR-0008WC-VA for submit@debbugs.gnu.org; Sat, 29 Dec 2018 04:59:58 -0500 Received: from mout.gmx.net ([212.227.15.18]:58255) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gdBPP-0008Vz-TI for 32777@debbugs.gnu.org; Sat, 29 Dec 2018 04:59:56 -0500 Received: from [192.168.1.101] ([212.95.5.17]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0LrNIC-1hMO573s4q-0137lR; Sat, 29 Dec 2018 10:59:46 +0100 Message-ID: <5C274591.90507@gmx.at> Date: Sat, 29 Dec 2018 10:59:45 +0100 From: martin rudalics MIME-Version: 1.0 To: Eli Zaretskii Subject: Re: bug#32777: 27.0.50; window-buffer gets wrong point References: <83wor12fut.fsf@gnu.org> <83o9byurtg.fsf@gnu.org> <5BC1EE38.2060906@gmx.at> <5BC44818.6040006@gmx.at> <871s6bd95o.fsf@mail.linkov.net> <5C1CAF30.9090705@gmx.at> <83pntuc1g5.fsf@gnu.org> <5C1F57FD.2090103@gmx.at> In-Reply-To: <5C1F57FD.2090103@gmx.at> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:wqggARV5y/HdjJmAvZLXKAj5qKA8TuvPT0bK6DoJG210w0gezp0 LXlQZxqvDf3t8xB/HX2mNMfyzah8zEpgETeBLKjCALzyu/IuKggIDVT9073gIAGYGWWcxCo m870d7Zvf2CP1zCwQZ0N6XuYOP0F3ZZ/waCdfKd7oY8e/YRh/5lnPCOQwzahvMZo1ok6ubF UVigAN4NT366gHBUy41dQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:RM8xHIAoabA=:qvXXOdcInPkkUFST0eSicq KGzdlAw379MIVCcuQbDMaxDPVzLPCR83S1K4dopXw97d4ChYvXzKKLYFPWYyVldRCLPBODOSN xxN80T3PsdvRZAHwT2h6iOHRidtJKz8QkWEe3LoLrUUF2vbYZQp1vfQQCX+V4ctwMhPEitOSp KVlRFZmjCkFVjQUqV4H6gNDJgSdVAjCppsVF042p2PP4S2eql5ySefb/WDBTKsoIEFQrRipDn vRWN7/YS/yJ4hNLyiQ8av+SH01EoVGCFO37blaT7s3pt0Drog9UzhF/nt5kv+nCfiHrvXvZew IAaxmuYM/6XS1zsoHX3QFFgkWZgpGqzE9+osyrWIUlTAC5rn5HxxaNDq0FVc13SBFl3Cf3e5i EINRHHepxvSgCLj7g4LLJImj3XX8fjtiPDIOvowEseQmxwEtgam47DxerkidgFG92WOtmX5rD 30kTp4gQKfAfaZrOJ8BB0Y5ej9ztPstCHP4AN4IM6kT0Huc1Azd6zEtGDp8HDwdjCwl34SbBb rdJ/gOIclXp0UcmZpHc8+qamG3mAmFa+SSNPru2o7Vp2pIYyDcHjHRBer5qjVyo0Me2FugAKQ jTaUiUEP7ibe05DsT0tONTRjg4Gca0YiWn3omY0MC09OBi+2yidUOCGl+vcm8JvRD/qBTNUtO kLEG15EGWUcRy1f6IBku/6ZxFZELIdvkT74PFfBOO0CldYfXhglAjcEPKhCy4OLJP+bMHr17t cQHZj6G+RSDGqVKzzSszBS4Z6rLsoHGxXUVhHpNPpM/5jpIRFBXCxOXu5JXQ7bpshiPeoCPJv kKPbLc1l+4PsTTnwlFCanx3DW8kLeoh1TttZz7upqEdB7nzl9BAlI2WP0cSGhKNnGgsxNNwjq 1eEZ4nvcIHsrrjEvV3lljvu8Xkfmo8F8WJf6Rdhc6KSkf3fNXl4VxwP/dTEoWN X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 32777 Cc: 32777@debbugs.gnu.org, federicotedin@gmail.com, juri@linkov.net 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.7 (-) > Unfortunately, curing it is non-trivial to avoid that some window > point gets moved unexpectedly, see the attached patch. I now installed on master a slightly modified version. Kindly check whether all bugs mentioned in this thread have been fixed and report any anomalies immediately. Thanks, martin From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 29 18:24:32 2018 Received: (at 32777-done) by debbugs.gnu.org; 29 Dec 2018 23:24:32 +0000 Received: from localhost ([127.0.0.1]:41708 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gdNy4-0008KW-3I for submit@debbugs.gnu.org; Sat, 29 Dec 2018 18:24:32 -0500 Received: from golden.birch.relay.mailchannels.net ([23.83.209.73]:27641) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gdNxz-0008KB-5F for 32777-done@debbugs.gnu.org; Sat, 29 Dec 2018 18:24:27 -0500 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 0D2415C3526; Sat, 29 Dec 2018 23:24:26 +0000 (UTC) Received: from pdx1-sub0-mail-a25.g.dreamhost.com (unknown [100.96.36.160]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id AC2E95C33C5; Sat, 29 Dec 2018 23:24:25 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from pdx1-sub0-mail-a25.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.16.2); Sat, 29 Dec 2018 23:24:26 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Hysterical-Trade: 29a0ad2c7f4ff421_1546125865874_772107210 X-MC-Loop-Signature: 1546125865874:2924348858 X-MC-Ingress-Time: 1546125865874 Received: from pdx1-sub0-mail-a25.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a25.g.dreamhost.com (Postfix) with ESMTP id 5938B819C7; Sat, 29 Dec 2018 15:24:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=++WhFqq7jwKQwQjEeHGUkhzuTCg=; b= bF2w0JUNtWZAWNsmlk1gZITznQ4LIkvUzTGBESuB7zBqeG3Cu8j3Fe1VGBdV/JSO /OwVHRVhL9RQfSfGgwmlQnZiEws6EtWcftbrgOdkVYdi8sYMzhb3PVi/khlpxK90 ShMc7gUGfWe2S/bgcfAmQDHJaqk2YEVIz6VhAErbOJI= Received: from mail.jurta.org (m91-129-108-193.cust.tele2.ee [91.129.108.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a25.g.dreamhost.com (Postfix) with ESMTPSA id BD294819C6; Sat, 29 Dec 2018 15:24:23 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a25 From: Juri Linkov To: martin rudalics Subject: Re: bug#32777: 27.0.50; window-buffer gets wrong point Organization: LINKOV.NET References: <83wor12fut.fsf@gnu.org> <83o9byurtg.fsf@gnu.org> <5BC1EE38.2060906@gmx.at> <5BC44818.6040006@gmx.at> <871s6bd95o.fsf@mail.linkov.net> <5C1CAF30.9090705@gmx.at> <83pntuc1g5.fsf@gnu.org> <5C1F57FD.2090103@gmx.at> <5C274591.90507@gmx.at> Date: Sun, 30 Dec 2018 01:10:15 +0200 In-Reply-To: <5C274591.90507@gmx.at> (martin rudalics's message of "Sat, 29 Dec 2018 10:59:45 +0100") Message-ID: <87r2e0ym4g.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedtledrtdelgddutdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffuohhfffgjkfgfgggtsehttdertddtredtnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledruddtkedrudelfeenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlrdhjuhhrthgrrdhorhhgpdhinhgvthepledurdduvdelrddutdekrdduleefpdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtoheprhhuuggrlhhitghssehgmhigrdgrthenucevlhhushhtvghrufhiiigvpedt X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 32777-done Cc: 32777-done@debbugs.gnu.org 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 (-) > I now installed on master a slightly modified version. Kindly check > whether all bugs mentioned in this thread have been fixed and report > any anomalies immediately. Thanks. I confirm that all reported anomalies are fixed now. From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 30 04:49:31 2018 Received: (at 32777-done) by debbugs.gnu.org; 30 Dec 2018 09:49:31 +0000 Received: from localhost ([127.0.0.1]:41827 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gdXit-0002we-3W for submit@debbugs.gnu.org; Sun, 30 Dec 2018 04:49:31 -0500 Received: from mout.gmx.net ([212.227.17.20]:40993) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gdXir-0002wQ-1G for 32777-done@debbugs.gnu.org; Sun, 30 Dec 2018 04:49:29 -0500 Received: from [192.168.1.101] ([213.162.73.190]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LeBPM-1h77mE40r6-00puEH; Sun, 30 Dec 2018 10:49:19 +0100 Message-ID: <5C28949D.8090805@gmx.at> Date: Sun, 30 Dec 2018 10:49:17 +0100 From: martin rudalics MIME-Version: 1.0 To: Juri Linkov Subject: Re: bug#32777: 27.0.50; window-buffer gets wrong point References: <83wor12fut.fsf@gnu.org> <83o9byurtg.fsf@gnu.org> <5BC1EE38.2060906@gmx.at> <5BC44818.6040006@gmx.at> <871s6bd95o.fsf@mail.linkov.net> <5C1CAF30.9090705@gmx.at> <83pntuc1g5.fsf@gnu.org> <5C1F57FD.2090103@gmx.at> <5C274591.90507@gmx.at> <87r2e0ym4g.fsf@mail.linkov.net> In-Reply-To: <87r2e0ym4g.fsf@mail.linkov.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:Y9p1clAzA5qga7LQLKVm7kQxLXCziAcXcbYNPWZ2GiYhh9lUGtg RMemwi1fv9A/smxTFUKz9aYFtz5hXsgDWBew1V9+fPSsvJnPKSI8mgJnoPHqcE336jP8XpF lENnk81JccanhcvBephRQzYYfi6DHsHheV0UFjXbg4JS6JFa3yDrO3ImWqwopGEsGIzpKrK RqgvGK/2R3pMv5oUHwk8w== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:7BNPv9NMogQ=:QEvKPzYtSK2rmn5YVUl1ub zowUBl9+97w+dbhtnsV8DcMBSMt155yc7Co7nKn5SlV43nCwgKKExIz6bB8NnLeNBkA97ETqX PZlpGlvkcUwQLC0EvPwTmCwO63xkMioA1sbVPD6Vyg4rfkllujUFMsSveATNvkmm1VyAigZdM dOX5lwJh43MH4KBmC61V8hRayBhQ9jW0o8VHYMpKY6tJp6EqwPuCEZrAx61POWPuFLaoIE1Ax J/IC1alOv8K0H6pQesGTFi+Ob7/KYAygU6eE0SVD0xfdbLUuCG2XJkC+tHgoQo8WGLTSOCjE7 Sxc172a14K//HxFETyYN0loWNQs13SCXSMOW6O8MfH8vhR5H1ocSHrogSPc3qklFpa55JQr2j xAUTPR/C4Q7QSJ9aUTmePuwrsXPG6IFhzqLfAWDysXEyEi2xyhuqq7Bm1XzA+ADA8YUPTmVU5 1C00UfcUmz611msKWjTGX8eFzc9Gg5vcnW6ad+rE+zowa4kIMwxWqB0gto1LOhZNYzEwsPA4u VCinf1uRXwDU2EjRiVOAsKB980xMbQrkUqc9g43KER+2g8PdLdhZCfta4pEvMCUnBtCyTU36M myP/GD9Sw0tDn2fCAeECRfZXre0s9leqycPMBsM7XHrpTAmHZuVwnzVciJlXQm+FDBSgmN8Ti DuqK3shfXu+k6oPXEbaUN4azb3cNf/PnsSadA7kJo5I13E3v2DM6p/KB2x/ItQ0WzwYkeZiHl bfR7/VsVt6gE1H8qBGBdYret38k3x4fE0znOTaLjnlNJklVoaY5UjoK2+5aJeLMUQz7A60VGV jTkovw83bHba9xQtutenIlDTpyL5j6G+pkKr2VQRIDH0e0LUqrIomgt6BGUH7T7CzqS7hcNY1 uNuh7tGvC3t1t54v4jWPi8A3kuh5kWg2Kpqb6dXUrbgoJNR7UnSi3l/OM3cA2t X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 32777-done Cc: 32777-done@debbugs.gnu.org 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.7 (-) > Thanks. I confirm that all reported anomalies are fixed now. Thanks for checking, martin From unknown Tue Jun 17 21:55:50 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 27 Jan 2019 12:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator