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
View this message in rfc822 format
Juri Linkov wrote:
>>> 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))
>> The value of major-mode in an Info buffer is Info-mode:
>>
>> (add-to-list 'auto-mode-alist '("\\.info\\'" . Info-mode))
>
> This doesn't work too. It seems `Info-on-current-buffer' was created
> exactly for the purpose to be associated with .info in auto-mode-alist.
> It is not used anywhere else.
That doesn't work either: even if the file is editable, the buffer is read-only.
It should be something like:
(lambda ()
(let ((Info-enable-edit buffer-read-only))
(Info-on-current-buffer)
(when Info-enable-edit
(Info-edit))))
--
Kevin Rodgers
Denver, Colorado, USA
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.