From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail
From: Lars Ingebrigtsen <larsi@gnus.org>
Newsgroups: gmane.emacs.bugs
Subject: bug#54491: 27.2; left-margin variable breaks autoload generation
Date: Mon, 21 Mar 2022 19:17:32 +0100
Message-ID: <87lex3qif7.fsf@gnus.org>
References: <87a6djhgjv.fsf@gmail.com> <87r16vmiyv.fsf@gnus.org>
 <83ee2vfc6h.fsf@gnu.org>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
	logging-data="25414"; mail-complaints-to="usenet@ciao.gmane.io"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
Cc: 54491@debbugs.gnu.org, william.emerson.tower@gmail.com
To: Eli Zaretskii <eliz@gnu.org>
Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 21 19:18:22 2022
Return-path: <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>
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 <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>)
	id 1nWMbm-0006Mk-J8
	for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 21 Mar 2022 19:18:22 +0100
Original-Received: from localhost ([::1]:53096 helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>)
	id 1nWMbl-0006qS-1F
	for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 21 Mar 2022 14:18:21 -0400
Original-Received: from eggs.gnu.org ([209.51.188.92]:60172)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1nWMbT-0006iw-II
 for bug-gnu-emacs@gnu.org; Mon, 21 Mar 2022 14:18:03 -0400
Original-Received: from debbugs.gnu.org ([209.51.188.43]:44289)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1nWMbS-0005SI-HZ
 for bug-gnu-emacs@gnu.org; Mon, 21 Mar 2022 14:18:03 -0400
Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1nWMbS-0007VH-9n
 for bug-gnu-emacs@gnu.org; Mon, 21 Mar 2022 14:18:02 -0400
X-Loop: help-debbugs@gnu.org
Resent-From: Lars Ingebrigtsen <larsi@gnus.org>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@gnu.org
Resent-Date: Mon, 21 Mar 2022 18:18:02 +0000
Resent-Message-ID: <handler.54491.B54491.164788666428808@debbugs.gnu.org>
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 54491
X-GNU-PR-Package: emacs
Original-Received: via spool by 54491-submit@debbugs.gnu.org id=B54491.164788666428808
 (code B ref 54491); Mon, 21 Mar 2022 18:18:02 +0000
Original-Received: (at 54491) by debbugs.gnu.org; 21 Mar 2022 18:17:44 +0000
Original-Received: from localhost ([127.0.0.1]:38183 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
 id 1nWMbA-0007Ua-Ed
 for submit@debbugs.gnu.org; Mon, 21 Mar 2022 14:17:44 -0400
Original-Received: from quimby.gnus.org ([95.216.78.240]:53122)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@gnus.org>) id 1nWMb9-0007UD-2K
 for 54491@debbugs.gnu.org; Mon, 21 Mar 2022 14:17:43 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:
 References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=FD05MYy+d2pP/rk+s1AkgRyVQfsLPgo9UR2dCId+650=; b=NYuki+hMJmMJvyONcxWUulc3WF
 RziAkCzBVlefbclqRm3BicIVw/3e3SFsOwMb4ZDLJxmPGfwwEbm8HMEN81nonptRbuHaI4GgOJgHs
 QA5qeY/MfJA1FkUrXP1TI0Fw/UsLUAt9EqWMPJ/D631dZIhU2EYn25EQP0nqfONFjO40=;
Original-Received: from 109.179.236.69.tmi.telenormobil.no ([109.179.236.69] helo=xo)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@gnus.org>)
 id 1nWMb0-00027r-01; Mon, 21 Mar 2022 19:17:36 +0100
In-Reply-To: <83ee2vfc6h.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 21 Mar
 2022 19:27:50 +0200")
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" <bug-gnu-emacs.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-gnu-emacs>,
 <mailto:bug-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/bug-gnu-emacs>
List-Post: <mailto:bug-gnu-emacs@gnu.org>
List-Help: <mailto:bug-gnu-emacs-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-gnu-emacs>,
 <mailto:bug-gnu-emacs-request@gnu.org?subject=subscribe>
Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org
Original-Sender: "bug-gnu-emacs"
 <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>
Xref: news.gmane.io gmane.emacs.bugs:228705
Archived-At: <http://permalink.gmane.org/gmane.emacs.bugs/228705>

Eli Zaretskii <eliz@gnu.org> writes:

> Looks like adaptive-fill?  lisp-mode defines various indent-* and
> fill-* functions, so perhaps the extra open parenthesis is the
> "prefix" it decides to use when filling/indenting?

Sounds likely.  I've now fixed this in the most straight-forward way I
could think of in Emacs 29 (i.e., by just binding left-margin to zero
before doing any of this stuff), and that seems to fix the problem.

Here's the reproducer I used:

(let ((left-margin 8)) (make-directory-autoloads "~/src/emacs/trunk/lisp/" "/tmp/out.el"))

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no