all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Question about `cond*'
@ 2024-10-01  8:35 Michelangelo Rodriguez
  2024-10-01 15:58 ` Eli Zaretskii
  0 siblings, 1 reply; 16+ messages in thread
From: Michelangelo Rodriguez @ 2024-10-01  8:35 UTC (permalink / raw)
  To: emacs-devel

Is there a reason to not provide, in the file "dict-star.el", a feature?
Best regards,
Michelangelo Rodriguez



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

* Re: Question about `cond*'
  2024-10-01  8:35 Question about `cond*' Michelangelo Rodriguez
@ 2024-10-01 15:58 ` Eli Zaretskii
  2024-10-01 17:05   ` Michelangelo Rodriguez
  0 siblings, 1 reply; 16+ messages in thread
From: Eli Zaretskii @ 2024-10-01 15:58 UTC (permalink / raw)
  To: Michelangelo Rodriguez; +Cc: emacs-devel

> From: Michelangelo Rodriguez <michelangelo.rodriguez@gmail.com>
> Date: Tue, 01 Oct 2024 10:35:14 +0200
> 
> Is there a reason to not provide, in the file "dict-star.el", a feature?

What is dict-star.el? where did you see it?



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

* Re: Question about `cond*'
  2024-10-01 15:58 ` Eli Zaretskii
@ 2024-10-01 17:05   ` Michelangelo Rodriguez
  2024-10-01 18:13     ` Philip Kaludercic
                       ` (3 more replies)
  0 siblings, 4 replies; 16+ messages in thread
From: Michelangelo Rodriguez @ 2024-10-01 17:05 UTC (permalink / raw)
  To: emacs-devel

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Michelangelo Rodriguez <michelangelo.rodriguez@gmail.com>
>> Date: Tue, 01 Oct 2024 10:35:14 +0200
>> 
>> Is there a reason to not provide, in the file "dict-star.el", a feature?
>
> What is dict-star.el? where did you see it?
Sorry, the file is "cond-star.el".
Anyway the new feature `cond*' is not available as feature.

Thanks.




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

* Re: Question about `cond*'
  2024-10-01 17:05   ` Michelangelo Rodriguez
@ 2024-10-01 18:13     ` Philip Kaludercic
  2024-10-03  3:35       ` Richard Stallman
  2024-10-01 18:15     ` Stefan Kangas
                       ` (2 subsequent siblings)
  3 siblings, 1 reply; 16+ messages in thread
From: Philip Kaludercic @ 2024-10-01 18:13 UTC (permalink / raw)
  To: Michelangelo Rodriguez; +Cc: emacs-devel

Michelangelo Rodriguez <michelangelo.rodriguez@gmail.com> writes:

> Eli Zaretskii <eliz@gnu.org> writes:
>
>>> From: Michelangelo Rodriguez <michelangelo.rodriguez@gmail.com>
>>> Date: Tue, 01 Oct 2024 10:35:14 +0200
>>> 
>>> Is there a reason to not provide, in the file "dict-star.el", a feature?
>>
>> What is dict-star.el? where did you see it?
> Sorry, the file is "cond-star.el".
> Anyway the new feature `cond*' is not available as feature.

I can only assume it was a mistake.  The question is should the feature
be called `cond-star' or `cond*'.

> Thanks.

-- 
	Philip Kaludercic on siskin



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

* Re: Question about `cond*'
  2024-10-01 17:05   ` Michelangelo Rodriguez
  2024-10-01 18:13     ` Philip Kaludercic
@ 2024-10-01 18:15     ` Stefan Kangas
  2024-10-01 18:19     ` Eli Zaretskii
  2024-10-02  4:41     ` Alfred M. Szmidt
  3 siblings, 0 replies; 16+ messages in thread
From: Stefan Kangas @ 2024-10-01 18:15 UTC (permalink / raw)
  To: Michelangelo Rodriguez, emacs-devel

Michelangelo Rodriguez <michelangelo.rodriguez@gmail.com> writes:

> Anyway the new feature `cond*' is not available as feature.

This was fixed in 4197a8450669e08c2d26f4a7d77dcb2771bd9492.



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

* Re: Question about `cond*'
  2024-10-01 17:05   ` Michelangelo Rodriguez
  2024-10-01 18:13     ` Philip Kaludercic
  2024-10-01 18:15     ` Stefan Kangas
@ 2024-10-01 18:19     ` Eli Zaretskii
  2024-10-02  4:41     ` Alfred M. Szmidt
  3 siblings, 0 replies; 16+ messages in thread
From: Eli Zaretskii @ 2024-10-01 18:19 UTC (permalink / raw)
  To: Michelangelo Rodriguez; +Cc: emacs-devel

> From: Michelangelo Rodriguez <michelangelo.rodriguez@gmail.com>
> Date: Tue, 01 Oct 2024 19:05:30 +0200
> 
> Anyway the new feature `cond*' is not available as feature.

The feature's name is 'cond-star', which is consistent with what we do
elsewhere in Emacs: the name of the feature is the same as the name of
the file which provides the feature.



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

* Re: Question about `cond*'
  2024-10-01 17:05   ` Michelangelo Rodriguez
                       ` (2 preceding siblings ...)
  2024-10-01 18:19     ` Eli Zaretskii
@ 2024-10-02  4:41     ` Alfred M. Szmidt
  3 siblings, 0 replies; 16+ messages in thread
From: Alfred M. Szmidt @ 2024-10-02  4:41 UTC (permalink / raw)
  To: Michelangelo Rodriguez; +Cc: emacs-devel


   Eli Zaretskii <eliz@gnu.org> writes:

   >> From: Michelangelo Rodriguez <michelangelo.rodriguez@gmail.com>
   >> Date: Tue, 01 Oct 2024 10:35:14 +0200
   >> 
   >> Is there a reason to not provide, in the file "dict-star.el", a feature?
   >
   > What is dict-star.el? where did you see it?
   Sorry, the file is "cond-star.el".
   Anyway the new feature `cond*' is not available as feature.

A (macrop #'cond*) would satisfy any feature requirements.






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

* Re: Question about `cond*'
  2024-10-01 18:13     ` Philip Kaludercic
@ 2024-10-03  3:35       ` Richard Stallman
  2024-10-03  4:14         ` Sean Whitton
  2024-10-03  7:12         ` Eli Zaretskii
  0 siblings, 2 replies; 16+ messages in thread
From: Richard Stallman @ 2024-10-03  3:35 UTC (permalink / raw)
  To: Philip Kaludercic; +Cc: michelangelo.rodriguez, emacs-devel

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > I can only assume it was a mistake.  The question is should the feature
  > be called `cond-star' or `cond*'.

I think `cond*' is a more natural name for the feature.
That is what users will think of -- to do (require 'cont-star)
would require a little extra bit of trivial knowledge.

I called the file `cond-star.el' to avoid the inconvenience that
an asterisk in the file name could cause.  But it woukd be better
if users did not have to know that file name.

`cond*' really ought to be preloaded.

-- 
Dr Richard Stallman (https://stallman.org)
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)





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

* Re: Question about `cond*'
  2024-10-03  3:35       ` Richard Stallman
@ 2024-10-03  4:14         ` Sean Whitton
  2024-10-03  4:51           ` Alfred M. Szmidt
  2024-10-03  7:12         ` Eli Zaretskii
  1 sibling, 1 reply; 16+ messages in thread
From: Sean Whitton @ 2024-10-03  4:14 UTC (permalink / raw)
  To: Richard Stallman; +Cc: Philip Kaludercic, michelangelo.rodriguez, emacs-devel

Hello,

On Wed 02 Oct 2024 at 11:35pm -04, Richard Stallman wrote:

> [[[ To any NSA and FBI agents reading my email: please consider    ]]]
> [[[ whether defending the US Constitution against all enemies,     ]]]
> [[[ foreign or domestic, requires you to follow Snowden's example. ]]]
>
>   > I can only assume it was a mistake.  The question is should the feature
>   > be called `cond-star' or `cond*'.
>
> I think `cond*' is a more natural name for the feature.
> That is what users will think of -- to do (require 'cont-star)
> would require a little extra bit of trivial knowledge.
>
> I called the file `cond-star.el' to avoid the inconvenience that
> an asterisk in the file name could cause.  But it woukd be better
> if users did not have to know that file name.
>
> `cond*' really ought to be preloaded.

Given that it isn't used in a single place yet, and we have repeatedly
refused to preload cl-lib, that does not seem appropriate.

-- 
Sean Whitton



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

* Re: Question about `cond*'
  2024-10-03  4:14         ` Sean Whitton
@ 2024-10-03  4:51           ` Alfred M. Szmidt
  2024-10-03  5:18             ` Sean Whitton
  0 siblings, 1 reply; 16+ messages in thread
From: Alfred M. Szmidt @ 2024-10-03  4:51 UTC (permalink / raw)
  To: Sean Whitton; +Cc: rms, philipk, michelangelo.rodriguez, emacs-devel

   >   > I can only assume it was a mistake.  The question is should the feature
   >   > be called `cond-star' or `cond*'.
   >
   > I think `cond*' is a more natural name for the feature.
   > That is what users will think of -- to do (require 'cont-star)
   > would require a little extra bit of trivial knowledge.
   >
   > I called the file `cond-star.el' to avoid the inconvenience that
   > an asterisk in the file name could cause.  But it woukd be better
   > if users did not have to know that file name.
   >
   > `cond*' really ought to be preloaded.

   Given that it isn't used in a single place yet, and we have repeatedly
   refused to preload cl-lib, that does not seem appropriate.

cl-lib isn't preloaded for other reasons (Emacs Lisp isn't Common
Lisp), cond* is part of the Emacs Lisp language, and that would be a
good reason to preloaded it so that it can be more widley used.



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

* Re: Question about `cond*'
  2024-10-03  4:51           ` Alfred M. Szmidt
@ 2024-10-03  5:18             ` Sean Whitton
  0 siblings, 0 replies; 16+ messages in thread
From: Sean Whitton @ 2024-10-03  5:18 UTC (permalink / raw)
  To: Alfred M. Szmidt; +Cc: rms, philipk, michelangelo.rodriguez, emacs-devel

Hello,

On Thu 03 Oct 2024 at 12:51am -04, Alfred M. Szmidt wrote:

> cl-lib isn't preloaded for other reasons (Emacs Lisp isn't Common
> Lisp), cond* is part of the Emacs Lisp language, and that would be a
> good reason to preloaded it so that it can be more widley used.

There are criteria for preloading, and they do not, to my knowledge,
include ideas like these, which, in any case, aren't shared by everyone.

Anyway, I'll leave this to the head maintainers.

-- 
Sean Whitton



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

* Re: Question about `cond*'
  2024-10-03  3:35       ` Richard Stallman
  2024-10-03  4:14         ` Sean Whitton
@ 2024-10-03  7:12         ` Eli Zaretskii
  2024-10-04  7:54           ` Andrea Corallo
  2024-10-06  3:18           ` Richard Stallman
  1 sibling, 2 replies; 16+ messages in thread
From: Eli Zaretskii @ 2024-10-03  7:12 UTC (permalink / raw)
  To: rms; +Cc: philipk, michelangelo.rodriguez, emacs-devel

> From: Richard Stallman <rms@gnu.org>
> Cc: michelangelo.rodriguez@gmail.com, emacs-devel@gnu.org
> Date: Wed, 02 Oct 2024 23:35:20 -0400
> 
>   > I can only assume it was a mistake.  The question is should the feature
>   > be called `cond-star' or `cond*'.
> 
> I think `cond*' is a more natural name for the feature.
> That is what users will think of -- to do (require 'cont-star)
> would require a little extra bit of trivial knowledge.
> 
> I called the file `cond-star.el' to avoid the inconvenience that
> an asterisk in the file name could cause.  But it woukd be better
> if users did not have to know that file name.

If we provide 'cond*' as the feature, (require 'cond*) will not work
unless Lisp programs also specify the file name.  So this gets us the
need to know the file name back through a back-door anyway.

> `cond*' really ought to be preloaded.

I don't see a need to preload it at this time, for the same reason we
don't preload pcase and other macros: they are not necessarily needed
right at the beginning of a session, and not used in any preloaded
code.  I think we should first consider autoloading cond*, before we
talk about preloading it.



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

* Re: Question about `cond*'
  2024-10-03  7:12         ` Eli Zaretskii
@ 2024-10-04  7:54           ` Andrea Corallo
  2024-10-06  3:18           ` Richard Stallman
  1 sibling, 0 replies; 16+ messages in thread
From: Andrea Corallo @ 2024-10-04  7:54 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: rms, philipk, michelangelo.rodriguez, emacs-devel

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Richard Stallman <rms@gnu.org>
>> Cc: michelangelo.rodriguez@gmail.com, emacs-devel@gnu.org
>> Date: Wed, 02 Oct 2024 23:35:20 -0400

[...]

>> `cond*' really ought to be preloaded.
>
> I don't see a need to preload it at this time, for the same reason we
> don't preload pcase and other macros: they are not necessarily needed
> right at the beginning of a session, and not used in any preloaded
> code.  I think we should first consider autoloading cond*, before we
> talk about preloading it.

+1

  Andrea



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

* Re: Question about `cond*'
  2024-10-03  7:12         ` Eli Zaretskii
  2024-10-04  7:54           ` Andrea Corallo
@ 2024-10-06  3:18           ` Richard Stallman
  2024-10-06  5:28             ` Sean Whitton
  2024-10-06  6:27             ` Eli Zaretskii
  1 sibling, 2 replies; 16+ messages in thread
From: Richard Stallman @ 2024-10-06  3:18 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: philipk, michelangelo.rodriguez, emacs-devel

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  >   I think we should first consider autoloading cond*, before we
  > talk about preloading it.

You're right, autoloading it would be good enough.  How about it?

-- 
Dr Richard Stallman (https://stallman.org)
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)





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

* Re: Question about `cond*'
  2024-10-06  3:18           ` Richard Stallman
@ 2024-10-06  5:28             ` Sean Whitton
  2024-10-06  6:27             ` Eli Zaretskii
  1 sibling, 0 replies; 16+ messages in thread
From: Sean Whitton @ 2024-10-06  5:28 UTC (permalink / raw)
  To: Richard Stallman
  Cc: Eli Zaretskii, philipk, michelangelo.rodriguez, emacs-devel

Hello,

On Sat 05 Oct 2024 at 11:18pm -04, Richard Stallman wrote:

> [[[ To any NSA and FBI agents reading my email: please consider    ]]]
> [[[ whether defending the US Constitution against all enemies,     ]]]
> [[[ foreign or domestic, requires you to follow Snowden's example. ]]]
>
>   >   I think we should first consider autoloading cond*, before we
>   > talk about preloading it.
>
> You're right, autoloading it would be good enough.  How about it?

Sounds good to me too.

-- 
Sean Whitton



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

* Re: Question about `cond*'
  2024-10-06  3:18           ` Richard Stallman
  2024-10-06  5:28             ` Sean Whitton
@ 2024-10-06  6:27             ` Eli Zaretskii
  1 sibling, 0 replies; 16+ messages in thread
From: Eli Zaretskii @ 2024-10-06  6:27 UTC (permalink / raw)
  To: rms; +Cc: philipk, michelangelo.rodriguez, emacs-devel

> From: Richard Stallman <rms@gnu.org>
> Cc: philipk@posteo.net, michelangelo.rodriguez@gmail.com,
> 	emacs-devel@gnu.org
> Date: Sat, 05 Oct 2024 23:18:55 -0400
> 
>   >   I think we should first consider autoloading cond*, before we
>   > talk about preloading it.
> 
> You're right, autoloading it would be good enough.  How about it?

I have no objections to that.



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

end of thread, other threads:[~2024-10-06  6:27 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-01  8:35 Question about `cond*' Michelangelo Rodriguez
2024-10-01 15:58 ` Eli Zaretskii
2024-10-01 17:05   ` Michelangelo Rodriguez
2024-10-01 18:13     ` Philip Kaludercic
2024-10-03  3:35       ` Richard Stallman
2024-10-03  4:14         ` Sean Whitton
2024-10-03  4:51           ` Alfred M. Szmidt
2024-10-03  5:18             ` Sean Whitton
2024-10-03  7:12         ` Eli Zaretskii
2024-10-04  7:54           ` Andrea Corallo
2024-10-06  3:18           ` Richard Stallman
2024-10-06  5:28             ` Sean Whitton
2024-10-06  6:27             ` Eli Zaretskii
2024-10-01 18:15     ` Stefan Kangas
2024-10-01 18:19     ` Eli Zaretskii
2024-10-02  4:41     ` Alfred M. Szmidt

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.