unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: chris <inkbottle007@gmail.com>
To: 54491@debbugs.gnu.org
Subject: bug#54491: 27.2; left-margin variable breaks autoload generation
Date: Sun, 12 Jun 2022 16:33:27 +0200	[thread overview]
Message-ID: <2185383.iZASKD2KPV@pluto> (raw)
In-Reply-To: <87a6djhgjv.fsf@gmail.com>

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:

\f
;;;### (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-"))

;;;***
\f
;;; 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









      parent reply	other threads:[~2022-06-12 14:33 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-21  8:05 bug#54491: 27.2; left-margin variable breaks autoload generation Will Tower
2022-03-21 12:43 ` Eli Zaretskii
2022-03-21 13:48   ` Andreas Schwab
2022-03-21 14:49     ` Eli Zaretskii
2022-03-21 15:19 ` Lars Ingebrigtsen
2022-03-21 17:27   ` Eli Zaretskii
2022-03-21 18:17     ` Lars Ingebrigtsen
2022-06-12 14:33 ` chris [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2185383.iZASKD2KPV@pluto \
    --to=inkbottle007@gmail.com \
    --cc=54491@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).