GNU bug report logs - #12187
24.1.50; Regression: `Info-breadcrumbs-depth' should show `File:' without ".info" suffix

Previous Next

Package: emacs;

Reported by: "Drew Adams" <drew.adams <at> oracle.com>

Date: Sun, 12 Aug 2012 21:10:02 UTC

Severity: normal

Found in version 24.1.50

Done: Juri Linkov <juri <at> jurta.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 12187 in the body.
You can then email your comments to 12187 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#12187; Package emacs. (Sun, 12 Aug 2012 21:10:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Drew Adams" <drew.adams <at> oracle.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 12 Aug 2012 21:10:02 GMT) Full text and rfc822 format available.

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

From: "Drew Adams" <drew.adams <at> oracle.com>
To: <bug-gnu-emacs <at> gnu.org>
Subject: 24.1.50;
	Regression: `Info-breadcrumbs-depth' should show `File:' without
	".info" suffix
Date: Sun, 12 Aug 2012 14:00:25 -0700
emacs -Q
 
Set option `Info-breadcrumbs-depth' to 0.
 
Visit an Info node.  You will see something like this:
 
 File: elisp.info,  Node: Introduction
 
We should not be displaying the suffix ".info".  The "file" name here is
intended to indicate which manual you are in.  Showing the ".info"
suffix is a distraction that reflects the implementation, and it wastes
space.  This is a (minor) regression.
 
In GNU Emacs 24.1.50.1 (i386-mingw-nt5.1.2600)
 of 2012-08-08 on DANI-PC
Bzr revision: 109511 michael.albinus <at> gmx.de-20120808134045-t26l1voivvzfypey
Windowing system distributor `Microsoft Corp.', version 5.1.2600
Configured using:
 `configure --with-gcc (4.7) --no-opt --enable-checking --cflags
 -I../../libs/libxpm-3.5.8/include -I../../libs/libxpm-3.5.8/src
 -I../../libs/libpng-1.4.10 -I../../libs/zlib-1.2.6
 -I../../libs/giflib-4.1.4-1/include -I../../libs/jpeg-6b-4/include
 -I../../libs/tiff-3.8.2-1/include
 -I../../libs/libxml2-2.7.8-w32-bin/include/libxml2
 -I../../libs/gnutls-3.0.16/include
 -I../../libs/libiconv-1.14-2-mingw32-dev/include'
 





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12187; Package emacs. (Mon, 13 Aug 2012 02:48:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 12187 <at> debbugs.gnu.org
Subject: Re: bug#12187: 24.1.50;
	Regression: `Info-breadcrumbs-depth' should show `File:'
	without	".info" suffix
Date: Mon, 13 Aug 2012 05:39:21 +0300
> From: "Drew Adams" <drew.adams <at> oracle.com>
> Date: Sun, 12 Aug 2012 14:00:25 -0700
> 
> emacs -Q
>  
> Set option `Info-breadcrumbs-depth' to 0.
>  
> Visit an Info node.  You will see something like this:
>  
>  File: elisp.info,  Node: Introduction
>  
> We should not be displaying the suffix ".info".  The "file" name here is
> intended to indicate which manual you are in.

No, it's a file name.  That's how all Info readers work.

This is not a bug.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12187; Package emacs. (Mon, 13 Aug 2012 13:55:01 GMT) Full text and rfc822 format available.

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

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 12187 <at> debbugs.gnu.org, Drew Adams <drew.adams <at> oracle.com>, Karl
	Berry <karl <at> freefriends.org>
Subject: Re: bug#12187: 24.1.50;
	Regression: `Info-breadcrumbs-depth' should show `File:'
	without	".info" suffix
Date: Mon, 13 Aug 2012 09:45:45 -0400
>> emacs -Q
>> 
>> Set option `Info-breadcrumbs-depth' to 0.
>> 
>> Visit an Info node.  You will see something like this:
>> 
>> File: elisp.info,  Node: Introduction
>> 
>> We should not be displaying the suffix ".info".  The "file" name here is
>> intended to indicate which manual you are in.

> No, it's a file name.  That's how all Info readers work.
> This is not a bug.

I agree it's not a bug, and not a regression in the Info reader either,
but IIUC having just "elisp" in there would work as well (because when
searching for "elisp" the Info reader also tries to look for
"elisp.info"), so I think it's a reasonable request to elide the
".info".
But I'm not sure if eliding should be the job of makeinfo or of the
Info renderer.


        Stefan




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12187; Package emacs. (Mon, 13 Aug 2012 14:05:01 GMT) Full text and rfc822 format available.

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

From: "Drew Adams" <drew.adams <at> oracle.com>
To: "'Stefan Monnier'" <monnier <at> iro.umontreal.ca>,
	"'Eli Zaretskii'" <eliz <at> gnu.org>
Cc: 12187 <at> debbugs.gnu.org, 'KarlBerry' <karl <at> freefriends.org>
Subject: RE: bug#12187: 24.1.50;
	Regression: `Info-breadcrumbs-depth' should show `File:'
	without	".info" suffix
Date: Mon, 13 Aug 2012 06:55:25 -0700
> >> We should not be displaying the suffix ".info".  The 
> >> "file" name here is intended to indicate which manual you are in.
> 
> > No, it's a file name.  That's how all Info readers work.
> > This is not a bug.
> 
> I agree it's not a bug, and not a regression in the Info 
> reader either, but IIUC having just "elisp" in there would work
> as well (because when searching for "elisp" the Info reader also
> tries to look for "elisp.info"), so I think it's a reasonable
> request to elide the ".info".  But I'm not sure if eliding should
> be the job of makeinfo or of the Info renderer.

I can see both your points of view.

Eli, can you speak more of the advantage of showing the suffix?  E.g., are there
cases where there might be more than one manual with the same file name except
for the suffix?  And could you elaborate on how this relates to other Info
readers and why it can be important to show the suffix?

I was thinking of the suffix here as essentially noise.  But if there is a real
use for it then I would agree that it need not be removed.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12187; Package emacs. (Mon, 13 Aug 2012 15:54:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 12187 <at> debbugs.gnu.org, monnier <at> iro.umontreal.ca, karl <at> freefriends.org
Subject: Re: bug#12187: 24.1.50;
	Regression: `Info-breadcrumbs-depth' should show `File:'
	without	".info" suffix
Date: Mon, 13 Aug 2012 18:44:20 +0300
> From: "Drew Adams" <drew.adams <at> oracle.com>
> Cc: "'KarlBerry'" <karl <at> freefriends.org>, <12187 <at> debbugs.gnu.org>
> Date: Mon, 13 Aug 2012 06:55:25 -0700
> 
> Eli, can you speak more of the advantage of showing the suffix?  E.g., are there
> cases where there might be more than one manual with the same file name except
> for the suffix?

Yes, there could be more than one manual with the same name, however
unlikely.  Not sure how important that is, though.

> And could you elaborate on how this relates to other Info readers
> and why it can be important to show the suffix?

What you see is simply the header line of every node, verbatim, as
makeinfo generates it.  If you visit the Info file literally, that is
what you will see there at the beginning of each node.  I don't think
there's some deep philosophy here, just tradition and KISS, really.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12187; Package emacs. (Mon, 13 Aug 2012 16:20:02 GMT) Full text and rfc822 format available.

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

From: "Drew Adams" <drew.adams <at> oracle.com>
To: "'Eli Zaretskii'" <eliz <at> gnu.org>
Cc: 12187 <at> debbugs.gnu.org, monnier <at> iro.umontreal.ca, karl <at> freefriends.org
Subject: RE: bug#12187: 24.1.50;
	Regression: `Info-breadcrumbs-depth' should show `File:'
	without	".info" suffix
Date: Mon, 13 Aug 2012 09:10:44 -0700
> > Eli, can you speak more of the advantage of showing the 
> > suffix?  E.g., are there cases where there might be more than
> > one manual with the same file name except for the suffix?
> 
> Yes, there could be more than one manual with the same name, however
> unlikely.  Not sure how important that is, though.

I would think that the suffix is not very important, and I have not heard
anything to the contrary.  If the user had access to two manuals in different
_locations_ but with the same name, then I can see an advantage in somehow
making the full file name evident.  (The file location is available in Emacs via
`pwd' etc.)

But I do not see an advantage in showing the suffix if there are two files in
the same location, one with suffix .info and the other without it. 

> > And could you elaborate on how this relates to other Info readers
> > and why it can be important to show the suffix?
> 
> What you see is simply the header line of every node, verbatim, as
> makeinfo generates it.  If you visit the Info file literally, that is
> what you will see there at the beginning of each node.  I don't think
> there's some deep philosophy here, just tradition and KISS, really.

I agree with Stefan - please elide the suffix in Emacs, at least.  That could be
done during rendering, if you do not think that makeinfo should do it generally.

From an Emacs _user_ perspective this is a regression.  Whereas, before, `File:'
indicated only the manual, now it shows also a file-name suffix.

Arguments saying, in effect, "but that _is_ the file" would be logically the
same if Emacs suddenly started showing the full file name ("path") in that
field.

What is useful to users is the non-directory and non-suffix part of the file
name: "elisp".  Especially since the suffix has no special meaning: there are
not different Info-file suffixes with different meanings, AFAIK.  For users, the
suffix is noise.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12187; Package emacs. (Tue, 21 Aug 2012 22:31:01 GMT) Full text and rfc822 format available.

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

From: Juri Linkov <juri <at> jurta.org>
To: "Drew Adams" <drew.adams <at> oracle.com>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 12187 <at> debbugs.gnu.org, karl <at> freefriends.org
Subject: Re: bug#12187: 24.1.50;
	`Info-breadcrumbs-depth' should show `File:' without ".info" suffix
Date: Wed, 22 Aug 2012 01:28:51 +0300
> I agree with Stefan - please elide the suffix in Emacs, at least.
> That could be done during rendering, if you do not think that
> makeinfo should do it generally.

This can be implemented in Emacs with the following patch.
The change should have no bad effect in case when makeinfo
will be changed to produce file names without suffix in the header.

=== modified file 'lisp/info.el'
--- lisp/info.el	2012-08-20 23:44:19 +0000
+++ lisp/info.el	2012-08-21 22:27:52 +0000
@@ -4537,7 +4537,17 @@ (defun Info-fontify-node ()
              ((not (bobp))
               ;; Hide the punctuation at the end, too.
               (skip-chars-backward " \t,")
-              (put-text-property (point) header-end 'invisible t))))))
+              (put-text-property (point) header-end 'invisible t)
+	      ;; Hide the suffix of the Info file name.
+	      (beginning-of-line)
+	      (if (re-search-forward
+		   (concat (format "File: %s\\([^,\n\t]*\\)"
+				   (if (stringp Info-current-file)
+				       (file-name-nondirectory Info-current-file)
+				     Info-current-file)))
+		   header-end t)
+		  (put-text-property (match-beginning 1) (match-end 1)
+				     'invisible t)))))))
 
       ;; Fontify titles
       (goto-char (point-min))




Reply sent to Juri Linkov <juri <at> jurta.org>:
You have taken responsibility. (Wed, 22 Aug 2012 23:46:03 GMT) Full text and rfc822 format available.

Notification sent to "Drew Adams" <drew.adams <at> oracle.com>:
bug acknowledged by developer. (Wed, 22 Aug 2012 23:46:03 GMT) Full text and rfc822 format available.

Message #28 received at 12187-done <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> jurta.org>
To: "Drew Adams" <drew.adams <at> oracle.com>
Cc: 12187-done <at> debbugs.gnu.org, karl <at> freefriends.org
Subject: Re: bug#12187: 24.1.50;
	`Info-breadcrumbs-depth' should show `File:' without ".info" suffix
Date: Thu, 23 Aug 2012 02:33:05 +0300
>> I agree with Stefan - please elide the suffix in Emacs, at least.
>> That could be done during rendering, if you do not think that
>> makeinfo should do it generally.
>
> This can be implemented in Emacs with the following patch.
> The change should have no bad effect in case when makeinfo
> will be changed to produce file names without suffix in the header.

Installed and closed.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 20 Sep 2012 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 11 years and 229 days ago.

Previous Next


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