|
List Info
Thread: Carbon port emacs-unicode-2 build problem under MacOSX
|
|
| Carbon port emacs-unicode-2 build
problem under MacOSX |
  China |
2007-11-06 06:02:20 |
My last successfully build was on May 26. Yesterday I gave
it another
try and found something.
I reported twice before about failing owing to undefined
symbols in
macterm.c. The problem is from new
mac_set_unicode_keystroke_event
introduced by June 7 checkin (revision 1.47.2.56, Wed Jun 7
18:04:51
2006 UTC).
The code:
,----
| static void
| mac_set_unicode_keystroke_event (code, buf)
| UniChar code;
| struct input_event *buf;
| {
| int charset_id, c1, c2;
|
| if (code < 0x80)
| {
| buf->kind = ASCII_KEYSTROKE_EVENT;
| buf->code = code;
| }
| else if (code < 0x100)
| {
| if (code < 0xA0)
| charset_id = CHARSET_8_BIT_CONTROL;
| else
| charset_id = charset_latin_iso8859_1;
| buf->kind = MULTIBYTE_CHAR_KEYSTROKE_EVENT;
| buf->code = MAKE_CHAR (charset_id, code, 0);
| }
| else
| {
| if (code < 0x2500)
| charset_id = charset_mule_unicode_0100_24ff,
| code -= 0x100;
| else if (code < 0x33FF)
| charset_id = charset_mule_unicode_2500_33ff,
| code -= 0x2500;
| else if (code >= 0xE000)
| charset_id = charset_mule_unicode_e000_ffff,
| code -= 0xE000;
| c1 = (code / 96) + 32, c2 = (code % 96) + 32;
| buf->kind = MULTIBYTE_CHAR_KEYSTROKE_EVENT;
| buf->code = MAKE_CHAR (charset_id, c1, c2);
| }
| }
`----
CHARSET_8_BIT_CONTROL, charset_mule_unicode_0100_24ff,
charset_mule_2500_33ff, charset_mule_unicode_e000_ffff used
here are
defined in any place.
I reverted this funciton to previous as:
,----
| static void
| mac_set_unicode_keystroke_event (code, buf)
| UniChar code;
| struct input_event *buf;
| {
| int charset_id, c1, c2;
|
| if (code < 0x80)
| buf->kind = ASCII_KEYSTROKE_EVENT;
| else
| buf->kind = MULTIBYTE_CHAR_KEYSTROKE_EVENT;
| buf->code = code;
| }
`----
Now macterm.c can be built.
Another error (for building latest cvs source) is
"Undefined symbols:
_res_init_9". I googled and found a workaround, that's
do
,----
| export LIBS=-lresolv
`----
before "make bootstrap".
(Original URL:
http://groups.google.com.ua/group/gnu.emacs.
bug/msg/70a2759b8d6069e1 )
Thus I can build emacs-unicode-2 successfully.
Emacs running from terminal works ok. But Emacs.app (running
from
Finder) is not usable. For every keystroke (keyboard input
or mouse
click) I have to wait for several minutes. I think it's
owing to my
brutal revert of mac_set_unicode_keystrok_event which makes
do_keystrokes dysfunction.
Another possibility is workaround of "export
LIBS=-lresolv". I have no
idea. Or owing to merge of multi-tty code?
>From reading this group (gmane.emacs.devel) I know
Carbon port is
treated as dead (really?). Even though I think I should
report my
finding in case someone is willing to try to get it work
again.
If Carbon port is treated as dead, and emacs-app (Cocoa
port,
http://emacs-app.sf.net)
works well, is it possible that emacs-app be
merged (as a branch in cvs or git repo) thus we MacOSX users
can have an
evolving Emacs?
Sorry for disturbing everybody.
--
Homo sum, humani being nil a me alienum puto
_______________________________________________
Emacs-devel mailing list
Emacs-devel gnu.org
htt
p://lists.gnu.org/mailman/listinfo/emacs-devel
|
|
| Re: Carbon port emacs-unicode-2 build
problem under MacOSX |
  China |
2007-11-06 06:14:00 |
*On Tue, 06 Nov 2007 20:02:20 +0800
* Also spracht CHENG Gao <chenggao gmail.com>:
> Emacs running from terminal works ok. But Emacs.app
(running from
> Finder) is not usable. For every keystroke (keyboard
input or mouse
> click) I have to wait for several minutes. I think it's
owing to my
s/minutes/seconds/
--
Nosce te ipsum
_______________________________________________
Emacs-devel mailing list
Emacs-devel gnu.org
htt
p://lists.gnu.org/mailman/listinfo/emacs-devel
|
|
| Re: Carbon port emacs-unicode-2 build
problem under MacOSX |

|
2007-11-06 06:29:56 |
In article <m21wb3vayb.fsf news.cyberhut.org>,
CHENG Gao <chenggao gmail.com> writes:
> If Carbon port is treated as dead, and emacs-app (Cocoa
port,
> http://emacs-app.sf.net)
works well, is it possible that emacs-app be
> merged (as a branch in cvs or git repo) thus we MacOSX
users can have an
> evolving Emacs?
To my understanding, Carbon port should be treated as dead,
and the merging of Cocoa port into the trunk (or to
emacs-unicode-2 branch) isn't that far.
"Adrian Robert" <adrian.b.robert gmail.com> wrote:
> I updated Emacs.app (Mac Cocoa port) to run under the
multi-tty
> changes as merged into the unicode-2 branch, however
before releasing
> I need to solve one remaining problem: when run as -nw,
the default
> face is set to green foreground, yellow background.
(If I go to
> customize-face it actually says "green" and
"yellow".) This occurs
> with emacs -Q -nw and is new -- unicode-2 CVS before
the merge
> produces a black-on-white default face.
> Someone suggested something in my terminal settings
caused the
> problem, though I don't have any customization (moved
aside .cshrc).
> However the Apple terminal itself may be the cause? If
I run under an
> xterm the problem goes away, but I'm in black-and-white
mode. Setting
> the TERM variable under Apple terminal to various
values likewise
> either gives green/yellow or full b-&-w mode.
> Anyway if anyone has any suggestions as to where to
start hunting, I
> would be grateful.
> Another question -- is there any way to ask the new
emacsclient to
> open a frame in the default windowing terminal? There
is the
> --display argument but that seems to force X. What
about adding
> --terminal=zz, with zz='default' meaning $DISPLAY env
variable (X), or
> normal GUI display on Mac or Windows? Or simply
"-gui" as a synonym
> for --terminal=default?
> Finally, is basic use of multi-tty from inside emacs
documented
> anywhere? I read about some functions in the NEWS but
could not find
> out how to get a list of the available terminal names
to use for 'tty'
> arguments, or how to specify displays in non-X
environments. E.g.,
> I'd like to throw up a GUI window from inside a -nw
session.
> thanks,
> Adrian
---
Kenichi Handa
handa ni.aist.go.jp
_______________________________________________
Emacs-devel mailing list
Emacs-devel gnu.org
htt
p://lists.gnu.org/mailman/listinfo/emacs-devel
|
|
| Re: Carbon port emacs-unicode-2 build
problem under MacOSX |
  United Kingdom |
2007-11-06 06:34:54 |
CHENG Gao wrote:
> Emacs running from terminal works ok. But Emacs.app
(running from
> Finder) is not usable. For every keystroke (keyboard
input or mouse
> click) I have to wait for several minutes. I think it's
owing to my
> brutal revert of mac_set_unicode_keystrok_event which
makes
> do_keystrokes dysfunction.
> Another possibility is workaround of "export
LIBS=-lresolv". I have no
> idea. Or owing to merge of multi-tty code?
>
Definitely the merge of multi-tty code, the same problem has
been
reported in the trunk multiple times.
macterm.c is missing a call to add_keyboard_wait_descriptor
(see xterm.c
and w32term.c), which was necessary to get input working at
all on
Windows after the multi-tty merge. Despite this being
pointed out
several times, noone who is using a Mac has tried adding
this call and
reported back whether it solves the problem.
I think reverting the change is correct, as the old mule
based utf
codings are no longer used internally, but it might be a
good idea to
find what the change was in the trunk that caused this code
to be
merged, as there may be something there that should be
changed in the
unicode branch as well.
_______________________________________________
Emacs-devel mailing list
Emacs-devel gnu.org
htt
p://lists.gnu.org/mailman/listinfo/emacs-devel
|
|
| Re: Carbon port emacs-unicode-2 build
problem under MacOSX |
  China |
2007-11-06 07:58:01 |
*On Tue, 06 Nov 2007 12:34:54 +0000
* Also sprach Jason Rumney <jasonr gnu.org>:
> Definitely the merge of multi-tty code, the same
problem has been
> reported in the trunk multiple times. macterm.c is
missing a call to
> add_keyboard_wait_descriptor (see xterm.c and
w32term.c), which was
> necessary to get input working at all on Windows after
the multi-tty
> merge. Despite this being pointed out several times,
noone who is using
> a Mac has tried adding this call and reported back
whether it solves the
> problem.
>
> I think reverting the change is correct, as the old
mule based utf
> codings are no longer used internally, but it might be
a good idea to
> find what the change was in the trunk that caused this
code to be
> merged, as there may be something there that should be
changed in the
> unicode branch as well.
I read discussions about adding of this call into macterm.c
(mac_term_init). From the discussion I know Ted Zlatanov
tried this and
it did not work. I tried this and built twice. It remains
the
same. I must say I dont know where to add. I tried
,----
| add_keyboard_wait_descriptor(0)
`----
and
,----
| add_keyboard_wait_descriptor(1)
`----
before
,----
| #if USE_CG_DRAWING
| mac_init_fringe (terminal->rif);
| #endif
`----
(I imagined this position after reading w32term.c).
--
Totus mundus agit histrionem
_______________________________________________
Emacs-devel mailing list
Emacs-devel gnu.org
htt
p://lists.gnu.org/mailman/listinfo/emacs-devel
|
|
| Re: Carbon port emacs-unicode-2 build
problem under MacOSX |
  China |
2007-11-06 07:52:36 |
*On Tue, 06 Nov 2007 21:29:56 +0900
* Also sprach Kenichi Handa <handa ni.aist.go.jp>:
> To my understanding, Carbon port should be treated as
dead, and the
> merging of Cocoa port into the trunk (or to
emacs-unicode-2 branch)
> isn't that far.
I read the message you refered to, that's why I mentioned
merge of Cocoa
port. Till now there is no OFFICIAL confirmation of the
said/hoped/dreamed merge.
--
Nosce te ipsum
_______________________________________________
Emacs-devel mailing list
Emacs-devel gnu.org
htt
p://lists.gnu.org/mailman/listinfo/emacs-devel
|
|
| Re: Carbon port emacs-unicode-2 build
problem under MacOSX |
  United States |
2007-11-06 13:26:53 |
On Tue, 06 Nov 2007 12:34:54 +0000 Jason Rumney
<jasonr gnu.org> wrote:
JR> CHENG Gao wrote:
>> Emacs running from terminal works ok. But Emacs.app
(running from
>> Finder) is not usable. For every keystroke
(keyboard input or mouse
>> click) I have to wait for several minutes. I think
it's owing to my
>> brutal revert of mac_set_unicode_keystrok_event
which makes
>> do_keystrokes dysfunction.
>> Another possibility is workaround of "export
LIBS=-lresolv". I have no
>> idea. Or owing to merge of multi-tty code?
>>
JR> Definitely the merge of multi-tty code, the same
problem has been
JR> reported in the trunk multiple times.
JR> macterm.c is missing a call to
add_keyboard_wait_descriptor (see xterm.c
JR> and w32term.c), which was necessary to get input
working at all on
JR> Windows after the multi-tty merge. Despite this being
pointed out
JR> several times, noone who is using a Mac has tried
adding this call and
JR> reported back whether it solves the problem.
You must have missed my messages. I did this several times
and reported
that a simple call to add_keyboard_wait_descriptor was not
the
solution. I've tested on Mac OS 10.4 and 10.5.
JR> I think reverting the change is correct, as the old
mule based utf
JR> codings are no longer used internally, but it might
be a good idea to
JR> find what the change was in the trunk that caused
this code to be
JR> merged, as there may be something there that should
be changed in the
JR> unicode branch as well.
After trying the Cocoa port, it's actually much better than
the Carbon
port, and Carbon is deprecated on MacOS according to Apple
(10.5
compilations report deprecated symbols for many Carbon
functions). I
think merging the Cocoa port would be a good thing.
Unfortunately it
doesn't help those who want to track CVS with the Emacs
build today, and
I don't know how hard it will be. Adrian Robert, the
maintainer of the
Cocoa port at http://emacs-app.so
urceforge.net/, is CCed here in case he
wants to give his opinion.
Ted
_______________________________________________
Emacs-devel mailing list
Emacs-devel gnu.org
htt
p://lists.gnu.org/mailman/listinfo/emacs-devel
|
|
| Re: Carbon port emacs-unicode-2 build
problem under MacOSX |
  United States |
2007-11-06 13:28:54 |
On Tue, 06 Nov 2007 21:29:56 +0900 Kenichi Handa
<handa ni.aist.go.jp> wrote:
KH> In article <m21wb3vayb.fsf news.cyberhut.org>,
CHENG Gao <chenggao gmail.com> writes:
>> If Carbon port is treated as dead, and emacs-app
(Cocoa port,
>> http://emacs-app.sf.net)
works well, is it possible that emacs-app be
>> merged (as a branch in cvs or git repo) thus we
MacOSX users can have an
>> evolving Emacs?
KH> To my understanding, Carbon port should be treated as
dead,
KH> and the merging of Cocoa port into the trunk (or to
KH> emacs-unicode-2 branch) isn't that far.
Unfortunately meanwhile the Emacs build on MacOS X
(--with-carbon) will
keep generating bug reports about the input problems. I've
seen 8 since
August, and I'm sure many more users didn't bother filing a
bug report.
Ted
_______________________________________________
Emacs-devel mailing list
Emacs-devel gnu.org
htt
p://lists.gnu.org/mailman/listinfo/emacs-devel
|
|
| Re: Carbon port emacs-unicode-2 build
problem under MacOSX |
  United States |
2007-11-06 17:27:42 |
Ted Zlatanov wrote:
> Unfortunately meanwhile the Emacs build on MacOS X
(--with-carbon) will
> keep generating bug reports about the input problems.
I've seen 8 since
> August, and I'm sure many more users didn't bother
filing a bug report.
I'm going to change configure to warn that the CVS trunk Mac
Carbon
port is unsupported.
_______________________________________________
Emacs-devel mailing list
Emacs-devel gnu.org
htt
p://lists.gnu.org/mailman/listinfo/emacs-devel
|
|
| Re: Carbon port emacs-unicode-2 build
problem under MacOSX |
  Japan |
2007-11-06 22:13:12 |
>>>>> On Tue, 06 Nov 2007 13:26:53 -0600, Ted
Zlatanov <tzz lifelogs.com> said:
> After trying the Cocoa port, it's actually much better
than the
> Carbon port,
Could you precisely describe in what aspects you think it's
"much
better"?
> and Carbon is deprecated on MacOS according to Apple
If it were really deprecated, Apple wouldn't have added any
new
frameworks to Carbon in Leopard.
> (10.5 compilations report deprecated symbols for many
Carbon
> functions).
Did that cause any real problems?
I'm asking because they are related not only to the
effectively
unmaintained Carbon port for Emacs 23 but also to the
maintained one
for Emacs 22.
YAMAMOTO Mitsuharu
mituharu math.s.chiba-u.ac.jp
_______________________________________________
Emacs-devel mailing list
Emacs-devel gnu.org
htt
p://lists.gnu.org/mailman/listinfo/emacs-devel
|
|
|
|