all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Uwe Brauer <oub@mat.ucm.es>
To: emacs-devel@gnu.org
Subject: defvar interactively, user-variable-p
Date: Sun, 18 Oct 2015 12:48:26 +0300	[thread overview]
Message-ID: <8737x8o6c5.fsf@mat.ucm.es> (raw)

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 







             reply	other threads:[~2015-10-18  9:48 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-18  9:48 Uwe Brauer [this message]
2015-10-18 10:39 ` defvar interactively, user-variable-p 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8737x8o6c5.fsf@mat.ucm.es \
    --to=oub@mat.ucm.es \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.