From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Samuel Wales Newsgroups: gmane.emacs.help Subject: Re: highlighting one buffer according to another Date: Wed, 14 Sep 2022 21:36:37 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14103"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 15 06:37:25 2022 Return-path: Envelope-to: geh-help-gnu-emacs@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 1oYgcu-0003R5-Ay for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 15 Sep 2022 06:37:24 +0200 Original-Received: from localhost ([::1]:41900 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oYgct-0000AA-8L for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 15 Sep 2022 00:37:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47576) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oYgcE-00009V-B7 for help-gnu-emacs@gnu.org; Thu, 15 Sep 2022 00:36:42 -0400 Original-Received: from mail-lf1-x12e.google.com ([2a00:1450:4864:20::12e]:45590) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oYgcC-0000EA-P4 for help-gnu-emacs@gnu.org; Thu, 15 Sep 2022 00:36:42 -0400 Original-Received: by mail-lf1-x12e.google.com with SMTP id w8so28432489lft.12 for ; Wed, 14 Sep 2022 21:36:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:from:to:cc:subject:date; bh=GKx+h8V/o05spTi1jQZeyJqKkzg0n/nTj3hokLRSW7U=; b=nRLOG7qdqLneVtIy0d8oNXcKTh+YuoU+XDfpU1kwDX7KVF3bMnH4S3iGEtrFGjI3iD 4wRmoLVGbNmrDAR55Wbs+jtAo1B5vFkk+zp940WDUhVS67sqUsEbOX1zdNzFu1d3U2oN qyBCxrVLbQj5wWooz3x+P89YpZkeqAxPB+85I1lbP06XAKzld8iub0L42cIHgv+T3PiU DBhQLO6raWuzRszA8OA5Z7PK0XrtSFkhuI6KVnaoE9RNiKlOfLzBTxAslbpOpHWfE/dG QSpbBHf1Pv0FWjsKBTMlqW3bxyfFyxIez0Ce4pHx1IkCD5KkU4Bw9Z+70TrHV+VTbdP3 Vcvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=GKx+h8V/o05spTi1jQZeyJqKkzg0n/nTj3hokLRSW7U=; b=HVyS4WsPo2Nerza4QWFQs0BbjLr9lmTw2s9xY7tgoXVuvr74OuNJkC/dKNhIlkykVY ftbO//MGX2Js8aIIQfn8aCGcE7Em4NwdXJcZlNgWWYuq/KW8KR4Olwh1korpdtKz5dr+ ku6Omue2KspYBY4IH1iHGGQhcv66LwISI+XqIN+D8Qf8btI+y09uBA6grDfjGmRaUx/8 GQ4IB2ebnueaktsNAJWhh2BcHIfijK9SaXEdEQanbHP0o8Nj/f6AwI5JJqssEWYB51QQ Msah3u4pau8Gto7Ai3liTcBCXwjLDkeoJDuFTnaO22er3vV4OddAG84Clw8YCE8lrEgP gMBQ== X-Gm-Message-State: ACgBeo3fEa5r4+v+e16wgOP9HfER2mzdkOmtna1sCAx0VXdUNI0eM1eE HWVpK7qrBrMQQrTrwRgzGOjfeRI3Z2tOOYZ5tOE= X-Google-Smtp-Source: AA6agR4/0L/zfzk56hpAVVrYeHtCNlNIsGUbx1AOTXfZ/EuDGQz5t0iIPvokywePTn9v7FTzJgnJRJWD9cH015epnlk= X-Received: by 2002:ac2:52b1:0:b0:499:f7ac:14da with SMTP id r17-20020ac252b1000000b00499f7ac14damr7651166lfm.597.1663216598670; Wed, 14 Sep 2022 21:36:38 -0700 (PDT) Original-Received: by 2002:aa6:c2eb:0:b0:21e:73da:40af with HTTP; Wed, 14 Sep 2022 21:36:37 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::12e; envelope-from=samologist@gmail.com; helo=mail-lf1-x12e.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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:139467 Archived-At: more below. On 9/14/22, Stefan Monnier via Users list for the GNU Emacs text editor wrote: > How do the original (say diff-mode) buffer and your mydiff buffer differ > (or how are they related)? > Is `mydiff` generated from `diff`? > What do you mean by "gutter"? mydiff's major mode is a derived mode of diff-mode. gutter is the place where - and + are in diff -u format. capturing orig line by line and placing each line as some type of global marker or soemhing in a text property on each line in mydiff is something that i have considered, but i'm not sure if i want to do that or can or if it is the right thing to do in context. registering aftr the fact could work better for the user, but i am also not sure if that is the right thing to do.