Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
b74f585b
Commit
b74f585b
authored
Jun 08, 2005
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(Defining Faces): Explain that face name should not end in `-face'.
parent
03de4399
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
lispref/display.texi
lispref/display.texi
+6
-5
No files found.
lispref/display.texi
View file @
b74f585b
...
...
@@ -1795,14 +1795,15 @@ end of a line.
The
way
to
define
a
new
face
is
with
@
code
{
defface
}.
This
creates
a
kind
of
customization
item
(@
pxref
{
Customization
})
which
the
user
can
customize
using
the
Customization
buffer
(@
pxref
{
Easy
Customization
,,,
emacs
,
The
GNU
Emacs
Manual
}).
emacs
,
The
GNU
Emacs
Manual
}).
@
defmac
defface
face
spec
doc
[
keyword
value
]...
This
declares
@
var
{
face
}
as
a
customizable
face
that
defaults
according
to
@
var
{
spec
}.
You
should
not
quote
the
symbol
@
var
{
face
}.
The
This
declares
@
var
{
face
}
as
a
customizable
face
that
defaults
according
to
@
var
{
spec
}.
You
should
not
quote
the
symbol
@
var
{
face
},
and
it
should
not
end
in
@
samp
{-
face
}
(
that
would
be
redundant
).
The
argument
@
var
{
doc
}
specifies
the
face
documentation
.
The
keywords
you
can
use
in
@
code
{
defface
}
are
the
same
ones
that
are
meaningful
in
both
@
code
{
defgroup
}
and
@
code
{
defcustom
}
(@
pxref
{
Common
Keywords
}).
can
use
in
@
code
{
defface
}
are
the
same
as
in
@
code
{
defgroup
}
and
@
code
{
defcustom
}
(@
pxref
{
Common
Keywords
}).
When
@
code
{
defface
}
executes
,
it
defines
the
face
according
to
@
var
{
spec
},
then
uses
any
customizations
that
were
read
from
the
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment