From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#35860: Delayed window positioning after buffer display Date: Tue, 18 Jun 2019 10:19:21 +0200 Message-ID: <4465efef-794f-de5d-ed5d-04403680a622@gmx.at> References: <87o93ucjsi.fsf@mail.linkov.net> <83ef4p7prf.fsf@gnu.org> <87a7fc51qm.fsf@mail.linkov.net> <83k1eg5pmx.fsf@gnu.org> <87k1efhkgp.fsf@mail.linkov.net> <2347769f-9ab3-c1b6-699e-4e89a7d8eb1c@gmx.at> <875zpb4zdw.fsf@mail.linkov.net> <878su5i67f.fsf@mail.linkov.net> <87muik3svu.fsf@mail.linkov.net> <4d0733b1-4ee0-222b-395a-8f26ff76f2da@gmx.at> <87imt6jva7.fsf@mail.linkov.net> <87h88p8e5z.fsf@mail.linkov.net> <871rzsdj5a.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="67502"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 35860@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jun 18 10:20:31 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hd9Lz-000HNh-D8 for geb-bug-gnu-emacs@m.gmane.org; Tue, 18 Jun 2019 10:20:31 +0200 Original-Received: from localhost ([::1]:54672 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hd9Ls-0000k2-3D for geb-bug-gnu-emacs@m.gmane.org; Tue, 18 Jun 2019 04:20:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37883) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hd9LX-0000ja-TM for bug-gnu-emacs@gnu.org; Tue, 18 Jun 2019 04:20:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hd9LW-0005Fg-QT for bug-gnu-emacs@gnu.org; Tue, 18 Jun 2019 04:20:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58400) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hd9LW-0005FY-Mn for bug-gnu-emacs@gnu.org; Tue, 18 Jun 2019 04:20:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hd9LW-0002FD-Er for bug-gnu-emacs@gnu.org; Tue, 18 Jun 2019 04:20:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 18 Jun 2019 08:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35860 X-GNU-PR-Package: emacs Original-Received: via spool by 35860-submit@debbugs.gnu.org id=B35860.15608459768570 (code B ref 35860); Tue, 18 Jun 2019 08:20:02 +0000 Original-Received: (at 35860) by debbugs.gnu.org; 18 Jun 2019 08:19:36 +0000 Original-Received: from localhost ([127.0.0.1]:43708 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hd9L6-0002E9-9N for submit@debbugs.gnu.org; Tue, 18 Jun 2019 04:19:36 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:51055) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hd9L3-0002Dq-P3 for 35860@debbugs.gnu.org; Tue, 18 Jun 2019 04:19:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1560845961; bh=IUxvnt4IKX/jolDn/vrsK1KJYoA2EuP7cd3RRiXgDt8=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=K0ev6OCZH/yv3DChvMLoss7csx9juDtwxk/YfpBMG7DFKz3E0j8iV10700uRpjEwf nTWZiHX4c/WRvwp10Qub9LFDc6bWIHKKD37jjoVFF/kM2TUARXQs3DMqftQ0TtZ/gy C3jo3kO4tnOP6O5J59mlLTCDnf5K2lRNMwbBPbcc= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.101] ([212.95.5.226]) by mail.gmx.com (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MeU4y-1iDIy52dnQ-00aUxY; Tue, 18 Jun 2019 10:19:21 +0200 In-Reply-To: <871rzsdj5a.fsf@mail.linkov.net> Content-Language: de-DE X-Provags-ID: V03:K1:BRUIG2nbZetnZBEuml88ep1V8phEsEpqhkiPzd8ph4cxQ/0jRum KdKhzIPCrNsENfezkX+oziQyiDczo+ty2m4iB2KRo0FCUYLQ+ldeo+wSiaSzc2g62DGZy4/ 7T6Pv5ECoL5wZLOo3sxlK5RtS+0bwsbSMRrSAzLS4vUAW8b+LlKLi8X+p0A5kUtCFQPVLUY u4VYF33FNioSZVy/Z4L7A== X-UI-Out-Filterresults: notjunk:1;V03:K0:qIUFlgzsyKQ=:bkguXm0s8zk7npu88yVTZH wx/hm6ciAHGhx2WP0pGVv7Qic7RI1qSS8LIt37i8Bl0wJWCyFTDn2H10MFH8eJxGH7EKAKdBo FgvaiXEe6iJprNt1NiIK1UowvLcpmad4DqaMeYG25osh+5MmXeZqBYCVristunq732Gk/BX5S I14SR1pa1G8o01phOkVyQeqS2TRkZCMrOCJS1/7SGQWQpYNmDeg7NuSgLyY90FHGdh3u+j9JP 2fdLSC3qsHdaWbkQ1dO7S50Kv9ZoW9r1sy+TYePOnLvj9bBAO5IusEM8xHr8XT4a2kDIWJgLf 6A2oeLA9r2XK5hBoBe8Tgz8EAFe4DRaJKuK/Ow40HCA2sETz4LQMN98aD8IthLtOOoEj+RkLx dvR/xycCnReGXCXzCJYy7NFy0mBhlL3Lq2ok83Wq/r8S1q/6NzQw7X3z55Ffxg6UpFLGF5POr EdEbgbpdrJ4TAHtlTOWSYl6Oo18MqgYNjLrWFT3g/Ed/S0kRCpaKBLJBVONM0uEW08NoSF6xQ 317WUJTWMOs+uE8f9PL+5NrD9797TN+yyCvVirIfyMK0Q0QIxNVOD4+1YbaSfZa+ccfaxxMPW MnfTKd4YFalySsCVHJlJhuX9oozdYNq2Cc5g94QaMMP/RRh7VIMla39716XltLEJM3gHg5guo 4QWN4dc8YJ7URqBEjckUb/702Wkqw9CHoHyMq0wzMC7CN/yU/CJ3XJquAW5NnNoekw+MZiSB4 Ek/aGX47gH43qDuvZPNjF1Xy+umUY2HCDk5p3rc4O8cm18iXtVnhLHe5Z9fYEQhObcj+/yFU 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: 209.51.188.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:160759 Archived-At: > +(defvar delayed-window-point nil Name space conventions would recommend 'window-delayed-point'. > + "Marker to override default `window-point' in all windows. Why "marker" and why "all windows"? As for the former, I think it makes sense because then one can specify an insertion type as well. But IIRC you earlier wanted to allow plain integers here too? > +`delayed-window-point' is a buffer-local marker you can move to a valid > +position of the buffer shown in the window in order to override the standard > +positioning mechanism (`point-min') chosen by window displaying functions.") IIUC there is no such "mechanism" except for buffers just created. And what about 'switch-to-buffer-preserve-window-point'? "window ??? displaying functions" implicitly hints at the fact that the mechanism works only when the buffer is shown by 'display-buffer'. But are we sure that this restriction always applies? Otherwise the patch looks good. > Frankly speaking, macros like with-help-window, with-temp-buffer-window > are terribly ugly and look like a kludge. For example, after applying > the following patch, all source files that use the changed macro, > need to be recompiled, so everyone will need to do bootstrap after > pushing it, and many other problems. Until Lars comes up with a solution that detects any changed macros, finds their users, and orderly recompiles the respective files. But I'm afraid he's turning back to his books for now. > I see no reason to use macros here. > We need to replace these macros with the elegant solution that we already > have of using action alists. Macros are useful in as much as they allow to specify the evaluation order of their arguments. Action alists are dumb in this regard. martin