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#10292: following symlinks in byte-recompile-directory Date: Wed, 25 Nov 2020 02:14:15 -0800 Message-ID: References: <5282474D-19E0-4646-B65D-134CA6967F0A@gmail.com> <8736hz6mv1.fsf@mouse.gnus.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="15724"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Sam Aaron , 10292@debbugs.gnu.org, "Richard M. Stallman" To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 25 11:15:48 2020 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 1khrpz-0003z4-7U for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 25 Nov 2020 11:15:47 +0100 Original-Received: from localhost ([::1]:34474 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1khrpx-0005d2-H9 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 25 Nov 2020 05:15:45 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43584) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1khrpH-0005bj-1c for bug-gnu-emacs@gnu.org; Wed, 25 Nov 2020 05:15:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51172) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1khrpG-0005gn-PU for bug-gnu-emacs@gnu.org; Wed, 25 Nov 2020 05:15:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1khrpG-0003SS-GJ for bug-gnu-emacs@gnu.org; Wed, 25 Nov 2020 05:15:02 -0500 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 Nov 2020 10:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10292 X-GNU-PR-Package: emacs Original-Received: via spool by 10292-submit@debbugs.gnu.org id=B10292.160629926313229 (code B ref 10292); Wed, 25 Nov 2020 10:15:02 +0000 Original-Received: (at 10292) by debbugs.gnu.org; 25 Nov 2020 10:14:23 +0000 Original-Received: from localhost ([127.0.0.1]:34485 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1khrod-0003RI-DM for submit@debbugs.gnu.org; Wed, 25 Nov 2020 05:14:23 -0500 Original-Received: from mail-ej1-f51.google.com ([209.85.218.51]:38766) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1khrob-0003R6-Dp for 10292@debbugs.gnu.org; Wed, 25 Nov 2020 05:14:21 -0500 Original-Received: by mail-ej1-f51.google.com with SMTP id a16so2215906ejj.5 for <10292@debbugs.gnu.org>; Wed, 25 Nov 2020 02:14:21 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to:cc; bh=AZyIhuXgSHz6Qt/Bzkuj+KyxcWAQWrU3uZXUw8YaTgU=; b=cTwDkqcDFt0JWwiYPk0UF+8IULQoJ6O/S9jdgdxlnWYuAfR2P9KGordsUVyydSf+kf SomXKD+VlhgoCAK7ZCpNb57WZ0fg7AhT6cdYVf1XCq96bBwySDBpmxzTV1EhzuRPl1sC VJRN4BvSDnvpCC9YWXq6KQfxHRibyhGJyL6YlQ57JH/ez1KKSGh6sivjpxNPzvHRTKhH 2/3KhWgHA2PfrnBrcp1bkEMpS4q5KKuO8C99hA+VVjW5gEtUlCpH9qyDFZCECDKIh311 canjgBb/ZfgCt9UxT7fyRbqtI6oq4Wbg8rvxLjWoK5IjwsMP01KQeSCkcTfPFT0Ft32B AoAA== X-Gm-Message-State: AOAM533VuQFFro+4FB0KSDsTvpTULVOtXMDMbqJh2mi1fFgJDLW3hnOG QraKwMLu0stnCf7l6sO+23CpWCjjOcoFibTt/eY= X-Google-Smtp-Source: ABdhPJwHepiYVntw8OVXn4MhAdcMfHjQIJrdo6pEep3WCEhhoPO0zN3rVwDS8xovDA7PCM01TLhq8RCYptCNILrWRaI= X-Received: by 2002:a17:906:8058:: with SMTP id x24mr2595785ejw.272.1606299255755; Wed, 25 Nov 2020 02:14:15 -0800 (PST) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Wed, 25 Nov 2020 02:14:15 -0800 In-Reply-To: <8736hz6mv1.fsf@mouse.gnus.org> (Lars Ingebrigtsen's message of "Sat, 17 Aug 2019 22:53:06 -0700") 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:194182 Archived-At: Lars Ingebrigtsen writes: > Sam Aaron writes: > >> I noticed that the implementation of byte-recompile-directory has >> specific code to not allow symlinks to be followed. As I use symlinks >> to structure my ~/.emacs.d directory, this means this fn doesn't work >> for me. Is there any specific motivation for not having the following >> signature: >> >> (byte-recompile-directory-sl DIRECTORY &optional ARG FORCE FOLLOW-SYMLINKS) > > (I'm going through old bug reports that unfortunately have gotten no > responses yet.) > > Not following symlinks introduced in 1993, but the commit message > doesn't explain why: > > commit e9681c45f9ffd2819410b763338ba58b0b892b78 > Author: Richard M. Stallman > Date: Thu Dec 23 03:37:27 1993 +0000 > > (byte-compile-dest-file): If FILENAME is not recognized, append .elc to it. > > (byte-recompile-directory): Don't treat symlinks as dirs. > > (batch-byte-recompile-directory): Add autoload cookie. > > Adding a parameter to the function to follow symlinks seems pretty > harmless, and seems somewhat useful, so I think it should be added. Yes, I agree. > Does anybody object to that? Let's assume no, since there has been no replies in the last year. :-)