At 12:59 PM 11/15/00 -0500, D'Elia, Kevin wrote:
>Hello,
>
> I had sent this to the author, without any response, and was
>wondering if anyone else has encountered this or has a solution. Thanks in
>advance to all who respond...
>
>> I am having a problem which I think is being caused by this function
>> in jde-wiz.el. On line 151, you access the sort-fold-case variable. This
>> same variable is used by the lisp function 'sort-lines' in sort.el. I am
>> seeing the following behavior: jde-sort-imports works fine, but when I
>> try and sort lines using M-x sort-lines, I get the following error:
>>
>> Symbol's value as variable is void: sort-fold-case
>>
>> which is indeed the case, as C-h v sort-fold-case says. Can you help? I
>> do need, on occasion, to sort lines other than import statements, so the
>> lack of this functionality is a slight problem for me.
>>
>> Thanks, and if more information is needed, please let me know...
The problem is that jde-sort-imports temporarily defines sort-fold-case
just before invoking sort-lines. Invoking sort-lines causes the sort
package to be loaded. Since sort-fold-case is already defined, the sort
package does not bother to define it. Then sort-lines returns to
jde-sort-lines which proceeds to destroy the temporary copy of
sort-fold-case. The next release (2.2.6beta4) fixes the problem by having
jde-sort-lines require the sort package before invoking sort-lines.
Meanwhile, you should be able to cure it by putting
(require 'sort)
in your .emacs file.
- Paul