From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: defvar interactively, user-variable-p Date: Sun, 18 Oct 2015 12:39:48 +0200 Message-ID: <87vba4o3yj.fsf@fencepost.gnu.org> References: <8737x8o6c5.fsf@mat.ucm.es> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1445164807 25666 80.91.229.3 (18 Oct 2015 10:40:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 18 Oct 2015 10:40:07 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 18 12:40:06 2015 Return-path: Envelope-to: ged-emacs-devel@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 1ZnlNm-0004ov-BS for ged-emacs-devel@m.gmane.org; Sun, 18 Oct 2015 12:40:06 +0200 Original-Received: from localhost ([::1]:33185 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZnlNl-000337-Af for ged-emacs-devel@m.gmane.org; Sun, 18 Oct 2015 06:40:05 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59737) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZnlNW-000332-Th for emacs-devel@gnu.org; Sun, 18 Oct 2015 06:39:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZnlNV-0003xJ-V1 for emacs-devel@gnu.org; Sun, 18 Oct 2015 06:39:50 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:45127) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZnlNV-0003xF-Rj for emacs-devel@gnu.org; Sun, 18 Oct 2015 06:39:49 -0400 Original-Received: from localhost ([127.0.0.1]:58946 helo=lola) by fencepost.gnu.org with esmtp (Exim 4.82) (envelope-from ) id 1ZnlNV-00052l-5U for emacs-devel@gnu.org; Sun, 18 Oct 2015 06:39:49 -0400 Original-Received: by lola (Postfix, from userid 1000) id 899A0DF535; Sun, 18 Oct 2015 12:39:48 +0200 (CEST) In-Reply-To: <8737x8o6c5.fsf@mat.ucm.es> (Uwe Brauer's message of "Sun, 18 Oct 2015 12:48:26 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:191931 Archived-At: Uwe Brauer writes: > Hello > > I am no friend of defcustom, but would like to define variables in what > that I can change their value interactively via set-variable. > > According to the manual > > > > ,---- > | Function: user-variable-p variable > |=20 > | This function returns t if variable is a user option--a variable > | intended to be set by the user for customization--and nil otherwise. > | (Variables other than user options exist for the internal purposes > | of Lisp programs, and users need not know about them.) > |=20 > | User option variables are distinguished from other variables either > | though being declared using defcustom(4) or by the first character > | of their variable-documentation property. If the property exists and > | is a string, and its first character is `*', then the variable is a > | user option. > `---- > > This is a feature I am familiar with from Xemacs. I read user-variable-p is an alias for =E2=80=98custom-variable-p=E2=80=99. (user-variable-p VARIABLE) This function is obsolete since 24.3; use =E2=80=98custom-variable-p=E2=80=99 instead. Return non-nil if VARIABLE is a customizable variable. A customizable variable is either (i) a variable whose property list contains a non-nil =E2=80=98standard-value=E2=80=99 or =E2=80=98cu= stom-autoload=E2=80=99 property, or (ii) an alias for another customizable variable. [back] as the function DOC string, and in the manual -- Function: custom-variable-p arg This function returns non-=E2=80=98nil=E2=80=99 if ARG is a customizab= le variable. A customizable variable is either a variable that has a =E2=80=98standard-value=E2=80=99 or =E2=80=98custom-autoload=E2=80=99 = property (usually meaning it was declared with =E2=80=98defcustom=E2=80=99), or an alias for another customizable variable. while user-variable-p (understandably) is no longer documented. So just what manual is it that you are consulting? --=20 David Kastrup