emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: About the new frame title


From: Stefan Kangas
Subject: Re: About the new frame title
Date: Fri, 13 Nov 2020 15:10:27 -0800

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Stefan Kangas <stefankangas@gmail.com>
>> Date: Thu, 24 Sep 2020 01:57:38 -0700
>> Cc: angelo.g0@libero.it, emacs-devel@gnu.org
>>
>> +  const char *title;
>>    if (STRINGP (system_name))
>>      {
>> -      *nametail++ = '@';
>> -      lispstpcpy (nametail, system_name);
>> +      title = "GNU Emacs at ";
>> +      ptrdiff_t nbytes = sizeof (title);
>
> Does this work?  AFAIK, 'sizeof (char *)' returns 8 on a 64-bit system
> and 4 on a 32-bit system, regardless of the length of the text string
> it points to.

Please find attached a fixed patch.

Attachment: 0001-Make-initial-frame-match-frame-title-format.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]