From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: gnuist Newsgroups: gmane.emacs.help Subject: Newbie looking for a toy example of ediff-buffers demonstrating #f and #h Date: Sat, 20 Jul 2024 20:05:43 +0000 Message-ID: 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="24246"; mail-complaints-to="usenet@ciao.gmane.io" To: "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 20 22:06:39 2024 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 1sVGLn-00065K-Ky for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 20 Jul 2024 22:06:39 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sVGLG-0007Wr-Vp; Sat, 20 Jul 2024 16:06:07 -0400 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 1sVGLF-0007WR-8j for help-gnu-emacs@gnu.org; Sat, 20 Jul 2024 16:06:05 -0400 Original-Received: from mail-0201.mail-europe.com ([51.77.79.158]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sVGLB-0001ve-69 for help-gnu-emacs@gnu.org; Sat, 20 Jul 2024 16:06:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1721505949; x=1721765149; bh=ynneQdKgE9tc6VA93V4sf+bBZVdkzamCxyNeyVBPCiI=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=owpW3UdofBYj8l+0ilzZ64n/MU7mcAwRNsDa9+dwAHBvhLCVWUpDqxJCCxMF/7iH/ kpMZ2dCQMAFvxrLKzx0GoGzTvD0s6fDrcU5kRXYq8G9aSc86VYVvjhkSoyA8+uk8Vi k69UzadOttRwS1f/rXJf6WpJo3EucB7FWdmAvycC206RSnX1K37T4uxg8v9MrBAwoF CtpEcPfyvD1fJ+T+w6yTnXB3VFEilMBpl0XFDucB6mqX+aDCOsnoDOuPlsvrfOSAGu ZPSQkN1rbhZe4ABzZGjcpDes1kA+DxgaquGt2pYZ88yk9op2RzUdqpAzUEfyapNKiM 74CWdrYatQLMQ== Feedback-ID: 115055493:user:proton X-Pm-Message-ID: d60ed630c504bc8855a1f8bdec2befabcbec98e6 Received-SPF: pass client-ip=51.77.79.158; envelope-from=gnuist@protonmail.com; helo=mail-0201.mail-europe.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:147284 Archived-At: Hi - Newbie looking for a toy example SESSION of ediff-buffers demonstratin= g #f and #h. You can put a small 2-3 lines file A and file B with lets say @ in first fi= le and semicolon or hash in its place . Perhaps, also an empty brace in the= first {} and a brace with some other text like {a b c} in the second. I want to see how #f and #h is supposed to work. Regarding two questions: From: =09Michael Heerdegen Subject: =09Re: Newbie: Merging buffer A with B using ediff-buffers Date: =09Sat, 20 Jul 2024 08:44:23 +0200 User-agent: =09Gnus/5.13 (Gnus v5.13) gnuist writes: > But when I use #f to focus using a regexp {.*} for both A and B, I am > not seeing any special benefit. > and when I use #h to hide using a regexp [;] for A and [tab] for B, I > do not see any special benefit either. You are aware that {, }, [ and ] are all special characters in regexps? Did you quote them to let them match themselves? My Reply: Yes, I have tried both ways with and without escape and results do not make= any sense or difference. Actually escaped did not even give any difference= , forcing me to go against the convention and try brace without escape. From: =09Michael Heerdegen Subject: =09Re: BUG: ediff-buffers does not consistently show "differences"= or "difference regions" within the "active region" > You will immediately see that TAB is not highlighed in file A in its > first line. This is *inconsistent* because in the second case c#d the > hash is highlighted as the difference region within active region. Just to be clear: You are talking about fine diff highlighting? I think whitespace is ommitted when highlighting fine diffs to make the result appear less distracting in the majority of cases. My reply: Yes, but the documentation does not state so.=20 Either code has to be made consistent to documentation=20 or documentation has to be made consistent with the code. cheers