From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: custom: how do I augment an option? Date: Thu, 06 Sep 2012 09:14:55 -0400 Message-ID: References: <87zk5473qz.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1346937320 32765 80.91.229.3 (6 Sep 2012 13:15:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Sep 2012 13:15:20 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 06 15:15:23 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1T9bvS-0004l2-Ku for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Sep 2012 15:15:18 +0200 Original-Received: from localhost ([::1]:52447 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9bvM-0005Os-6D for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Sep 2012 09:15:12 -0400 Original-Path: usenet.stanford.edu!news.glorb.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!newsfe20.iad.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) Cancel-Lock: sha1:4hssWUAvutW/UNYGJ7fZFeZdtsI= Original-Lines: 16 Original-X-Complaints-To: abuse@UsenetServer.com Original-NNTP-Posting-Date: Thu, 06 Sep 2012 13:14:56 UTC X-Received-Bytes: 1478 Original-Xref: usenet.stanford.edu gnu.emacs.help:194325 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:86668 Archived-At: > So, what is the official method? There are 3 official methods: 1- forget about flexibility and just set the var to a constant value that does not depend on the default value. That can be done from the GUI. 2- if you want to use actual code (instead of a mere constant), then don't use Customize, and use something like the add-hook code you showed. 3- submit a patch for Customize which lets the user specify not just a new value but a change (like a "diff") to the default value. For lists representing sets, a way for the user to specify elements to add and elements to remove would be great. For lists where order matters, the user should additionally have some control over where to add elements. Point 3 would be *really* welcome. Stefan