bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#5658: 23.1; Viewing .info files in Emacs' info-viewer


From: Kevin Rodgers
Subject: bug#5658: 23.1; Viewing .info files in Emacs' info-viewer
Date: Thu, 04 Mar 2010 22:29:38 -0700
User-agent: Thunderbird 2.0.0.23 (Macintosh/20090812)

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








reply via email to

[Prev in Thread] Current Thread [Next in Thread]