From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.help Subject: Re: interactive interface to supply variables Date: Sat, 14 Dec 2013 20:52:59 +0100 Message-ID: References: <87vbyr45bj.fsf@nl106-137-194.student.uu.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1387050829 4057 80.91.229.3 (14 Dec 2013 19:53:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 14 Dec 2013 19:53:49 +0000 (UTC) Cc: Emacs Help List To: Emanuel Berg Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Dec 14 20:53:53 2013 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 1VrvHd-0001GO-Fr for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Dec 2013 20:53:53 +0100 Original-Received: from localhost ([::1]:48419 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VrvHd-0006zT-6n for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Dec 2013 14:53:53 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52266) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VrvHS-0006zA-FB for help-gnu-emacs@gnu.org; Sat, 14 Dec 2013 14:53:43 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VrvHR-0002Ma-NA for help-gnu-emacs@gnu.org; Sat, 14 Dec 2013 14:53:42 -0500 Original-Received: from mail-ee0-x22e.google.com ([2a00:1450:4013:c00::22e]:46124) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VrvHR-0002MW-F5 for help-gnu-emacs@gnu.org; Sat, 14 Dec 2013 14:53:41 -0500 Original-Received: by mail-ee0-f46.google.com with SMTP id d49so1464131eek.19 for ; Sat, 14 Dec 2013 11:53:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=ZqbGdfWjdL7C/bwk+nDZVjrT8YgHaJgmJFCpLTYy60c=; b=KTvrjszSxkaz3hS7hhPtoOqHEhCxxjUJ6Khyl1rirEgAi0WmmEn0xqHKnYgPbNYEFj 59Yv7lvrGQ/uctyfEW+x9cROd2dCogjMLRZUcevb4B2VZzQtcUTIyV2yXUJl1qsOAm/4 NkdyutjP3Ec9K4o0YHY39KiD1rBMyCsBt61/Wd/ErlSF4lmpF/HVpviu1evPNm0Xmf1j O03Xb4GLADdXQAwKu6/Pi7bSgBbRNen/2ZB19xFk/ryJ7vTIc6xfHhxKzKU0+tYeAN+3 lWuzydMQnmeiNsrkw4pCDUbhn9C0TqLq+MyGboPdH4yxON7hBkSfUqxGecXbJGvV+CCm 3FJg== X-Received: by 10.14.93.197 with SMTP id l45mr9025308eef.53.1387050819750; Sat, 14 Dec 2013 11:53:39 -0800 (PST) Original-Received: by 10.14.209.69 with HTTP; Sat, 14 Dec 2013 11:52:59 -0800 (PST) In-Reply-To: <87vbyr45bj.fsf@nl106-137-194.student.uu.se> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4013:c00::22e 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:94982 Archived-At: > (symbol-name 'test-var) ; "test-var" (both correct) This is irrelevant: (symbol-name 'my-var) => "my-var" even if no (defvar my-var X) was ever used. > How does `describe-variable' do that? (Perhaps I should > just copy their interface, because they also suggest > the variable at point as default. But that's step two.) custom-variable-p is a compiled Lisp function in `custom.el'. Return non-nil if variable is a customizable variable. A customizable variable is either (i) a variable whose property list contains a non-nil `standard-value' or `custom-autoload' property, or (ii) an alias for another customizable variable. So: (defvar test-var 1) (put 'test-var 'standard-value t) J