all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* defvar interactively, user-variable-p
@ 2015-10-18  9:48 Uwe Brauer
  2015-10-18 10:39 ` David Kastrup
  2015-10-18 11:52 ` Michael Heerdegen
  0 siblings, 2 replies; 8+ messages in thread
From: Uwe Brauer @ 2015-10-18  9:48 UTC (permalink / raw)
  To: emacs-devel

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 







^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-10-18 15:35 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-18  9:48 defvar interactively, user-variable-p Uwe Brauer
2015-10-18 10:39 ` David Kastrup
2015-10-18 12:13   ` Uwe Brauer
2015-10-18 12:25     ` David Kastrup
2015-10-18 13:59       ` Uwe Brauer
2015-10-18 11:52 ` Michael Heerdegen
2015-10-18 13:11   ` Uwe Brauer
2015-10-18 15:35     ` Drew Adams

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.