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.devel Subject: Re: find-file-hook, recenter, scroll-conservatively and save-place Date: Fri, 01 Feb 2019 10:05:32 +0100 Message-ID: <5C540BDC.90307@gmx.at> References: <877eelupkc.fsf@errge.nilcons.com> <5C52FCDD.7010803@gmx.at> <878sz0o9nd.fsf@mail.linkov.net> <87r2cstpia.fsf@errge.nilcons.com> 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="147959"; mail-complaints-to="usenet@blaine.gmane.org" To: Gergely Risko , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 01 10:07:07 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gpUmw-000cKK-1i for ged-emacs-devel@m.gmane.org; Fri, 01 Feb 2019 10:07:06 +0100 Original-Received: from localhost ([127.0.0.1]:41073 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gpUmu-0006iQ-Ub for ged-emacs-devel@m.gmane.org; Fri, 01 Feb 2019 04:07:04 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:47435) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gpUll-0006hH-4b for emacs-devel@gnu.org; Fri, 01 Feb 2019 04:05:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gpUlk-0000qd-Cd for emacs-devel@gnu.org; Fri, 01 Feb 2019 04:05:53 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:34655) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gpUlk-0000ps-3x for emacs-devel@gnu.org; Fri, 01 Feb 2019 04:05:52 -0500 Original-Received: from [192.168.1.101] ([212.95.5.163]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MCtNr-1gz9P10SNX-009jlf; Fri, 01 Feb 2019 10:05:44 +0100 In-Reply-To: <87r2cstpia.fsf@errge.nilcons.com> X-Provags-ID: V03:K1:cXHnmcZ1xMfJFzN8lLOC/EU5mitv+ufvaGsc+hdqh9sllXxWBhr v85amBAmgCtuU8qj1r+PrSirqrXoiyCiah4N5quXVsQ//pCxp2PdmmIkckd0FcgT2a9yKEG S4UNoDm3Tw3al8XaHDxpJPOD0r06fmM/kDwM3f34NZO6oXbpX6jisauGA8vusBlHc9N/Ova ZPdV3S4hrqCFN++QlfGTA== X-UI-Out-Filterresults: notjunk:1;V03:K0:Y33obLQvGgc=:EOyoAvsF+bbNQ0UdFuy8bM ZrK1Oz+IE0oP/DDrY15QcIyqDrL312DCdyEohSX13YBgYbAKmxQcBb2fRdpa2kDnIrjGMj4Kc WfHpoFrvDMaYJBqZXYjbUk328C+Hb7chYkvJwNpWDAjprPYptW3/V6bd/2kEOY/ftFBBldzzh tvoSCbfZN8EO0K8ML6JJI02haAITDGQkB6O/goOySULzsDe4hiuNBeMpjlfnpWqhAMBZpnMNK xvqazZ1aJwAuVaFwl56W/ipTwx19UK+ytdUCGac6wNBPTi8JnZ+s7uktEWnYcR3jHePhSMCCs 52eC4dYiL5LSJpRpjaue9tRKODty95IMKNm0Ii3QAjG25X8bxzk4h3TBQFP99QwuxfPtZ06p/ MwJH3hGGbwQtFWaQx6dqTWkrSnJFoJ8Yf2AfcOl3Dh7AVXs2W7znVn0mPULWkvPsioGZxRLn0 2p4j+QQ3dI7UgNBVy2j5cG6bmCp6+CpwaS63Vjq5nM3Cqu1/5E29mheQR7vVW7k+Hgi3b+PcH /HRQmmuXLz00y5+EFEbX7nqZmogYusB+IEaTTmozHTh4dtbCi/WezQ6KmaybNhdk+ZAL/eEMM q9JLQdpTnHi4hUW0LFMfxAUWalv2P+OY1GWkJmzSOZPf60JyJnrD9r1+QQz9YiAnrsZUuksEv YgV8U9bY++SV9SNBIAyckCObVH27bBHT9p6P5xOCh7p5HTK37ISKyCYMOx51UW6eo8/QtORXS yjB+0s/tbQ/SacQ+heIr51BlOY5vog5a52yE4q3BmJfBSkDWL1Fl4W5vgzUiVvgT7vPiZ16f X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.15.19 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:232880 Archived-At: > Just one point to this: should we have '(window-start . (recenter 10)) > also, where 10 is the ARG for the future recenter call? We need a convention for alist entries about how to specify functions and their arguments. >> BTW, a related question: should save-place save window-start as well? >> It should be easy to implement after this problem is solved. > > I think that would be nice and there is only one corner case I think > we have to take care of: recentf is a long term operation compared to > switch-to-buffer-preserve-window-point in the sense that when the user > comes back after days maybe he is sitting in front of a different > sized screen with differently configured frames and windows. > Therefore we have to give precedence to the point and take the > window-start recommendation of save-place with a grain of salt. As > far as I can understand it now, fortunately this is done for us > already by redisplay for free. The restoration would call 'set-window-start' with NOFORCE non-nil so point would be preserved. martin