From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#55414: 29.0.50; Byte compilation error for the modus-themes Date: Wed, 25 May 2022 16:12:37 +0300 Message-ID: <83r14h4uyi.fsf@gnu.org> References: <87lev296hl.fsf@protesilaos.com> <87zgjihlmw.fsf@gnus.org> <83zgjhiv8l.fsf@gnu.org> <83wnelirxq.fsf@gnu.org> <83tu9pinsj.fsf@gnu.org> <87tu9p8r7d.fsf@protesilaos.com> <83r14tii8m.fsf@gnu.org> <83ilpx7l8c.fsf@gnu.org> <87tu9gyki9.fsf@protesilaos.com> <83czg47bz7.fsf@gnu.org> <87v8tv7dht.fsf@protesilaos.com> <83mtf75grb.fsf@gnu.org> <87h75el2f5.fsf@protesilaos.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33591"; mail-complaints-to="usenet@ciao.gmane.io" Cc: acm@muc.de, larsi@gnus.org, 55414@debbugs.gnu.org To: Protesilaos Stavrou Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 25 15:13:26 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 1ntqpJ-0008aY-J2 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 25 May 2022 15:13:25 +0200 Original-Received: from localhost ([::1]:34072 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ntqpI-000468-1S for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 25 May 2022 09:13:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49828) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntqow-00044P-M8 for bug-gnu-emacs@gnu.org; Wed, 25 May 2022 09:13:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60722) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ntqow-0006Xp-3K for bug-gnu-emacs@gnu.org; Wed, 25 May 2022 09:13:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ntqov-0004IM-Sg for bug-gnu-emacs@gnu.org; Wed, 25 May 2022 09:13:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 25 May 2022 13:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55414 X-GNU-PR-Package: emacs Original-Received: via spool by 55414-submit@debbugs.gnu.org id=B55414.165348437616494 (code B ref 55414); Wed, 25 May 2022 13:13:01 +0000 Original-Received: (at 55414) by debbugs.gnu.org; 25 May 2022 13:12:56 +0000 Original-Received: from localhost ([127.0.0.1]:54619 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ntqoq-0004Hx-DJ for submit@debbugs.gnu.org; Wed, 25 May 2022 09:12:56 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:56460) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ntqon-0004Hc-FQ for 55414@debbugs.gnu.org; Wed, 25 May 2022 09:12:54 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:60704) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntqoh-0006Vc-Po; Wed, 25 May 2022 09:12:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=RToYmXATvqijJhosvRSfrllm6dU8TipLmwkwSNtNRuY=; b=ntViWtmH9AlZ 6rQXs2pLpuJ+oZBjOkVbDXSsKNaSpDS/nh8UXwnXnAJcTqxYjOv0Jc5f3TsyTvY+t51DYToRdh6+1 O1V0H9wnP7W2zNNTST4G4dtXrFtdOicLtgdCvAD95d4QE41M5MLadICOcgm/cXPAfyq4IfHVLwTeR H6q46EjRE7EhhoivyUNDHZUsRmDDfJSgHMAJWPC39RFTtGA8vu9WXE70dRUb7Mhg0/vTyZk6BqVHC ooNRhXuiAaftAVX0SsFfUSnhupEF+yiPh6j2mClhNHBtnlWdwnTxakhZ/ZnZ6PVn8DuGwRXp8tgui J+37qmn9ITOsVGFsq4Sf0g==; Original-Received: from [87.69.77.57] (port=4939 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntqoh-0000vw-9A; Wed, 25 May 2022 09:12:47 -0400 In-Reply-To: <87h75el2f5.fsf@protesilaos.com> (message from Protesilaos Stavrou on Wed, 25 May 2022 06:24:46 +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:233057 Archived-At: > From: Protesilaos Stavrou > Cc: acm@muc.de, larsi@gnus.org, 55414@debbugs.gnu.org > Date: Wed, 25 May 2022 06:24:46 +0300 > > The first approach was to add the following at the end of the relevant > files: > > ;; Local Variables: > ;; max-lisp-eval-depth: 3000 > ;; max-specpdl-size: 3000 > ;; End: > > Then M-x byte-compile-file with modus-operandi-theme.el: the local > variables were ignored. Same for: > > (package-install-file "/preferred/path/to/modus-themes") > > The second approach I tried was to add those variables in a > .dir-locals.el file which was located in the same directory as the > modus-themes. The contents of that file looked like this: > > ((emacs-lisp-mode . ((max-lisp-eval-depth . 3000) > (max-specpdl-size . 3000)))) > > Again, the values were ignored. How about advising package-install-file? Also, how do other packages overcome similar problems? Surely, this isn't the first or the second package that needs such measures? And finally, any ideas why a package that is just a theme need such large values of these variables? > These methods work for other variables but not those two. Perhaps > because they are considered "risky" as file-local? No, I think that's because these facilities visit the file literally. > > If the above misses the point, please tell more how you compile the > > package and how you tried to enlarge the values of those variables. > > I don't use a Makefile. The recipe I shared in the first message to > this bug report affects installation via package.el and, by extension, > GNU ELPA. If all else fails, perhaps package.el should acquire a feature whereby these variables could be overridden during byte-compilation.