From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.bugs Subject: bug#58516: 28.1; add option/key to rerun current diff without whitespace changes Date: Mon, 17 Oct 2022 10:49:26 +0200 Message-ID: <87ilkiygvd.fsf@gmail.com> References: <87r0zaxvsu.fsf@gmail.com> <86k051os8g.fsf@mail.linkov.net> 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="22200"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58516@debbugs.gnu.org, gert To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 17 10:51:55 2022 Return-path: Envelope-to: geb-bug-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 1okLql-0005U1-Gc for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 17 Oct 2022 10:51:55 +0200 Original-Received: from localhost ([::1]:60150 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1okLqj-00044S-Sk for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 17 Oct 2022 04:51:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46090) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1okLox-000424-GP for bug-gnu-emacs@gnu.org; Mon, 17 Oct 2022 04:50:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48204) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1okLow-0005CV-Qb for bug-gnu-emacs@gnu.org; Mon, 17 Oct 2022 04:50:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1okLow-0004rc-L2 for bug-gnu-emacs@gnu.org; Mon, 17 Oct 2022 04:50:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 17 Oct 2022 08:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58516 X-GNU-PR-Package: emacs Original-Received: via spool by 58516-submit@debbugs.gnu.org id=B58516.166599657618608 (code B ref 58516); Mon, 17 Oct 2022 08:50:02 +0000 Original-Received: (at 58516) by debbugs.gnu.org; 17 Oct 2022 08:49:36 +0000 Original-Received: from localhost ([127.0.0.1]:47270 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1okLoV-0004q3-NL for submit@debbugs.gnu.org; Mon, 17 Oct 2022 04:49:36 -0400 Original-Received: from mail-wr1-f48.google.com ([209.85.221.48]:35516) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1okLoU-0004pk-F3 for 58516@debbugs.gnu.org; Mon, 17 Oct 2022 04:49:34 -0400 Original-Received: by mail-wr1-f48.google.com with SMTP id u10so17406722wrq.2 for <58516@debbugs.gnu.org>; Mon, 17 Oct 2022 01:49:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=LU+hui/sMMGUlP9cp2e4JK1hW+clEABD20iGgBdu1fc=; b=YkaigBpJN7hXqGPceDBcgyVx2O4QE6iJ4dspELZCUWHSSPYCh8Ukfy5MxtbKx1O71T CIzUWSjZmyjCn6162eSJw6sNhbsKOETkfCrojLtfZBuXZciHr0Jte5PxX6dXSP0M8YcG cQL6ihHh+y/Le0WMQfCC458P8itKdY3OC5VjRvPNik9RBPV0fTWcFauwRsu257eeSOt8 XJoTucJxY80tBoBynu41g7srCoprGXDoCTDhVojEnYyKFkMJqI8nJy79c9OptRMQYwNK t0stXs2QrbbvmC+5qFF4ca1XOBztX5nl2tBtWdvsdA9t1HqhiskZjHlxItJiVgaRcYYX /cdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LU+hui/sMMGUlP9cp2e4JK1hW+clEABD20iGgBdu1fc=; b=N45w7rBJeTLS0zF9fnn9rSnD1VP0JfgC+yOb/j2WzC1mA49VtZsJ4dOck/P74buE0Y IP9Wy/bbRnTtniaKb4hL1lxOpBszV/CngVo/Q3zMXcSLhtWGTBuukBg9IZ1KpSC12Pyl q0Q+rt9bbazOP+im8RZh2wJNctC48QdlALLL2ysjAXLtC61E2nadVCT8bLSSM3aEU4QN T4StM5Fcjk6YKuxXXakH4Ctzt6W5SnDPpErVn2fMst0euqVaFpNI6wyfToRsEW9Dm3K0 XkK9pj2GAKP038qbVXTOK68m+2gSsNoEV4pl+tj8w5skJTHiwpPyCc8WgKkFNRkiBPsm DTOw== X-Gm-Message-State: ACrzQf1YqnNIJ3CyowevqCKtqb80Ut8Zovzc/2HKS6IXiEExhU401Kf0 RnJ+3gDERHw2zK1htsknwpw= X-Google-Smtp-Source: AMsMyM6PpKY8fgq5E4fjBItWf99KwBbgVlfhI3jn6lHNjIwAle7XYxv4QTk7L1ICz+nJcfq9ZwP4ww== X-Received: by 2002:a5d:6dc3:0:b0:22a:bcc3:21c6 with SMTP id d3-20020a5d6dc3000000b0022abcc321c6mr5766517wrz.450.1665996568209; Mon, 17 Oct 2022 01:49:28 -0700 (PDT) Original-Received: from rltb ([82.66.8.55]) by smtp.gmail.com with ESMTPSA id p14-20020a05600c468e00b003c6f3e5ba42sm4544257wmo.46.2022.10.17.01.49.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Oct 2022 01:49:27 -0700 (PDT) In-Reply-To: <86k051os8g.fsf@mail.linkov.net> (Juri Linkov's message of "Sat, 15 Oct 2022 22:09:35 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:245702 Archived-At: >>>>> On Sat, 15 Oct 2022 22:09:35 +0300, Juri Linkov sai= d: >> +(defun diff-ignore-whitespace-all-hunks () >> + "Re-diff all the hunks, ignoring whitespace-differences." >> + (interactive) >> + (diff--iterate-hunks (point-max) (lambda (_ _) >> + (diff-refresh-hunk t)) >> + (point-min))) Juri> A question about performance: would this run the diff command Juri> for every hunk? Yes. I don=CA=BCt see an easy way to avoid that: we may not have actual source files available, so we can=CA=BCt just run the diff command with different switches over the whole file. Robert --=20