[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cgreek:00021] Re: More tlg utilities
- To: cgreek@xxxxxxxx
- Subject: [cgreek:00021] Re: More tlg utilities
- From: Robin Smith <rasmith@xxxxxxxxxxxxxxxxxx>
- Date: Sat, 22 Jul 2000 11:21:57 -0500
- In-reply-to: Your message of "Sun, 23 Jul 2000 00:22:22 +0900."<20000723002222V.skawazoe@bun.kyoto-u.ac.jp>
- Reply-to: cgreek@xxxxxxxx
>>>>> "Shinsuke" == Shinsuke Kawazoe <skawazoe@xxxxxxxxxxxxxxxxx> writes:
Shinsuke> Thank you for your latest version. But after the install
Shinsuke> of you utilities, I got a following warning concerning
Shinsuke> you tlg-util.el;
Shinsuke> Error in init file: error: "Symbol nil may not be
Shinsuke> buffer-local"
Shinsuke> Is this particular to Meadow again?
My stupid mistake: forgot to quote a symbol. In tlg-util.el,
change this:
(make-variable-buffer-local tlg-level-n-name)
to this:
(make-variable-buffer-local 'tlg-level-n-name)
and do the same thing for the other tlg-level-<?>-name variables.
A quick command would be M-% with string "buffer-local tlg-level"
and replacement string "buffer-local 'tlg-level". (Just watch to
make sure they're all in the right places).
Shinsuke> And when I used Takahasi's original tlg2emacs.exe on
Shinsuke> your own cgreek-util.el, I found it didn't work well
Shinsuke> because of a slight difference concerning "defun
Shinsuke> cgreek-find-file-tlg";
Shinsuke> Your cgreek-util.el (in lines 992-997);
Shinsuke> (shell-command (format "%s %s %d"
Shinsuke> cgreek-tlg-converter-program filename (charset-id
Shinsuke> 'cgreek)) t))
Shinsuke> Takahasi's original;
Shinsuke> (shell-command (format "%s -l %d %s"
Shinsuke> cgreek-tlg-converter-program (charset-id 'cgreek)
Shinsuke> filename) t))
I think these may be reversed. Takahashi's program takes either one
or two command line arguments; the first is a filename and the second
is a charset id. That corresponds to the first text above. My
tlgcites2emacs also understands "-l <charset>" and "-f <filename>"
(and a lot else). In more recent versions, I changed the command line
parser to (as I hope) understand Takahashi's syntax: if it gets just
two command line arguments (neither of which starts with "-"), then it
treats the first as a filename and the second as a charset value. Since
mine is supposed to work as a substitute for tlg2emacs, try returning
to Takahashi's format, which (again, I hope) should work eith either.
On the subject of Meadow: does anyone have any opinions about whether
command- line quoting conventions are the source of the trouble with
tlg-open-single-work? I'm not familiar with DOS/Windows.
Robin Smith
Department of Philosophy rasmith@xxxxxxxx
Texas A&M University Voice (409) 845-5696
College Station, TX 77843-4237 FAX (409) 845-0458