From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 27 23:30:41 2017 Received: (at submit) by debbugs.gnu.org; 28 Oct 2017 03:30:41 +0000 Received: from localhost ([127.0.0.1]:37914 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e8HpZ-00023g-JI for submit@debbugs.gnu.org; Fri, 27 Oct 2017 23:30:41 -0400 Received: from eggs.gnu.org ([208.118.235.92]:35984) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e8HpX-00023R-6V for submit@debbugs.gnu.org; Fri, 27 Oct 2017 23:30:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e8HpQ-0002Iz-VT for submit@debbugs.gnu.org; Fri, 27 Oct 2017 23:30:33 -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.6 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:53016) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e8HpQ-0002Ir-Rl for submit@debbugs.gnu.org; Fri, 27 Oct 2017 23:30:32 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55187) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e8HpP-0008Tr-MK for bug-gnu-emacs@gnu.org; Fri, 27 Oct 2017 23:30:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e8HpO-0002IG-JM for bug-gnu-emacs@gnu.org; Fri, 27 Oct 2017 23:30:31 -0400 Received: from mail-io0-x235.google.com ([2607:f8b0:4001:c06::235]:54818) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e8HpO-0002Hi-DX for bug-gnu-emacs@gnu.org; Fri, 27 Oct 2017 23:30:30 -0400 Received: by mail-io0-x235.google.com with SMTP id e89so16543372ioi.11 for ; Fri, 27 Oct 2017 20:30:28 -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; bh=R5N5cyUygOYptypcoBjyDy3S1xSj2SnL6HY31ab6cus=; b=tttcHQE1H7p9HCKkmWYafcw8mjguDBVGkLDUCXI5LWXEcL+JwBdNpIYDs1mqdmkeLA lGGb/arvXrvCX+pRChuPos8uubihiXEnC9mtNif7USt+Zv5vkMHdMAoqNbXXZRRu6bJQ Brct1LEKk96vJse+aHsseRYmolFzlfK5bwwglEbz+P+7lEbtEWl4w9dxDGGt1nUecXbA KwCM/0RDNfNwmUNUcThrij5v2PaUwmdV/FTQKp9Qjd4HbP9oswurZ1rCD33ht5ODkfxV hbAPKHwYNDqxLRU5Ezd+1WprR3dFcotj9t9aZfFOP8NlaL8s3mfrv9Uoy0jO8yz6Mh2L p30Q== 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=R5N5cyUygOYptypcoBjyDy3S1xSj2SnL6HY31ab6cus=; b=YGoEfJve/IRaGl8p0L/7fjOWNEYAx0DGjx40g/ViAdn3bAnpM/zfCdc5wTml7y9kc+ DTgBDjvEOBQFdPkClQ4/cyekCuOVvHKUSFbYkvrLcMeRpF9bZtrljXala0W1DWqf4YNl 7H93tyjerywb1kwhMpt/DIhSKi9RmH0kziO6ItrRcQ1juuRw3EacNPa/0YgDRQDZxXsz QtKlxT310rt0saoNph9MTGiwUbnjny6KWAMXIIyMggl4b6+k425ydmVfGT++ks6C1Ck9 RLT+5k2ecDcs7h7hiE7hHndLHJXK5/Tqr04zQsKgI8M+DjLXDEYQFx8yEDvu4oDqyQ3v t+Cw== X-Gm-Message-State: AMCzsaVWEzyosRoJnjC40Fsat8+OAldfFvfsJ2xycfXUJkBG/Tee3lQr Zwxnm0iBcUMrHBAjy+S5JdnxF36AXAEApMGB6eDnFA== X-Google-Smtp-Source: ABhQp+TB/BZid7Pzd+xZ2vfoaW17k7VktYzjG9Kcr4R07awdAXVJoOHmlpuCbosn48UbVO9PmxUjs+5fuqwIGwoH5f0= X-Received: by 10.107.68.8 with SMTP id r8mr3188068ioa.192.1509161427424; Fri, 27 Oct 2017 20:30:27 -0700 (PDT) MIME-Version: 1.0 Received: by 10.2.65.70 with HTTP; Fri, 27 Oct 2017 20:30:27 -0700 (PDT) From: Xiaolong Zhang Date: Sat, 28 Oct 2017 11:30:27 +0800 Message-ID: Subject: 26.0.90; Feature Request: make "emacsclient +linenum file" rencenter line To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary="089e0825d8d0ca5901055c930621" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.8 (---) 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: -3.8 (---) --089e0825d8d0ca5901055c930621 Content-Type: text/plain; charset="UTF-8" Hi list, I got no answer on stack-exchange for emacs ( https://emacs.stackexchange.com/questions/36434/make-emacs-recenter-the-line-for-latex-inverse-search) so I'm asking here. I'm using emacs for LaTeX file editing and emacsclient support the nice command line option "+linenum file" to "visit file using find-file, then go to line number linenum in it", which works well. Is it possible to recenter to linenum at the sametime? This is the default behavior for Notepad++ and I've tried the "--eval" option, but it won't switch focus to emacs automatically. Thanks. Best, Xiaolong --089e0825d8d0ca5901055c930621 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi list,



I= 'm using emacs for LaTeX file editing and emacsclient support the nice = command line option "+linenum file" to "visit file using fin= d-file, then go to line number linenum in it", which works well.=C2=A0=

Is it possible to recenter to linenum at the sametime= ? This is the default behavior for Notepad++ and I've tried the "-= -eval" option, but it won't switch focus to=C2=A0 emacs automatica= lly.

Thanks.

Best,
Xiao= long




--089e0825d8d0ca5901055c930621-- From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 28 02:50:01 2017 Received: (at 29036) by debbugs.gnu.org; 28 Oct 2017 06:50:01 +0000 Received: from localhost ([127.0.0.1]:37986 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e8KwS-00074C-Qg for submit@debbugs.gnu.org; Sat, 28 Oct 2017 02:50:00 -0400 Received: from eggs.gnu.org ([208.118.235.92]:41583) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e8KwQ-00073w-I4 for 29036@debbugs.gnu.org; Sat, 28 Oct 2017 02:49:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e8KwI-0003zI-4x for 29036@debbugs.gnu.org; Sat, 28 Oct 2017 02:49:53 -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,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:45000) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e8KwI-0003z8-0v; Sat, 28 Oct 2017 02:49:50 -0400 Received: from [176.228.60.248] (port=4102 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1e8KwH-00024D-Iw; Sat, 28 Oct 2017 02:49:49 -0400 Date: Sat, 28 Oct 2017 09:49:44 +0300 Message-Id: <83y3nv6a2f.fsf@gnu.org> From: Eli Zaretskii To: Xiaolong Zhang In-reply-to: (message from Xiaolong Zhang on Sat, 28 Oct 2017 11:30:27 +0800) Subject: Re: bug#29036: 26.0.90; Feature Request: make "emacsclient +linenum file" rencenter line 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: 29036 Cc: 29036@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: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: Xiaolong Zhang > Date: Sat, 28 Oct 2017 11:30:27 +0800 > > I'm using emacs for LaTeX file editing and emacsclient support the nice command line option "+linenum file" > to "visit file using find-file, then go to line number linenum in it", which works well. > > Is it possible to recenter to linenum at the sametime? This is the default behavior for Notepad++ and I've tried > the "--eval" option, but it won't switch focus to emacs automatically. Emacs recenters by default, so unless you have some customizations which disable that as side effect, it should already do what you want. I just tried the command emacsclient +150 configure.ac and got line 150 centered in the window where Emacs shows the file. If that doesn't work for you, please show the exact recipe. You seem to invoke emacsclient from another program (I tried from the shell prompt), so perhaps there's something in that context which affects the issue; I'm not familiar with "SumatraPDF" and the "inverse search feature". Another possible reason for not recentering is that the file whose name is passed to emacsclient is already visited in Emacs, and the line whose number you pass to emacsclient is already visible in some window, but not at the center of that window. In that case, Emacs will not recenter. From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 29 06:57:45 2017 Received: (at 29036) by debbugs.gnu.org; 29 Oct 2017 10:57:45 +0000 Received: from localhost ([127.0.0.1]:39777 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e8lHk-000582-Nl for submit@debbugs.gnu.org; Sun, 29 Oct 2017 06:57:44 -0400 Received: from mail-io0-f170.google.com ([209.85.223.170]:50856) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e8lHi-00057q-SS for 29036@debbugs.gnu.org; Sun, 29 Oct 2017 06:57:43 -0400 Received: by mail-io0-f170.google.com with SMTP id 97so21235327iok.7 for <29036@debbugs.gnu.org>; Sun, 29 Oct 2017 03:57:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=DyarOVgcu8ve4U3F6wbAK/zEjkoxZ6almUfZks++FtM=; b=ulVg6WsZeytOvC3uXMX+5eXOsQ3TSQ4Wq45KHHw10ejr94Zl2c8h/j/JFNi6qkIe8c WIPCF+CMxOr4jEMfbw+XE9z39pvRUIbx7sntNvyaC5NOL2H/BgpdDzC3wc0yVSLMI1k8 BSb+2aoSJls+k2862SI3pVh1K7QtbKoZqAoKwkKEC/aQnoI68Jv3dqUsDpUohaEgcn3B G7rU3vRNhbzgOChbxW24kMpyGLLUIqgsCHp3vo3eUHnwMHCXcQ19IvthemSTDfEIbgea OowKUJYFS/olX569a5W8hOzyYwvNEwZMeKqANKcGBvq7g4hlUL9LylMwuxQPbzpbSTuZ twpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=DyarOVgcu8ve4U3F6wbAK/zEjkoxZ6almUfZks++FtM=; b=sDGDZyx5u2jKpRb+IJaxGB1VfVWxbL26iNuDUWTkb5X8sBAnWlFKVZQgQak1AOwRZO Xabk/vES4ME/av6k4vo/tJyDzI01uCo8YCZ27hgdqqxX2V8o7FCI7dyu0DKZ9412RUkn tJEJ7esQTyxdNcjdieYMtn9QoXFA69JP74hi8loTaDVI6BUjX/1iea0btBaxxyDWwQhH bek6meJf2zx78n6/rNE2PTJ2+6ILJlDuurNXrizDHyYZaa2TF3ONNYAnttYz0vXJIpFD V9x6PrLQWgtgiWSoTLBBZOPHEwxUfkmJyIXpNcyz/c3yxGF4Zax7ndCTuigra23kbWRI BB+g== X-Gm-Message-State: AMCzsaVmP2d5T6mPKeOeVX8ltxcGTh8NdI9N4IqvN3WAhpNRtLegNidK bCxjeUImC7BAPAKDrlgMDxNrItAhXgxEVZHhEtY= X-Google-Smtp-Source: ABhQp+SK4i1at/XjveiXSg8SmhwWl2fmnXMgYgm6A/qME9ROC+6wNH0uAKxy+odGMgZo4giX+mjMIadzoq4JhSuxEKg= X-Received: by 10.36.64.145 with SMTP id n139mr1913357ita.115.1509274656692; Sun, 29 Oct 2017 03:57:36 -0700 (PDT) MIME-Version: 1.0 Received: by 10.2.65.70 with HTTP; Sun, 29 Oct 2017 03:57:36 -0700 (PDT) In-Reply-To: <83y3nv6a2f.fsf@gnu.org> References: <83y3nv6a2f.fsf@gnu.org> From: Xiaolong Zhang Date: Sun, 29 Oct 2017 18:57:36 +0800 Message-ID: Subject: Re: bug#29036: 26.0.90; Feature Request: make "emacsclient +linenum file" rencenter line To: Eli Zaretskii Content-Type: multipart/alternative; boundary="001a1143ec78c7dc23055cad6311" X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: 29036 Cc: 29036@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: -2.0 (--) --001a1143ec78c7dc23055cad6311 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Eli, Thanks. You are right, vanilla =E2=80=8BEmacs indeed recenters a new file b= y default. I'm using spacemacs, which won't and I'm investigating the problem. If the file is already visited in Emacs, it won't recenter. Is it possible to make Emacs recenter even if it's already visited? I've check with Notepad++, which will recenter even if it's already opened. Best, Xiaolong On Sat, Oct 28, 2017 at 2:49 PM, Eli Zaretskii wrote: > > From: Xiaolong Zhang > > Date: Sat, 28 Oct 2017 11:30:27 +0800 > > > > I'm using emacs for LaTeX file editing and emacsclient support the nice > command line option "+linenum file" > > to "visit file using find-file, then go to line number linenum in it", > which works well. > > > > Is it possible to recenter to linenum at the sametime? This is the > default behavior for Notepad++ and I've tried > > the "--eval" option, but it won't switch focus to emacs automatically. > > Emacs recenters by default, so unless you have some customizations > which disable that as side effect, it should already do what you > want. I just tried the command > > emacsclient +150 configure.ac > > and got line 150 centered in the window where Emacs shows the file. > If that doesn't work for you, please show the exact recipe. You seem > to invoke emacsclient from another program (I tried from the shell > prompt), so perhaps there's something in that context which affects > the issue; I'm not familiar with "SumatraPDF" and the "inverse search > feature". > > Another possible reason for not recentering is that the file whose > name is passed to emacsclient is already visited in Emacs, and the > line whose number you pass to emacsclient is already visible in some > window, but not at the center of that window. In that case, Emacs > will not recenter. > --001a1143ec78c7dc23055cad6311 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Eli,

Thanks. You are right, van= illa =E2=80=8BEmacs indeed recenters a new file by default.=C2=A0
I= 'm using spacemacs, which won't and I'm investigating the probl= em.


If the file is already visited in Ema= cs, it won't recenter. Is it possible to make
Emacs recenter ev= en if it's already visited? I've check with Notepad++, which=C2=A0<= /div>
will recenter even if it's already opened.

Best,
Xiaolong



On Sat, Oct 28, 2017 at 2:49 PM= , Eli Zaretskii <eliz@gnu.org> wrote:
> From: Xiaolong Zhang <xlzhang921@gmail.com>
> Date: Sat, 28 Oct 2017 11:30:27 +0800
>
> I'm using emacs for LaTeX file editing and emacsclient support the= nice command line option "+linenum file"
> to "visit file using find-file, then go to line number linenum in= it", which works well.
>
> Is it possible to recenter to linenum at the sametime? This is the def= ault behavior for Notepad++ and I've tried
> the "--eval" option, but it won't switch focus to=C2=A0 = emacs automatically.

Emacs recenters by default, so unless you have some customizations
which disable that as side effect, it should already do what you
want.=C2=A0 I just tried the command

=C2=A0 emacsclient +150 configure.ac

and got line 150 centered in the window where Emacs shows the file.
If that doesn't work for you, please show the exact recipe.=C2=A0 You s= eem
to invoke emacsclient from another program (I tried from the shell
prompt), so perhaps there's something in that context which affects
the issue; I'm not familiar with "SumatraPDF" and the "i= nverse search
feature".

Another possible reason for not recentering is that the file whose
name is passed to emacsclient is already visited in Emacs, and the
line whose number you pass to emacsclient is already visible in some
window, but not at the center of that window.=C2=A0 In that case, Emacs
will not recenter.

--001a1143ec78c7dc23055cad6311-- From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 29 07:19:09 2017 Received: (at 29036) by debbugs.gnu.org; 29 Oct 2017 11:19:09 +0000 Received: from localhost ([127.0.0.1]:39802 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e8lcT-0005f6-CT for submit@debbugs.gnu.org; Sun, 29 Oct 2017 07:19:09 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37276) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e8lcR-0005eH-8H for 29036@debbugs.gnu.org; Sun, 29 Oct 2017 07:19:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e8lcH-0004Fh-0J for 29036@debbugs.gnu.org; Sun, 29 Oct 2017 07:19:02 -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,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:33027) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e8lcG-0004Fa-T0; Sun, 29 Oct 2017 07:18:56 -0400 Received: from [176.228.60.248] (port=1984 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1e8lcG-00042k-Aa; Sun, 29 Oct 2017 07:18:56 -0400 Date: Sun, 29 Oct 2017 13:18:54 +0200 Message-Id: <83bmkqurq9.fsf@gnu.org> From: Eli Zaretskii To: Xiaolong Zhang In-reply-to: (message from Xiaolong Zhang on Sun, 29 Oct 2017 18:57:36 +0800) Subject: Re: bug#29036: 26.0.90; Feature Request: make "emacsclient +linenum file" rencenter line References: <83y3nv6a2f.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: 29036 Cc: 29036@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: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: Xiaolong Zhang > Date: Sun, 29 Oct 2017 18:57:36 +0800 > Cc: 29036@debbugs.gnu.org > > If the file is already visited in Emacs, it won't recenter. Is it possible to make > Emacs recenter even if it's already visited? You can only do that by customizing the scrolling behavior in general. There's no special behavior for visiting a file that is already in Emacs. From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 29 07:20:12 2017 Received: (at 29036) by debbugs.gnu.org; 29 Oct 2017 11:20:12 +0000 Received: from localhost ([127.0.0.1]:39810 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e8ldU-0005h8-07 for submit@debbugs.gnu.org; Sun, 29 Oct 2017 07:20:12 -0400 Received: from mail-io0-f177.google.com ([209.85.223.177]:46747) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e8ldR-0005gs-E2 for 29036@debbugs.gnu.org; Sun, 29 Oct 2017 07:20:09 -0400 Received: by mail-io0-f177.google.com with SMTP id 101so21300144ioj.3 for <29036@debbugs.gnu.org>; Sun, 29 Oct 2017 04:20:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=8e/vGZLJmzYj1uL1XAJqc4SCzRdtpgUdmCKKlVL4srg=; b=ovMqRuhYcKPxhtAi3kSukM7X1iXDUh5aLCOXbxbWrGN/757eUY43TQVhPzww/xBKCe r5i8ef9vGLRQYhwN1rsmyZ0V/V3de7z+osGNcnLvSX+vUOp+WqyQ2zZKcHo0ggRLAP0b IrePprixCD8+wJ6pe2fKyk9+S/plP7j23Vdk2aMMGaJn+lVcfc+Q2znsHIKPiCjhsjrj Q3vCLETo3oMo0gDaCGMksqpcSP1xEgyWGTR15SPUOPpuiRvyldlVOak6duSjs9Sbo8V7 WySNBLxUUCccfnqqRvoO3PgthPq6x/DZMTgtkB1OP1uZqjqDAMlDhmHkywdvDw04o1RV OlaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=8e/vGZLJmzYj1uL1XAJqc4SCzRdtpgUdmCKKlVL4srg=; b=sf9mT/tUXJYd1V8B7yuQIHk6FA4+dardvG0s0aHk0uNIGAww7+hxFwLiJPuOoMdLvN EazNDtYu3XHmjbqOz6uyEQxOVRVJROIKTUP8FjQAJIKNy33bw5FMYFV977AUAn5VXvTb doQpclURicDYsoKB6b0FO94+e8ehRnzgriBc6VabyU9ilMv270QaOFDMkmwWeNBj9QdZ GtBcOApZXIqCIhoLb+4CZmf9Zn8puw5wmcY+G2vV+DWfpDC24fzqpk+O+z90GHp778W9 RL8pCFCStWhCnrNmG023yxB8F+EpHyx9QCOMcSW3yLme8+iXIAaKVOiosY2OCHEsqsrj z3CQ== X-Gm-Message-State: AMCzsaUKS9EJZkz4nSRZ6ovpVWmP734tbLmLNHO7HdD3+eoh3zi9DxDp zfsNFDM1v3vxGRwni5YOUDhS++IKtkPpCY8pWNQ= X-Google-Smtp-Source: ABhQp+QaOAa8RNPVJ+EOGl0QJ6OOinaGkWEUHFUBUD4K0fRQUfmFKGfKYe+AYGGUh0mnJyyUPk1wXsa5/4pKKdXpfCA= X-Received: by 10.36.39.214 with SMTP id g205mr2050402ita.23.1509276003886; Sun, 29 Oct 2017 04:20:03 -0700 (PDT) MIME-Version: 1.0 Received: by 10.2.65.70 with HTTP; Sun, 29 Oct 2017 04:20:03 -0700 (PDT) In-Reply-To: <83bmkqurq9.fsf@gnu.org> References: <83y3nv6a2f.fsf@gnu.org> <83bmkqurq9.fsf@gnu.org> From: Xiaolong Zhang Date: Sun, 29 Oct 2017 19:20:03 +0800 Message-ID: Subject: Re: bug#29036: 26.0.90; Feature Request: make "emacsclient +linenum file" rencenter line To: Eli Zaretskii Content-Type: multipart/alternative; boundary="001a1147b6a81476a5055cadb4df" X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: 29036 Cc: 29036@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: -2.0 (--) --001a1147b6a81476a5055cadb4df Content-Type: text/plain; charset="UTF-8" Got it. Thanks. On Sun, Oct 29, 2017 at 7:18 PM, Eli Zaretskii wrote: > > From: Xiaolong Zhang > > Date: Sun, 29 Oct 2017 18:57:36 +0800 > > Cc: 29036@debbugs.gnu.org > > > > If the file is already visited in Emacs, it won't recenter. Is it > possible to make > > Emacs recenter even if it's already visited? > > You can only do that by customizing the scrolling behavior in > general. There's no special behavior for visiting a file that is > already in Emacs. > --001a1147b6a81476a5055cadb4df Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Got it. Thanks.
<= br>
On Sun, Oct 29, 2017 at 7:18 PM, Eli Zaretski= i <e= liz@gnu.org> wrote:
> Fr= om: Xiaolong Zhang <xlzhang921@g= mail.com>
> Date: Sun, 29 Oct 2017 18:57:36 +0800
> Cc: 29036@debbugs.gnu.org=
>
> If the file is already visited in Emacs, it won't recenter. Is it = possible to make
> Emacs recenter even if it's already visited?

You can only do that by customizing the scrolling behavior in
general.=C2=A0 There's no special behavior for visiting a file that is<= br> already in Emacs.

--001a1147b6a81476a5055cadb4df-- From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 28 20:39:40 2019 Received: (at 29036-done) by debbugs.gnu.org; 29 Sep 2019 00:39:40 +0000 Received: from localhost ([127.0.0.1]:51620 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iENFU-0004vF-0Z for submit@debbugs.gnu.org; Sat, 28 Sep 2019 20:39:40 -0400 Received: from mail-pf1-f171.google.com ([209.85.210.171]:42108) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iENFS-0004v3-Gk for 29036-done@debbugs.gnu.org; Sat, 28 Sep 2019 20:39:38 -0400 Received: by mail-pf1-f171.google.com with SMTP id q12so3514351pff.9 for <29036-done@debbugs.gnu.org>; Sat, 28 Sep 2019 17:39:38 -0700 (PDT) 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=M+AMGbn8jG0in+KnrH4vFbbwL3LUZ6DZuqMUPhwfWOU=; b=j1o+5fhXAjVijJmP7uDND4yurtuh2jvzVJhEFUqZmajbBJOPt7HpNU6eMdbCfZpGnn 8zcAI211af5Mb1oEH60SuHUU9ANSkktlgbQoa23M7Zj7EjalM4SgLPqQ5CtdGiwjzcBf EeZNt7RwfTNq7ZUDynw69Q07LLwrm3v6KCVsP5BV6KeQhNATMqkXMLukNZ22+RMQ/KG2 /7VxXAK/ssnX0RPMakBaMtzgiosM8w+fY3Hril1H+MhJXIn9+9GjOHyX9Qprje7KFj/w EFxdx6HNxf1ODqAhUGnZob/Lo1cjVYAG4wMZR8xSaa9FF7IjK10+5yVG19Il6+f1e6II wVZw== X-Gm-Message-State: APjAAAW3+8veCw4LKsbcrULQ4qDXva0cpDQ/ruBHYe2ZqvAU0sHERXfl gyaZj7dDX6DVZp33wLTRtDxRwQ0edy7oqWDnjYQ= X-Google-Smtp-Source: APXvYqxj+INngkZZLIQPHLWl83GhSGdxMlXO1ayXniA/+VeyFW1rYFunRWISIZGkALKUaNbSyXh2/IXbVKgW3N/p2m4= X-Received: by 2002:aa7:8750:: with SMTP id g16mr13138355pfo.190.1569717572614; Sat, 28 Sep 2019 17:39:32 -0700 (PDT) MIME-Version: 1.0 From: Stefan Kangas Date: Sun, 29 Sep 2019 02:39:21 +0200 Message-ID: Subject: Re: bug#29036: 26.0.90; Feature Request: make "emacsclient +linenum file" rencenter line To: Eli Zaretskii Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.4 (/) X-Debbugs-Envelope-To: 29036-done Cc: Xiaolong Zhang , 29036-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: -0.6 (/) Eli Zaretskii writes: >> From: Xiaolong Zhang >> Date: Sun, 29 Oct 2017 18:57:36 +0800 >> Cc: 29036@debbugs.gnu.org >> >> If the file is already visited in Emacs, it won't recenter. Is it possible to make >> Emacs recenter even if it's already visited? > > You can only do that by customizing the scrolling behavior in > general. There's no special behavior for visiting a file that is > already in Emacs. It seems like the reporter got the needed answer. I'm therefore closing this bug report. Best regards, Stefan Kangas From unknown Tue Jun 24 05:12:15 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 Oct 2019 11:24:08 +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