Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
da55bb96
Commit
da55bb96
authored
Feb 14, 2007
by
Kim F. Storm
Browse files
(describe-char): Use glyph-char and glyph-face.
parent
3ae2a0d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
15 deletions
+9
-15
lisp/descr-text.el
lisp/descr-text.el
+9
-15
No files found.
lisp/descr-text.el
View file @
da55bb96
...
...
@@ -528,11 +528,11 @@ as well as widgets, buttons, overlays, and text properties."
(
setq
char
(
aref
disp-vector
i
))
(
aset
disp-vector
i
(
cons
char
(
describe-char-display
pos
(
logand
char
#x7ffff
)))))
pos
(
glyph-char
char
)))))
(
format
"by display table entry [%s] (see below)"
(
mapconcat
#'
(
lambda
(
x
)
(
format
"?%c"
(
logand
(
car
x
)
#x7ffff
)))
(
format
"?%c"
(
glyph-char
(
car
x
)
)))
disp-vector
" "
)))
(
composition
(
let
((
from
(
car
composition
))
...
...
@@ -627,25 +627,19 @@ as well as widgets, buttons, overlays, and text properties."
(
progn
(
insert
"these fonts (glyph codes):\n"
)
(
dotimes
(
i
(
length
disp-vector
))
(
insert
(
logand
(
car
(
aref
disp-vector
i
))
#x7ffff
)
?:
(
insert
(
glyph-char
(
car
(
aref
disp-vector
i
)))
?:
(
propertize
" "
'display
'
(
space
:align-to
5
))
(
if
(
cdr
(
aref
disp-vector
i
))
(
format
"%s (#x%02X)"
(
cadr
(
aref
disp-vector
i
))
(
cddr
(
aref
disp-vector
i
)))
"-- no font --"
)
"\n"
)
(
when
(
>
(
car
(
aref
disp-vector
i
))
#x7ffff
)
(
let*
((
face-id
(
lsh
(
car
(
aref
disp-vector
i
))
-19
))
(
face
(
car
(
delq
nil
(
mapcar
(
lambda
(
face
)
(
and
(
eq
(
face-id
face
)
face-id
)
face
))
(
face-list
))))))
(
when
face
(
insert
(
propertize
" "
'display
'
(
space
:align-to
5
))
"face: "
)
(
insert
(
concat
"`"
(
symbol-name
face
)
"'"
))
(
insert
"\n"
))))))
(
let
((
face
(
glyph-face
(
car
(
aref
disp-vector
i
)))))
(
when
face
(
insert
(
propertize
" "
'display
'
(
space
:align-to
5
))
"face: "
)
(
insert
(
concat
"`"
(
symbol-name
face
)
"'"
))
(
insert
"\n"
)))))
(
insert
"these terminal codes:\n"
)
(
dotimes
(
i
(
length
disp-vector
))
(
insert
(
car
(
aref
disp-vector
i
))
...
...
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