From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Rolf Ade Newsgroups: gmane.emacs.devel Subject: Re: goto-line-history should not be buffer local. Date: Thu, 18 Feb 2021 12:38:11 +0100 Organization: Me Message-ID: <87pn0xd2sc.fsf@pointsman.de> References: <87im6ugsdq.fsf@telefonica.net> <875z2s3s9b.fsf@mail.linkov.net> <87wnv6cjan.fsf@pointsman.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21489"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) To: emacs-devel@gnu.org Cancel-Lock: sha1:8NwJ4bKcjl4WIGtiSlqO5qk1WrE= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Feb 18 12:39:13 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lCheL-0005TK-DS for ged-emacs-devel@m.gmane-mx.org; Thu, 18 Feb 2021 12:39:13 +0100 Original-Received: from localhost ([::1]:49924 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lCheK-0001Lu-Fq for ged-emacs-devel@m.gmane-mx.org; Thu, 18 Feb 2021 06:39:12 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52068) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lChdU-0000qA-7l for emacs-devel@gnu.org; Thu, 18 Feb 2021 06:38:20 -0500 Original-Received: from ciao.gmane.io ([116.202.254.214]:48002) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lChdS-0007Bi-BI for emacs-devel@gnu.org; Thu, 18 Feb 2021 06:38:19 -0500 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1lChdQ-0004Ve-2s for emacs-devel@gnu.org; Thu, 18 Feb 2021 12:38:16 +0100 X-Injected-Via-Gmane: http://gmane.org/ Received-SPF: pass client-ip=116.202.254.214; envelope-from=ged-emacs-devel@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.25, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:265147 Archived-At: Hello Alan, Alan Mackenzie writes: > On Thu, Feb 18, 2021 at 01:26:56 +0100, Rolf Ade wrote: >> Matt Armstrong writes: > >> > Who are the people who would set the option back to buffer local >> > history? > >> I will do. (Would prefer it's the default.) > >> What meaning have a certain line number from one buffer in another >> buffer? > > When, for example, you accidentally run goto-line in the wrong buffer. > When you switch to the buffer you wanted, you don't want to have to type > in the whole line number again. > > When you have several versions of the same file, which happens in SW > development, you may want to goto-line to the same position in a > different version, in a different buffer. > > A third case, which is what got on my nerves last weekend, is when you > are repeatedly killing a buffer and loading the same file again, so as > to clear caches, and so on. You want to go to the same place at each > new loading, so as to do testing. Thanks for explaning. I didn't thought about those cases but see now why you are glad about a global goto-line history for them. > I'm curious as to why somebody would want buffer local goto-line > history. How often does one repeat the same goto-line in the same > buffer, and how does a buffer local history help? When I valgrind an app I get line nummers from the output of the memory debugger. Often the stack trace spread over several source files. While looking around in the relevant files I would be glad for a local goto-line history.