From: kai.grossjohann@uni-duisburg.de (Kai Großjohann)
Subject: Re: utf-translate-cjk only settable via Customize
Date: Sun, 23 Mar 2003 11:50:28 +0100 [thread overview]
Message-ID: <84k7eqqruz.fsf@lucy.is.informatik.uni-duisburg.de> (raw)
In-Reply-To: 200303222138.h2MLcjrx032294@rum.cs.yale.edu
"Stefan Monnier" <monnier+gnu/emacs@rum.cs.yale.edu> writes:
>> 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?
>
> IIRC, additional keyword args are just passed on to defcustom.
> I did this specifically for :version.
I was confused by the following bit of code in define-minor-mode:
;; Check keys.
(while (keywordp (car body))
(case (pop body)
(:init-value (setq init-value (pop body)))
(:lighter (setq lighter (pop body)))
(:global (setq globalp (pop body)))
(:extra-args (setq extra-args (pop body)))
(:group (setq group (nconc group (list :group (pop body)))))
(:require (setq require (pop body)))
(t (pop body))))
It seemed to me that the `t' case just throws away the keyword and its
arg.
Hm. Now I'm looking again, at the generated defcustom statement, and
I really can't see the extra args being passed :-/ Is it just me
being stupid?
--
A preposition is not a good thing to end a sentence with.
next prev parent reply other threads:[~2003-03-23 10:50 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-10 14:49 utf-translate-cjk only settable via Customize Kai Großjohann
2003-03-11 20:04 ` Stefan Monnier
2003-03-17 14:06 ` Kai Großjohann
2003-03-22 21:38 ` Stefan Monnier
2003-03-23 10:50 ` Kai Großjohann [this message]
2003-03-24 15:30 ` Stefan Monnier
2003-03-23 2:52 ` Richard Stallman
2003-03-23 10:56 ` Kai Großjohann
2003-03-24 19:27 ` Richard Stallman
2003-03-29 17:46 ` Kai Großjohann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=84k7eqqruz.fsf@lucy.is.informatik.uni-duisburg.de \
--to=kai.grossjohann@uni-duisburg.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.