From: Rustom Mody <rustompmody@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: aplus mode
Date: Tue, 14 Aug 2012 13:01:04 +0530 [thread overview]
Message-ID: <CAJ+Teodt2ZHYGpEizj_Dk8gtqwLCjyut71_g0DRhffcbJ3QjPQ@mail.gmail.com> (raw)
In-Reply-To: <jwv7gt6cu3n.fsf-monnier+emacs@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 2633 bytes --]
On Sat, Aug 11, 2012 at 3:27 AM, Stefan Monnier <monnier@iro.umontreal.ca>wrote:
> > Aplus (a gnu/linux APL variant) has been one of the languages that
> > runs only on XEmacs but not GNU-Emacs. Recently XEmacs has been
> > giving some trouble compiling under Debian (it seems).
> > I have hacked up something which makes Aplus run with GNU-Emacs:
> > http://www.emacswiki.org/emacs/AplInDebian
> > Is this a suitable forum for discussions towards cleaning up that code?
>
> Sure. Especially if you intend to include it in GNU ELPA.
> Since Markus has already signed the needed copyright paperwork,
> and it doesn't look like the code has seen many external contributions,
> inclusion in GNU ELPA should be fairly easy.
>
> As for cleaning up the code, I suggest you start by defining a major
> mode for APL code. See sample-mode.el for an example.
> This mode would most likely enable the apl input method by default.
>
Ive defined inferior-apl-mode by copying from cmu-scheme like this:
(define-derived-mode inferior-apl-mode comint-mode "Inferior APL" ....
and then removing most of the stuff to keep it still working.
The current version at http://www.emacswiki.org/emacs/inferior-apl.el
is a still further cleaned up and cut-down version.
Of course the mode-ly stuff should be cleaned up -- I dont understand the
scoping rules for buffer-local variables.
I think however that there are more immediate questions before that.
The code was up there on the wiki and working as best as I knew until
someone informed me that it was not. The immediate hack I found was that
starting emacs with
LANG=C makes it again work. Evidently when the OS moved from defaulting to
latin-1 to utf-8 this broke.
Trying to make an 'inside-emacs' version of the same hack I discovered that
the following does the trick of removing the need for LANG=C.
(setq coding-system-for-write 'iso-latin-1)
(setq coding-system-for-read 'iso-latin-1)
Obviously this is not a proper solution.
Firstly these variables should not be globally assigned. Whats the best
way of scoping these assignments or should some other variables be used I
am not sure.
The second point is that iso-latin-1 just works by saying so-to-speak
"Not-UTF" but it is obviously wrong.
So in short: How do I say "latinish" without saying latin-1. And where
(scope) to say it?
Perhaps the best solution would be to define a new Aplus charset.
The tables are already there in Markus code. Maybe just some tying some
ends together required? Any pointers/docs on how one goes about converting
a restricted-charset-to-unicode data-table into an emacs charset?
Thanks
Rusi
[-- Attachment #2: Type: text/html, Size: 3333 bytes --]
next prev parent reply other threads:[~2012-08-14 7:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-27 7:48 aplus mode Rustom Mody
2012-07-27 12:38 ` Rustom Mody
2012-08-10 21:57 ` Stefan Monnier
2012-08-14 7:31 ` Rustom Mody [this message]
2012-08-14 14:47 ` Stefan Monnier
2012-08-16 17:25 ` Rustom Mody
2012-08-19 12:27 ` Stefan Monnier
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAJ+Teodt2ZHYGpEizj_Dk8gtqwLCjyut71_g0DRhffcbJ3QjPQ@mail.gmail.com \
--to=rustompmody@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).