emacs-devel
[Top][All Lists]
Advanced

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

Re: aplus mode


From: Stefan Monnier
Subject: Re: aplus mode
Date: Sun, 19 Aug 2012 08:27:32 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux)

> 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



reply via email to

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