From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Uwe Brauer Newsgroups: gmane.emacs.devel Subject: defvar interactively, user-variable-p Date: Sun, 18 Oct 2015 12:48:26 +0300 Message-ID: <8737x8o6c5.fsf@mat.ucm.es> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1445161748 15690 80.91.229.3 (18 Oct 2015 09:49:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 18 Oct 2015 09:49:08 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 18 11:48:59 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 1ZnkaF-0006km-H6 for ged-emacs-devel@m.gmane.org; Sun, 18 Oct 2015 11:48:55 +0200 Original-Received: from localhost ([::1]:33029 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZnkaE-00027V-Ot for ged-emacs-devel@m.gmane.org; Sun, 18 Oct 2015 05:48:54 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47887) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Znka8-00027H-RZ for emacs-devel@gnu.org; Sun, 18 Oct 2015 05:48:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZnkZu-0005fc-S5 for emacs-devel@gnu.org; Sun, 18 Oct 2015 05:48:37 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:37391) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZnkZu-0005fY-Kv for emacs-devel@gnu.org; Sun, 18 Oct 2015 05:48:34 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZnkZr-0006MJ-TG for emacs-devel@gnu.org; Sun, 18 Oct 2015 11:48:32 +0200 Original-Received: from 192.115.67.55 ([192.115.67.55]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 18 Oct 2015 11:48:31 +0200 Original-Received: from oub by 192.115.67.55 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 18 Oct 2015 11:48:31 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 44 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 192.115.67.55 Mail-Copies-To: never User-Agent: Gnus/5.13001 (Ma Gnus v0.10) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:cWiM8FBYqz47INmgK8h9/uTVj8M= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:191923 Archived-At: 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 | | 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.) | | 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. Now look at that (defvar latexdiff-perl nil "*Whether to use latexdiff based on perl or not, default is NIL.") (user-variable-p latexdiff-perl) Returns NIL and not t. And in fact I cannot set the variable interactively. What do I miss? Thanks Uwe Brauer