unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* info handling dir.gz
@ 2012-03-01  9:25 Thien-Thi Nguyen
  2012-03-01 17:53 ` Glenn Morris
  2012-03-06  3:07 ` Glenn Morris
  0 siblings, 2 replies; 8+ messages in thread
From: Thien-Thi Nguyen @ 2012-03-01  9:25 UTC (permalink / raw)
  To: emacs-devel

[-- 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))

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-03-06  8:24 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-01  9:25 info handling dir.gz Thien-Thi Nguyen
2012-03-01 17:53 ` 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

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).