From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?K=C3=A9vin_Le_Gouguec?= Newsgroups: gmane.emacs.devel Subject: Re: goto-line-history should not be buffer local. Date: Thu, 18 Feb 2021 12:04:13 +0100 Message-ID: <871rddtz6a.fsf@gmail.com> References: <87im6ugsdq.fsf@telefonica.net> <875z2s3s9b.fsf@mail.linkov.net> <87wnv6cjan.fsf@pointsman.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30418"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Rolf Ade , emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Feb 18 12:05: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 1lCh7Q-0007lF-3A for ged-emacs-devel@m.gmane-mx.org; Thu, 18 Feb 2021 12:05:12 +0100 Original-Received: from localhost ([::1]:60860 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lCh7P-0000G1-47 for ged-emacs-devel@m.gmane-mx.org; Thu, 18 Feb 2021 06:05:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45774) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lCh6Z-0008Gl-Gy for emacs-devel@gnu.org; Thu, 18 Feb 2021 06:04:19 -0500 Original-Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]:41373) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lCh6X-00007M-TE for emacs-devel@gnu.org; Thu, 18 Feb 2021 06:04:19 -0500 Original-Received: by mail-wr1-x42a.google.com with SMTP id a4so238835wro.8 for ; Thu, 18 Feb 2021 03:04:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=gez14YLwf+MHsPo/VgFnaDykZ1w5NDRI2SBrWrovqGY=; b=TwOCc6aTcwJbM0cI3+3EZg0rAQuF60+j0+x06P9jZQsizrkz2h0r+HrUymDJVbJ2KB wQKl+pxcUV1qOWRRg+pxLKgNCuMcNCOc6/Ez4EnggnjibMp4U6JUQ2TsnRBFFMySFfua qkHv2IY5idZhtAjcn81Lam3884UAVwubCTYtJuQyfSXAJFlKg8UTa5ReHGeGLLoExZX7 LyRSxg40WKxux8ZzlrKbwUDkmvCz6LigEsST2EAVzgMQPK+CLxXUSPxbo0zWgEt60zGe AWz5qcEGSkpnC1SaqBpF4xEUyAb9Na7hEso/E3xCqZIQI6R5uZXqrifKPDaQuWHic9tt 8cjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=gez14YLwf+MHsPo/VgFnaDykZ1w5NDRI2SBrWrovqGY=; b=Evy9o55QFtr4fif9aAVn3JH1/ZNzplLSUEgkbCcx143fC+AwEX4Ma+L73rU9Y4d9mM dQy6Qr9jI0TKC4IcGm1KE1i4r+W7MoZ9c4Wirh5bxBM/YpS2INkW19XWLEbo8xPRUlyG DzoUME55KR0FMnYeKJjdrnP8Ssjtbpl9dlbfBJV2arNx7XP/3ret5VuaQv0W5YbBBmo/ wbxzqFVE+O9KQ3Tgr1ffjgyec+kqH8XLf4IJjHSDaPZWb/O1nvM5XUuucKoOFd4h1MQX vAEQWlYwaLLZlH3bf6OW6Qm9NDQua9frOjXsDRGdMgDsdXhQyY3mLqEC/J7onioNkflQ 7uiQ== X-Gm-Message-State: AOAM531MxZ7QHJi9kR4qcwx9I4asIsAXWHvnvofkc0a9zUhFkkRY/5HN b/9TMJBinOfPTq8H+pJ1xwVy6FdlLDw+Hj2m X-Google-Smtp-Source: ABdhPJyWaY5slSZAOfCp5wCysW8TbcmNSC0Vvpdnr+AnABZ66MU2nR9bIfvaKYix4M9kkc0jxm4C6w== X-Received: by 2002:adf:9b82:: with SMTP id d2mr3761702wrc.193.1613646254627; Thu, 18 Feb 2021 03:04:14 -0800 (PST) Original-Received: from my-little-tumbleweed ([2a01:e0a:20e:d340:922b:34ff:fe95:9aed]) by smtp.gmail.com with ESMTPSA id n186sm7159281wmn.22.2021.02.18.03.04.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Feb 2021 03:04:13 -0800 (PST) In-Reply-To: (Alan Mackenzie's message of "Thu, 18 Feb 2021 10:43:02 +0000") Received-SPF: pass client-ip=2a00:1450:4864:20::42a; envelope-from=kevin.legouguec@gmail.com; helo=mail-wr1-x42a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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:265145 Archived-At: Alan Mackenzie writes: > 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. Out of curiosity, in this specific case, wouldn't revert-buffer (now conveniently bound to C-x x g) accomplish the same thing? (Clear caches, while preserving the buffer-local history) (Not suggesting that this invalidates your use-cases; just trying to make sure I understand this one) > 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? =F0=9F=A4=B7 I guess someone could use that buffer-local history as a manua= lly curated version of the mark ring?