From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#12187: 24.1.50; `Info-breadcrumbs-depth' should show `File:' without ".info" suffix Date: Wed, 22 Aug 2012 01:28:51 +0300 Organization: JURTA Message-ID: <87r4qzubfg.fsf_-_@mail.jurta.org> References: <141A4CE652D543A4B079D9409CD4C2E3@us.oracle.com> <83boif7bxi.fsf@gnu.org> <837A4A5337854402803C885693F4CD76@us.oracle.com> <838vdi7q5n.fsf@gnu.org> <8595694B4937406D9918DAF1268002E5@us.oracle.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1345588246 6012 80.91.229.3 (21 Aug 2012 22:30:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 21 Aug 2012 22:30:46 +0000 (UTC) Cc: 12187@debbugs.gnu.org, karl@freefriends.org To: "Drew Adams" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 22 00:30:46 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1T3wyD-00045E-Gh for geb-bug-gnu-emacs@m.gmane.org; Wed, 22 Aug 2012 00:30:45 +0200 Original-Received: from localhost ([::1]:42077 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3wyC-0007ro-2a for geb-bug-gnu-emacs@m.gmane.org; Tue, 21 Aug 2012 18:30:44 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50886) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3wyA-0007rh-70 for bug-gnu-emacs@gnu.org; Tue, 21 Aug 2012 18:30:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T3wy9-0006WV-8s for bug-gnu-emacs@gnu.org; Tue, 21 Aug 2012 18:30:42 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60788) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3wy9-0006WR-4z for bug-gnu-emacs@gnu.org; Tue, 21 Aug 2012 18:30:41 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1T3wyT-0000GU-U8 for bug-gnu-emacs@gnu.org; Tue, 21 Aug 2012 18:31:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 21 Aug 2012 22:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12187 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12187-submit@debbugs.gnu.org id=B12187.13455882591007 (code B ref 12187); Tue, 21 Aug 2012 22:31:01 +0000 Original-Received: (at 12187) by debbugs.gnu.org; 21 Aug 2012 22:30:59 +0000 Original-Received: from localhost ([127.0.0.1]:42101 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T3wyO-0000GA-Jv for submit@debbugs.gnu.org; Tue, 21 Aug 2012 18:30:58 -0400 Original-Received: from ps18281.dreamhost.com ([69.163.218.105]:36916 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T3wyN-0000G2-0P for 12187@debbugs.gnu.org; Tue, 21 Aug 2012 18:30:55 -0400 Original-Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 0D592451CBF8; Tue, 21 Aug 2012 15:30:30 -0700 (PDT) In-Reply-To: <8595694B4937406D9918DAF1268002E5@us.oracle.com> (Drew Adams's message of "Mon, 13 Aug 2012 09:10:44 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (x86_64-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:63360 Archived-At: > 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))