From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: using use-package Date: Fri, 14 Aug 2015 10:41:33 -0700 (PDT) Message-ID: <032aeaf8-a07b-4fda-857c-a056c97d2814@default> References: <67cb463e-41f6-4f37-91ee-15d0fdb5ba9f@googlegroups.com> <20150812180621.32265.2E673ABE@ahiker.mooo.com> <87bnebnyyl.fsf@newcastle.ac.uk> <83d503e0-a21e-44e6-8522-5b07bee8dae2@default> <87614hq2g0.fsf@newcastle.ac.uk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1439574134 13389 80.91.229.3 (14 Aug 2015 17:42:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 14 Aug 2015 17:42:14 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: phillip.lord@newcastle.ac.uk Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 14 19:42:02 2015 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 1ZQIzK-0004La-Qv for geh-help-gnu-emacs@m.gmane.org; Fri, 14 Aug 2015 19:41:54 +0200 Original-Received: from localhost ([::1]:47632 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZQIzK-0007ha-Aj for geh-help-gnu-emacs@m.gmane.org; Fri, 14 Aug 2015 13:41:54 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49295) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZQIz9-0007ga-Ed for help-gnu-emacs@gnu.org; Fri, 14 Aug 2015 13:41:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZQIz5-0001Cz-B6 for help-gnu-emacs@gnu.org; Fri, 14 Aug 2015 13:41:43 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:24539) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZQIz5-0001Bm-5L for help-gnu-emacs@gnu.org; Fri, 14 Aug 2015 13:41:39 -0400 Original-Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id t7EHfZF0030072 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 14 Aug 2015 17:41:36 GMT Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userv0021.oracle.com (8.13.8/8.13.8) with ESMTP id t7EHfYCX030068 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Fri, 14 Aug 2015 17:41:35 GMT Original-Received: from abhmp0020.oracle.com (abhmp0020.oracle.com [141.146.116.26]) by aserv0122.oracle.com (8.13.8/8.13.8) with ESMTP id t7EHfYeV022978; Fri, 14 Aug 2015 17:41:34 GMT In-Reply-To: <87614hq2g0.fsf@newcastle.ac.uk> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6691.5000 (x86)] X-Source-IP: userv0021.oracle.com [156.151.31.71] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 141.146.126.69 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:106596 Archived-At: > >> You can try customize-set-variable. > > Yes. (Or `customize-set-value', depending on what you want.) >=20 > So this works.... > (customize-set-variable 'tab-width 10) > but so does this.... > (customize-set-variable 'tab-width "bob") > when surely it should error?=20 If you don't use it interactively (`M-x customize-variable') then you are on your own wrt such type checks. IOW, if you are using Lisp instead of setting it interactively, then check first, before setting. Use (get 'tab-width 'custom-type). > Like this errorers? > (customize-set-variable org-tags-column "bob") That raises an error only because you didn't quote `org-tags-column'. If org.el is loaded then the error is a wrong-type-arg error. If it is not loaded then the error is an undefined-variable error.