GNU bug report logs - #69892
29.2; Missing ‘(provide 'paragraphs)’ in lisp/textmodes/paragraphs.el

Previous Next

Package: emacs;

Reported by: tpeplt <tpeplt <at> gmail.com>

Date: Tue, 19 Mar 2024 04:06:02 UTC

Severity: normal

Found in version 29.2

To reply to this bug, email your comments to 69892 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#69892; Package emacs. (Tue, 19 Mar 2024 04:06:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to tpeplt <tpeplt <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 19 Mar 2024 04:06:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: tpeplt <tpeplt <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 29.2; Missing ‘(provide 'paragraphs)’ in lisp/textmodes/paragraphs.el
Date: Mon, 18 Mar 2024 14:16:57 -0400
The Emacs Lisp file "../lisp/textmodes/paragraphs.el" does not include
an expression to announce that "paragraphs" is a feature in the current
Emacs, that is, near the end "paragraphs.el" there is no expression:

   (provide 'paragraphs)

Because of this, if 

   (require 'paragraphs)

is included in an Emacs Lisp source file, then the byte-compiler will
issue an error message saying that loading the file ‘paragraphs.elc’
failed to provide the feature ‘paragraphs’.

--




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#69892; Package emacs. (Tue, 19 Mar 2024 13:01:01 GMT) Full text and rfc822 format available.

Message #8 received at 69892 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: tpeplt <tpeplt <at> gmail.com>
Cc: 69892 <at> debbugs.gnu.org
Subject: Re: bug#69892: 29.2; Missing ‘(provide 'paragraphs)’ in lisp/textmodes/paragraphs.el
Date: Tue, 19 Mar 2024 15:00:03 +0200
> From: tpeplt <tpeplt <at> gmail.com>
> Date: Mon, 18 Mar 2024 14:16:57 -0400
> 
> 
> The Emacs Lisp file "../lisp/textmodes/paragraphs.el" does not include
> an expression to announce that "paragraphs" is a feature in the current
> Emacs, that is, near the end "paragraphs.el" there is no expression:
> 
>    (provide 'paragraphs)
> 
> Because of this, if 
> 
>    (require 'paragraphs)
> 
> is included in an Emacs Lisp source file, then the byte-compiler will
> issue an error message saying that loading the file ‘paragraphs.elc’
> failed to provide the feature ‘paragraphs’.

paragraphs.el is preloaded, and has been for many years.  So why would
a Lisp program need to require it, let alone load it?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#69892; Package emacs. (Tue, 19 Mar 2024 18:26:05 GMT) Full text and rfc822 format available.

Message #11 received at 69892 <at> debbugs.gnu.org (full text, mbox):

From: tpeplt <tpeplt <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 69892 <at> debbugs.gnu.org
Subject: Re: bug#69892: 29.2; Missing ‘(provide 'paragraphs)’ in lisp/textmodes/paragraphs.el
Date: Tue, 19 Mar 2024 10:20:20 -0400
Eli Zaretskii <eliz <at> gnu.org> writes:

>> 
>> The Emacs Lisp file "../lisp/textmodes/paragraphs.el" does not include
>> an expression to announce that "paragraphs" is a feature in the current
>> Emacs, that is, near the end "paragraphs.el" there is no expression:
>> 
>>    (provide 'paragraphs)
>> 
>> Because of this, if 
>> 
>>    (require 'paragraphs)
>> 
>> is included in an Emacs Lisp source file, then the byte-compiler will
>> issue an error message saying that loading the file ‘paragraphs.elc’
>> failed to provide the feature ‘paragraphs’.
>
> paragraphs.el is preloaded, and has been for many years.  So why would
> a Lisp program need to require it, let alone load it?

Emacs provides ‘elint-current-buffer’, ‘elint-defun’, ‘elint-directory’,
‘elint-file’, which report warnings for references to undefined symbols
when there is no ‘provide’ that provides definitions.  So, for example,
a reference to ‘page-delimiter’ (defined in paragraphs.el) will cause
‘elint’ to issue a warning, despite the fact that ‘paragraphs.el’ has
been preloaded.

This might be a problem with ‘elint’ since paragraphs.el is included in
the files that it loads, even in batch mode.  If it *is* an error in
‘elint’, then that should be fixed so that the invalid warning messages
are not included among valid warning and error messages.  Or, ‘elint’
might be behaving correctly by looking through a list of ‘provides’ in
order to resolve references, rather than what has been preloaded.

--





This bug report was last modified 45 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.