GNU bug report logs - #67444
[PATCH] FAQ: Improve explanation of showing file name in titlebar

Previous Next

Package: emacs;

Reported by: Santiago Payà i Miralta <santiagopim <at> gmail.com>

Date: Sat, 25 Nov 2023 13:30:02 UTC

Severity: normal

Tags: patch, wontfix

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 67444 in the body.
You can then email your comments to 67444 AT debbugs.gnu.org in the normal way.

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#67444; Package emacs. (Sat, 25 Nov 2023 13:30:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Santiago Payà i Miralta <santiagopim <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 25 Nov 2023 13:30:02 GMT) Full text and rfc822 format available.

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

From: Santiago Payà i Miralta <santiagopim <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Cc: Santiago Payà i Miralta <santiagopim <at> gmail.com>
Subject: [PATCH] FAQ: Improve explanation of showing file name in titlebar
Date: Sat, 25 Nov 2023 14:29:16 +0100
* doc/misc/efaq.texi (Displaying the current file name in the
titlebar): Add example code to show the real file name in the
titlebar, not just the buffer name, with the additional dired buffer
case, and the last default buffer name.
---
 doc/misc/efaq.texi | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/doc/misc/efaq.texi b/doc/misc/efaq.texi
index 70f434d4b99..92622bd0527 100644
--- a/doc/misc/efaq.texi
+++ b/doc/misc/efaq.texi
@@ -1960,6 +1960,17 @@ Displaying the current file name in the titlebar
 (setq frame-title-format "%b")
 @end lisp
 
+To show the path to the file when the buffer is visiting some file, or
+the directory path when in a dired buffer, or just the name of the
+buffer:
+
+@lisp
+(setq frame-title-format
+      '(buffer-file-name (:eval (abbreviate-file-name buffer-file-name))
+                         (dired-directory dired-directory
+                                          "%b")))
+@end lisp
+
 @node Turning on abbrevs by default
 @section How do I turn on abbrevs by default just in mode @var{mymode}?
 @cindex Abbrevs, turning on by default
-- 
2.39.2





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#67444; Package emacs. (Sun, 26 Nov 2023 10:37:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Santiago Payà i Miralta <santiagopim <at> gmail.com>
Cc: 67444 <at> debbugs.gnu.org
Subject: Re: bug#67444: [PATCH] FAQ: Improve explanation of showing file name
 in titlebar
Date: Sun, 26 Nov 2023 12:35:39 +0200
> Cc: Santiago Payà i Miralta <santiagopim <at> gmail.com>
> From: Santiago Payà i Miralta <santiagopim <at> gmail.com>
> Date: Sat, 25 Nov 2023 14:29:16 +0100
> 
> * doc/misc/efaq.texi (Displaying the current file name in the
> titlebar): Add example code to show the real file name in the
> titlebar, not just the buffer name, with the additional dired buffer
> case, and the last default buffer name.
> ---
>  doc/misc/efaq.texi | 11 +++++++++++
>  1 file changed, 11 insertions(+)
> 
> diff --git a/doc/misc/efaq.texi b/doc/misc/efaq.texi
> index 70f434d4b99..92622bd0527 100644
> --- a/doc/misc/efaq.texi
> +++ b/doc/misc/efaq.texi
> @@ -1960,6 +1960,17 @@ Displaying the current file name in the titlebar
>  (setq frame-title-format "%b")
>  @end lisp
>  
> +To show the path to the file when the buffer is visiting some file, or
> +the directory path when in a dired buffer, or just the name of the
> +buffer:
> +
> +@lisp
> +(setq frame-title-format
> +      '(buffer-file-name (:eval (abbreviate-file-name buffer-file-name))
> +                         (dired-directory dired-directory
> +                                          "%b")))
> +@end lisp
> +
>  @node Turning on abbrevs by default
>  @section How do I turn on abbrevs by default just in mode @var{mymode}?
>  @cindex Abbrevs, turning on by default

Thanks, but I don't want to recommend that users include :eval forms
in frame-title-format, as that could cause complications, and
generally slows down redisplay.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#67444; Package emacs. (Mon, 25 Dec 2023 14:37:01 GMT) Full text and rfc822 format available.

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

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>,
 Santiago Payà i Miralta <santiagopim <at> gmail.com>
Cc: 67444 <at> debbugs.gnu.org
Subject: Re: bug#67444: [PATCH] FAQ: Improve explanation of showing file name
 in titlebar
Date: Mon, 25 Dec 2023 06:36:39 -0800
Eli Zaretskii <eliz <at> gnu.org> writes:

>> Cc: Santiago Payà i Miralta <santiagopim <at> gmail.com>
>> From: Santiago Payà i Miralta <santiagopim <at> gmail.com>
>> Date: Sat, 25 Nov 2023 14:29:16 +0100
>>
>> * doc/misc/efaq.texi (Displaying the current file name in the
>> titlebar): Add example code to show the real file name in the
>> titlebar, not just the buffer name, with the additional dired buffer
>> case, and the last default buffer name.
>> ---
>>  doc/misc/efaq.texi | 11 +++++++++++
>>  1 file changed, 11 insertions(+)
>>
>> diff --git a/doc/misc/efaq.texi b/doc/misc/efaq.texi
>> index 70f434d4b99..92622bd0527 100644
>> --- a/doc/misc/efaq.texi
>> +++ b/doc/misc/efaq.texi
>> @@ -1960,6 +1960,17 @@ Displaying the current file name in the titlebar
>>  (setq frame-title-format "%b")
>>  @end lisp
>>
>> +To show the path to the file when the buffer is visiting some file, or
>> +the directory path when in a dired buffer, or just the name of the
>> +buffer:
>> +
>> +@lisp
>> +(setq frame-title-format
>> +      '(buffer-file-name (:eval (abbreviate-file-name buffer-file-name))
>> +                         (dired-directory dired-directory
>> +                                          "%b")))
>> +@end lisp
>> +
>>  @node Turning on abbrevs by default
>>  @section How do I turn on abbrevs by default just in mode @var{mymode}?
>>  @cindex Abbrevs, turning on by default
>
> Thanks, but I don't want to recommend that users include :eval forms
> in frame-title-format, as that could cause complications, and
> generally slows down redisplay.

Is there some other way to achieve the above customization?

If not, perhaps this bug should simply be closed.  :-/




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#67444; Package emacs. (Mon, 25 Dec 2023 15:12:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Stefan Kangas <stefankangas <at> gmail.com>
Cc: 67444 <at> debbugs.gnu.org, santiagopim <at> gmail.com
Subject: Re: bug#67444: [PATCH] FAQ: Improve explanation of showing file name
 in titlebar
Date: Mon, 25 Dec 2023 17:11:39 +0200
tags 67444 wontfix
close 67444

> From: Stefan Kangas <stefankangas <at> gmail.com>
> Date: Mon, 25 Dec 2023 06:36:39 -0800
> Cc: 67444 <at> debbugs.gnu.org
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> >> Cc: Santiago Payà i Miralta <santiagopim <at> gmail.com>
> >> From: Santiago Payà i Miralta <santiagopim <at> gmail.com>
> >> Date: Sat, 25 Nov 2023 14:29:16 +0100
> >>
> >> * doc/misc/efaq.texi (Displaying the current file name in the
> >> titlebar): Add example code to show the real file name in the
> >> titlebar, not just the buffer name, with the additional dired buffer
> >> case, and the last default buffer name.
> >> ---
> >>  doc/misc/efaq.texi | 11 +++++++++++
> >>  1 file changed, 11 insertions(+)
> >>
> >> diff --git a/doc/misc/efaq.texi b/doc/misc/efaq.texi
> >> index 70f434d4b99..92622bd0527 100644
> >> --- a/doc/misc/efaq.texi
> >> +++ b/doc/misc/efaq.texi
> >> @@ -1960,6 +1960,17 @@ Displaying the current file name in the titlebar
> >>  (setq frame-title-format "%b")
> >>  @end lisp
> >>
> >> +To show the path to the file when the buffer is visiting some file, or
> >> +the directory path when in a dired buffer, or just the name of the
> >> +buffer:
> >> +
> >> +@lisp
> >> +(setq frame-title-format
> >> +      '(buffer-file-name (:eval (abbreviate-file-name buffer-file-name))
> >> +                         (dired-directory dired-directory
> >> +                                          "%b")))
> >> +@end lisp
> >> +
> >>  @node Turning on abbrevs by default
> >>  @section How do I turn on abbrevs by default just in mode @var{mymode}?
> >>  @cindex Abbrevs, turning on by default
> >
> > Thanks, but I don't want to recommend that users include :eval forms
> > in frame-title-format, as that could cause complications, and
> > generally slows down redisplay.
> 
> Is there some other way to achieve the above customization?

To clarify: the above customization _is_ supported, and will continue
to be supported.  I just don't think we should advertise it in the
manual.

> If not, perhaps this bug should simply be closed.  :-/

Done.




Added tag(s) wontfix. Request was from Eli Zaretskii <eliz <at> gnu.org> to control <at> debbugs.gnu.org. (Mon, 25 Dec 2023 15:12:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 67444 <at> debbugs.gnu.org and Santiago Payà i Miralta <santiagopim <at> gmail.com> Request was from Eli Zaretskii <eliz <at> gnu.org> to control <at> debbugs.gnu.org. (Mon, 25 Dec 2023 15:12:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 23 Jan 2024 12:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 108 days ago.

Previous Next


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