At 11:03 AM 11/29/00 +0100, you wrote:
>I encountered the same problem:  `custom-set-default' is not defined in

Richard Stallman added this function to the Emacs version of custom after I
complained that custom does not support customization of buffer local
variables. The XEmacs team have not thus far provided any similar
functionality. So I do not use this function. David Ponce, who uses Emacs,
has been using custom-set-default in his contributions, which is how this
has become a problem. The latest release does two things to solve the
problem. It changes all instances of custom-set-default in David's code to
set-default and, to avoid this problem in the future, it checks whether
custom-set-default is bound and if not, it binds custom-set-default as an
alias for set-default.

- Paul

>`custom.el' or any other package of our installation of XEmacs  (XEmacs
>21.1.7). Is it a standard part of XEmacs? If not, where can I get the
>corresponding package?  (GNU Emacs's version of custom.el does contain
>the definition of custom-set-default.)
>
>Georg
>
>
>"Schewe, Jon (MN65)" wrote:
>> 
>> I just decided to give this a try and when I tried to load the elib file I
>> get:
>> Load error for /home/jschewe/elib/jde-import-org.el:
>> (void-function custom-set-default)
>> 
>> I'm using XEmacs 21.1.12.
>> 
>> -----Original Message-----
>> From: David Ponce [mailto:[EMAIL PROTECTED]]
>> Sent: Friday, November 17, 2000 5:59 AM
>> To: jde
>> Cc: david
>> Subject: Re: FW: Improved command to organize import statements
>> 
>> Hello Jeff,
>> 
>> Thank you again for your feedback :-)
>> 
>> I made a new version jde-import-org.el attached here.
>> 
>> It contains the following changes:
>> 
>> - New `jde-import-group-function' option to specify the function used
>>   to associate import token to group. The default one is
>>   `jde-import-group-of'. This let the user to completely handle the
>>   way imports are grouped.
>> 
>> - New `jde-import-sorted-groups' option to specify if groups will be
>>   sorted. Notice that the *default* group (the one that contains
>>   imports not belonging to any specific group) is allways the last
>>   group.
>> 
>> - Improvement of the function `jde-import-group-of'. For consistency
>>   `jde-import-group-rules' is now `jde-import-group-of-rules' and it
>>   is now possible to associate a group regexp to a particular name.
>> 
>> I was able to organize imports like your need using the following
>> customization:
>> 
>> - `jde-import-sorted-groups' set to 'asc (Sort groups alphabetically).
>> 
>> - `jde-import-group-of-rules' set to
>>   '(("^\\([^.]+\\([.][^.]+[.]\\)*\\)" . 1)). If you add the rule
>>   ("^javax?\\." . "") then standard packages will always go into a
>>   topmost group. Also, you can use ("^javax?\\." . "java") to have all
>>   groups in alphabetic order.
>> 
>> Any feedback will be welcome.
>> 
>> Sincerely,
>> David
>
>

Reply via email to