Re: Custom themes

2005-07-03 Thread Luc Teirlinck
Richard Stallman wrote: With the current code, they do _not_ get reloaded when already loaded. If I would re-implement it, they would be reloaded. How about making that fix? It should pretty easy. It is not at all as trivial as it seems. The current Custom themes code is not a

Re: Custom themes

2005-07-02 Thread Richard M. Stallman
With the current code, they do _not_ get reloaded when already loaded. If I would re-implement it, they would be reloaded. How about making that fix? It should pretty easy. ___ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/

Re: Custom themes

2005-07-01 Thread Richard M. Stallman
With the current code, they do _not_ get reloaded when already loaded. If I would re-implement it, they would be reloaded. If that's the easiest way to get correct functioning, please do it. ___ Emacs-devel mailing list Emacs-devel@gnu.org http

Re: Custom themes

2005-06-30 Thread Luc Teirlinck
David Kastrup wrote: I guess that a theme, when required, will get reloaded even if it has been loaded previously. With the current code, they do _not_ get reloaded when already loaded. If I would re-implement it, they would be reloaded. Sincerely, Luc. _

Re: Custom themes

2005-06-30 Thread Richard M. Stallman
It seems impossible to figure out what custom-do-theme-reset is really _trying_ to do You said it resets all themes. That sounds like a good definition. Please take that as the purpose of the function. What the function apparently wants to do is "exactly the same thing as what th

Re: Custom themes

2005-06-30 Thread Richard M. Stallman
It seems impossible to figure out what custom-do-theme-reset is really _trying_ to do You said it resets all themes. That sounds like a good definition. Please take that as the purpose of the function. What the function apparently wants to do is "exactly the same thing as what th

Re: Custom themes

2005-06-30 Thread Per Abrahamsen
Luc Teirlinck <[EMAIL PROTECTED]> writes: > I do not use XEmacs and I do not know whether the XEmacs version is > actually in active use and works according to some consistent > philosophy. I do not know how important compatibility with XEmacs in > the Emacs Custom Themes implementation. If you

Re: Custom themes

2005-06-30 Thread David Kastrup
"Richard M. Stallman" <[EMAIL PROTECTED]> writes: > If I had to implement themes from scratch, my philosophy would be that > if two loaded themes conflict, then the most recently added one takes > precedence. > > That sounds like a good approach. I see a few approaches that > could ma

Re: Custom themes

2005-06-30 Thread David Kastrup
Luc Teirlinck <[EMAIL PROTECTED]> writes: > The situation with Custom themes is a lot worse that I thought > yesterday. I discovered two new bugs, one so serious that it makes > the Custom themes feature unusable. It is nearly guaranteed that > even if those two bugs could be solved plenty of ot

Re: Custom themes

2005-06-29 Thread Luc Teirlinck
Richard Stallman wrote: Can you fix that doc string to be accurate? Then you could easily implement a command to undo one theme using the method I suggested above. It seems impossible to figure out what custom-do-theme-reset is really _trying_ to do, and custom-do-theme-reset is used in

Re: Custom themes

2005-06-29 Thread Richard M. Stallman
Unfortunately, after taking a closer look at it, things are way worse than I originally thought. It does not appear that there is _any_ support for undoing the requiring of an individual theme in the current code. You can apparently more or less undo all themes together (altho

Re: Custom themes

2005-06-28 Thread Luc Teirlinck
Richard Stallman wrote: That sounds like a good approach. I see a few approaches that could make sense: 1. Most recent takes priority. 2. Let user specify the priority order. 3. Don't allow loading themes that conflict. 4. Ask the user what to do, each time there is a conflict.

Re: Custom themes

2005-06-28 Thread Richard M. Stallman
If I had to implement themes from scratch, my philosophy would be that if two loaded themes conflict, then the most recently added one takes precedence. That sounds like a good approach. I see a few approaches that could make sense: 1. Most recent takes priority. 2. Let user specify

Re: Custom themes

2005-06-28 Thread Luc Teirlinck
Unfortunately, after taking a closer look at it, things are way worse than I originally thought. It does not appear that there is _any_ support for undoing the requiring of an individual theme in the current code. You can apparently more or less undo all themes together (although you have to ask

Re: Custom themes

2005-06-28 Thread Richard M. Stallman
I think even a somewhat incorrect documentation would be a good thing because it would hopefully give us bug-reports that'll help us improve both the code and the doc. I agree completely. Meanwhile, I think Luc's latest fixes make it work well enough to be useful. So let's document i

Re: Custom themes

2005-06-28 Thread Luc Teirlinck
So here is what I am going to do. I keep require-theme as the basic theme enabling mechanism and do _not_ replace it by unconditional loading. I implement the solutions specified below to my three problems. I will install soon. Then people can try it out and see whether the entire stuff, includ

Re: Custom themes

2005-06-28 Thread Luc Teirlinck
In the patch I sent: ;; You can also write `(require-theme %s)' in your .emacs file. should of course be: ;; You can also write `(require-theme '%s)' in your .emacs file. (I forgot the '). In as far as this .emacs type use of Custom Themes is concerned, everything works fine and essentially al

Re: Custom themes

2005-06-28 Thread Richard M. Stallman
Note that, after my patches, the bugs in the Custom Theme machinery that I am aware of _only_ occur after unloading previously loaded themes. What does it mean to "unload" a theme? I can't find anything in the code that refers to such an operation. __

Re: Custom themes

2005-06-28 Thread Luc Teirlinck
Stefan Monnier wrote: > So it might seem too early to document them in the Emacs manual. I think the main reason why they're unused is that they're completely undocumented. I'd love to see some rough documentation for it. In the patches I sent, I provided documentation in the buffers c

Re: Custom themes

2005-06-28 Thread Luc Teirlinck
Stefan Monnier wrote: I think even a somewhat incorrect documentation would be a good thing because it would hopefully give us bug-reports that'll help us improve both the code and the doc. I believe that the documentation I wrote is correct. However, the problems that remain after my p

Re: Custom themes

2005-06-27 Thread Stefan Monnier
> So it might seem too early to document them in the Emacs manual. I think the main reason why they're unused is that they're completely undocumented. I'd love to see some rough documentation for it. It will hopefully help us all better understand the feature and improve it (especially the UI par

Re: Custom themes

2005-06-27 Thread Luc Teirlinck
Note that, after my patches, the bugs in the Custom Theme machinery that I am aware of _only_ occur after unloading previously loaded themes. I could point out more explicitly in my docs that this is the only problem. I believe that neither color-theme.el nor etheme.el even attempt to undo a prev

Re: Custom themes

2005-06-27 Thread Luc Teirlinck
I took a somewhat more detailed look at the Custom Themes code. It definitely is unfinished work that is _not_ currently in progress. >From looking at past threads, I believe that Alex Schroeder just gave up on it and decided that color-theme.el was the way to go. The problem with color-theme.el

Re: Custom themes

2005-06-27 Thread Per Abrahamsen
Luc Teirlinck <[EMAIL PROTECTED]> writes: > I guess Per may know some of the details. Nope. Jan Vroonhof wrote the code for XEmacs. I once tried to integrate it into Emacs, but gave up. I don't believe I was involved when Dave Love and Alex Schroeder actually went ahead and did integrate it.

Re: Custom themes

2005-06-26 Thread Richard M. Stallman
I could at least partially alleviate the worst parts of the problems with cus-theme.el I pointed out, as long as I would know what is an appropriate default directory for theme files. A new customizable variable custom-theme-directory with default the user's home directory? Yes, b

Re: Custom themes

2005-06-25 Thread Richard M. Stallman
Thanks for finding the bugs in custom themes. Would you like to fix these bugs? They don't sound terribly difficult to fix, and then it will be a useful feature. We've already installed this feature, and it ought to be useful once it works. We might as well fix the bugs now--there's no benefit i

Re: Custom themes

2005-06-25 Thread Luc Teirlinck
Richard Stallman wrote: I don't remember the details, but it is a matter of defining a collection of custom settings and giving them a name. Then you can enable them and disable them by name. I have the impression nobody knows the details, or would be able to document them, except a very

Re: Custom themes

2005-06-25 Thread Luc Teirlinck
>From my previous message: it was (nearly) two years ago. Actually, nearly three years ago. Sincerely, Luc. ___ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel

Re: Custom themes

2005-06-25 Thread Luc Teirlinck
And there is color-theme.el, which works nicely, is widely deployed in the Emacs users community, there are many predefined themes and well, it's just nice. That does not seem to be included with the CVS Emacs distribution. I found an Emacs devel thread from about two years ago about add

Re: Custom themes

2005-06-25 Thread Frank Schmitt
Luc Teirlinck <[EMAIL PROTECTED]> writes: > Here is a list of problems with `customize-create-theme': [cut] And there is color-theme.el, which works nicely, is widely deployed in the Emacs users community, there are many predefined themes and well, it's just nice. -- Did you ever realize how mu

Re: Custom themes

2005-06-25 Thread Luc Teirlinck
But, by experimentation, I was able to figure out what it currently actually does: it writes files into random directories all over your file system without warning. That is a rather vague description of the behavior. Perhaps you're describing a bug where it writes

Re: Custom themes

2005-06-25 Thread Richard M. Stallman
Some questions and remarks _were_ naive. At second look `customize-create-theme' seems to be a user level command rather than a Lisp programmer level command, as I first thought. Trying it out, it seems to have a very unfinished look to it. I still do not really know what it

Re: Custom themes

2005-06-25 Thread Richard M. Stallman
But, by experimentation, I was able to figure out what it currently actually does: it writes files into random directories all over your file system without warning. That is a rather vague description of the behavior. Perhaps you're describing a bug where it writes a file into the wr

Re: Custom themes

2005-06-24 Thread Luc Teirlinck
After _trying_ to use Custom themes, it seems totally obvious that this is a completely unfinished package, completely unready to be used or documented in its present form. One obvious problem is a total lack of documentation at any level. That is bad enough, but there is way worse. In its curre

Re: Custom themes

2005-06-24 Thread Luc Teirlinck
>From my earlier reply: I know nothing about them, but some naive questions: Some questions and remarks _were_ naive. At second look `customize-create-theme' seems to be a user level command rather than a Lisp programmer level command, as I first thought. Trying it out, it seems to have a ve

Re: Custom themes

2005-06-24 Thread Luc Teirlinck
Richard Stallman wrote: Could someone please document Custom themes in the Emacs manual? I know nothing about them, but some naive questions: Do they already work? Are they used anywhere? The command to create a theme seems to be `customize-create-theme'. Grepping seems to show that it is