GNU bug report logs - #29036
26.0.90; Feature Request: make "emacsclient +linenum file" rencenter line

Previous Next

Package: emacs;

Reported by: Xiaolong Zhang <xlzhang921 <at> gmail.com>

Date: Sat, 28 Oct 2017 03:31:02 UTC

Severity: wishlist

Found in version 26.0.90

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Stefan Kangas <stefan <at> marxist.se>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#29036: closed (26.0.90; Feature Request: make "emacsclient
 +linenum file" rencenter line)
Date: Sun, 29 Sep 2019 00:40:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sun, 29 Sep 2019 02:39:21 +0200
with message-id <CADwFkmmUL_sdtpJ2xSTPyFcCbcAxZUTVaV45Evndb2_9Amaubg <at> mail.gmail.com>
and subject line Re: bug#29036: 26.0.90; Feature Request: make "emacsclient +linenum file" rencenter line
has caused the debbugs.gnu.org bug report #29036,
regarding 26.0.90; Feature Request: make "emacsclient +linenum file" rencenter line
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
29036: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=29036
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Xiaolong Zhang <xlzhang921 <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 26.0.90;
 Feature Request: make "emacsclient +linenum file" rencenter line
Date: Sat, 28 Oct 2017 11:30:27 +0800
[Message part 3 (text/plain, inline)]
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
[Message part 4 (text/html, inline)]
[Message part 5 (message/rfc822, inline)]
From: Stefan Kangas <stefan <at> marxist.se>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Xiaolong Zhang <xlzhang921 <at> gmail.com>, 29036-done <at> debbugs.gnu.org
Subject: Re: bug#29036: 26.0.90; Feature Request: make "emacsclient +linenum
 file" rencenter line
Date: Sun, 29 Sep 2019 02:39:21 +0200
Eli Zaretskii <eliz <at> gnu.org> writes:

>> From: Xiaolong Zhang <xlzhang921 <at> gmail.com>
>> Date: Sun, 29 Oct 2017 18:57:36 +0800
>> Cc: 29036 <at> 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


This bug report was last modified 5 years and 241 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.