From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: chris Newsgroups: gmane.emacs.bugs Subject: bug#54491: 27.2; left-margin variable breaks autoload generation Date: Sun, 12 Jun 2022 16:33:27 +0200 Message-ID: <2185383.iZASKD2KPV@pluto> References: <87a6djhgjv.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7Bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4934"; mail-complaints-to="usenet@ciao.gmane.io" To: 54491@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 12 22:23:13 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 1o0U77-00019W-OI for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 12 Jun 2022 22:23:13 +0200 Original-Received: from localhost ([::1]:40964 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o0U76-00016O-CH for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 12 Jun 2022 16:23:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58814) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o0U6x-00015z-LR for bug-gnu-emacs@gnu.org; Sun, 12 Jun 2022 16:23:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34419) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o0U6x-0005NR-Dm for bug-gnu-emacs@gnu.org; Sun, 12 Jun 2022 16:23:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o0U6x-0004aG-AG for bug-gnu-emacs@gnu.org; Sun, 12 Jun 2022 16:23:03 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <87a6djhgjv.fsf@gmail.com> Resent-From: chris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 12 Jun 2022 20:23:03 +0000 Resent-Message-ID: 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.165506538017582 (code B ref 54491); Sun, 12 Jun 2022 20:23:03 +0000 Original-Received: (at 54491) by debbugs.gnu.org; 12 Jun 2022 20:23:00 +0000 Original-Received: from localhost ([127.0.0.1]:56547 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o0U6t-0004ZT-P4 for submit@debbugs.gnu.org; Sun, 12 Jun 2022 16:23:00 -0400 Original-Received: from mail-wm1-f47.google.com ([209.85.128.47]:53970) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o0Oel-00024m-Av for 54491@debbugs.gnu.org; Sun, 12 Jun 2022 10:33:37 -0400 Original-Received: by mail-wm1-f47.google.com with SMTP id z9so1690766wmf.3 for <54491@debbugs.gnu.org>; Sun, 12 Jun 2022 07:33:35 -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 :content-transfer-encoding; bh=qomTo58MxRPOg3uDo4iesX9kwxbOvjD6eGTNnx7whnk=; b=MZARxi+EYEAFaD3aw+kCI09yNQHcF7e2h96rngF5oUSO16iiJBAWc9S2WlLBzogzK7 eFCCa9ZpxH26fGtC0ocnR9L+bZKqXJsX39Fz+9FsHN/97BXpxwolu8Xyi97Uodrsnggr YNqZ5y4JXCHx+sLaZrZ7U2cWqzPuv2OWD8p1pq9TPAYloCTUVp4obVUIbeEXowsOoaJn Qne1Pd6I+fDy9jxFBM9tdEG89e8c7jYk2NSneI/EtlZTyYF3+wOcMm6Jg+heXirM6T3F oroWDKoquR5VLB4DFM06oZ47+69LOj+e5d4onOzlvPJjxU7/b3NS/3SPHTZIEYbg15Qu ASTw== 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 :content-transfer-encoding; bh=qomTo58MxRPOg3uDo4iesX9kwxbOvjD6eGTNnx7whnk=; b=BS9kY4UaaRJb9BIDbHI8G5wFCMXMSM3cOq7SbJDjEjYkINt5pOeMRoquq0LYLl4lKT 6/gYZxq0ZbCWCG3RXvIi8V3MaG36nJ2WxwjUFrNx43SOPsh/Ec8DmZ8ln8PUpdPCt5YQ sPHU404o/0zVK+tn5u9JezS86TAQdWgMQJcHEnMzJRyYc0BDv43rPXyNSBZ5TTnpjh/w L6cBCzqB1pjSdACsczyeg46qPyZIUdzZnymMETbmwY7sx6ZhXCks7T8OfLmVVALO4BYv Gzx4CBQcuAJGD93pCN66kbb8r4kWNVFO0PUeaLl4G/r6yehvxJEOZOBlsz+TUDvjMFHg 2YcQ== X-Gm-Message-State: AOAM5301aNHJLH58QmdtLEc86ybVmqO4Mp0JiqE9Ln8Bg9rmf9XX9Fbl Z2K62O4Qp2XnL880jBePsVidYuTh/Ss= X-Google-Smtp-Source: ABdhPJw/62sMRQfmucQHpVNDcf6YVAS7scAupu8+DVNAxYO363rgupKph6uj9OcDwAiVKSnWNHg6FQ== X-Received: by 2002:a05:600c:a4c:b0:39c:34d0:fd25 with SMTP id c12-20020a05600c0a4c00b0039c34d0fd25mr9544612wmq.172.1655044409163; Sun, 12 Jun 2022 07:33:29 -0700 (PDT) Original-Received: from pluto.localnet (alagny-552-1-17-201.w83-200.abo.wanadoo.fr. [83.200.104.201]) by smtp.gmail.com with ESMTPSA id n31-20020a05600c501f00b003976fbfbf00sm5844662wmr.30.2022.06.12.07.33.28 for <54491@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Jun 2022 07:33:28 -0700 (PDT) X-Mailman-Approved-At: Sun, 12 Jun 2022 16:22:59 -0400 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:234372 Archived-At: I've just recomplied emacs with latest master: ``` $ git --no-pager grep "left-margin 0" 8c252e2326:lisp/emacs-lisp/autoload.el 8c252e2326:lisp/emacs-lisp/autoload.el: (left-margin 0) ``` Build emacs with: ``` git pull; git clean -dfx; git checkout master; ./autogen.sh; ./configure --prefix="$HOME/.local" --with-pgtk; make -j$(nproc) ``` Start emacs with: `/path_to_emacs_clone/emacs/src/emacs -Q --load ~/.emacs.d/myinit-dev.el --daemon; /path_to_emacs_clone/emacs/lib-src/emacsclient --create-frame --alternate-editor="" &` Right after that I do: ``` (make-directory-autoloads "~/.emacs.d/straight/repos/minimap/" "/tmp/minimap-autoloads-left-margin-0.el") ``` on input: ``` $ git -C ~/.emacs.d/straight/repos/minimap/ rev-parse --short HEAD ed74906 ``` And it gives: ``` ;;; minimap-autoloads-left-margin-0.el --- automatically extracted autoloads (do not edit) -*- lexical-binding: t -*- ;; Generated by the `loaddefs-generate--rubric' function. ;; This file is part of GNU Emacs. ;;; Code: ;;;### (autoloads nil "../home/chris/.emacs.d/straight/repos/minimap/minimap" ;;;;;; "../home/chris/.emacs.d/straight/repos/minimap/minimap.el" ;;;;;; (0 0 0 0)) ;;; Generated autoloads from ../home/chris/.emacs.d/straight/repos/minimap/minimap.el (defvar minimap-mode nil "\ Non-nil if Minimap mode is enabled. See the `minimap-mode' command for a description of this minor mode. Setting this variable directly does not take effect; either customize it (see the info node `Easy Customization') or call the function `minimap-mode'.") (custom-autoload 'minimap-mode "../home/chris/.emacs.d/straight/repos/minimap/minimap" nil) (autoload 'minimap-mode "../home/chris/.emacs.d/straight/repos/minimap/minimap" "\ ("Toggle minimap mode. This is a global minor mode. If called interactively, toggle the `Minimap mode' mode. If the prefix argument is positive, enable the mode, and if it is zero or negative, disable the mode. If called from Lisp, toggle the mode if ARG is `toggle'. Enable the mode if ARG is nil, omitted, or is a positive number. Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `(default-value \\='minimap-mode)'. The mode's hook is called both when the mode is enabled and when it is disabled. \(fn &optional ARG)" 335 336 (fill-space " ")) t nil) (register-definition-prefixes "../home/chris/.emacs.d/straight/repos/minimap/minimap" '("minimap-")) ;;;*** ;;; End of scraped data (provide 'minimap-autoloads-left-margin-0) ;; Local Variables: ;; version-control: never ;; no-byte-compile: t ;; no-update-autoloads: t ;; coding: utf-8-emacs-unix ;; End: ;;; minimap-autoloads-left-margin-0.el ends here ``` This grep shows the error is present: ``` $ grep -A2 "(autoload 'minimap-mode" /tmp/minimap-autoloads-left-margin-0.el (autoload 'minimap-mode "../home/chris/.emacs.d/straight/repos/minimap/minimap" "\ ("Toggle minimap mode. ``` Initially I stumbled on that from `straight.el`: `(straight-use-package 'minimap)` sort of command fails most of the time. With: `Debugger entered--Lisp error: (invalid-read-syntax "." 29 56)` ``` $ sed -n '20,29p' ~/.emacs.d/straight/build/minimap/minimap-autoloads.el (custom-autoload 'minimap-mode "minimap" nil) (autoload 'minimap-mode "minimap" "\ ("Toggle minimap mode. This is a global minor mode. If called interactively, toggle the `Minimap mode' mode. If the prefix argument is positive, enable the mode, and if it is zero or negative, disable the mode. If called from Lisp, toggle the mode if ARG is `toggle'. Enable ``` I have no idea how to fix this issue which is presenting itself very often. Thanks Chris