From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: .info files Date: Thu, 12 Apr 2012 14:30:17 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1334255436 8684 80.91.229.3 (12 Apr 2012 18:30:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 12 Apr 2012 18:30:36 +0000 (UTC) Cc: emacs-devel@gnu.org To: ams@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 12 20:30:35 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SIOmr-0004wv-Pz for ged-emacs-devel@m.gmane.org; Thu, 12 Apr 2012 20:30:29 +0200 Original-Received: from localhost ([::1]:54268 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SIOmr-0007Pl-1n for ged-emacs-devel@m.gmane.org; Thu, 12 Apr 2012 14:30:29 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:35796) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SIOmk-0007Oh-AH for emacs-devel@gnu.org; Thu, 12 Apr 2012 14:30:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SIOmi-0004x0-2h for emacs-devel@gnu.org; Thu, 12 Apr 2012 14:30:21 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:52865) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SIOmh-0004wi-TF; Thu, 12 Apr 2012 14:30:19 -0400 Original-Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id q3CIUHOn025095; Thu, 12 Apr 2012 14:30:17 -0400 Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 3D7DDB4066; Thu, 12 Apr 2012 14:30:17 -0400 (EDT) In-Reply-To: (Alfred M. Szmidt's message of "Thu, 12 Apr 2012 12:49:19 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4190=0 X-NAI-Spam-Version: 2.2.0.9309 : core <4190> : streams <746295> : uri <1098483> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.22 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:149616 Archived-At: > True that, what about the following: > (add-to-list 'auto-mode-alist > '("\\.info\\'" . (lambda () (interactive) > (require 'info) > (info-setup (buffer-file-name) (current-buffer))))) Looks better, indeed. Still sounds a bit risky since it throws away the current content of the buffer, so it probably won't work right in things like archive-members. Stefan PS: Reminds me that I don't like the way our Info files (and some other project's as well) don't have a .info extension. PPS: And of course, the question remains of what to do when visiting foo-N.info.