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
7dbfbd91
Commit
7dbfbd91
authored
Feb 14, 2007
by
Kim F. Storm
Browse files
(make-glyph-code, glyph-char, glyph-face): New defuns.
(standard-display-underline): Use make-glyph-code.
parent
da55bb96
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
1 deletion
+25
-1
lisp/disp-table.el
lisp/disp-table.el
+25
-1
No files found.
lisp/disp-table.el
View file @
7dbfbd91
...
...
@@ -172,7 +172,7 @@ X frame."
(
aset
standard-display-table
c
(
vector
(
if
window-system
(
logior
uc
(
lsh
(
face-id
'underline
)
19
))
(
make-glyph-code
uc
'underline
)
(
create-glyph
(
concat
"\e[4m"
(
char-to-string
uc
)
"\e[m"
))))))
;;;###autoload
...
...
@@ -186,6 +186,30 @@ X frame."
(
setq
glyph-table
(
vconcat
glyph-table
(
list
string
)))
(
1-
(
length
glyph-table
)))
;;;###autoload
(
defun
make-glyph-code
(
char
&optional
face
)
"Return a glyph code representing char CHAR with face FACE."
;; Due to limitations on Emacs integer values, faces with
;; face id greater that 4091 are silently ignored.
(
if
(
and
face
(
<=
(
face-id
face
)
#xfff
))
(
logior
char
(
lsh
(
face-id
face
)
19
))
char
))
;;;###autoload
(
defun
glyph-char
(
glyph
)
"Return the character of glyph code GLYPH."
(
logand
glyph
#x7ffff
))
;;;###autoload
(
defun
glyph-face
(
glyph
)
"Return the face of glyph code GLYPH, or nil if glyph has default face."
(
let
((
face-id
(
lsh
glyph
-19
)))
(
and
(
>
face-id
0
)
(
car
(
delq
nil
(
mapcar
(
lambda
(
face
)
(
and
(
eq
(
get
face
'face
)
face-id
)
face
))
(
face-list
)))))))
;;;###autoload
(
defun
standard-display-european
(
arg
)
"Semi-obsolete way to toggle display of ISO 8859 European characters.
...
...
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