unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Thien-Thi Nguyen <ttn@gnuvola.org>
To: emacs-devel@gnu.org
Subject: info handling dir.gz
Date: Thu, 01 Mar 2012 10:25:34 +0100	[thread overview]
Message-ID: <87fwdsoepd.fsf@gnuvola.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 267 bytes --]

This patch is required for GNU Emacs to read /usr/share/info/dir.gz
(et al).  I hope it can make it into the next release.

[Insert excuse for not having installed Bazarre, here
 (flames => /dev/null).]

______________________________________________________________

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: info.diff --]
[-- Type: text/x-diff, Size: 737 bytes --]

 lisp/info.el |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/lisp/info.el b/lisp/info.el
index a8cb141..49d0953 100644
--- a/lisp/info.el
+++ b/lisp/info.el
@@ -1158,6 +1158,11 @@ a case-insensitive match is tried."
 	      (let* (file
 		     (attrs
 		      (or
+		       ;; As of 2011 or thereabouts, some weirdness in the
+		       ;; transition from Debian to GNU install-info results
+		       ;; in the directory file being gzipped.  Sigh.
+		       (progn (setq file (expand-file-name "dir.gz" truename))
+			      (file-attributes file))
 		       (progn (setq file (expand-file-name "dir" truename))
 			      (file-attributes file))
 		       (progn (setq file (expand-file-name "DIR" truename))

             reply	other threads:[~2012-03-01  9:25 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-01  9:25 Thien-Thi Nguyen [this message]
2012-03-01 17:53 ` info handling dir.gz Glenn Morris
2012-03-01 18:21   ` Thien-Thi Nguyen
2012-03-01 20:21   ` Lluís
2012-03-01 20:39     ` Lluís
2012-03-06  3:07 ` Glenn Morris
2012-03-06  6:40   ` Ulrich Mueller
2012-03-06  8:24   ` Thien-Thi Nguyen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fwdsoepd.fsf@gnuvola.org \
    --to=ttn@gnuvola.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).