From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?B?SmFyb3PFgmF3IFJ6ZXN6w7N0a28=?= Newsgroups: gmane.emacs.devel Subject: recenter after visiting file (with savehist-mode) Date: Sat, 9 Feb 2019 12:24:18 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000a13bb105817451c4" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="183776"; mail-complaints-to="usenet@blaine.gmane.org" To: "emacs-devel@gnu.org" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 09 12:24:49 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 1gsQkb-000lfo-Jq for ged-emacs-devel@m.gmane.org; Sat, 09 Feb 2019 12:24:49 +0100 Original-Received: from localhost ([127.0.0.1]:44108 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gsQka-0000OJ-EW for ged-emacs-devel@m.gmane.org; Sat, 09 Feb 2019 06:24:48 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:53029) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gsQkP-0000N4-MQ for emacs-devel@gnu.org; Sat, 09 Feb 2019 06:24:39 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gsQkP-0000yp-3h for emacs-devel@gnu.org; Sat, 09 Feb 2019 06:24:37 -0500 Original-Received: from mail-it1-x12b.google.com ([2607:f8b0:4864:20::12b]:52922) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gsQkN-0000tf-1f for emacs-devel@gnu.org; Sat, 09 Feb 2019 06:24:36 -0500 Original-Received: by mail-it1-x12b.google.com with SMTP id r11so10015719itc.2 for ; Sat, 09 Feb 2019 03:24:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=VNHICknUwulwTZudf/x83lrRkHmrqSgQbTc4kYu2OWA=; b=NF11vfnCk26UgyJUqEqQL2Jm1LoxgKY/TOdE2IRSSvtyzngyHn8XSwNBCp670mo1Sq RjxMOOpPWpgabVYarh6PG0otl99v+T5X9/kuW89JlVz2pA5xl9ifYea8RyP1SmltoUEm PWjiKtd46+ajD3TIFS81YsbqdebWDfVOeVodnXJfA6N85J/u0JfGxcooHk/78x3IwC6z 6PWFHsa5o6fJbmjP9HLYO5PbLEfZRLXmutRnag8kwsh0Bvn9pDhynGQMh5OKxDFp9CMN Q12B0sBjMUo5SIGpZBO0wtj8CuksIIYOR+2KiVZUogqJRuzdxdUDgojg4YCnbt3vixiN Urrg== 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; bh=VNHICknUwulwTZudf/x83lrRkHmrqSgQbTc4kYu2OWA=; b=Oux8dy92QFqK0b27+wo+1L6Ogc36nb0SFVH+VM9hadBD2GxXLRb7Va+Rq1vsc1xVah Hx1/7uZePKPa2qkmysPK++EoUnN3jB8gKw6PUJ7+0ld30mFd9n179uEf8DHetWMU0lto HdmkMdB/N4qk1ScMOiHN2mAtNN1K2iq8H9RQ7ks4aIefQQ3Ce6WzL7VkYzXwFolmGC+n zzoJYmvbTzUkfNQjCU+Ivz5hRRbFcKPNaCTOZbKieaQdvnB5/MpWUyVoQo36mGkzf+wI HVeEz2oMwG2b2A0St50qAjE3BhFv6n/C17A65Ly67I78IflxjbQGfjIf0+jw6CWIWFUS oQzA== X-Gm-Message-State: AHQUAuYK7peRiPJ5I91Du/k9YcgbaI9SbI5yJrUDotCfNQuSHYcWz1at YkzRMTzQz6C0n5Jd251wyUwKmmDvRMW3MgQu3T4GhDiT X-Google-Smtp-Source: AHgI3IZaKAn8YFpYt9U6qi7vFXafS5GSr2E6pl/CZ34VP5Mrc3s5WIpeAlMBzsb//SE+4qJfAcFq9AZxonhaucKGZdU= X-Received: by 2002:a24:7351:: with SMTP id y78mr1569911itb.12.1549711469261; Sat, 09 Feb 2019 03:24:29 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::12b 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:233164 Archived-At: --000000000000a13bb105817451c4 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I am trying to get Emacs to recenter the window around point after opening a file with savehist-mode. I tried adding an :after advise to save-place-find-file-hook, I tried setting a global display-buffer function, but no matter what I try I keep getting the dreaded: `recenter'ing a window that does not display current-buffer. Does anyone know any way around this? Cheers, Jaros=C5=82aw Rzesz=C3=B3tko --000000000000a13bb105817451c4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I am trying to get Emacs to recenter the = window around point after opening a file with savehist-mode. I tried adding= an :after advise to save-place-find-file-hook, I tried setting a global di= splay-buffer function, but no matter what I try I keep getting the dreaded:=

`recenter'ing a window that does not display curren= t-buffer.

Does anyone know any way around this= ?

Cheers,
Jaros=C5=82aw Rzesz=C3=B3tko
--000000000000a13bb105817451c4--