all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kevin Rodgers <kevin.d.rodgers@gmail.com>
To: bug-gnu-emacs@gnu.org
Subject: bug#5658: 23.1; Viewing .info files in Emacs' info-viewer
Date: Thu, 04 Mar 2010 00:10:46 -0700	[thread overview]
Message-ID: <hmnmdj$vso$1@dough.gmane.org> (raw)
In-Reply-To: <87iq9drzzi.fsf@mail.jurta.org>

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








  parent reply	other threads:[~2010-03-04  7:10 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-28 19:28 bug#5658: 23.1; Viewing .info files in Emacs' info-viewer usr.gentoo
2010-03-02 21:11 ` Juri Linkov
2010-03-03  6:05 ` Kevin Rodgers
2010-03-03 19:30   ` Juri Linkov
2010-03-04  2:45     ` Stefan Monnier
2010-03-06 17:55       ` Juri Linkov
2010-03-04  7:10     ` Kevin Rodgers [this message]
2010-03-04 21:18       ` Juri Linkov
2010-03-05  5:29         ` Kevin Rodgers
2010-03-05 20:23       ` Stefan Monnier
2012-12-08  3:37 ` Chong Yidong
2012-12-08  9:07   ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='hmnmdj$vso$1@dough.gmane.org' \
    --to=kevin.d.rodgers@gmail.com \
    --cc=bug-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.