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: aplus mode Date: Sun, 19 Aug 2012 08:27:32 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1345379261 19795 80.91.229.3 (19 Aug 2012 12:27:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 19 Aug 2012 12:27:41 +0000 (UTC) Cc: emacs-devel@gnu.org To: Rustom Mody Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 19 14:27:41 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 1T34bV-0007MR-BC for ged-emacs-devel@m.gmane.org; Sun, 19 Aug 2012 14:27:41 +0200 Original-Received: from localhost ([::1]:55390 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T34bT-0006Hj-JB for ged-emacs-devel@m.gmane.org; Sun, 19 Aug 2012 08:27:39 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43263) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T34bR-0006HT-FC for emacs-devel@gnu.org; Sun, 19 Aug 2012 08:27:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T34bQ-0002bX-IW for emacs-devel@gnu.org; Sun, 19 Aug 2012 08:27:37 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:48846) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T34bQ-0002bQ-Ef for emacs-devel@gnu.org; Sun, 19 Aug 2012 08:27:36 -0400 Original-Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id q7JCRW5x014195; Sun, 19 Aug 2012 08:27:33 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 7DF20AE2FA; Sun, 19 Aug 2012 08:27:32 -0400 (EDT) In-Reply-To: (Rustom Mody's message of "Thu, 16 Aug 2012 22:55:03 +0530") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4314=0 X-NAI-Spam-Version: 2.2.0.9309 : core <4314> : streams <802067> : uri <1196487> 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:152673 Archived-At: > I now have > (defun run-apl() > "Major mode for running APlus under emacs" > (interactive) > (if (not (comint-check-proc "*a+*")) > (let ((coding-system-for-write 'iso-latin-1) > (coding-system-for-read 'iso-latin-1)) > (set-buffer (make-comint "a+" "a+")))) > (setq apl-buffer "*a+*") > (inferior-apl-mode) > (pop-to-buffer "*a+*")) > Is this (use of let) the appropriate way? Yes, that looks fine. >> > The second point is that iso-latin-1 just works by saying so-to-speak >> > "Not-UTF" but it is obviously wrong. >> Yes, if it works, it's probably by accident. It might be preferable to >> create a proper `apl' coding-system (use define-charset and then >> define-coding-system). > Thanks. I was looking for such functions. I will of course have to study > code that uses them. Any suggestions where to start? I think mule-conf.el is a good starting place. Stefan