From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: Re: Custom themes Date: Sat, 25 Jun 2005 13:00:51 -0500 (CDT) Message-ID: <200506251800.j5PI0pa13313@raven.dms.auburn.edu> References: <200506250325.j5P3PRu11900@raven.dms.auburn.edu> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1119724021 15769 80.91.229.2 (25 Jun 2005 18:27:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 25 Jun 2005 18:27:01 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jun 25 20:26:59 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DmFMo-0008Ph-2K for ged-emacs-devel@m.gmane.org; Sat, 25 Jun 2005 20:26:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DmFU5-0006m9-Ip for ged-emacs-devel@m.gmane.org; Sat, 25 Jun 2005 14:34:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DmFTv-0006la-Lz for emacs-devel@gnu.org; Sat, 25 Jun 2005 14:34:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DmFTu-0006lO-1T for emacs-devel@gnu.org; Sat, 25 Jun 2005 14:34:19 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DmFQ7-0005Jw-OQ for emacs-devel@gnu.org; Sat, 25 Jun 2005 14:30:24 -0400 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DmF2v-0001SF-Rh; Sat, 25 Jun 2005 14:06:26 -0400 Original-Received: from raven.dms.auburn.edu (raven.dms.auburn.edu [131.204.53.29]) by manatee.dms.auburn.edu (8.12.10/8.12.10) with ESMTP id j5PI2TCK008936; Sat, 25 Jun 2005 13:02:29 -0500 (CDT) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.7p1+Sun/8.11.7) id j5PI0pa13313; Sat, 25 Jun 2005 13:00:51 -0500 (CDT) X-Authentication-Warning: raven.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: rms@gnu.org In-reply-to: (rms@gnu.org) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:39512 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:39512 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 wrong directory. If so, can you fix it? It writes a file into the current directory, which to me does definitely not seem like the right thing to do for a command like `customize-create-theme'. It should write the file into the directory where these files belong. I can not possibly fix it, because I have no idea what directory that is. The user's home directory? I do not know. Here is a list of problems with `customize-create-theme': 1. The buffer it creates fails to give anywhere close to appropriate usage guidance. 2. The command does things that for most purposes feel like putting the buffer in a given major mode, except that it does not run a mode hook, nor `after-change-major-mode-hook'. For instance, it calls `kill-all-local-variables' and `use-local-map'. But instead of actually defining and calling a major mode, it kind of "inlines" the call to the unofficial major mode. The buffer ends up "officially" in Fundamental Mode, so you can not get info about the "hidden" real mode, using `C-h m'. Because of the `use-local-map' call the buffer does not feel like "Fundamental Mode". Because after-change-major-mode-hook has not been called, it is not _really_ in Fundamental Mode. It is in _no_ major mode. That is not good. It could create problems, for instance for minor modes defined with define-global-minor-mode. 3. If now you click on "Done", a second buffer with the tentative theme file appears. It is marked modified and apparently not saved to disk. I believe it should have been either saved to disk in the appropriate place, or there should be some message saying that saving the file will save it to the appropriate place (and of course, that message should not be a lie). 4. It is a .el file. The buffer should be in Emacs Lisp mode, but it is in Fundamental mode. 5. You wonder what to do. You want to save your file, so you do C-x C-s, what else? But that saves it in the current directory, which is still the directory that was current when you called `customize-create-theme', which may not be an appropriate place for theme files. If you do not pay attention and continue with other work, you may have to run `find' to find the file back. I believe that the second buffer's current directory should be the directory for saving theme files (whatever directory that is). Sincerely, Luc.