* Re: scratch/igc abefefd4f88: Add a staticpro in search.c (bug#75459)
[not found] ` <20250109144822.76FEDC60888@vcs2.savannah.gnu.org>
@ 2025-01-10 18:25 ` Stefan Kangas
2025-01-10 18:47 ` Gerd Möllmann
0 siblings, 1 reply; 5+ messages in thread
From: Stefan Kangas @ 2025-01-10 18:25 UTC (permalink / raw)
To: Gerd Moellmann, emacs-devel
Gerd Moellmann <gerd.moellmann@gmail.com> writes:
> branch: scratch/igc
> commit abefefd4f887c8b282da4a848367ab89fe17ce41
> Author: Gerd Möllmann <gerd@gnu.org>
> Commit: Gerd Möllmann <gerd@gnu.org>
>
> Add a staticpro in search.c (bug#75459)
>
> * src/search.c (syms_of_search): Staticpro a Lisp_Object member in
> searchbufs for HAVE_MPS.
> ---
> src/search.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/src/search.c b/src/search.c
> index 36a932b015b..98d11131e31 100644
> --- a/src/search.c
> +++ b/src/search.c
> @@ -3446,6 +3446,11 @@ syms_of_search (void)
> staticpro (&searchbufs[i].regexp);
> staticpro (&searchbufs[i].f_whitespace_regexp);
> staticpro (&searchbufs[i].syntax_table);
> +#ifdef HAVE_MPS
> + /* Strictly speaking, this is also necessary for the old GC,
> + unless one would prove it isn't. Don't rock the boat. */
> + staticpro (&searchbufs[i].buf.translate);
> +#endif
Is there any harm from doing this for the old GC also?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: scratch/igc abefefd4f88: Add a staticpro in search.c (bug#75459)
2025-01-10 18:25 ` scratch/igc abefefd4f88: Add a staticpro in search.c (bug#75459) Stefan Kangas
@ 2025-01-10 18:47 ` Gerd Möllmann
2025-01-10 19:55 ` Stefan Kangas
0 siblings, 1 reply; 5+ messages in thread
From: Gerd Möllmann @ 2025-01-10 18:47 UTC (permalink / raw)
To: Stefan Kangas; +Cc: emacs-devel
Stefan Kangas <stefankangas@gmail.com> writes:
> Gerd Moellmann <gerd.moellmann@gmail.com> writes:
>
>> branch: scratch/igc
>> commit abefefd4f887c8b282da4a848367ab89fe17ce41
>> Author: Gerd Möllmann <gerd@gnu.org>
>> Commit: Gerd Möllmann <gerd@gnu.org>
>>
>> Add a staticpro in search.c (bug#75459)
>>
>> * src/search.c (syms_of_search): Staticpro a Lisp_Object member in
>> searchbufs for HAVE_MPS.
>> ---
>> src/search.c | 5 +++++
>> 1 file changed, 5 insertions(+)
>>
>> diff --git a/src/search.c b/src/search.c
>> index 36a932b015b..98d11131e31 100644
>> --- a/src/search.c
>> +++ b/src/search.c
>> @@ -3446,6 +3446,11 @@ syms_of_search (void)
>> staticpro (&searchbufs[i].regexp);
>> staticpro (&searchbufs[i].f_whitespace_regexp);
>> staticpro (&searchbufs[i].syntax_table);
>> +#ifdef HAVE_MPS
>> + /* Strictly speaking, this is also necessary for the old GC,
>> + unless one would prove it isn't. Don't rock the boat. */
>> + staticpro (&searchbufs[i].buf.translate);
>> +#endif
>
> Is there any harm from doing this for the old GC also?
No :-)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: scratch/igc abefefd4f88: Add a staticpro in search.c (bug#75459)
2025-01-10 18:47 ` Gerd Möllmann
@ 2025-01-10 19:55 ` Stefan Kangas
2025-01-10 20:16 ` Gerd Möllmann
2025-01-10 20:34 ` Pip Cet via Emacs development discussions.
0 siblings, 2 replies; 5+ messages in thread
From: Stefan Kangas @ 2025-01-10 19:55 UTC (permalink / raw)
To: Gerd Möllmann; +Cc: emacs-devel
Gerd Möllmann <gerd.moellmann@gmail.com> writes:
> Stefan Kangas <stefankangas@gmail.com> writes:
>
>>> diff --git a/src/search.c b/src/search.c
>>> index 36a932b015b..98d11131e31 100644
>>> --- a/src/search.c
>>> +++ b/src/search.c
>>> @@ -3446,6 +3446,11 @@ syms_of_search (void)
>>> staticpro (&searchbufs[i].regexp);
>>> staticpro (&searchbufs[i].f_whitespace_regexp);
>>> staticpro (&searchbufs[i].syntax_table);
>>> +#ifdef HAVE_MPS
>>> + /* Strictly speaking, this is also necessary for the old GC,
>>> + unless one would prove it isn't. Don't rock the boat. */
>>> + staticpro (&searchbufs[i].buf.translate);
>>> +#endif
>>
>> Is there any harm from doing this for the old GC also?
>
> No :-)
Thanks, that is my understanding also, so I made this unconditional.
It seems both simpler and more correct.
Maybe we should cherry-pick it to master even, but I'll leave
that to someone else.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: scratch/igc abefefd4f88: Add a staticpro in search.c (bug#75459)
2025-01-10 19:55 ` Stefan Kangas
@ 2025-01-10 20:16 ` Gerd Möllmann
2025-01-10 20:34 ` Pip Cet via Emacs development discussions.
1 sibling, 0 replies; 5+ messages in thread
From: Gerd Möllmann @ 2025-01-10 20:16 UTC (permalink / raw)
To: Stefan Kangas; +Cc: emacs-devel
Stefan Kangas <stefankangas@gmail.com> writes:
> Thanks, that is my understanding also, so I made this unconditional.
> It seems both simpler and more correct.
👍
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: scratch/igc abefefd4f88: Add a staticpro in search.c (bug#75459)
2025-01-10 19:55 ` Stefan Kangas
2025-01-10 20:16 ` Gerd Möllmann
@ 2025-01-10 20:34 ` Pip Cet via Emacs development discussions.
1 sibling, 0 replies; 5+ messages in thread
From: Pip Cet via Emacs development discussions. @ 2025-01-10 20:34 UTC (permalink / raw)
To: Stefan Kangas, Eli Zaretskii; +Cc: Gerd Möllmann, emacs-devel
"Stefan Kangas" <stefankangas@gmail.com> writes:
> Gerd Möllmann <gerd.moellmann@gmail.com> writes:
>
>> Stefan Kangas <stefankangas@gmail.com> writes:
>>
>>>> diff --git a/src/search.c b/src/search.c
>>>> index 36a932b015b..98d11131e31 100644
>>>> --- a/src/search.c
>>>> +++ b/src/search.c
>>>> @@ -3446,6 +3446,11 @@ syms_of_search (void)
>>>> staticpro (&searchbufs[i].regexp);
>>>> staticpro (&searchbufs[i].f_whitespace_regexp);
>>>> staticpro (&searchbufs[i].syntax_table);
>>>> +#ifdef HAVE_MPS
>>>> + /* Strictly speaking, this is also necessary for the old GC,
>>>> + unless one would prove it isn't. Don't rock the boat. */
>>>> + staticpro (&searchbufs[i].buf.translate);
>>>> +#endif
>>>
>>> Is there any harm from doing this for the old GC also?
>>
>> No :-)
>
> Thanks, that is my understanding also, so I made this unconditional.
Thanks!
> It seems both simpler and more correct.
I think it's a jaywalking bug: it may be safe to do that once in a
while, but that doesn't make it legal.
This specific instance seems safe to me, but I spent too much time
trying to establish that it was, and I still might have missed
something. And all that effort only (semi-)established that it's safe
right now, but that might change for entirely different reasons.
> Maybe we should cherry-pick it to master even, but I'll leave
> that to someone else.
Any objections?
Pip
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-01-10 20:34 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <173643410207.16699.9965075515597377103@vcs2.savannah.gnu.org>
[not found] ` <20250109144822.76FEDC60888@vcs2.savannah.gnu.org>
2025-01-10 18:25 ` scratch/igc abefefd4f88: Add a staticpro in search.c (bug#75459) Stefan Kangas
2025-01-10 18:47 ` Gerd Möllmann
2025-01-10 19:55 ` Stefan Kangas
2025-01-10 20:16 ` Gerd Möllmann
2025-01-10 20:34 ` Pip Cet via Emacs development discussions.
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.