unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#69892: 29.2; Missing ‘(provide 'paragraphs)’ in lisp/textmodes/paragraphs.el
@ 2024-03-18 18:16 tpeplt
  2024-03-19 13:00 ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: tpeplt @ 2024-03-18 18:16 UTC (permalink / raw)
  To: 69892


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

--





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

* bug#69892: 29.2; Missing ‘(provide 'paragraphs)’ in lisp/textmodes/paragraphs.el
  2024-03-18 18:16 bug#69892: 29.2; Missing ‘(provide 'paragraphs)’ in lisp/textmodes/paragraphs.el tpeplt
@ 2024-03-19 13:00 ` Eli Zaretskii
  2024-03-19 14:20   ` tpeplt
  0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2024-03-19 13:00 UTC (permalink / raw)
  To: tpeplt; +Cc: 69892

> From: tpeplt <tpeplt@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?





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

* bug#69892: 29.2; Missing ‘(provide 'paragraphs)’ in lisp/textmodes/paragraphs.el
  2024-03-19 13:00 ` Eli Zaretskii
@ 2024-03-19 14:20   ` tpeplt
  0 siblings, 0 replies; 3+ messages in thread
From: tpeplt @ 2024-03-19 14:20 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 69892

Eli Zaretskii <eliz@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.

--






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

end of thread, other threads:[~2024-03-19 14:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-18 18:16 bug#69892: 29.2; Missing ‘(provide 'paragraphs)’ in lisp/textmodes/paragraphs.el tpeplt
2024-03-19 13:00 ` Eli Zaretskii
2024-03-19 14:20   ` tpeplt

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