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.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 5658 in the body.
You can then email your comments to 5658 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#5658
; Package
emacs
.
(Sun, 28 Feb 2010 20:09:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
usr.gentoo <at> googlemail.com
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Sun, 28 Feb 2010 20:09:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi,
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))
HTH,
Geralt.
Severity set to 'minor' from 'normal'
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Tue, 02 Mar 2010 19:47:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#5658
; Package
emacs
.
(Tue, 02 Mar 2010 21:28:01 GMT)
Full text and
rfc822 format available.
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/
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#5658
; Package
emacs
.
(Wed, 03 Mar 2010 06:06:01 GMT)
Full text and
rfc822 format available.
Message #13 received at submit <at> debbugs.gnu.org (full text, mbox):
usr.gentoo <at> googlemail.com 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))
--
Kevin Rodgers
Denver, Colorado, USA
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#5658
; Package
emacs
.
(Wed, 03 Mar 2010 19:46:01 GMT)
Full text and
rfc822 format available.
Message #16 received at submit <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))
>
> 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.
--
Juri Linkov
http://www.jurta.org/emacs/
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#5658
; Package
emacs
.
(Thu, 04 Mar 2010 07:20:03 GMT)
Full text and
rfc822 format available.
Message #19 received at submit <at> debbugs.gnu.org (full text, mbox):
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
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#5658
; Package
emacs
.
(Thu, 04 Mar 2010 21:22:02 GMT)
Full text and
rfc822 format available.
Message #22 received at submit <at> debbugs.gnu.org (full text, mbox):
> 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))))
Definitely not. `Info-edit' is not recommended to use according
to the docstring of `Info-enable-edit'. It is disabled by default.
Your code overrides its default value.
--
Juri Linkov
http://www.jurta.org/emacs/
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#5658
; Package
emacs
.
(Fri, 05 Mar 2010 08:41:02 GMT)
Full text and
rfc822 format available.
Message #25 received at submit <at> debbugs.gnu.org (full text, mbox):
Juri Linkov wrote:
>> 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))))
Oops, I meant (let ((Info-enable-edit (not buffer-read-only)) ...)
> Definitely not. `Info-edit' is not recommended to use according
> to the docstring of `Info-enable-edit'. It is disabled by default.
That is a good default, because normally one is viewing an Info file via
`C-h i' (including `C-u C-h i'). But if one has explicitly visited a file
via `find-file' and friends, then The Full Power of Emacs Shall Be at Your
Fingertips. :-)
> Your code overrides its default value.
Only temporarily.
--
Kevin Rodgers
Denver, Colorado, USA
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#5658
; Package
emacs
.
(Fri, 05 Mar 2010 20:25:01 GMT)
Full text and
rfc822 format available.
Message #28 received at submit <at> debbugs.gnu.org (full text, mbox):
> That doesn't work either: even if the file is editable, the buffer is
> read-only.
That's not necessarily a problem. Several major modes put their buffer
in a read-only mode even if the underlying file is writable. This is
typically the case for modes that change the appearance of the buffer
(use things like after-string and display properties).
I think in the case of Info buffers, it's perfectly OK to open them in
read-only mode even if the file is writable.
Stefan
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#5658
; Package
emacs
.
(Fri, 05 Mar 2010 21:00:03 GMT)
Full text and
rfc822 format available.
Message #31 received at submit <at> debbugs.gnu.org (full text, mbox):
> 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.
Yes, I wrote Info-on-current-buffer specifically for this kind of use,
but no it doesn't work for the auto-mode-alist, really.
There is no good reason why it can't work for auto-mode-alist, but it's
the way it currently is. Patches welcome,
Stefan
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#5658
; Package
emacs
.
(Sat, 06 Mar 2010 18:18:02 GMT)
Full text and
rfc822 format available.
Message #34 received at submit <at> debbugs.gnu.org (full text, mbox):
>> 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.
>
> Yes, I wrote Info-on-current-buffer specifically for this kind of use,
> but no it doesn't work for the auto-mode-alist, really.
> There is no good reason why it can't work for auto-mode-alist, but it's
> the way it currently is. Patches welcome,
I see only one problem with using Info-on-current-buffer for the
auto-mode-alist. Since it can't read the node name interactively,
it defaults to `Top' that may be missing in the current file of the
multi-file Info manual. Perhaps it should default to the first node of
the current file.
--
Juri Linkov
http://www.jurta.org/emacs/
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#5658
; Package
emacs
.
(Sat, 08 Dec 2012 03:38:03 GMT)
Full text and
rfc822 format available.
Message #37 received at 5658 <at> debbugs.gnu.org (full text, mbox):
usr.gentoo <at> googlemail.com writes:
> when visiting .info files in Emacs via find-file Emacs opens the file
> in the default major-mode instead of Emacs' info-mode.
I think it would be a bad idea to open in Info mode, since one
occasionally comes across plain text files with the .info extension.
Anyway, we have the `info-display-manual' command for this now.
Closing.
bug closed, send any further explanations to
5658 <at> debbugs.gnu.org and usr.gentoo <at> googlemail.com
Request was from
Chong Yidong <cyd <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Sat, 08 Dec 2012 03:38:04 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#5658
; Package
emacs
.
(Sat, 08 Dec 2012 09:09:02 GMT)
Full text and
rfc822 format available.
Message #42 received at 5658 <at> debbugs.gnu.org (full text, mbox):
> From: Chong Yidong <cyd <at> gnu.org>
> Date: Sat, 08 Dec 2012 11:37:07 +0800
> Cc: 5658 <at> debbugs.gnu.org
>
> Anyway, we have the `info-display-manual' command for this now.
To say nothing about "C-u C-h i", which we had for ages.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 05 Jan 2013 12:24:04 GMT)
Full text and
rfc822 format available.
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.