From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: kai.grossjohann@uni-duisburg.de (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.devel Subject: Re: utf-translate-cjk only settable via Customize Date: Mon, 17 Mar 2003 15:06:51 +0100 Organization: University of Duisburg, Germany Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <84of4aw0hw.fsf@lucy.is.informatik.uni-duisburg.de> References: <84zno3b7jy.fsf@lucy.is.informatik.uni-duisburg.de> <200303112004.h2BK4xwG012758@rum.cs.yale.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1048174712 26845 80.91.224.249 (20 Mar 2003 15:38:32 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 20 Mar 2003 15:38:32 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu Mar 20 16:38:31 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18w27j-0006yo-00 for ; Thu, 20 Mar 2003 16:38:31 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18w291-0004ok-00 for ; Thu, 20 Mar 2003 16:39:51 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18w27D-0007hQ-01 for emacs-devel@quimby.gnus.org; Thu, 20 Mar 2003 10:37:59 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18w21s-00067D-00 for emacs-devel@gnu.org; Thu, 20 Mar 2003 10:32:28 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18w20p-0005Tp-00 for emacs-devel@gnu.org; Thu, 20 Mar 2003 10:31:24 -0500 Original-Received: from main.gmane.org ([80.91.224.249]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18w206-0004jq-00 for emacs-devel@gnu.org; Thu, 20 Mar 2003 10:30:38 -0500 Original-Received: from root by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 18w1zq-0006Q1-00 for ; Thu, 20 Mar 2003 16:30:22 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 18w1ut-00060k-00 for ; Thu, 20 Mar 2003 16:25:15 +0100 Original-Lines: 24 Original-X-Complaints-To: usenet@main.gmane.org User-Agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:k7E51pXykEm1Y6U39jYwKxkpF7k= X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:12488 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:12488 "Stefan Monnier" writes: >> My suggestion would be to create a function utf-translate-cjk-mode >> based on the :set expression for utf-translate-cjk and then change >> the :set expression to invoke that function. > > Why not make it into a minor mode ? That's a good idea in principle, and I've now started on it. However, the original defcustom contains a :set-after keyword and a :version keyword. Can these be put into the define-minor-mode? [time passes] The keyword :extra-args for define-minor-mode is not documented. [pondering] It ought to be easy to augment define-minor-mode to grok more keyword args. But is this the right approach? Do we want a :extra-defcustom-args thing that contains a list of those additional args to defcustom? -- A preposition is not a good thing to end a sentence with.