#1 Capitalization problem with jmacs

Marek Grac

Submitted by: Bob McCracken

I have Joe-2.8 and Joe-2.9.4. In the "jmacsrc" in both
of these versions
the command list for capitalizing a word (with ESC-C)
is given thus:

"tr [A-Z] [a-z]",rtn,rtarw,markk,filt,
"tr [a-z] [A-Z]",rtn,nextword ^[ c
Capitalize word

And in both versions this capitalizes the entire file,
beginning to end.
There seems to be nothing in the above commands that
would make that
happen, but it does. (The other uppercase/lowercase
functions work fine.)

In version 2.8 I replaced it with the following, which
works with that
version, but not with 2.9.4:

"tr [a-z] [A-Z]",rtn,nextword ^[ c
Capitalize word

With 2.9.4 the cursor motions occur, but the first
letter remains in
lowercase. And yet when I exit jmacs, having done
nothing but test the
capitalization, I get asked if I want to lose my
changes, as if a
change of case had really happened.

Because, as I said, the other case-related commands
work fine, I have
to assume there is some rather obscure bug in the
program code itself,
something that's been there since at least 2.8 and
perhaps earlier.

Thanks for any help,

Bob McCracken


  • Marek Grac

    Marek Grac - 2001-04-02

    Logged In: YES

    Problem was in macro isalnum_ (defined in utils.h or
    zstr.h). Now there is no macro but function and it works

  • Marek Grac

    Marek Grac - 2001-04-02
    • status: open --> closed

Log in to post a comment.