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: operations on path lists Date: Fri, 3 Feb 2023 22:32:55 -0700 Message-ID: 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="31448"; 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 Feb 04 06:33:49 2023 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 1pOBBN-0007wl-F6 for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 04 Feb 2023 06:33:49 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pOBAc-0005wP-FP; Sat, 04 Feb 2023 00:33:02 -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 1pOBAb-0005wD-Bw for help-gnu-emacs@gnu.org; Sat, 04 Feb 2023 00:33:01 -0500 Original-Received: from mail-lj1-x236.google.com ([2a00:1450:4864:20::236]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pOBAZ-0003PF-L0 for help-gnu-emacs@gnu.org; Sat, 04 Feb 2023 00:33:01 -0500 Original-Received: by mail-lj1-x236.google.com with SMTP id u27so7172477ljo.12 for ; Fri, 03 Feb 2023 21:32:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=yhpJFhMdubBlkMLk6bNcHN+mTQvfz2C6oVzYgfzIs14=; b=AT/0QlIyjsK1Mxz/DhsXD9r6t2zDFI8S6jJx+t9e/HnbG+O8F0M8wqcFZqEgumaz/l Xo17gPWhQke6V1dUze7jklzDo24ND8mbH6GP6W4l9+u7Gkd0ayqjhWD+9m74bbwSvC5j UW053JJC47GxKr1giupjKeojbGYtAiABJN/RGJfWU2jg2vkYCxMnwxIYV2tWbYwBWHea KRX/TtsNd1GUE9dr1dRyw4sEPA97hHPorO9vYLRPFlVRd/ijyYGvSTrGbyaK0Jw4TFO7 FpSTFHlznx7Aq4NdzqHpjht6+zz66gH1IoSIs2jaV26jMhouNX/AZxqWn7qhw+3NA6wq KcCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=yhpJFhMdubBlkMLk6bNcHN+mTQvfz2C6oVzYgfzIs14=; b=QwnvKrYk5diAA5shnn6XCSvTY586bKDdUSdd7V4ngt7OXsOvrZ5Ah0X0+6MK8PgSq5 4uBdLzPzvdKIL14aIi6nS8PGijZ8kpFUbsBKbqPkFnFMcHHe3zRJmLV9pS7rFkfm2O5d xOnTu45rFR7WP6bgiwtXwMeoYPW+CX6dM9h1KJlLigvHV3v80nRLk9DZeLrrAiS689tV YIqLZy9vr7zT1unYdTX8yeQYg0dhVh86BYFFeuSXmLFPOtTW757HgkijuTB40a8ZMQYJ dL8oC9/BaXqav2IbyCJzBn/Bx7FVsjDm1+UhhhCJa1M7fV9HBuiDApzujJuJpkO17O1a qcqA== X-Gm-Message-State: AO0yUKXLazf43FAxK3hU8jDGX+Qr4ZKcxwWX/d5XNaFCDz23GVmiffu/ F37JxZIIpfLA8IUTmGiE27E2vta4/p/qSFWrIh0CcHUrSExhPw== X-Google-Smtp-Source: AK7set/ARf7FhQvZT48Mpzbzr8Lpuxquta5VJiYOV5aF0Oe+FptnwhU86WjLmSAjkRAsPoN72yskCjCxR4iurSHQJ9I= X-Received: by 2002:a2e:b0cb:0:b0:290:7d15:464b with SMTP id g11-20020a2eb0cb000000b002907d15464bmr1780000ljl.146.1675488776167; Fri, 03 Feb 2023 21:32:56 -0800 (PST) Original-Received: by 2002:aa6:c266:0:b0:23b:5e81:46ba with HTTP; Fri, 3 Feb 2023 21:32:55 -0800 (PST) Received-SPF: pass client-ip=2a00:1450:4864:20::236; envelope-from=samologist@gmail.com; helo=mail-lj1-x236.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: 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:142590 Archived-At: suppose i do find . -iname '*foo*' -type d | sort and suppose that i want to copy these dirs to another dir, or so. the components and paths can be long. it gets confusing, trying to interpret these paths. what is underneath what in the fs tree? i'd like to do at least one of the following operations on this list. i don't know which would be more clear in all cases. 1. shortcut all subsequent paths if a path is like ./.../...foo.../.../...foo..., then eliminate that line. i.e. eliminate paths that have common prefix paths on any previous line. 2. highlight adjacent subsequent paths' common components if i have paths like ./hi/foo ./hi/there/foo ./whatever/whatever/foo then i want line 2 to have ./hi/ highlighted. i might also like this one for, not paths, but lines, to show intra-component differences. but in that case, it might be the difference i want highlghted, and it need not be a prefix or a suffix. is there anything like any of these in emacs? i don't know of a cli solution either. -- The Kafka Pandemic A blog about science, health, human rights, and misopathy: https://thekafkapandemic.blogspot.com