From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Visuwesh Newsgroups: gmane.emacs.bugs Subject: bug#55906: [PATCH] Make directory line in find-dired clickable Date: Sat, 11 Jun 2022 19:01:47 +0530 Message-ID: <87y1y3s4vw.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5127"; mail-complaints-to="usenet@ciao.gmane.io" To: 55906@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 11 15:33:24 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 1o01Ey-00018r-Am for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 11 Jun 2022 15:33:24 +0200 Original-Received: from localhost ([::1]:56984 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o01Ew-0005Yj-R3 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 11 Jun 2022 09:33:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41660) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o01Ec-0005WO-9w for bug-gnu-emacs@gnu.org; Sat, 11 Jun 2022 09:33:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58301) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o01Ec-00087r-0j for bug-gnu-emacs@gnu.org; Sat, 11 Jun 2022 09:33:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o01Eb-0001vR-RF for bug-gnu-emacs@gnu.org; Sat, 11 Jun 2022 09:33:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Visuwesh Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 11 Jun 2022 13:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 55906 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16549543287303 (code B ref -1); Sat, 11 Jun 2022 13:33:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 11 Jun 2022 13:32:08 +0000 Original-Received: from localhost ([127.0.0.1]:52196 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o01Dk-0001tj-Cs for submit@debbugs.gnu.org; Sat, 11 Jun 2022 09:32:08 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:35302) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o01Di-0001tY-F5 for submit@debbugs.gnu.org; Sat, 11 Jun 2022 09:32:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40546) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o01Di-0004bm-8J for bug-gnu-emacs@gnu.org; Sat, 11 Jun 2022 09:32:06 -0400 Original-Received: from mail-pl1-x641.google.com ([2607:f8b0:4864:20::641]:46004) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o01Dd-0007oR-HA for bug-gnu-emacs@gnu.org; Sat, 11 Jun 2022 09:32:04 -0400 Original-Received: by mail-pl1-x641.google.com with SMTP id q18so1436987pln.12 for ; Sat, 11 Jun 2022 06:32:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:mime-version; bh=myskm5QxgjH6rI2lu1jaYfNzwmFmzWl//sHk/K7aXxM=; b=aX3HSSeCvcFTSkUupHDdr4cM8dHXDjY23mMCmf960TXjM5nMeP0i7d6ZWLK1MKPQWx vYEAU/+J39B8cIynpnmJuStoFS56xW/rJacsxMoSDcP/U6+JpqCmQd42BumPz7m+nM8Z zqQtsSM/cr2Fjxs0HevFnhUO76PBQ21iO6UnpjwDtGSml/D2q4MEcwZH6HIHzdUYOeJm SygEUV5RFFHk/mTmqH1r4KHdbxWdO+IztEyiN+V6xb4yaPtSYvLvQbZo/JACb8TAmJyd UuUJ7nylThVxUTnXefNdLjf7+66gp4LJNAD0UtwVQ8wQE4Wic222sqApFSfSzobNcA54 LkkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=myskm5QxgjH6rI2lu1jaYfNzwmFmzWl//sHk/K7aXxM=; b=osbPzMie6nCx7Rwh33G5GK62+dBfs+WgGeWWXMgG5sSotSDwu2ck+o+HBZeTj80Fzc uLa4Dh4YuOiw2FUAJI13T7QPY05ehRtn+8izIdDGmfbQ8aKo8CVdwDOanIkMmiP3iOqC 8Rp2XPiYjkdEnkHmo8133mpOFQ8wL+30W2BbSJ7iUPeWSM9TRoZGNdooknFg1W4Smc3n /wB3ZD6tYquLv9zl9FFg8zLsVR0K5EcmBD6221kuXpT2ugzKqPRoOnvm6t9QywVGPCmX 8tn2lVezyN/wL+ijnOEDKe7h7Kyps3PoANQsy+Y5DvR+n+bsTCIv9COv5VwjYrE/t8BB HFpg== X-Gm-Message-State: AOAM531uGuF7JHGvKRmrySSyXNZrBz0Mjm06wnErs8kfotl8GEPMTflm fj10gGTfCPRKGUa/2H7V2mDJL+8HIZc= X-Google-Smtp-Source: ABdhPJwDDDW8wUemJzxhfrvzq7WcGlafJFR/gW2879e/E0c5acoLDqLTDHblzDNVoiCWDCO6yjFczw== X-Received: by 2002:a17:90a:fa16:b0:1e9:805a:bd72 with SMTP id cm22-20020a17090afa1600b001e9805abd72mr5333341pjb.70.1654954319144; Sat, 11 Jun 2022 06:31:59 -0700 (PDT) Original-Received: from localhost ([49.204.130.114]) by smtp.gmail.com with ESMTPSA id oe14-20020a17090b394e00b001d95c09f877sm1426521pjb.35.2022.06.11.06.31.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Jun 2022 06:31:57 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::641; envelope-from=visuweshm@gmail.com; helo=mail-pl1-x641.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: 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:234284 Archived-At: --=-=-= Content-Type: text/plain Tags: patch Tags: patch Attached patch makes find-dired respect the `dired-make-directory-clickable' user option. In GNU Emacs 29.0.50 (build 13, x86_64-pc-linux-gnu, X toolkit, Xaw scroll bars) of 2022-06-10 built on astatine Repository revision: 53139e53b75aa37cc808c1c8b3e3be367ae09fb3 Repository branch: add-mksh-imenu Windowing system distributor 'The X.Org Foundation', version 11.0.12101003 System Description: Debian GNU/Linux 11 (bullseye) Configured using: 'configure --with-modules --without-cairo --with-sound=alsa --with-x-toolkit=lucid --with-json --without-xaw3d --without-gconf --without-systemd --with-x' --=-=-= Content-Type: text/patch Content-Disposition: attachment; filename=0001-lisp-find-dired.el-find-dired-Make-directory-clickab.patch >From c8d951830f60a1c9f137e85da9a1ed5072dfc13e Mon Sep 17 00:00:00 2001 From: Visuwesh Date: Sat, 11 Jun 2022 19:00:27 +0530 Subject: [PATCH] * lisp/find-dired.el (find-dired): Make directory clickable. --- lisp/find-dired.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/find-dired.el b/lisp/find-dired.el index c04545e44e..8c1e684b7e 100644 --- a/lisp/find-dired.el +++ b/lisp/find-dired.el @@ -241,6 +241,8 @@ find-dired ;; Subdir headlerline must come first because the first marker in ;; subdir-alist points there. (insert " " dir ":\n") + (when dired-make-directory-clickable + (dired--make-directory-clickable)) ;; Make second line a ``find'' line in analogy to the ``total'' or ;; ``wildcard'' line. (let ((point (point))) -- 2.35.1 --=-=-=--