From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: ams@gnu.org
Cc: emacs-devel@gnu.org
Subject: Re: .info files
Date: Thu, 12 Apr 2012 12:12:38 -0400 [thread overview]
Message-ID: <jwv62d5rkxs.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <E1SILAb-0001Mh-SV@fencepost.gnu.org> (Alfred M. Szmidt's message of "Thu, 12 Apr 2012 10:38:45 -0400")
> It would be nice if .info files opened up in Info-mode automatically.
> E.g. something like,
> (add-to-list 'auto-mode-alist
> '("\\.info\\'" . (lambda () (interactive)
> (let ((file-name (buffer-file-name)))
> (kill-buffer (current-buffer))
> (info file-name)))))
Agreed. I wrote Info-on-current-buffer a long time ago to try and
address this need, but it's clearly not good enough.
Your code above is (sadly) not quite good enough either since its use of
kill-buffer+info will likely introduce misbehaviors in various cases.
Stefan
next prev parent reply other threads:[~2012-04-12 16:12 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-12 14:38 .info files Alfred M. Szmidt
2012-04-12 16:12 ` Stefan Monnier [this message]
2012-04-12 16:49 ` Alfred M. Szmidt
2012-04-12 18:30 ` Stefan Monnier
2012-04-12 21:58 ` Alfred M. Szmidt
2012-04-13 9:34 ` Eli Zaretskii
2012-04-19 10:44 ` Alfred M. Szmidt
2012-05-04 6:53 ` Glenn Morris
2012-05-04 9:32 ` Eli Zaretskii
2012-05-04 19:16 ` Paul Eggert
2012-05-04 20:49 ` Eli Zaretskii
2012-05-04 21:33 ` Paul Eggert
2012-05-04 23:01 ` Juanma Barranquero
2012-05-05 0:30 ` Stefan Monnier
2012-05-06 1:24 ` Paul Eggert
2012-05-06 2:55 ` Eli Zaretskii
2012-05-05 7:05 ` Eli Zaretskii
2012-05-05 11:41 ` Juanma Barranquero
2012-05-05 20:14 ` Glenn Morris
2012-05-06 2:52 ` Eli Zaretskii
2012-05-08 6:28 ` Paul Eggert
2012-05-08 17:31 ` Eli Zaretskii
2012-04-17 13:34 ` Nix
2012-04-13 19:19 ` Glenn Morris
2012-04-13 21:01 ` Eli Zaretskii
2012-04-13 21:19 ` Glenn Morris
2012-04-14 7:01 ` Eli Zaretskii
2012-04-14 8:04 ` Chong Yidong
2012-04-14 9:15 ` Eli Zaretskii
2012-04-14 10:14 ` Chong Yidong
2012-04-14 11:28 ` Eli Zaretskii
2012-04-14 18:01 ` Glenn Morris
2012-04-14 18:13 ` Eli Zaretskii
2012-04-16 17:44 ` Glenn Morris
2012-04-16 19:13 ` Eli Zaretskii
2012-04-16 20:26 ` Glenn Morris
2012-04-16 20:33 ` Glenn Morris
2012-04-14 17:56 ` Glenn Morris
2012-04-14 18:12 ` 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=jwv62d5rkxs.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=ams@gnu.org \
--cc=emacs-devel@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.