GNU bug report logs -
#5658
23.1; Viewing .info files in Emacs' info-viewer
Previous Next
Reported by: usr.gentoo <at> googlemail.com
Date: Sun, 28 Feb 2010 20:09:01 UTC
Severity: minor
Done: Chong Yidong <cyd <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #10 received at 5658 <at> debbugs.gnu.org (full text, mbox):
> when visiting .info files in Emacs via find-file Emacs opens the file in the
> default major-mode instead of Emacs' info-mode. I suggest therefore to add the
> following default-association:
>
> (add-to-list 'auto-mode-alist '("\\.info\\'" . info))
This doesn't work for me. However, the following does:
(add-to-list 'auto-mode-alist '("\\.info\\'" .
(lambda () (interactive)
(info (buffer-file-name)))))
I think this has too bad consequences: it visits the Info file,
but doesn't display it. Instead, it displays another buffer
with the Info manual.
Maybe `dired-info' from `dired-x.el' is more suitable for your needs?
At least, it doesn't visit the Info file.
--
Juri Linkov
http://www.jurta.org/emacs/
This bug report was last modified 12 years and 190 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.