From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stephen J. Turnbull" Newsgroups: gmane.emacs.devel Subject: RE: `set-variable' should use :set Date: Fri, 22 Oct 2010 11:20:57 +0900 Message-ID: <87bp6nklx2.fsf@uwakimon.sk.tsukuba.ac.jp> References: <87d3r3qd44.fsf@catnip.gol.com> <871v7jqchc.fsf@catnip.gol.com> <033D7FA139144B03B1370B9E9C1113ED@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1287714512 15521 80.91.229.12 (22 Oct 2010 02:28:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 22 Oct 2010 02:28:32 +0000 (UTC) Cc: 'Emacs-Devel devel' , 'Miles Bader' To: "Drew Adams" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 22 04:28:31 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P97Ml-00066V-UG for ged-emacs-devel@m.gmane.org; Fri, 22 Oct 2010 04:28:24 +0200 Original-Received: from localhost ([127.0.0.1]:44093 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P97Mk-0005jw-O1 for ged-emacs-devel@m.gmane.org; Thu, 21 Oct 2010 22:28:22 -0400 Original-Received: from [140.186.70.92] (port=40464 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P97Mc-0005bJ-PJ for emacs-devel@gnu.org; Thu, 21 Oct 2010 22:28:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P97Dw-00036S-VW for emacs-devel@gnu.org; Thu, 21 Oct 2010 22:19:17 -0400 Original-Received: from imss12.cc.tsukuba.ac.jp ([130.158.254.161]:48997) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P97Dw-00035z-N1; Thu, 21 Oct 2010 22:19:16 -0400 Original-Received: from imss12.cc.tsukuba.ac.jp (imss12.cc.tsukuba.ac.jp [127.0.0.1]) by postfix.imss71 (Postfix) with ESMTP id 7C91C2AF543; Fri, 22 Oct 2010 11:19:13 +0900 (JST) Original-Received: from mgmt1.sk.tsukuba.ac.jp (unknown [130.158.97.223]) by imss12.cc.tsukuba.ac.jp (Postfix) with ESMTP id 6EE862AF542; Fri, 22 Oct 2010 11:19:13 +0900 (JST) Original-Received: from uwakimon.sk.tsukuba.ac.jp (uwakimon.sk.tsukuba.ac.jp [130.158.99.156]) by mgmt1.sk.tsukuba.ac.jp (Postfix) with ESMTP id 6D9793FA0510; Fri, 22 Oct 2010 11:19:13 +0900 (JST) Original-Received: by uwakimon.sk.tsukuba.ac.jp (Postfix, from userid 1000) id 0F2371A3C36; Fri, 22 Oct 2010 11:20:58 +0900 (JST) In-Reply-To: <033D7FA139144B03B1370B9E9C1113ED@us.oracle.com> X-Mailer: VM 8.1.93a under 21.5 (beta29) "garbanzo" ed3b274cc037 XEmacs Lucid (x86_64-unknown-linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:131965 Archived-At: Drew Adams writes: > However, I disagree that [set-variable] is not that much more > convenient than setq. For one thing, it respects the defcustom > :type spec. For another, it uses a proper interactive spec. The > type-checking in particular is a win, IMO. I don't find either of those noticable. Except when type-checking conflicts with the lack of :set support, which can be confusing. > (FWIW, I use it often.) I'm curious, what are your use cases? When I find myself using set-variable (more likely, setq), it's invariably a symptom of a defect in my environment: a command is missing an argument, an initialization function is DT wrong T. In fact, I often do M-: (setq foovar barval) RET ;; experiment M-: C-p C-a C-k C-g M-x find-function RET foo RET C-j which makes "M-: (setq ..." an effective, rather than annoying, idiom.