Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
a1feed48
Commit
a1feed48
authored
May 13, 2008
by
Chong Yidong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(talk): Simplify. Pass display arg to talk-add-display as a string.
(talk-add-display): Simplify. Accept only string args.
parent
0d5c702d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
17 deletions
+10
-17
lisp/talk.el
lisp/talk.el
+10
-17
No files found.
lisp/talk.el
View file @
a1feed48
...
...
@@ -50,26 +50,19 @@ Each element has the form (DISPLAY FRAME BUFFER).")
(
interactive
)
(
let
((
type
(
frame-live-p
(
selected-frame
)))
(
display
(
frame-terminal
(
selected-frame
))))
(
cond
((
eq
type
t
)
(
talk-add-display
(
selected-frame
)))
((
eq
type
'x
)
(
talk-add-display
(
frame-terminal
(
selected-frame
))))
(
t
(
error
"Unknown frame type"
))))
(
if
(
or
(
eq
type
t
)
(
eq
type
'x
))
(
talk-add-display
(
terminal-name
(
frame-terminal
(
selected-frame
))))
(
error
"Unknown frame type"
)))
(
talk-update-buffers
))
(
defun
talk-add-display
(
frame
)
(
let*
((
display
(
if
(
frame-live-p
frame
)
(
frame-terminal
frame
)
frame
))
(
elt
(
assoc
display
talk-display-alist
))
(
name
(
concat
"*talk-"
(
terminal-name
display
)
"*"
))
buffer
)
(
unless
(
frame-live-p
frame
)
(
setq
frame
(
make-frame-on-display
display
(
list
(
cons
'name
name
)))))
(
defun
talk-add-display
(
display
)
(
let*
((
elt
(
assoc
display
talk-display-alist
))
(
name
(
concat
"*talk-"
display
"*"
))
frame
buffer
)
(
if
(
and
elt
(
frame-live-p
(
nth
1
elt
)))
(
setq
frame
(
nth
1
elt
)))
(
setq
frame
(
nth
1
elt
))
(
setq
frame
(
make-frame-on-display
display
(
list
(
cons
'name
name
)))))
(
if
(
not
(
and
elt
(
buffer-name
(
get-buffer
(
setq
buffer
(
nth
2
elt
))))))
(
setq
buffer
(
get-buffer-create
name
)))
(
add-to-list
'delete-frame-functions
'talk-handle-delete-frame
)
...
...
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