From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#73455: 30.0.91: find buffer pretty print columns don't line up on 1080p Date: Wed, 25 Sep 2024 10:24:32 -0700 Message-ID: References: <86plorbtf6.fsf@gnu.org> 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="12297"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 73455@debbugs.gnu.org To: Eli Zaretskii , Van Ly Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 25 19:56:09 2024 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 1stWFF-00032B-HL for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 25 Sep 2024 19:56:09 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1stWEr-0006DN-Pe; Wed, 25 Sep 2024 13:55:45 -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 1stWEq-0006Cl-Cb for bug-gnu-emacs@gnu.org; Wed, 25 Sep 2024 13:55:44 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1stWEp-0006Eo-S6 for bug-gnu-emacs@gnu.org; Wed, 25 Sep 2024 13:55:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:MIME-Version:References:In-Reply-To:From:To:Subject; bh=ZXUCbi+brk4jdLcQW/EwTDZBGdq2Vc6vLtI56Vr2bEE=; b=IaiohHKlgwtH3BnS7JZFmoAtz8N0OS8B9+I/vyMYrCVPGqofqFm5n9Z7kJtfQqPicFod8cZeRogBlKWlXbSr2dKgMSgl+rrshsDgqUsELgFftdyDZqKsJpD6vsIO3pTwg3iAyU3yB4eTsRE9kPwl3EQregn2zZmS9kH9UNO4kMvNo4IURohqYXjCY+qBb/CX5HmS1OrF7jaHUIfamjOG0BziH01ZcgTtTQaF1HJevAYn2bGkg1p3Bju1BZagtSniorJ9DV0e+/XdXmHaqdvM1ZarFMXOS6MqxVr2JZnAQByvi6FeSYByItAfcHvVXGjccbkSSqvGYXvqXVkIxZ+P4g==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1stWFF-0004xX-Bj for bug-gnu-emacs@gnu.org; Wed, 25 Sep 2024 13:56:09 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 25 Sep 2024 17:56:08 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73455 X-GNU-PR-Package: emacs Original-Received: via spool by 73455-submit@debbugs.gnu.org id=B73455.172728691617985 (code B ref 73455); Wed, 25 Sep 2024 17:56:08 +0000 Original-Received: (at 73455) by debbugs.gnu.org; 25 Sep 2024 17:55:16 +0000 Original-Received: from localhost ([127.0.0.1]:48499 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1stWEN-0004fr-HC for submit@debbugs.gnu.org; Wed, 25 Sep 2024 13:55:16 -0400 Original-Received: from mail-lf1-f49.google.com ([209.85.167.49]:61498) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1stVmA-0001jd-5P for 73455@debbugs.gnu.org; Wed, 25 Sep 2024 13:26:06 -0400 Original-Received: by mail-lf1-f49.google.com with SMTP id 2adb3069b0e04-53655b9bbcdso119935e87.2 for <73455@debbugs.gnu.org>; Wed, 25 Sep 2024 10:25:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727285074; x=1727889874; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=ZXUCbi+brk4jdLcQW/EwTDZBGdq2Vc6vLtI56Vr2bEE=; b=CVslywDHLEI7AwSVqGmchMcqvGos86D7J/R/ld7ZAYqPPDcLe9jsGAKHzvJRYCwHtd SMpagJMpsD2ptoPS8G/r0RyqIfG5USAzq7avUHgQdsUs6s8NeGOqEQfJVaIZvCe1f3ts RyPedudPIjpTQ0UvPSM4fE2oZgDXUsbi5QV66zCCNeN1yJA7WwFyZTk9yLiOBNhN2Kxw ovVp5B4rvoEy8rBJJVbFTaGIRC1q8Mg2PmkV+TmnRk3mGe6uVeQziGQxJwHvpQHRxW+p DAqywnNX9QJ2eEbTKQSf3FR4SJRYsuwTGPB+hvrhDiLWQ0BGGBaO6Ex0t9MDJCfYxEdn YipA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727285074; x=1727889874; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ZXUCbi+brk4jdLcQW/EwTDZBGdq2Vc6vLtI56Vr2bEE=; b=LR3N402JGr8fdymPPJ0ki3x0goCP2gdeJq+LpLiwI6CAy1aScftJ7uavccQi7kpWZN 5Jb9FadFfHS/SxfYjQMAcoC8jiRAfi4uXAbTZ9jnrtHvoR+JUJlrYgmhb7tKOskoOjm9 RSFzud/pl9uunR6zjT4tdjjfNpoUiRleogfiYP/+Fv7N8OKKVJ/NM1ydpnwxZcQXtGpz cyVYeM+nsH7toym/v3Z5lkcGxlRUqJnqCHT9tHiWYxoeY3YaLEhliSf5nWEd8e4KULfg 6IY2JGZaeujno+OmC73Ubs7CFQcPjaz4W0egysHTeCUiorQXR4gWLKXA+wEt74V0Gwya yMug== X-Gm-Message-State: AOJu0Yxpto1htRJtYAfSdhu7jqS4BxZ3my5VKhCvRedsiB2M+AznVNaR vGAgBq/zSg+d908IERpSEqIvw4ZqrUaApELCV6U1wiKjkumG6nT4BNVetIUTDPJm1AG53Rw3sX7 sIHjcTM2D7+A5NMC8bhtC//XtJaM= X-Google-Smtp-Source: AGHT+IF/iLbcbfx2mc8f1bGNhNKRUDWfRvyAJeF/tz0yJz98mlH929gdG2oiYGwKaHhnO9dDM7gk4NGO3KjVBX8fV6s= X-Received: by 2002:a05:6512:4025:b0:533:44a3:21b9 with SMTP id 2adb3069b0e04-5387048af03mr2207210e87.1.1727285073807; Wed, 25 Sep 2024 10:24:33 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Wed, 25 Sep 2024 10:24:32 -0700 In-Reply-To: <86plorbtf6.fsf@gnu.org> 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:292409 Archived-At: Eli Zaretskii writes: > If you set the value of find-program to "gfind", I think you should be > able to add only /usr/pkg/bin to PATH, and that should not override > the original "find", "make", etc. Would it be worth considering doing the same as we did for `insert-directory-program`, i.e. the below? I'm not sure if this would be considered too opinionated for people that are very used to a BSD userland. This still requires GNU find to be installed, of course (on macOS with Homebrew, that would be `brew install findutils`). diff --git a/lisp/progmodes/grep.el b/lisp/progmodes/grep.el index b453ac60ed2..97583c8afb8 100644 --- a/lisp/progmodes/grep.el +++ b/lisp/progmodes/grep.el @@ -550,7 +550,11 @@ grep-program This variable's value takes effect when `grep-compute-defaults' is called.") ;;;###autoload -(defvar find-program (purecopy "find") +(defvar find-program + (if (and (memq system-type '(berkeley-unix darwin)) + (executable-find "gfind")) + (purecopy "gfind") + (purecopy "find")) "The default find program. This is used by commands like `grep-find-command', `find-dired' and others.")