unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#57144: 29.0.50; Missing description for excluded files in docstring of loaddefs-generate
@ 2022-08-11 19:31 Arash Esbati
  2022-08-12  6:50 ` Eli Zaretskii
  0 siblings, 1 reply; 8+ messages in thread
From: Arash Esbati @ 2022-08-11 19:31 UTC (permalink / raw)
  To: 57144

Hi all,

This is the docstring of `loaddefs-generate':

,----[ C-h f loaddefs-generate RET ]
| loaddefs-generate is an autoloaded Lisp function in ‘loaddefs-gen.el’.
| 
| (loaddefs-generate DIR OUTPUT-FILE &optional EXCLUDED-FILES EXTRA-DATA
| INCLUDE-PACKAGE-VERSION GENERATE-FULL)
| 
| Generate loaddefs files for Lisp files in the directories DIRS.
| DIR can be either a single directory or a list of directories.
| 
| The autoloads will be written to OUTPUT-FILE.  If any Lisp file
| binds ‘generated-autoload-file’ as a file-local variable, write
| its autoloads into the specified file instead.
| 
| The function does NOT recursively descend into subdirectories of the
| directory or directories specified.
| 
| If EXTRA-DATA, include this string at the start of the generated
| file.  This will also force generation of OUTPUT-FILE even if
| there are no autoloads to put into the file.
| 
| If INCLUDE-PACKAGE-VERSION, include package version data.
| 
| If GENERATE-FULL, don’t update, but regenerate all the loaddefs files.
`----

A description for EXCLUDED-FILES is missing.  It will a list containing
file names, but details should be added.

Best, Arash





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#57144: 29.0.50; Missing description for excluded files in docstring of loaddefs-generate
  2022-08-11 19:31 bug#57144: 29.0.50; Missing description for excluded files in docstring of loaddefs-generate Arash Esbati
@ 2022-08-12  6:50 ` Eli Zaretskii
  2022-08-12 17:51   ` Arash Esbati
  0 siblings, 1 reply; 8+ messages in thread
From: Eli Zaretskii @ 2022-08-12  6:50 UTC (permalink / raw)
  To: Arash Esbati; +Cc: 57144-done

> From: Arash Esbati <arash@gnu.org>
> Date: Thu, 11 Aug 2022 21:31:32 +0200
> 
> A description for EXCLUDED-FILES is missing.  It will a list containing
> file names, but details should be added.

Thanks, fixed.





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#57144: 29.0.50; Missing description for excluded files in docstring of loaddefs-generate
  2022-08-12  6:50 ` Eli Zaretskii
@ 2022-08-12 17:51   ` Arash Esbati
  2022-08-13 12:08     ` Lars Ingebrigtsen
  0 siblings, 1 reply; 8+ messages in thread
From: Arash Esbati @ 2022-08-12 17:51 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 57144

[-- Attachment #1: Type: text/plain, Size: 782 bytes --]

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Arash Esbati <arash@gnu.org>
>> Date: Thu, 11 Aug 2022 21:31:32 +0200
>> 
>> A description for EXCLUDED-FILES is missing.  It will a list containing
>> file names, but details should be added.
>
> Thanks, fixed.

Thanks for the quick fix.  I still can't get files excluded in the
generation process.  Please consider the 3 simple .el files attached and
save them under ~/Test/.  Now eval in *scratch*

(loaddefs-generate "~/Test/"
                   "~/Test/autoload.el"
                   '("ignore.el") nil nil t)

or

(loaddefs-generate "~/Test/"
                   "~/Test/autoload.el"
                   '("~/Test/input-ignore.el") nil nil t)

autoloads from input-ignore.el aren't ignored.  Am I missing something?

Best, Arash


[-- Attachment #2: input-one.el --]
[-- Type: application/emacs-lisp, Size: 436 bytes --]

;;; input-one.el ---   -*- lexical-binding: t; -*-

;;; Code:

;;;###autoload
(defun input-one-mode-1 ()
  "docstring"
  (message "autoload me"))

;;;###autoload
(defun input-one-mode-2 ()
  "docstring"
  (message "autoload me"))

;;;###autoload
(defun input-one-mode-3 ()
  "docstring"
  (message "autoload me"))

(provide 'input-one)

;; Local Variables:
;; coding: utf-8
;; End:

;;; input-one.el ends here

[-- Attachment #3: input-two.el --]
[-- Type: application/emacs-lisp, Size: 436 bytes --]

;;; input-two.el ---   -*- lexical-binding: t; -*-

;;; Code:

;;;###autoload
(defun input-two-mode-1 ()
  "docstring"
  (message "autoload me"))

;;;###autoload
(defun input-two-mode-2 ()
  "docstring"
  (message "autoload me"))

;;;###autoload
(defun input-two-mode-3 ()
  "docstring"
  (message "autoload me"))

(provide 'input-two)

;; Local Variables:
;; coding: utf-8
;; End:

;;; input-two.el ends here

[-- Attachment #4: input-ignore.el --]
[-- Type: application/emacs-lisp, Size: 454 bytes --]

;;; input-ignore.el ---   -*- lexical-binding: t; -*-

;;; Code:

;;;###autoload
(defun input-ignore-mode-1 ()
  "docstring"
  (message "autoload me"))

;;;###autoload
(defun input-ignore-mode-2 ()
  "docstring"
  (message "autoload me"))

;;;###autoload
(defun input-ignore-mode-3 ()
  "docstring"
  (message "autoload me"))

(provide 'input-ignore)

;; Local Variables:
;; coding: utf-8
;; End:

;;; input-ignore.el ends here

^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#57144: 29.0.50; Missing description for excluded files in docstring of loaddefs-generate
  2022-08-12 17:51   ` Arash Esbati
@ 2022-08-13 12:08     ` Lars Ingebrigtsen
  2022-08-13 16:47       ` Arash Esbati
  0 siblings, 1 reply; 8+ messages in thread
From: Lars Ingebrigtsen @ 2022-08-13 12:08 UTC (permalink / raw)
  To: Arash Esbati; +Cc: Eli Zaretskii, 57144

Arash Esbati <arash@gnu.org> writes:

> (loaddefs-generate "~/Test/"
>                    "~/Test/autoload.el"
>                    '("~/Test/input-ignore.el") nil nil t)
>
> autoloads from input-ignore.el aren't ignored.  Am I missing something?

The excluded files weren't expanded.  I've now fixed this in Emacs 29.







^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#57144: 29.0.50; Missing description for excluded files in docstring of loaddefs-generate
  2022-08-13 12:08     ` Lars Ingebrigtsen
@ 2022-08-13 16:47       ` Arash Esbati
  2022-08-15  6:33         ` Lars Ingebrigtsen
  0 siblings, 1 reply; 8+ messages in thread
From: Arash Esbati @ 2022-08-13 16:47 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: Eli Zaretskii, 57144

Lars Ingebrigtsen <larsi@gnus.org> writes:

> Arash Esbati <arash@gnu.org> writes:
>
>> (loaddefs-generate "~/Test/"
>>                    "~/Test/autoload.el"
>>                    '("~/Test/input-ignore.el") nil nil t)
>>
>> autoloads from input-ignore.el aren't ignored.  Am I missing something?
>
> The excluded files weren't expanded.  I've now fixed this in Emacs 29.

Thanks for looking at this.  But it still doesn't work for with the
recipe I've posted in this message[1].  Does it work for you?  This is
with Emacs master 9d6d3b0edb.

Best, Arash

Footnotes:
[1]  https://lists.gnu.org/archive/html/bug-gnu-emacs/2022-08/msg01067.html





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#57144: 29.0.50; Missing description for excluded files in docstring of loaddefs-generate
  2022-08-13 16:47       ` Arash Esbati
@ 2022-08-15  6:33         ` Lars Ingebrigtsen
  2022-08-15  9:48           ` Arash Esbati
  0 siblings, 1 reply; 8+ messages in thread
From: Lars Ingebrigtsen @ 2022-08-15  6:33 UTC (permalink / raw)
  To: Arash Esbati; +Cc: Eli Zaretskii, 57144

Arash Esbati <arash@gnu.org> writes:

> Thanks for looking at this.  But it still doesn't work for with the
> recipe I've posted in this message[1].  Does it work for you?  This is
> with Emacs master 9d6d3b0edb.

No, there were further bugs in the exclusion logic.  Can you test again
now?







^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#57144: 29.0.50; Missing description for excluded files in docstring of loaddefs-generate
  2022-08-15  6:33         ` Lars Ingebrigtsen
@ 2022-08-15  9:48           ` Arash Esbati
  2022-08-15 10:08             ` Lars Ingebrigtsen
  0 siblings, 1 reply; 8+ messages in thread
From: Arash Esbati @ 2022-08-15  9:48 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: Eli Zaretskii, 57144

Lars Ingebrigtsen <larsi@gnus.org> writes:

> Arash Esbati <arash@gnu.org> writes:
>
>> Thanks for looking at this.  But it still doesn't work for with the
>> recipe I've posted in this message[1].  Does it work for you?  This is
>> with Emacs master 9d6d3b0edb.
>
> No, there were further bugs in the exclusion logic.  Can you test again
> now?

It seems to work now.  Thanks for the fix.

Best, Arash





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#57144: 29.0.50; Missing description for excluded files in docstring of loaddefs-generate
  2022-08-15  9:48           ` Arash Esbati
@ 2022-08-15 10:08             ` Lars Ingebrigtsen
  0 siblings, 0 replies; 8+ messages in thread
From: Lars Ingebrigtsen @ 2022-08-15 10:08 UTC (permalink / raw)
  To: Arash Esbati; +Cc: Eli Zaretskii, 57144

Arash Esbati <arash@gnu.org> writes:

> It seems to work now.  Thanks for the fix.

Thanks; I'm closing this bug report, then.






^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-08-15 10:08 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-11 19:31 bug#57144: 29.0.50; Missing description for excluded files in docstring of loaddefs-generate Arash Esbati
2022-08-12  6:50 ` Eli Zaretskii
2022-08-12 17:51   ` Arash Esbati
2022-08-13 12:08     ` Lars Ingebrigtsen
2022-08-13 16:47       ` Arash Esbati
2022-08-15  6:33         ` Lars Ingebrigtsen
2022-08-15  9:48           ` Arash Esbati
2022-08-15 10:08             ` Lars Ingebrigtsen

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).