Discussion:
[UnixOS2] EMACS
Christian Hennecke
2004-04-30 11:17:05 UTC
Permalink
Should I expect to find a site-start.el in my build?
I think so. If it's not there, create one.
Where do I put it?
In the "lisp" subdirectory.
Is there a way to change the font of the editor?
See
(font . "5.System VIO")
in the section I mentioned before.
Was the formatting OK in your msg?
It didn't look right to me - maybe it got line-wrapped or somesuch...
Yes, the formatting got mixed up. Take a look at README.OS2 from Emacs
20.6 for OS/2, chapters "Customizing GNU Emacs" and "Choosing a PM
font". This file contains a wealth of information.
Is there an explanation of the format or any other documentation about
site-start.el? I have a couple of books on EMACS and neither mentions it,
and I'm not familiar enough with EMACS itself to know where to find such
info.
To my knowledge, all those things can also be placed in .emacs.
Site-start.el was intended to contain system-wide customizations, while
.emacs is for a specific user and resides in his/her home directory. As
for documentation of the format, it's all written in ELISP. The Emacs
documentation deals with that.

Christian Hennecke
John Poltorak
2004-04-30 13:44:28 UTC
Permalink
Post by Christian Hennecke
Was the formatting OK in your msg?
It didn't look right to me - maybe it got line-wrapped or somesuch...
Yes, the formatting got mixed up. Take a look at README.OS2 from Emacs
20.6 for OS/2, chapters "Customizing GNU Emacs" and "Choosing a PM
font". This file contains a wealth of information.
It looks as though it doesn't work in 20.7 :-(...

The ports seem to have developed seperately. It would be nice to try and
consolidate them, but I don't know if either porting is still using OS/2.
Post by Christian Hennecke
Christian Hennecke
--
John
S***@t-online.de
2004-04-30 10:39:43 UTC
Permalink
Hi,
You need to adapt site-start.el or something like that.
Should I expect to find a site-start.el in my build?
In a clean build probably not. EM's distribution of emacs-19.33 contains
a pretty good one with nice comments which can be used.
Let's see... I
(if (eq window-system 'pm)
(setq default-frame-alist
(append '((altgr-modifier . meta) ; AltGr (and AltCar)
generate M-
(shortcuts . (alt-f4)) ; Disable all shortcuts but
Alt+F4
;; (alt-modifier . alt)
(alt-modifier . meta)
(width . 100) (height . 40)
;; (bottom . 10) (left . 140)
(font . "5.System VIO")
;; (menu-font . "2.System VIO")
(menu-font . "9.WarpSans")) ; Use small font for
menus
default-frame-alist)))
The second last line changes the menu font to a 9 pt WarpSans font.
(i.e. that's line with (menu-font . "fontname) in it.
Is there a way to change the font of the editor?
That's what (font . "fontname") is doing. Notice that this only
works by restarting the server. There used to be a way to change
the font on the fly, but this somehow seems to be broken in OS/2
versions of 20.x. Maybe it's sufficient to "load" the appropriate
lisp file to get that functionality back, but so far I was to lazy
to investigate.

Regards,
Stefan
Masaru Nomiya
2004-05-01 09:50:02 UTC
Permalink
Hello,

Sorry for late response.

In the Message;

Subject : [UnixOS2] EMACS
Message-ID : <***@warpix.org>
Date & Time: Thu, 29 Apr 2004 20:10:48 +0100

[John] == John Poltorak <***@warpix.org> has written:

John> What I'd like to know is how do I bring the app up as a PM app. It comes
John> up as a text mode app when I run 'emacs -nw'.

At ../emacs-20.7/src, execute

make emacspm.exe

Then, you may get PM version of Emacs.

---
Masaru Nomiya mail-to: ***@ttmy.ne.jp

"Bill! You married with Computers.
Not with Me!"
"No..., with money."
John Poltorak
2004-05-01 14:07:13 UTC
Permalink
Post by Masaru Nomiya
Hello,
Sorry for late response.
That's OK - I thought you might have disappeared.
Post by Masaru Nomiya
In the Message;
Subject : [UnixOS2] EMACS
Date & Time: Thu, 29 Apr 2004 20:10:48 +0100
John> What I'd like to know is how do I bring the app up as a PM app. It comes
John> up as a text mode app when I run 'emacs -nw'.
At ../emacs-20.7/src, execute
make emacspm.exe
Then, you may get PM version of Emacs.
It seems as though it builds as a PM app anyway. It only came up in text
mode because the batch file I use started it with '-nw'. If I remove that
it runs as a PM app.
Post by Masaru Nomiya
---
"Bill! You married with Computers.
Not with Me!"
"No..., with money."
--
John
Masaru Nomiya
2004-05-01 10:23:48 UTC
Permalink
Hello,

In the Message;

Subject : Re: [UnixOS2] EMACS
Message-ID : <***@warpix.org>
Date & Time: Thu, 29 Apr 2004 21:38:14 +0100

[John] == John Poltorak <***@warpix.org> has written:

John> Any idea on how I can use a different font?

John> I have a large courier font and would prefer a small System Vio font if I
John> can have one -

You must make 2 files in your HOME directory,ie. .XDefaults and FONTSET.OS2.

In your case, is .XDefaults like this?

---------------------------------------------------------------------
*verticalScrollBars: right
Emacs.Font: fontset-ETL16
*Fontset-0: -*-fixed-medium-r-normal-*-16-*-*-*-*-*-fontset-ETL16, \
ascii:-os2-ETL Latin1-medium-r-normal-*-16-*-iso8859-1, \
*Fontset-1: -*-fixed-medium-r-normal-*-16-*-*-*-*-*-fontset-MIN16, \
ascii:-os2-MIN-medium-r-normal-*-16-*-*-*-*-*-iso8859-1, \
---------------------------------------------------------------------

Maybe, your OS/2 doe sn't contain MIN16....

But, don't forget to insert 1st line!

John> I like to get as much on the screen as possible.

You can this with FONTSET.OS2. Mine is as follows;

-------------------------------------------------------------------

-Misc-Fixed-Medium-R-Normal--16-120-100-100-M-80-BITMAP.8x16-0 g:/usr/local/fonts/bitmap16.mfn
-Misc-Fixed-Medium-R-Normal--18-130-100-100-M-100-BITMAP.8x16-0 g:/usr/local/fonts/bitmap18.mfn
-Misc-Fixed-Medium-R-Normal--16-150-75-75-C-160-JISX0212.1990-0 g:/usr/local/fonts/jksp16.mfn
-ETL-fixed-medium-r-normal--16-160-72-72-C-80-ISO8859-5 g:/usr/local/fonts/cyr16.etl.mfn
-Daewoo-Mincho-Medium-R-Normal--16-120-100-100-C-160-KSC5601.1987-0 g:/usr/local/fonts/hanglm16.mfn
-ETL-Fixed-Medium-R-Normal--16-160-72-72-C-80-MuleIPA-1 g:/usr/local/fonts/ipa16-etl.mfn
-ETen-Fixed-Medium-R-Normal--16-150-75-75-C-160-Big5.ETen-0 g:/usr/local/fonts/taipei16.mfn
-GuoBiao-Song-Medium-R-Normal--16-160-72-72-c-160-GB2312.80&GB8565.88-0 g:/usr/local/fonts/guob16.mfn
-ETL-Fixed-Medium-R-Normal--16-160-72-72-C-80-ISO8859-8 g:/usr/local/fonts/heb16-etl.mfn
-ETL-Fixed-Medium-R-Normal--16-160-72-72-C-80-MuleArabic-0 g:/usr/local/fonts/arab16-0-etl.mfn
-ETL-Fixed-Medium-R-Normal--16-160-72-72-C-80-MuleArabic-1 g:/usr/local/fonts/arab16-1-etl.mfn
-ETL-Fixed-Medium-R-Normal--16-160-72-72-C-160-MuleArabic-2 g:/usr/local/fonts/arab16-2-etl.mfn
-misc-fixed-medium-r-normal--16-160-72-72-m-80-MuleLao-1 g:/usr/local/fonts/lao16-mule.mfn
-TibMdXA-fixed-medium-r-normal--16-160-72-72-m-160-MuleTibetan-0 g:/usr/local/fonts/tib16-mule.mfn
-ETL-Fixed-Medium-R-Normal--16-160-72-72-C-80-VISCII1.1-1 g:/usr/local/fonts/visc16-etl.mfn
-misc-fixed-medium-r-normal--16-160-72-72-m-80-tis620.2529-1 g:/usr/local/fonts/thai16.mfn
-ETL-Fixed-Medium-R-Normal--16-160-72-72-C-80-ISO8859-7 g:/usr/local/fonts/grk16-etl.mfn
-Admas-Ethiomx16f-Medium-R-Normal--16-150-100-100-M-160-Ethiopic-Unicode g:/usr/local/fonts/ethio16.mfn
-ETL-Fixed-Medium-R-Normal--16-160-72-72-C-80-ISO8859-2 g:/usr/local/fonts/lt2-16-etl.mfn
-Misc-Fixed-Medium-R-Normal--16-160-72-72-C-80-MuleIndian-1 g:/usr/local/fonts/ind1c16-mule.mfn
-gnu-unifont-medium-r-normal--16-160-75-75-c-80-iso10646-1 g:/usr/local/fonts/unifont.mfn
-Misc-Fixed-Medium-R-Normal--16-150-75-75-C-160-JISX0213.2000-1 g:/usr/local/fonts/jiskan16-2000-1.mfn
-Misc-Fixed-Medium-R-Normal--16-150-75-75-C-160-JISX0213.2000-2 g:/usr/local/fonts/jiskan16-2000-2.mfn

----------------------------------------------------------------------------

As you might know, you must use MFN fonts, not BDF fonts.
You can get MFN fonts by bdf2mfn.exe, which was built with emacs.exe.
See ../emacs-20.7/lib-src, you will find bdf2mfn.exe.
And, bdf2mnf.exe creates FONTSET.OS2 when you convert BDF Font to MFN
font.

HTHY,

---
Masaru Nomiya mail-to: ***@ttmy.ne.jp

"No Windows, no gains!" ..... "Why, I am wrong?"

-- Bill --
John Poltorak
2004-05-01 14:23:15 UTC
Permalink
Post by Masaru Nomiya
Hello,
In the Message;
Subject : Re: [UnixOS2] EMACS
Date & Time: Thu, 29 Apr 2004 21:38:14 +0100
John> Any idea on how I can use a different font?
John> I have a large courier font and would prefer a small System Vio font if I
John> can have one -
You must make 2 files in your HOME directory,ie. .XDefaults and FONTSET.OS2.
Many thanks. I've added those two files and have a font that I like now
which is nice and small so that I can pack a lot of lines on the screen.

I really need to spend some time on learning how to use Emacs now.

Is there a preferable place to report any problems?
Post by Masaru Nomiya
HTHY,
---
"No Windows, no gains!" ..... "Why, I am wrong?"
-- Bill --
--
John
Masaru Nomiya
2004-05-02 13:30:31 UTC
Permalink
Hello,

In the Message;

Subject : Re: [UnixOS2] EMACS
Message-ID : <***@warpix.org>
Date & Time: Sat, 1 May 2004 15:07:13 +0100

[John] == John Poltorak <***@warpix.org> has written:

Me>> Sorry for late response.

John> That's OK - I thought you might have disappeared.

No. :-)
But, I haven't got spare time as before at the moment.

In the Message;

Subject : Re: [UnixOS2] Re: EMACS
Message-ID : <***@warpix.org>
Date & Time: Sat, 1 May 2004 15:23:15 +0100

[John] == John Poltorak <***@warpix.org> has written:

John> Many thanks. I've added those two files and have a font that I like now
John> which is nice and small so that I can pack a lot of lines on the screen.

That's good!

John> I really need to spend some time on learning how to use Emacs now.

Yes, Emacs do enrich our "computing life".

John> Is there a preferable place to report any problems?

Problem? os2-emacs-ja ML is the best place, but it's inactive for a
long time...
I'm joining Japanese Emacs related ML, and it's OK for me.
Nevertheless, there exist some problems, but .I think, they aren't so
severe.

BTW, If you find out any problem, post it here.

---
Masaru Nomiya mail-to: ***@ttmy.ne.jp

"Bill! You married with Computers.
Not with Me!"
"No..., with money."
Masaru Nomiya
2004-05-02 13:42:08 UTC
Permalink
Hello,

Sorry, I have fogoten to inform you of important advice.

You must add below sentences in your .emacs.

;; For OS/2
(setq os2-process-start-session t)
(setq os2-process-connection-type nil)

Regards,

---
Masaru Nomiya mail-to: ***@ttmy.ne.jp

"No Windows, no gains!" ..... "Why, I am wrong?"

-- Bill --

Loading...