Meaning of “value is t”
Clash Royale CLAN TAG#URR8PPP
When using describe-variable
, often the value for a variable is listed as:
Its value is t
What does that mean and why specifically t
?
help
add a comment |
When using describe-variable
, often the value for a variable is listed as:
Its value is t
What does that mean and why specifically t
?
help
add a comment |
When using describe-variable
, often the value for a variable is listed as:
Its value is t
What does that mean and why specifically t
?
help
When using describe-variable
, often the value for a variable is listed as:
Its value is t
What does that mean and why specifically t
?
help
help
edited Feb 14 at 17:08
Drew
48.6k463107
48.6k463107
asked Feb 14 at 12:39
ChaimKutChaimKut
1127
1127
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
To quote the Emacs Lisp Manual,
t is the preferred way to represent the truth value true. When you
need to choose a value that represents true, and there is no other
basis for choosing, use t. The symbol t always has the value t.
t
stands for "True".
This is important because it is used for decision making. It is used in decisions such as "If this condition is true, do this. Otherwise, do that." The statement Its value is t
means that the variable you're describing holds the value t
. The consequence of the variable being t
depends on the variable.
For example,
(setq inhibit-startup-message t)
When the value of inhibit-startup-message
is t
, Emacs doesn't show the startup screen. To enable the startup screen, you would use a nil
value. nil
is the opposite of t
and means "False".
Generally speaking, the concepts of t
and nil
are part of what's called Boolean Algebra, a method of logic named after mathematician George Boole.
Boolean Algebra is a topic important to computer programming, and many, many other fields of study. It's also quite fun and interesting. Unfortunately, it's too broad to explain in detail here.
2
I think it's important to explain the "and there is no other basis for choosing" part of the quote -- in elisp, absolutely every value other thannil
is considered true for the purposes of boolean tests. Hence you will see the term "non-nil" used a great deal in elisp documentation, asnil
is false, and every non-nil
value is true.t
is a value which is true, and which has no other meaning.
– phils
Feb 15 at 4:36
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "583"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2femacs.stackexchange.com%2fquestions%2f47822%2fmeaning-of-value-is-t%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
To quote the Emacs Lisp Manual,
t is the preferred way to represent the truth value true. When you
need to choose a value that represents true, and there is no other
basis for choosing, use t. The symbol t always has the value t.
t
stands for "True".
This is important because it is used for decision making. It is used in decisions such as "If this condition is true, do this. Otherwise, do that." The statement Its value is t
means that the variable you're describing holds the value t
. The consequence of the variable being t
depends on the variable.
For example,
(setq inhibit-startup-message t)
When the value of inhibit-startup-message
is t
, Emacs doesn't show the startup screen. To enable the startup screen, you would use a nil
value. nil
is the opposite of t
and means "False".
Generally speaking, the concepts of t
and nil
are part of what's called Boolean Algebra, a method of logic named after mathematician George Boole.
Boolean Algebra is a topic important to computer programming, and many, many other fields of study. It's also quite fun and interesting. Unfortunately, it's too broad to explain in detail here.
2
I think it's important to explain the "and there is no other basis for choosing" part of the quote -- in elisp, absolutely every value other thannil
is considered true for the purposes of boolean tests. Hence you will see the term "non-nil" used a great deal in elisp documentation, asnil
is false, and every non-nil
value is true.t
is a value which is true, and which has no other meaning.
– phils
Feb 15 at 4:36
add a comment |
To quote the Emacs Lisp Manual,
t is the preferred way to represent the truth value true. When you
need to choose a value that represents true, and there is no other
basis for choosing, use t. The symbol t always has the value t.
t
stands for "True".
This is important because it is used for decision making. It is used in decisions such as "If this condition is true, do this. Otherwise, do that." The statement Its value is t
means that the variable you're describing holds the value t
. The consequence of the variable being t
depends on the variable.
For example,
(setq inhibit-startup-message t)
When the value of inhibit-startup-message
is t
, Emacs doesn't show the startup screen. To enable the startup screen, you would use a nil
value. nil
is the opposite of t
and means "False".
Generally speaking, the concepts of t
and nil
are part of what's called Boolean Algebra, a method of logic named after mathematician George Boole.
Boolean Algebra is a topic important to computer programming, and many, many other fields of study. It's also quite fun and interesting. Unfortunately, it's too broad to explain in detail here.
2
I think it's important to explain the "and there is no other basis for choosing" part of the quote -- in elisp, absolutely every value other thannil
is considered true for the purposes of boolean tests. Hence you will see the term "non-nil" used a great deal in elisp documentation, asnil
is false, and every non-nil
value is true.t
is a value which is true, and which has no other meaning.
– phils
Feb 15 at 4:36
add a comment |
To quote the Emacs Lisp Manual,
t is the preferred way to represent the truth value true. When you
need to choose a value that represents true, and there is no other
basis for choosing, use t. The symbol t always has the value t.
t
stands for "True".
This is important because it is used for decision making. It is used in decisions such as "If this condition is true, do this. Otherwise, do that." The statement Its value is t
means that the variable you're describing holds the value t
. The consequence of the variable being t
depends on the variable.
For example,
(setq inhibit-startup-message t)
When the value of inhibit-startup-message
is t
, Emacs doesn't show the startup screen. To enable the startup screen, you would use a nil
value. nil
is the opposite of t
and means "False".
Generally speaking, the concepts of t
and nil
are part of what's called Boolean Algebra, a method of logic named after mathematician George Boole.
Boolean Algebra is a topic important to computer programming, and many, many other fields of study. It's also quite fun and interesting. Unfortunately, it's too broad to explain in detail here.
To quote the Emacs Lisp Manual,
t is the preferred way to represent the truth value true. When you
need to choose a value that represents true, and there is no other
basis for choosing, use t. The symbol t always has the value t.
t
stands for "True".
This is important because it is used for decision making. It is used in decisions such as "If this condition is true, do this. Otherwise, do that." The statement Its value is t
means that the variable you're describing holds the value t
. The consequence of the variable being t
depends on the variable.
For example,
(setq inhibit-startup-message t)
When the value of inhibit-startup-message
is t
, Emacs doesn't show the startup screen. To enable the startup screen, you would use a nil
value. nil
is the opposite of t
and means "False".
Generally speaking, the concepts of t
and nil
are part of what's called Boolean Algebra, a method of logic named after mathematician George Boole.
Boolean Algebra is a topic important to computer programming, and many, many other fields of study. It's also quite fun and interesting. Unfortunately, it's too broad to explain in detail here.
edited Feb 14 at 14:05
NickD
2,6691515
2,6691515
answered Feb 14 at 13:18
Lorem IpsumLorem Ipsum
1,296413
1,296413
2
I think it's important to explain the "and there is no other basis for choosing" part of the quote -- in elisp, absolutely every value other thannil
is considered true for the purposes of boolean tests. Hence you will see the term "non-nil" used a great deal in elisp documentation, asnil
is false, and every non-nil
value is true.t
is a value which is true, and which has no other meaning.
– phils
Feb 15 at 4:36
add a comment |
2
I think it's important to explain the "and there is no other basis for choosing" part of the quote -- in elisp, absolutely every value other thannil
is considered true for the purposes of boolean tests. Hence you will see the term "non-nil" used a great deal in elisp documentation, asnil
is false, and every non-nil
value is true.t
is a value which is true, and which has no other meaning.
– phils
Feb 15 at 4:36
2
2
I think it's important to explain the "and there is no other basis for choosing" part of the quote -- in elisp, absolutely every value other than
nil
is considered true for the purposes of boolean tests. Hence you will see the term "non-nil" used a great deal in elisp documentation, as nil
is false, and every non-nil
value is true. t
is a value which is true, and which has no other meaning.– phils
Feb 15 at 4:36
I think it's important to explain the "and there is no other basis for choosing" part of the quote -- in elisp, absolutely every value other than
nil
is considered true for the purposes of boolean tests. Hence you will see the term "non-nil" used a great deal in elisp documentation, as nil
is false, and every non-nil
value is true. t
is a value which is true, and which has no other meaning.– phils
Feb 15 at 4:36
add a comment |
Thanks for contributing an answer to Emacs Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2femacs.stackexchange.com%2fquestions%2f47822%2fmeaning-of-value-is-t%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown