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: Sat, 02 Feb 2019 10:30:05 +0100 Message-ID: <5C55631D.3060103@gmx.at> References: <877eelupkc.fsf@errge.nilcons.com> <5C52FCDD.7010803@gmx.at> <878sz0o9nd.fsf@mail.linkov.net> <5C540BAF.3000602@gmx.at> <87ef8ru58y.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="77827"; 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 Sat Feb 02 10:31:01 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 1gprdc-000K5M-8v for ged-emacs-devel@m.gmane.org; Sat, 02 Feb 2019 10:31:00 +0100 Original-Received: from localhost ([127.0.0.1]:39833 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gprdb-0002dW-A8 for ged-emacs-devel@m.gmane.org; Sat, 02 Feb 2019 04:30:59 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:46104) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gprdV-0002dQ-50 for emacs-devel@gnu.org; Sat, 02 Feb 2019 04:30:54 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gprdU-0004Be-AW for emacs-devel@gnu.org; Sat, 02 Feb 2019 04:30:52 -0500 Original-Received: from mout.gmx.net ([212.227.15.15]:57273) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gprdT-00040f-T3 for emacs-devel@gnu.org; Sat, 02 Feb 2019 04:30:52 -0500 Original-Received: from [192.168.1.101] ([212.95.5.95]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0LskKv-1hIEJa0n0b-012IHB; Sat, 02 Feb 2019 10:30:07 +0100 In-Reply-To: <87ef8ru58y.fsf@errge.nilcons.com> X-Provags-ID: V03:K1:p+A5df98Tslrxr6YPp5BkvTGZohbzMB6J3a9HfLgion2t9OZTqb u0t8zRR7x/ryueSIuIMicerIlFdnUYATdev5F+rXPTA8UcUSsDhiLwC8RLwIsZKgCQtiKzh O7HwZf7oICr96ZPqYydNP600ZhnFxqSq94aPe1ejC9CdzbCDfJPuZWZsBM7ohk/maztj5LO 22q6SIu36gqXE++UfpV+w== X-UI-Out-Filterresults: notjunk:1;V03:K0:2j9inyFoXPU=:CzaV71vYSq5GQKMdMYH7DQ U77oKt4ui5vNV9jcMgaGxxRrHg1JnYJy7DF8/rONTKnGrplQaifQkKukDuNS/uv3ga6JmtyTV l/aXiQxbydfACaZsp0BALeM4J4YtEO6UShoNI/KYnW8m30vVBBR8uwjDpE2VTfDZgz7TdQg3a t2dZqz+GFe94B38q95AqYyy7CdBGqIN2bWv+Z8rBNYV7ak++G54xU/12D7wSVKJJ5IX9P+4Ma 7/sm+njrIrPDQWGoy4UCSbndvgPkJmy78sZVHT9F98tJNh8Syu9gd5gYFMgWYXFJO0U6FhNI1 K3Un1WBI3ISg2kTE3OHMteQMwgU0lk698lLs0OGT6hDLz/ZpNsP4OZFf2KorV2DUBq956nYeA FgyUCzrS+7iZCBYnCDyYSebvm68FUryQgUEyXY3/tvEKg4W6VmHhT3sM2tLznU9MaaDFjUfDB +QsAKyphKncj5JYHxjd0oFZVA7Kvf4t1jFivo1RENS+bM0S8LYoa7Pf4PtzfUCTOkTbpXi8x1 f8MOLgO6fEXnmbXP80iIJ5Ay3Wo2Q5y7hXuEcRPKjRZ4sCFZsTOnzP8ekpYMebuZ5lO69nmY8 tKBlcn7n4JsyBUh5yxoXOrrEkjnfcpxaGZbtmr7oZU1niU6AAwSk+QSfqlLQkfbLqThGJy0z3 PhV/4t/XP8eS7QKhLjEvO1capc16pmniaTEi4PgMGxAy6X3bqlh8AcnU29qi68BSVtYbC8FFW KIC8B2BE6AdQg8zBO9KrTGF4irBKTuzNu+RwswBVw3K2MnnNo/FeqXk3n/ma7FFUrLwupzOj X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.15.15 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:232903 Archived-At: > Should I prepare a patch based on these examples, so we have some > existing code to talk about or should we try to come up with something > better than buffer-local variables for passing the info? Note that a final implementation should not use advice. As soon as Juri has a definite proposal for the values we can install the 'window-start' and 'window-point' alist entry handlings (the easy part). The link between 'save-place' and the 'pop-to-buffer' in 'find-file' will be still missing then (the harder part). I'm not entirely sure about using one-shot variables. martin