From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: A feature to go to last edit locations Date: Sun, 12 Feb 2023 20:52:43 +0200 Message-ID: References: <972bedcc-37c9-5180-ac41-90e25d854a63@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3702"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Cc: emacs-devel@gnu.org To: =?UTF-8?Q?Daniel_Mart=c3=adn?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Feb 12 19:53:14 2023 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 1pRHTO-0000qq-3z for ged-emacs-devel@m.gmane-mx.org; Sun, 12 Feb 2023 19:53:14 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pRHT1-00047c-R6; Sun, 12 Feb 2023 13:52:51 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pRHSz-00047C-Oh for emacs-devel@gnu.org; Sun, 12 Feb 2023 13:52:49 -0500 Original-Received: from mail-ej1-x62a.google.com ([2a00:1450:4864:20::62a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pRHSy-0006pK-0p for emacs-devel@gnu.org; Sun, 12 Feb 2023 13:52:49 -0500 Original-Received: by mail-ej1-x62a.google.com with SMTP id lu11so27024257ejb.3 for ; Sun, 12 Feb 2023 10:52:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=DdVkQq4fRv7L5YvII1+VkFKm+CQLbH7c+gFhlu6IfMo=; b=XaBKcMwSkGJVWrBT3AMZ1p1aBK/vwDBfdmXHhA/Cs1gQX1CoNiYacQvXkmUQmY5Too OO5AsYPn2iTM8KD9dmv8NtsxtUYHuWzZjJ9UYMr39UNQ7x8pvj8XrW9C/T1RMBjeVZtd M1C3pb6MYj+HLHCGIIlB9ZXFKbkYXI30W48j2IVwJ0RfPhBlRRYdtwe94sGUnUwuFGdv dvzC+gANP9fOLTBMBUVEdqQZyypGrbmd9DpevQoK9/svA27Ajk6VvwXlvrJZR9AIeewQ v8y1zO4I9/gJPRh5N1i0iazJRAwr+BRi16Noo6JVwUbBPMyoFox5jq8dsVN7EeoKE5Nr Ti3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=DdVkQq4fRv7L5YvII1+VkFKm+CQLbH7c+gFhlu6IfMo=; b=MKoLB9ciBveMW50yN4LlvX1oyCBcyVMFIfMzfCnVROgyWfK/Aio38Q5qhi3YGJ0d6k MwEHPTaXd8dEq16tsbMzULnAjQ/cqcjTXNQEaKNN0zprnLEMEDbYJ1zVPCveOiOlAynk GBQSD7rwj2boh6EY0vrKtHaAPKIseHotUpHZfsoG6456rG3iTl0b6JLkrtPYUtN3MKOV aPq8G7vThrmv/wN+O3pSlnZUrBunB3f6qpOzuPODFlu7g4FHyokBwHaBNQZt0gA9LzXZ i+Fzr7f+WK0AVVpQoLBTl/NpoTJ+IWVNK/+WfuY4fKv3XSikHm7ZHP2NI1xCGYREIzvS vF+A== X-Gm-Message-State: AO0yUKWgB6R061rcDT8Ty61PKJI7fVk6IvAHXVOOwgT2tyke22dwubw7 RI6vB/OS+CrCNW4aQnMryIk= X-Google-Smtp-Source: AK7set+R4F/4IdjVy1tHuh+HgdMqgJOo7pcbiwxd+htgVgMNiDCUqjyRQpelg/wYeo+XU7A5keIgyQ== X-Received: by 2002:a17:906:1515:b0:879:ab3:93cd with SMTP id b21-20020a170906151500b008790ab393cdmr22319468ejd.46.1676227966449; Sun, 12 Feb 2023 10:52:46 -0800 (PST) Original-Received: from [192.168.0.2] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id f20-20020a170906739400b00857c2c29553sm5629389ejl.197.2023.02.12.10.52.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Feb 2023 10:52:45 -0800 (PST) Content-Language: en-US In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::62a; envelope-from=raaahh@gmail.com; helo=mail-ej1-x62a.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, NICE_REPLY_A=-0.348, 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.29 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:303192 Archived-At: On 12/02/2023 20:50, Daniel Martín wrote: > Another question is how to track the edit locations efficiently. A > naive implementation would be to add a function to > after-change-functions if the xref setting is enabled. Sure, as one option. Except you'd have to differentiate user-made changes to the buffer and ones created by more complex commands, or timers, or auto-revert-mode...